Ajenti
Install Ajenti
Dependencies: RHEL/CentOS
yum -y install gcc python-devel python-pip libxslt-devel libxml2-devel libffi-devel openssl-devel libjpeg-turbo-devel libpng-devel dbus-python
Automatic Installation
curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s -
Dependencies: Debian/Ubuntu
sudo apt-get install build-essential python-pip python-dev python-lxml libffi-dev libssl-dev libjpeg-dev libpng-dev uuid-dev python-dbus
Installing on CentOS/RHEL
Quick automatic install (CentOS 6 / RHEL6)
curl https://raw.githubusercontent.com/ajenti/ajenti/1.x/scripts/install-rhel.sh | sh
Quick automatic install (CentOS 7 / RHEL7)
curl https://raw.githubusercontent.com/ajenti/ajenti/1.x/scripts/install-rhel7.sh | sh
Centos-7
Install Ajenti to manage system via Web browser.
[1] Install Ajenti.
[root@dlp ~]# yum -y install http://repo.ajenti.org/ajenti-repo-1.0-1.noarch.rpm
# enable EPEL, too
[root@dlp ~]# yum --enablerepo=epel -y install ajenti
[root@dlp ~]# vi /etc/ajenti/config.json
# it does not work on CentOS 7.2, so disable SSL
"ssl": {
"enable": false,
[root@dlp ~]# systemctl restart ajenti
systemctl enable ajenti
service ajenti restart
chkconfig ajenti on
firewall-cmd --permanent --zone=public --add-port=8000/tcp
firewall-cmd --reload
Ajenti logs into: tail -f /var/log/ajenti/ajenti.log
Centos-6
http://domain-name.com:8000 or http://ip-address:8000
username as: root
password as: admin
------------------------------------------------------------
Step 4. Configure Iptables or firewall your server.
iptables -A INPUT -p udp -m state --state NEW --dport 8000 -j ACCEPT iptables -A INPUT -p tcp -m state --state NEW --dport 8000 -j ACCEPT
1
2
iptables -A INPUT -p udp -m state --state NEW --dport 8000 -j ACCEPT
iptables -A INPUT -p tcp -m state --state NEW --dport 8000 -j ACCEPT
---------------------------------------------------------------------------------------------
Install Ajenti Control Panel on CentOS 8
Step 1. First, let’s start by ensuring your system is up-to-date and install all required dependency.
dnf install epel-release
dnf update
dnf install gcc python3-devel python3-pip python3-pillow python3-augeas python3-dbus chrony openssl-devel redhat-lsb-core
Step 2. Installing Ajenti Control Panel on CentOS 8.
Automatic Installation.
Now run the following command:
curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s -
Manual Installation.
Now we add repository key Ajenti from the official source:
wget http://repo.ajenti.org/ajenti-repo-1.0-1.noarch.rpm
rpm -i ajenti-repo-1.0-1.noarch.rpm
Once done, install Ajenti using the following command:
dnf install ajenti
Once successfully installed, now we start the service:
systemctl start ajenti systemctl enable ajentiStep 3. Configure firewall for the Anjeti control panel.
Now enabling that port from the firewall will allow us to login into the web interface of the Ajenti server. In order to open port 8000, we’ll need to run the following commands:
firewall-cmd --permanent --zone=public --add-port=8000/tcp
firewall-cmd --reload
Step 4. Accessing Anjeti control panel on CentOS.
Anjeti will be available on HTTP port 8000 by default. Open your favorite browser and navigate to http://your-domain.com:8000 or http://server-ip-address:8000 and enter the default username “admin” or “root” and password is “admin“
###To Start Ajenti service
systemctl start ajenti
###To Stop Ajenti service
systemctl stop ajenti
How to fix the problem of entering the Ajenti panel
Note: If you can not log in to the Ajenti control panel with your Linux username and password, follow the steps below.
– Open the config.json file with an editor:
vi /etc/ajenti/config.json
– Then find the user you want to enter the Ajenti control panel.
– In the password field, delete the existing password hash and enter your password simply (Plain Text).
– Then save the file and restart the Ajenti service once with the following command:
service agent restart
Quick automatic install (CentOS 6 / RHEL6)
curl https://raw.githubusercontent.com/ajenti/ajenti/1.x/scripts/install-rhel.sh | sh
Quick automatic install (CentOS 7 / RHEL7)
curl https://raw.githubusercontent.com/ajenti/ajenti/1.x/scripts/install-rhel7.sh | sh
Manual install
Add repository key:
wget http://repo.ajenti.org/ajenti-repo-1.0-1.noarch.rpm rpm -i ajenti-repo-1.0-1.noarch.rpm
Install the package:
yum install ajenti
Start the service:
service ajenti restart
The panel will be available on HTTPS port 8000. The default username is root, and the password is admin.
Troubleshooting
Package does not match intended download?
yum clean metadata
Can't access panel at port 8000?
By default, CentOS blocks port 8000 with firewall. Run following to unblock port temporarily.
CentOS / RHEL 6
iptables -A INPUT -p tcp --dport 8000 -j ACCEPT
Add this line to /etc/sysconfig/iptables file (before the COMMIT line) to unblock it permanently.
CentOS / RHEL 7
firewall-cmd --permanent --zone=public --add-port=8000/tcp firewall-cmd --reload