Ubuntu 20.04 LTS
I will be installing Wings on a bare-metal server.
Install Docker CE and make sure it starts on system boot
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
systemctl enable --now docker
Enable swap for Docker - the official docs explain this in depth.
vim /etc/default/grub
Modify GRUB_CMDLINE_LINUX_DEFAULT
to include swapaccount=1
GRUB_CMDLINE_LINUX_DEFAULT="swapaccount=1"
Rebuild grub and reboot to apply the change
update-grub
shutdown now -r
Download Wings and change its permissions
mkdir -p /etc/pterodactyl
curl -L -o /usr/local/bin/wings "https://github.com/pterodactyl/wings/releases/latest/download/wings_linux_$([[ "$(uname -m)" == "x86_64" ]] && echo "amd64" || echo "arm64")"
chmod u+x /usr/local/bin/wings
In Panel, navigate to Admin → Nodes and create a new node
Create a new systemd config for Wings at /etc/systemd/system/wings.service
[Unit]
Description=Pterodactyl Wings Daemon
After=docker.service
Requires=docker.service
PartOf=docker.service
[Service]
User=root
WorkingDirectory=/etc/pterodactyl
LimitNOFILE=4096
PIDFile=/var/run/wings/daemon.pid
ExecStart=/usr/local/bin/wings
Restart=on-failure
StartLimitInterval=180
StartLimitBurst=30
RestartSec=5s
[Install]
WantedBy=multi-user.target
Enable the config
systemctl enable --now wings