×


Install Ajenti Control Panel on Ubuntu 20.04 - Step by Step Process ?

Ajenti is a free-to-use and open-source Server management and configuration Panel. It is written in Python, JavaScript, and AngularJS.

With this tool, we can manage websites, DNS, Cron, Firewall, Files, Logs, Mail hosting services, etc. The dashboard makes it easier to manage servers.

Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform Software Packages Installation tasks on Ubuntu Linux Systems.

In this context, we shall look into steps to Install Ajenti Control Panel on Ubuntu 20.04.


How to install Ajenti Control Panel on Ubuntu 20.04 ?

The Ajenti Project consists of Ajenti Core and a set of stock plugins forming the Ajenti Panel. Follow the steps below to install it.


1. Update System

Firstly, update and upgrade the Ubuntu machine using the following commands:

$ sudo apt update
$ sudo apt dist-upgrade

Once the update is complete we can reboot the system before initiating the installation of Ajenti on Ubuntu 20.04.

For this we can use the following command:

$ sudo systemctl reboot


2. Install Ajenti on Ubuntu 20.04

We will install wget using the following command first:

$ sudo apt-get install wget -y

Once wget is installed, issue the following commands:

$ sudo apt -y install wget
$ wget http://security.ubuntu.com/ubuntu/pool/universe/p/pillow/python-imaging_4.1.1-3build2_all.deb
$ sudo pkg -i python-imaging_4.1.1-3build2_all.deb

Next, we will import the necessary GPG key with the following command:

$ wget http://repo.ajenti.org/debian/key -O- | sudo apt-key add

And create a new ajenti.list file with the following command:

$ echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" | sudo tee /etc/apt/sources.list.d/ajenti.list

After that we will install Ajenti with the following commands:

$ sudo apt update
$ sudo apt -y install ajenti

Finally, install the Ajenti V plugin with the following command:

$ sudo apt -y install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.2-fpm php7.2-mysql

We can Start and enable Ajenti using the following command:

$ sudo systemctl start ajenti
$ sudo systemctl enable ajenti

Also, we can confirm there is a service listening on 8000 using the following:

# ss -tunelp | grep 8000
tcp LISTEN 0 10 0.0.0.0:8000 0.0.0.0:* users:(("/usr/local/bin/",pid=21271,fd=9),("/usr/bin/python",pid=21264,fd=9)) ino:31300 sk:5 <->


3. Open Ajenti Web Console on Ubuntu 20.04

Now, we need to can use the server IP address or hostname on port 8000 in our browser to get the UI.

The Logins are root passwords or another OS user.

Additional plugins can be installed under GENERAL > Plugins.

Same for SYSTEM > Packages > APT|PIP

Systemd service managing the Panel is called ajenti.

We can check the status using the following command:

$ systemctl status ajenti
● ajenti.service - Ajenti panel
Loaded: loaded (/lib/systemd/system/ajenti.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-06-10 17:31:58 CEST; 25min ago
Process: 21260 ExecStart=/usr/bin/python3 /usr/local/bin/ajenti-panel -d (code=exited, status=0/SUCCESS)
Main PID: 21264 (/usr/bin/python)
Tasks: 14 (limit: 18721)
Memory: 273.9M
CGroup: /system.slice/ajenti.service
├─21264 /usr/bin/python3 /usr/local/bin/ajenti-panel
├─21594 /usr/local/bin/ajenti-panel worker [restricted session]
└─21613 /usr/local/bin/ajenti-panel worker [session 1]
....

This can be restarted anytime as required using the following command:

$ sudo systemctl restart ajenti


How to resolve Common error encountered while installing Ajenti ?

In order to the Ajenti control panel, we have to install the python-imaging dependency. 

The installation of python-imaging using the following command will error out:

$ sudo pkg -i python-imaging_4.1.1-3build2_all.deb

To fix this, we can use the following command:

$ sudo apt-get install -f


[Need assistance in fixing Missing Software Packages Installation on Ubuntu Linux Systems? We can help you. ]


Conclusion

This article covers step by step procedure to install Ajenti Control Panel on Ubuntu 20.04 for our customers.

Ajenti is a free to use and open source Server management and configuration Panel written in Python, JavaScript, and AngularJS. It provides a web dashboard for administration as opposed to command line management.

With this tool you can manage websites, DNS, Cron, Firewall, Files, Logs, Mail hosting services and so on.


The Ajenti Project consists of Ajenti Core and set of stock plugins forming the Ajenti Panel.

1. Ajenti Core: Web interface development framework which includes a web server, IoC container, a simplistic web framework and set of core components aiding in client-server communications.

2. Ajenti Panel: Consists of plugins developed for the Ajenti Core and a startup script, together providing a server administration panel experience.


To Install Ajenti Control Panel on Ubuntu 20.04:

1. Update and upgrade your Ubuntu machine.

$ sudo apt update
$ sudo apt dist-upgrade

2. If the upgrade is completed reboot the system before initiating installation of Ajenti on Ubuntu 20.04.

$ sudo systemctl reboot

3. There is a script provided for the installation of Ajenti control panel on Ubuntu 20.04. First download the script with curl.

$ curl -O https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh

4. Run the installer script with sudo command.

$ sudo bash ./install.sh