Preface#
In fact, my exploration of the Pterodactyl panel is only about understanding the frontend, backend, and the connection in between, because I don't have any spare machines to try it out. But then I realized that I have a Huawei Cloud account and can even try out their servers, so I decided to give it a try and also test the performance of Huawei Cloud.
Things Used#
A Hong Kong server, used to set up the frontend so that I only need to enable it when I really want to use it in the future. The configuration is 2c4g30m.
Huawei Cloud trial machine, which they provided as 2c4g1m, barely acceptable.
A domain name, I'll use akio.top which I recently bought.
And enough time.
EP0: Huawei Cloud#
The first impression I got from the Huawei Cloud trial machine is that it doesn't come with any default monitoring software (yes, the probe that Tencent and Alibaba both install by default), instead, you have to choose to install it.
Other than that, I feel... it's no different from Tencent or Alibaba, and it's even more expensive...
EP1: Pterodactyl Backend Wings Installation#
Why start with the backend? You'll know when you see it later.
To ensure a successful installation, try to use the URLs provided in the Pterodactyl documentation as much as possible. It's not that you can only use the ones in the documentation, if you have better ones, you can use them too, but make sure to install what needs to be installed.
Configure Docker#
First, SSH into the newly opened Huawei Cloud trial machine and configure Docker.
Then... I finally remembered that Docker can't be accessed from within China (those who know, know why), so I can't use the official installation script.
Instead, I directly installed 1panel, so that I can keep an eye on its operation.
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh
The installation is complete when you see the following:
But next, we don't log in to 1panel, instead, we continue with the installation of our Pterodactyl backend.
Enable Swap Space (Optional)#
As mentioned in the Pterodactyl Chinese documentation, Docker will be unable to set up swap space by default on most systems. If you see WARNING: No swap limit support
at the bottom when running docker info
, it means it hasn't been enabled.
Because I actually need to do this (for family and friends), I did some configuration in this regard.
Open /etc/default/grub
as the root user and find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT
.
Make sure that the line contains swapaccount=1
somewhere inside the double quotes. If there's nothing, add it, it should look something like this:
GRUB_CMDLINE_LINUX_DEFAULT="swapaccount=1"
Install Wings#
The path for Wings and its configuration file is hardcoded (I don't quite understand why), so we have to follow their documentation.
The first step in installing Wings is to make sure we have the required directory structure. To do this, run the following command, which will create the basic directories and download the wings executable.
First, create the relevant directories:
mkdir -p /etc/pterodactyl
Then download the wings executable:
curl -L -o /usr/local/bin/wings "https://github.com/pterodactyl-china/wings/releases/latest/download/wings_linux_$([[ "$(uname -m)" == "x86_64" ]] && echo "amd64" || echo "arm64")"
# For servers in China, please consider using the following command first
curl -L -o /usr/local/bin/wings "https://hub.fastgit.xyz/pterodactyl/wings/releases/latest/download/wings_linux_$([[ "$(uname -m)" == "x86_64" ]] && echo "amd64" || echo "arm64")""
Then set the permissions:
chmod u+x /usr/local/bin/wings
With this, the installation of wings is complete, and next is the deployment of the frontend.
This article is synchronized and updated to xLog by Mix Space
The original link is https://www.akio.top/posts/course/pterodactyl-ep1