Skip to content

Instantly share code, notes, and snippets.

@xiupos
Created December 20, 2025 06:58
Show Gist options
  • Select an option

  • Save xiupos/d2e010699d97e61d63c58d8876bbed83 to your computer and use it in GitHub Desktop.

Select an option

Save xiupos/d2e010699d97e61d63c58d8876bbed83 to your computer and use it in GitHub Desktop.

#altserverinstallbattle Memo

install

sudo snap install docker
sudo addgroup --system docker
sudo gpasswd -a $USER docker

# sudo reboot

sudo apt install -y \
  libavahi-compat-libdnssd-dev \
  usbmuxd \
  ninja-build \
  ldc \
  libplist-dev \
  libimobiledevice6 \
  libimobiledevice-dev \
  libgtk-3-0 \
  dub \
  openssl \
  ifuse

# install libimobiledevice-glue
sudo apt-get install -y \
	build-essential \
	pkg-config \
	checkinstall \
	git \
	autoconf \
	automake \
	libtool-bin \
	libplist-dev
git clone https://github.com/libimobiledevice/libimobiledevice-glue.git
sh libimobiledevice-glue/autogen.sh
make -C libimobiledevice-glue
sudo make install -C libimobiledevice-glue

# install rust
sudo snap install rustup --classic
rustup toolchain install stable
rustup default stable

# start usbmuxd
cat <<EOF | sudo tee -a /lib/systemd/system/usbmuxd.service
# Taken from https://bugs.archlinux.org/task/31056
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable --now avahi-daemon.service
sudo systemctl enable --now usbmuxd.service

# install netmuxd
sudo mkdir /opt/altserver
sudo curl -fsSL -o /opt/altserver/netmuxd https://github.com/jkcoxson/netmuxd/releases/latest/download/netmuxd-x86_64-linux-gnu
sudo chmod a+x /opt/altserver/netmuxd

# install AltServer
sudo curl -fsSL -o /opt/altserver/AltServer https://github.com/NyaMisty/AltServer-Linux/releases/latest/download/AltServer-x86_64
sudo chmod a+x /opt/altserver/AltServer

# start anisette-server
docker run -d --restart always --name anisette-v3 -p 6969:6969 --volume anisette-v3_data:$HOME/.config/anisette-v3/lib/ dadoum/anisette-v3-server

# start netmuxd
cat <<EOF | sudo tee -a /lib/systemd/system/netmuxd.service
[Unit]
Description=netmuxd for AltServer
After=network-online.target

[Service]
ExecStart=/opt/altserver/netmuxd

[Install]
WantedBy=default.target
EOF
sudo systemctl enable --now netmuxd.service

# start AltServer
cat <<EOF | sudo tee -a /lib/systemd/system/altserver.service
[Unit]
Description=AltServer Daemon
After=network-online.target netmuxd.service

[Service]
Environment="ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969"
ExecStart=/opt/altserver/AltServer

[Install]
WantedBy=default.target
EOF
sudo systemctl enable --now altserver.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment