Pterodactyl is a free, open-source game server management panel that enables you to manage your game servers quickly and easily. In this tutorial, we will guide you through the step-by-step process of installing Pterodactyl on Alpine Linux latest.
Before we begin, make sure you have the following:
First, we need to install some dependencies required by Pterodactyl. To do this, run the following command:
apk add --no-cache curl tar gzip unzip git sqlite sqlite-dev openssl-dev mariadb mariadb-client mariadb-dev gcc g++ make nodejs npm
This command will install all the required packages on your system.
To run Pterodactyl, we need to install Docker on our system. To do so, we can use the following command:
apk add --no-cache docker
After installing Docker, start the Docker service and enable it to start automatically at boot time:
rc-update add docker boot
service docker start
The Pterodactyl Daemon is responsible for executing commands for game servers. To install it, run the following commands:
mkdir -p /srv/daemon && cd /srv/daemon
curl -Lo daemon.tar.gz https://github.com/pterodactyl/daemon/releases/latest/download/daemon.tar.gz
tar --strip-components=1 -xzvf daemon.tar.gz
npm install --only=production
This will download and install the Pterodactyl Daemon on your system.
Next, we will install the Pterodactyl Panel, which is a web-based user interface for managing game servers.
Create a new directory for the panel and change to that directory:
mkdir -p /var/www/pterodactyl && cd /var/www/pterodactyl
Download the latest panel release:
curl -Lo panel.tar.gz https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz
tar --strip-components=1 -xzvf panel.tar.gz
Install the panel dependencies:
npm install --only=production
At this point, the Pterodactyl Panel is installed.
To use Pterodactyl Panel, we need to configure the MariaDB database.
Start the MariaDB service and enable it to start automatically at boot:
rc-update add mariadb boot
service mariadb start
Next, login to the MariaDB shell as the root user:
mysql -u root
Create a new database and user:
CREATE DATABASE panel;
CREATE USER 'panel'@'localhost' IDENTIFIED BY 'your_password_here';
GRANT ALL PRIVILEGES ON panel.* TO 'panel'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Replace your_password_here
with a strong password.
The .env
file contains the configuration settings for the Pterodactyl Panel. To configure it, run the following command:
cp .env.example .env
Then, edit the .env
file with your preferred text editor:
nano .env
Update the following settings:
APP_URL=https://yourdomain.com
DB_HOST=localhost
DB_DATABASE=panel
DB_USERNAME=panel
DB_PASSWORD=your_password_here
Replace https://yourdomain.com
with your domain name or server IP address.
Finally, we can run the Pterodactyl installation wizard. To do so, run the following command:
php artisan pterodactyl:install
Follow the prompt to complete the installation.
That's it! You have successfully installed Pterodactyl on Alpine Linux latest. You can now start configuring your game servers and managing them through the Pterodactyl Panel.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!