banner
MisakaAkio

御坂秋生の小站

不努力就只能听到别人的好消息
email
bilibili
x_id
youtube
facebook
github
gitlab

【Building a Yilong Panel EP1】Installation of the backend Wings

Preface#

In fact, my exploration of the Pterodactyl panel is only about understanding the front end, back end, and the connection in between, because I don't have any spare machines to try it out. But then I discovered that I have a Huawei Cloud account, and I 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 front end so that I can easily enable it when I really want to use it in the future. The configuration is 2c4g30m.

A trial machine from Huawei Cloud, which they gave me is 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 trial machine provided by Huawei Cloud is that it does not come with pre-installed monitoring software (yes, the probe that Tencent and Alibaba both install by default), instead, you have the option to install it.

wSaV.png

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 to say that you can only use the ones in the documentation, if you have better ones, you can use them, but make sure to install what needs to be installed.

Configure Docker#

First, SSH into the newly created trial machine on Huawei Cloud and configure Docker.

Then... I finally remembered that Docker cannot be accessed from within China (those who know, know the reason), so I couldn't fetch 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 and the following message is displayed.

wmfg.png

But next, we won't log in to 1panel, instead, we will continue with the installation of the 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 made some configurations 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 within the double quotes. If it doesn't have anything, add it, roughly like this:

GRUB_CMDLINE_LINUX_DEFAULT="swapaccount=1"

Install Wings#

The path for Wings and the configuration file is hardcoded (which I don't quite understand), so we have to follow the documentation.

The first step in installing Wings is to ensure that we have set up 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. Next, we will deploy the front end.

This article is synchronized and updated to xLog by Mix Space
The original link is https://www.akio.top/posts/course/pterodactyl-ep1


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.