[Linux] Canary + aaPanel + MyAAC
This tutorial was created with /home/user. If you are using root user change for a normal user.
Create the user:
sudo adduser NAME
Give privileges to the created user:
sudo usermod -aG sudo NAME
Change in the Linux Terminal from root to the created user:
sudo su - NAME
1 - Download Bitvise:
https://www.bitvise.com/ssh-client-download
1.1 - Bitvise Tutorial:
https://www.bitvise.com/getting-started-install-ssh-client
2 - Installation Canary:
Ubuntu 22.04
sudo apt update && sudo apt upgrade -y
sudo apt install git cmake build-essential autoconf libtool ca-certificates curl zip unzip tar pkg-config ninja-build ccache linux-headers-$(uname -r) -yUpdate cmake:
sudo apt remove --purge cmake -y
hash -r
sudo apt install snapd -y
sudo snap install cmake --classic
cmake --versionUpdate gcc:
sudo apt update
sudo apt install gcc-12 g++-12 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12
sudo update-alternatives --set gcc /usr/bin/gcc-12
gcc-12 --version
g++-12 --version-
sudo apt install acl
cd ~
git clone https://github.com/microsoft/vcpkg
cd vcpkg
./bootstrap-vcpkg.sh
cd ~
git clone --depth 1 https://github.com/opentibiabr/canary.git
cd canary
mv config.lua.dist config.lua
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake .. --preset linux-release
cmake --build linux-release -j4
cd ~
cd canary
cp -r build/linux-release/bin/canary .
sudo chmod +x canaryUbuntu 22.04 ARM
sudo apt install libluajit-5.1-dev
sudo vim /usr/lib/gcc/aarch64-linux-gnu/11/include/arm_acle.h
Replace all code with this: https://github.com/gcc-mirror/gcc/blob/8e8f6434760cfe2a1c6c9644181189fdb4d987bb/gcc/config/aarch64/arm_acle.h
Save the file.
Update cmake:
Update gcc:
-
Observations:
-- Running vcpkg install
This step will take a long time on the first run, as it needs to download and install all the dependencies, so be patient!
• How to update vcpkg:
If you already have vcpkg installed
To update vcpkg installation, run the commands below:
cd vcpkg
git pull
./vcpkg upgrade
./vcpkg upgrade --no-dry-run
./bootstrap-vcpkg.sh
3 - Installation - aaPanel:
aaPanel
Open the Linux Terminal.
URL=https://www.aapanel.com/script/install_7.0_en.sh && if [ -f /usr/bin/curl ];then curl -ksSO "$URL" ;else wget --no-check-certificate -O install_7.0_en.sh "$URL";fi;bash install_7.0_en.sh aapanelsudo bash install_7.0_en.sh aapanelAfter aaPanel install, take note of your URL to access, username and password.
Access the aaPanel using your address https://10.x.y.z with the username and password.
In the Recommended Sofware Packages select LNMP (Recommended) with the options:

Then click in the One-click button.
Wait for the software packages installation.
4 - aaPanel - Website:
aaPanel - Website
Go to the Website option in the menu.

Click in the Add Site button and fill the form.

Confirm.
After adding the website, go to Conf -> Site directory and disable Anti-XSS attack option.


Your website will be accessible by your address: http://10.x.y.z

5 - aaPanel - Database:
aaPanel - Database
Go to the Databases option in the menu.

Click in the Add DB button and fill the form.

Confirm.
Click in the Import option.

Click in the Upload from local option.

Click in Select File button.

Find Canary schema.sql and click in the Upload button.

After uploading the schema.sql click in the Close button.

Click in the Import option to confirm.

After the successfully imported the schema.sql file to the database close the window.

6 - Canary - Config.lua:
7 - Installation - MyAAC:
8 - Credits:
Libergod.
Majesty.
Last updated