Pterodactyl is an open-source game hosting panel that makes it easy to manage game servers. In this tutorial, we will walk through the process of installing Pterodactyl on a Manjaro system.
Before we begin, make sure that your Manjaro system meets the following requirements:
It is recommended to create a new user account for running Pterodactyl. You can create a new user and grant sudo privileges by running the following commands:
sudo useradd -m -d /opt/pterodactyl pterodactyl
sudo passwd pterodactyl
sudo usermod -aG docker pterodactyl
sudo echo "pterodactyl ALL=(ALL) NOPASSWD: /usr/bin/docker" | sudo tee /etc/sudoers.d/pterodactyl
Run the following command to install the dependencies required for Pterodactyl:
sudo pacman -S git tar wget unzip make gcc g++ python2
Pterodactyl requires Node.js version 12.x or later. You can install the latest version of Node.js by running the following commands:
sudo pacman -S nodejs npm
Composer is a dependency manager for PHP. You can install Composer by running the following commands:
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo chmod +x /usr/local/bin/composer
To download and install Pterodactyl, run the following commands:
sudo mkdir -p /var/www/pterodactyl
sudo chown -R pterodactyl:pterodactyl /var/www/pterodactyl
cd /var/www/pterodactyl
sudo -u pterodactyl git clone https://github.com/pterodactyl/panel.git .
sudo -u pterodactyl composer install --no-dev --optimize-autoloader
sudo chmod -R 755 storage/* bootstrap/cache/
cp .env.example .env
php artisan key:generate --force
Edit the .env
file to configure the Pterodactyl panel:
sudo nano /var/www/pterodactyl/.env
Update the following keys:
APP_URL=http://your-domain.com
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=pterodactyl
DB_USERNAME=pterodactyl_user
DB_PASSWORD=your-password-here
Save and exit the file.
Run the following command to install the daemon:
sudo -u pterodactyl php artisan pterodactyl:daemon:configure
Edit the daemon configuration file:
sudo nano /etc/systemd/system/pterodactyl-daemon.service
Update the following keys:
Environment=APP_URL=http://your-domain.com
Environment=WINGS_SECRET=your-wings-secret-here
EnvironmentFile=/etc/environment
Save and exit the file.
Start the daemon by running the following commands:
sudo systemctl daemon-reload
sudo systemctl enable --now pterodactyl-daemon.service
Start the Pterodactyl panel by running the following commands:
sudo systemctl enable --now httpd.service
sudo systemctl restart php-fpm.service
You can now access the Pterodactyl panel by navigating to http://your-domain.com
in your web browser.
Congratulations, you have successfully installed Pterodactyl on Manjaro!
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!