Prerequisites 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!
OGP Agent Packages for Debian 12
Before we can install the deb package for the OGP Agent, we need to install some prerequisites by running the following commands:
Copy All Code
|
1
2
3
4
5
6
|
sudo apt-get install libxml-parser-perl libpath-class-perl perl-modules screen rsync sudo e2fsprogs unzip subversion pure-ftpd libarchive-zip-perl libc6 libgcc1 git curl
sudo apt-get install libc6-i386
sudo apt-get install lib32gcc1
sudo apt-get install lib32gcc-s1
sudo apt-get install libhttp-daemon-perl
sudo apt-get install libarchive-extract-perl
|
Now, we can download and install the OGP Agent DEB package:
Copy All Code
|
1
2
|
sudo dpkg -i "ogp-agent-latest.deb"
|
The OGP agent user (with sudo access) will be created automatically for you by the installer with a random password. To view the automatically generated encryption key, OGP username, and OGP user password, run the following command:
Copy All Code
|
1
|
sudo cat /root/ogp_user_password
|
You'll need the encryption key for the panel.