UbuntuUbuntu Based

How To Install Immich on Ubuntu 24.04 LTS

Install Immich on Ubuntu 24.04

Immich is a powerful open-source photo and video management solution that allows you to organize, share, and collaborate on your media files with ease. With its user-friendly interface and robust features, Immich is an excellent choice for both personal and professional use. In this comprehensive guide, we’ll walk you through the process of installing Immich on Ubuntu 24.04 LTS, so you can start managing your media library efficiently.

Prerequisites

Before diving into the installation process, let’s ensure your system meets the necessary requirements:

System Requirements

  • Minimum hardware specifications:
    • 2 GHz dual-core processor
    • 4 GB RAM
    • 20 GB free disk space
  • Recommended hardware for optimal performance:
    • 3 GHz quad-core processor
    • 8 GB RAM
    • 50 GB free disk space

Required Software Dependencies

  • Docker
  • Docker Compose

Preparing Ubuntu 24.04 LTS

  1. Update your system by running the following commands in the terminal:
    sudo apt update
    sudo apt upgrade
  2. Install necessary packages:
    sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release

Installing Docker and Docker Compose

Installing Docker

  1. Add the Docker repository:
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  2. Install the Docker package:
    sudo apt update
    sudo apt install docker-ce docker-ce-cli containerd.io
  3. Verify the Docker installation:
    sudo docker run hello-world

Installing Docker Compose

  1. Download the Docker Compose binary:
    sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  2. Set permissions for the binary:
    sudo chmod +x /usr/local/bin/docker-compose
  3. Verify the Docker Compose installation:
    docker-compose --version

Setting Up Immich

  1. Create a dedicated directory for Immich:
    mkdir immich && cd immich
  2. Download the Immich Docker Compose file:
    wget https://raw.githubusercontent.com/immich-app/immich/main/docker/docker-compose.yml
  3. Configure the Immich environment:
    1. Edit the Docker Compose file:
      nano docker-compose.yml
    2. Set up environment variables according to your preferences.
  4. Start the Immich containers:
    docker-compose up -d
  5. Verify the container status:
    docker-compose ps
  6. Access the Immich web interface:
    1. Determine the server IP address:
      ip a
    2. Open a web browser and navigate to http://your-server-ip:8080.

Install Immich on Ubuntu 24.04 LTS

Configuring Immich

  1. Create an admin account by following the on-screen instructions.
  2. Configure storage settings:
    1. Set up local storage by specifying the directory where your media files will be stored.
    2. (Optional) Configure remote storage, such as Amazon S3 or Google Cloud Storage, for additional backup and accessibility.
  3. Adjust server settings:
    1. (If needed) Change the server port by editing the Docker Compose file and restarting the containers.
    2. (Optional) Configure SSL/TLS for secure access to the Immich web interface.
  4. Set up user accounts and permissions:
    1. Create user accounts for individuals who will access the Immich server.
    2. Assign roles and permissions to each user account based on their requirements.

Using Immich

  1. Upload photos and videos:
    1. Use the web interface to upload media files directly to the Immich server.
    2. Install the Immich mobile app on your smartphone or tablet to automatically sync media files.
  2. Organize media:
    1. Create albums and tags to categorize your media files.
    2. Use the search and filter features to quickly find specific photos or videos.
  3. Share and collaborate:
    1. Share albums and media files with other Immich users for easy collaboration.
    2. Work together on shared albums by adding, editing, and commenting on media files.

Troubleshooting and Maintenance

Common Issues and Solutions

  • Container startup problems:
    • Ensure that Docker and Docker Compose are properly installed and running.
    • Check for any conflicting ports or services running on the same ports as Immich.
  • Storage and permissions issues:
    • Verify that the storage directories specified in the Docker Compose file have the correct permissions.
    • Ensure that the user running the Immich containers has read/write access to the storage directories.

Updating Immich

  1. Stop the Immich containers:
    docker-compose down
  2. Pull the latest Immich images:
    docker-compose pull
  3. Restart the containers:
    docker-compose up -d

Backing Up and Restoring Data

  1. Back up the Immich database:
    docker-compose exec db pg_dump -U immich immich > immich_db_backup.sql
  2. Back up media files by copying the storage directory to a secure location.

Congratulations! You have successfully installed Immich. Thanks for using this tutorial for installing Immich ultimate photo Backup on the Ubuntu 24.04 LTS system. For additional help or useful information, we recommend you check the official Immich website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button