Immich setup
We will finish setting up immich, install the companion app on our phone and access the server from a web browser. For now, we will only be able to access immich from devices on the same network. We will enable remote access in step 5.
Raspberry Pi
Immich is already installed and configured on the RPi, however it requires a secrets file to operate. Follow these one-time steps to set this up.
- Create a mount location for the external drive.
sudo install -d -m 755 -o ${USER} -g users /mnt/immich_drive - Identify the path to the drive with
lsblk. The path is/dev/<name>where<name>is the first column oflsblk. E.g./dev/sdaor/dev/sda1if partitioned. - Decrypt and mount the external drive.
immich-server --immich-drive /dev/sda - Create a
secretsfolder in the encrypted drive.install -d -m 755 -o ${USER} -g users /mnt/immich_drive/secrets - Copy the example secrets file to your encrypted drive.
cp ~/immich-rpi-nix/immich-secrets.example /mnt/immich_drive/secrets/immich-secrets - Change the
DB_PASSWORDvalue in/mnt/immich_drive/secrets/immich-secrets.Caution
Securely store the
DB_PASSWORD. This is necessary to recover the database which is essential to make sense of our backup. - Create the directory for immich postgres database in the encrypted drive with the correct permissions.
sudo install -d -m 750 -o postgres -g users /mnt/immich_drive/postgres - Create the directory for immich data in the encrypted drive with the correct permissions.
sudo install -d -m 755 -o immich -g users /mnt/immich_drive/immich_data - Start immich
immich-server --start --no-decryption - You can use
journalctl -u immich-server -fto follow the logs from the immich service.
Phone app
- Download the immich app from https://immich.app/.
- Set the server URL to
http://immich.local:2283. If you have issues usingimmich.local, identify and use the RPi IP withsudo arp-scan -lor from the RPi withip addr show. - For more information about using the app, consult the immich documentation.
Web app
In your web browser type http://immich.local:2283. If you have issues using immich.local, identify and use the RPi IP with sudo arp-scan -l or from the RPi with ip addr show.
Immich initialisation
Upon first access, you will be prompted to setup the admin user.
Caution
Securely store the admin credentials.