Before you start
A home for your photos.
Your phone backs up to an old laptop on your home Wi-Fi. Ubuntu runs the laptop, CasaOS provides the dashboard, and Immich manages the photo library.
What you need
- A 64-bit laptop with at least 6 GB of RAM, two CPU cores, and enough disk space for your photos plus room for thumbnails.
- An 8 GB or larger USB drive, the laptop charger, and another device to download the installer.
- About two hours for setup, followed by time for the first photo backup.
Check the battery before leaving the laptop plugged in. If it is swollen or the case is bulging, don't use that laptop until it has been safely repaired. Keep the vents clear.
This setup covers backups on your home Wi-Fi. Access from outside the house needs extra setup.
01 · About 45 minutes
Install Ubuntu.
- Download Ubuntu Desktop from the official Ubuntu website. The original PDF walkthrough uses Ubuntu 24.04 LTS.
- Use the USB-writing tool recommended in Ubuntu's installation tutorial to create a bootable USB drive.
- Plug the drive into the laptop and restart. Open the boot menu—often F12, Esc, F2 or F10—and select the USB drive.
- Choose Install Ubuntu, then the option to erase the disk and install Ubuntu. Continue only after backing up the laptop's files.
- Create your account and password. Once Ubuntu starts, open Terminal and update the system:
sudo apt update && sudo apt upgrade -yKeep your account password somewhere safe. You'll need it to install and manage the server.
02 · About 10 minutes
Keep the laptop awake.
Closing the lid normally puts a laptop to sleep. Change that behavior so your photo library stays available.
Ignore the lid switch
sudo nano /etc/systemd/logind.confFind these settings, remove any leading #, and set them to:
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignoreSave with Ctrl + O, Enter, then exit with Ctrl + X. Save any other open work before applying the change:
sudo systemctl restart systemd-logindDisable sleep
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.targetFind its home-network address
hostname -IWrite down the laptop's local address, such as 192.168.1.50. In the router settings, reserve that address for the laptop using DHCP reservation or Static Lease. Use ethernet if you can, and keep the laptop somewhere with airflow.
03 · About 10 minutes
Install CasaOS.
CasaOS adds a dashboard and app store to the laptop. Open the official CasaOS website and use its installation command.
When installation finishes, open the dashboard address it prints on another device connected to your home Wi-Fi. It will look like http://192.168.1.50. Create your CasaOS account.
04 · About 15 minutes
Add your photo library.
- Open the CasaOS App Store and search for Immich. Install it and allow time for its components to download.
- Open Immich from the dashboard. Copy the address from the browser, including its port, for example
http://192.168.1.50:2283. - Create the first account; it becomes the administrator.
- Under Administration → Users, create a separate account for each family member.
Some walkthroughs use the community BigBearCasaOS app store. Consult Immich's documentation and the linked video guides below if the screens differ.
05 · Start the backup
Connect your phone.
- Install Immich from the App Store or Play Store and connect to your home Wi-Fi.
- Enter the full server address from the previous step and log in.
- Open the backup controls, choose the albums to back up, and turn backup on.
- Leave the app open and the phone charging for the first upload. A large library can take hours.
- Check the backup status and open some older photos from another device to confirm they arrived.
On iPhone, open Immich periodically so iOS can let it upload new photos.
Keep it safe
One disk needs a backup.
An old laptop can fail. Keep an independent backup of your photos and Immich's database, and check the official backup and restore instructions. Read release notes before updating Immich, and avoid updating during a large upload.
Keep the laptop cool, the vents clear, and the charger connected. After a power cut, check it has restarted.
Quick fixes
- The USB installer won't start
- Try the correct boot-menu key for your laptop or recreate the USB installer.
- CasaOS won't open
- Run
hostname -Iagain, check both devices are on the same Wi-Fi, and usehttp://for the local address. - The phone cannot reach Immich
- Include the port number, such as
:2283. Temporarily turn off mobile data and VPN while testing. - Backups are slow
- Keep the app open and phone charging. Use ethernet for the laptop if possible. The first backup takes longest.
- The laptop sleeps with the lid closed
- Recheck the settings in step 2 and restart the laptop.
Videos and official guides
- 1Install Ubuntu Desktop (official tutorial)ubuntu.com/tutorials/install-ubuntu-desktop
- 1How to Install Ubuntu 24.04 Desktop: Complete Beginner's Guideyoutube.com/watch?v=zE7OYNkuQ1w
- 1How to Install Ubuntu 24.04.1 LTS: Create a Bootable USByoutube.com/watch?v=66IAEOK65Fc
- 3CasaOS official website and docscasaos.zimaspace.com
- 3Install CasaOS on Ubuntu 24.04youtube.com/watch?v=83e58mGAjCM
- 3How to install CasaOS on Ubuntuyoutube.com/watch?v=AjMGwqKleLM
- 4Immich documentationdocs.immich.app
- 4How to install Immich on CasaOS using BigBearCasaOSyoutube.com/watch?v=ZIx2jDHYjjE
- 4Ultimate Immich Self-Hosting Guideyoutube.com/watch?v=V5KfHd-uotM
- +Don't Break Immich! Update It Safelyyoutube.com/watch?v=dAlnzdlJtyg
Tutorial videos are made by independent creators. Follow these steps at your own risk and always keep a backup of your photos.
Also on Accidental Engineering: turn your old tablet into a motion game console.
Download the PDF