AltServer docker container for raspberry pi 4
-
Install
docker
anddocker-compose
- Install
docker
anddocker-compose
- Install
-
Clone the repo on the raspberry
git clone https://github.com/leapbtw/altserver-pi.git && cd altserver-pi
-
Install pairing software
- Install
libimobiledevice
andusbmuxd
. - This software is only needed once for pairing, you can perform these steps on a different machine and copy the files to the raspberry later. Package names may vary between distributions, so please check the appropriate package names for your system.
- Install
-
Pair Your iDevice
- Connect your iDevice to your PC and run:
idevicepair list # run and check your iDevice, might ask for passcode idevicepair pair
- Connect your iDevice to your PC and run:
-
Copy Pairing Files
- Copy the
.plist
files to the root of the cloned repo on the raspberry:cp /var/lib/lockdown/*.plist .
- Copy the
-
Verify Repository Structure
- Your folder structure should look something like this:
$ ls docker-compose.yaml Dockerfile provision_config README.md startup_script.sh <uuid>.plist SystemConfiguration.plist
- Your folder structure should look something like this:
-
Set Permissions
- Set the necessary permissions for the
provision_config
directory:chmod 777 provision_config/
- Set the necessary permissions for the
-
Start the Docker Container
- Start the container using Docker Compose:
docker compose up
- Start the container using Docker Compose:
Now you should be able to use the altserver application on your Raspberry Pi 4.
- If you want it to run at startup you could create a systemd service like this
- Create a new file for your systemd unit:
sudo vim /etc/systemd/system/altserver.service
- Add the following content to the file, modifying the paths as needed:
[Unit] Description=AltServer Service Requires=docker.service After=docker.service [Service] Type=oneshot RemainAfterExit=yes WorkingDirectory=/path/to/your/docker-compose.yml ExecStart=/usr/local/bin/docker-compose up ExecStop=/usr/local/bin/docker-compose down [Install] WantedBy=multi-user.target
- Enable and start the service
sudo systemctl daemon-reload sudo systemctl enable altserver.service sudo systemctl start altserver.service
- Create a new file for your systemd unit: