Sudo Requirements for Debian 12
If sudo is not installed automatically on your installation of Debian, switch to the root user using the below command:
Copy All Code
|
1
2
3
|
su -
apt-get install sudo
usermod -aG sudo "{REPLACE_WITH_YOUR_LINUX_USERNAME}"
|
Additional Requirements for Debian 12
Unlike other Linux distros, Debian doesn't set the $PATH variable correctly for everyday users. Fix it by using the below script:
First, login as root:
su
Run the below commands as root:
Copy All Code
|
1
2
3
4
5
6
7
|
whiUsermod=$(which usermod)
if [ -z "$whiUsermod" ]; then
mkdir -p /root/backup/etc
cp /etc/profile /root/backup/etc
sed -i 's#PATH=".*"#PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/usr/local/sbin"#g' /etc/profile
source /etc/profile
fi
|
Reboot for the changes to apply!
Prerequisites for Debian 12
If you are running Debian 12, run the following commands in a terminal:
Copy All Code
|
1
|
sudo apt-get install apache2 curl subversion php8.2 php8.2-gd php8.2-zip libapache2-mod-php8.2 php8.2-curl php8.2-mysql php8.2-xmlrpc php-pear mariadb-server php8.2-mbstring git php-bcmath
|
After installing mariadb-server, run this command to get MySQL to bind on all addresses:
Copy All Code
|
1
|
sudo sed -i "s/^bind-address.*/bind-address=0.0.0.0/g" "/etc/mysql/mariadb.conf.d/50-server.cnf"
|
Configuring the Database for Debian 12
After installing the prereqs, make sure the root MySQL account has been setup by running this command (may not apply to older versions of Debian / Ubuntu):
Copy All Code
|
1
|
sudo mysql_secure_installation
|
When installing MySQL / MariaDB, make sure you answer the following questions like this:
Copy All Code
|
1
2
|
Switch to unix_socket authentication [Y/n] n (no, don't do this)
Change the root password? [Y/n] y (yes, do this, and write down the password you use)
|
During this process, you will be prompted to set a root user password. Please choose something secure and write it down, as the installer will ask you for it to create the initial OGP database later.
Be sure to write down the root password you used somewhere, as it will be used in the next step!
After installing and setting the root password for MySQL / MariaDB server, you can install the phpmyadmin package and configure it (optional):
Copy All Code
|
1
|
sudo apt-get install phpmyadmin
|
Installing the Panel Package for Debian 12
Now, we can download and install the latest OGP Web Panel DEB package:
Copy All Code
|
1
2
|
sudo dpkg -i "ogp-panel-latest.deb"
|
Once this is done, open the browser and go to http://{IP_OF_SERVER_OR_localhost}/index.php
Try http://127.0.0.1/index.php if localhost doesn't work.
You will be prompted to complete the OGP Panel installation. When asked for database information, please use the following:
MySQL Host = "localhost"
MySQL User = "ogpuser"
MySQL Database Name = "ogp_panel"
You'll also need your database password which can be found by running the following command:
Copy All Code
|
1
|
sudo cat /root/ogp_panel_mysql_info
|
The password is what follows after "OGPDBPass=" as illustrated below:
Once you've completed the web panel installation, you need to add the server that will be running the game servers to the web panel software. You will need the IP address of the server running the agent (127.0.0.1 if on the same machine), and the encryption key for that machine which you can obtain by running the following command on that server:
Copy All Code
|
1
|
sudo cat /root/ogp_user_password
|
The encryption key is what follows after "ogpEnc=" as illustrated below:
Once the panel has been installed, please run the panel update functionality by logging in as the admin account created during installation.
Hover over the "Administration" tab, and then click on "Update Panel" in the drop-down. Then click on the "Update" button.