Pterodactyl is an open-source game server controller panel that simplifies the management of game servers. In this tutorial, we will walk you through the installation of Pterodactyl on OpenBSD.
Before we start, ensure that your OpenBSD server meets the following requirements:
OpenBSD's packaging system (pkg_add) can automatically install most of the dependencies required by Pterodactyl. Run the following command to install the required dependencies:
$ sudo pkg_add -v php php-curl php-mbstring php-pdo_mysql php-posix \
php-xml php-zip redis supervisor unzip
Install Node.js from the NodeSource repository. Run the following commands to add the NodeSource repository and install Node.js.
$ sudo pkg_add -v curl
$ curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E sh -
$ sudo pkg_add -v nodejs yarn
$ cd /var/www
$ sudo curl -Lo Panel.tar.gz https://github.com/pterodactyl/panel/releases/download/v0.7.19/panel.tar.gz
$ sudo tar -xzvf Panel.tar.gz
$ sudo rm Panel.tar.gz
$ sudo curl -Lo wings https://github.com/pterodactyl/wings/releases/download/v1.3.3/wings_openbsd_amd64
$ sudo chmod +x wings
$ sudo nano /etc/rc.d/wings
Copy and paste the following configuration into the file:
#!/bin/sh
daemon="/usr/local/bin/wings"
daemon_args="--config /etc/pterodactyl/config.yml"
daemon_user="pterodactyl"
daemon_dir="/var/lib/pterodactyl"
. /etc/rc.d/rc.subr
rc_cmd $1
Save and exit the file.
$ sudo useradd -m -d /var/lib/pterodactyl -s /bin/bash pterodactyl
$ sudo mkdir -p /var/lib/pterodactyl
$ sudo chown -R pterodactyl:pterodactyl /var/lib/pterodactyl
$ sudo mkdir -p /etc/pterodactyl
$ sudo nano /etc/pterodactyl/config.yml
Copy and paste the following configuration into the file:
# Pterodactyl Wings Configuration
#
# This file configures the core Wings settings such as the token and SSL
# certificates required for secure connections.
debug: false
token: "GENERATE_A_TOKEN"
sftp:
path: "/usr/bin/sftp"
url: "http://example.com"
access_token: ""
cache:
path: "/var/cache/wings"
certificates:
key: ""
cert: ""
Substitute the fictional url (http://example.com) with your instance's url.
$ sudo rcctl enable wings
$ sudo rcctl start wings
With the wings daemon started, you should be able to manage game servers from Pterodactyl panel.
Congratulations, you have successfully installed Pterodactyl on OpenBSD!
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!