How to install Ajenti Control panel on Fedora 34

To Install Ajenti Control panel on Fedora 34

Introduction:

Ajenti is a lightweight, powerful & responsive web-based control panel (GUI) that helps server administrators to manage remote servers without any glitches. There are many plugins available for system and software configuration, monitoring, and management. By using this plugin, we are able to install/manage all the major services including web server, mail server, DNS, network monitoring service, File System, Firewall, MySQL, Samba, FTP, Squid, etc.

Installation Procedure:

Step 1 : Check the OS version by using the below command

[root@linuxhelp ~]# cat /etc/os-release
NAME=Fedora
VERSION="34 (Workstation Edition)"
ID=fedora
VERSION_ID=34
VERSION_CODENAME=""
PLATFORM_ID="platform:f34"
PRETTY_NAME="Fedora 34 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:34"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=34
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=34

PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Step 2 : Download the Ajenti installation script using the below curl command, which will install Ajenti along with all the needed dependencies .

 [root@linuxhelp ~]# curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4987  100  4987    0     0  12561      0 --:--:-- --:--:-- --:--:-- 12561

:: Could not detect OS
:: Press Enter to continue

:: OS: 
:: Distro: 

:: Upgrading PIP

rm: cannot remove '/usr/lib//usr/bin/python3/dist-packages/setuptools.egg-info': No such file or directory
WARNING: Running pip install with root privileges is generally not a good idea. Try `python3 -m pip install --user` instead.
Requirement already satisfied: pip in /usr/lib/python3.9/site-packages (21.0.1)
Collecting pip
  Downloading pip-22.0.3-py3-none-any.whl (2.1 MB)
     |████████████████████████████████| 2.1 MB 1.4 MB/s 
Collecting wheel
  Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Requirement already satisfied: setuptools in /usr/lib/python3.9/site-packages (53.0.0)

Collecting setuptools
  Downloading setuptools-60.9.3-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 26.8 MB/s 
Installing collected packages: wheel, setuptools, pip
Successfully installed pip-22.0.3 setuptools-60.9.3 wheel-0.37.1
WARNING: Skipping gevent-socketio as it is not installed.
WARNING: Skipping gevent-socketio-hartwork as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

:: Installing Ajenti

Collecting ajenti-panel
  Downloading ajenti-panel-2.1.44.tar.gz (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.7/55.7 KB 971.2 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting ajenti.plugin.core
  Downloading ajenti.plugin.core-0.100.tar.gz (15.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.0/15.0 MB 33.3 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting ajenti.plugin.dashboard
  Downloading ajenti.plugin.dashboard-0.40.tar.gz (34 kB)
  Preparing metadata (setup.py) ... done
Collecting ajenti.plugin.settings
  Downloading ajenti.plugin.settings-0.31.tar.gz (52 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.2/52.2 KB 8.9 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done

Collecting ajenti.plugin.plugins
  Downloading ajenti.plugin.plugins-0.48.tar.gz (40 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.7/40.7 KB 6.4 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting ajenti.plugin.notepad
  Downloading ajenti.plugin.notepad-0.29.tar.gz (18 kB)
  Preparing metadata (setup.py) ... done
Collecting ajenti.plugin.terminal
  Downloading ajenti.plugin.terminal-0.41.tar.gz (39 kB)
  Preparing metadata (setup.py) ... done
Collecting ajenti.plugin.filemanager
  Downloading ajenti.plugin.filemanager-0.29.tar.gz (52 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.7/52.7 KB 6.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting ajenti.plugin.packages
  Downloading ajenti.plugin.packages-0.35.tar.gz (30 kB)
  Preparing metadata (setup.py) ... done
Collecting ajenti.plugin.services
  Downloading ajenti.plugin.services-0.32.tar.gz (22 kB)
  Preparing metadata (setup.py) ... done
  Building wheel for pyte (setup.py) ... done
  Created wheel for pyte: filename=pyte-0.8.0-py3-none-any.whl size=31440 sha256=1dd8b92f8eedce79fa27479e2f2525b782f6d7086f8000219ed1aa116d50aa35
  Stored in directory: /root/.cache/pip/wheels/95/78/c6/9f17b641fe9e92efb5ff1b5e6b514a69a74ba89f20efe16ad9
  Building wheel for ajenti.plugin.filemanager (setup.py) ... done
  Created wheel for ajenti.plugin.filemanager: filename=ajenti.plugin.filemanager-0.29-py3-none-any.whl size=183689 sha256=017f87123c9f6ff52ab242895059e270441abab194b5d9c141d9093242afa445
 
 Stored in directory: /root/.cache/pip/wheels/e7/6f/fe/590b8054633ae44cd5badb1798a393fb2894f1cf1248345865
  Building wheel for ajenti.plugin.packages (setup.py) ... done
  Created wheel for ajenti.plugin.packages: filename=ajenti.plugin.packages-0.35-py3-none-any.whl size=122654 sha256=f424f95fe1fdf8c4a82f0ccfa5edd50ac14ee73a11f2af105f2266e339003d7d
  Stored in directory: /root/.cache/pip/wheels/8c/7c/e9/f72f4e46e378d3e214c4e12de7f62a56814bdf9c6903acfc05
  Building wheel for ajenti.plugin.services (setup.py) ... done
  Created wheel for ajenti.plugin.services: filename=ajenti.plugin.services-0.32-py3-none-any.whl size=77020 sha256=484c77274652d2db677f099f15470de00d717c22c928fdf8320d6394df6591c1
  Stored in directory: /root/.cache/pip/wheels/5a/2b/10/c6dbf6c824c5ad147e583c46acb04f322116576c8ab4bd51c3
Successfully installed MarkupSafe-2.1.0 aj-2.1.44 ajenti-panel-2.1.44 ajenti.plugin.ace-0.31 ajenti.plugin.core-0.100 ajenti.plugin.dashboard-0.40 ajenti.plugin.filemanager-0.29 ajenti.plugin.filesystem-0.48 ajenti.plugin.notepad-0.29 ajenti.plugin.packages-0.35 ajenti.plugin.passwd-0.25 ajenti.plugin.plugins-0.48 ajenti.plugin.services-0.32 ajenti.plugin.settings-0.31 ajenti.plugin.terminal-0.41 arrow-1.2.2 bidict-0.21.4 bs4-0.0.1 cookies-2.2.1 docutils-0.18.1 gevent-21.1.2 gevent-websocket-0.10.1 gipc-1.3.0 greenlet-1.1.2 itsdangerous-2.1.0 jadi-1.0.3 jinja2-3.0.3 lockfile-0.12.2 passlib-1.7.4 psutil-5.9.0 pyOpenSSL-19.1.0 pyte-0.8.0 python-daemon-2.3.0 python-engineio-4.3.1 python-socketio-5.5.2 pyyaml-6.0 setproctitle-1.2.2 simplejson-3.17.6 termcolor-1.1.0 wcwidth-0.2.5 zope.event-4.5.0 zope.interface-5.4.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

:: Installing initscript

/usr/bin/systemctl
Created symlink /etc/systemd/system/multi-user.target.wants/ajenti.service → /usr/lib/systemd/system/ajenti.service.

:: Complete




Ajenti will be listening at https://192.168.6.125 192.168.122.1:8000
Log in with your root password or another OS user

Step 3 : Open the “8000” port on the firewall/router for remote access of the web interface by using the below command.

 [root@linuxhelp ~]# firewall-cmd --permanent --zone=public --add-port=8000/tcp
success

Step 4: Reload the firewall by using the below command

[root@linuxhelp ~]# firewall-cmd --reload
Success

Step 5 : Open a web browser and type the IP of the server to view the installed Ajenti as shown in the below image.

Step 6 : Enter the credentials in menu as shown in the below image

Step 7: This is the dashboard of ajenti control panel

By this, the process of installing the Ajenti Control panel On Fedora 34 has come to an end.

FAQ
Q
What is the procedure for reloading the firewall?
A
To reload the firewall by using the ufw reload command.
Q
How does the firewall get enabled?
A
To enable the firewall use the ufw enable command.
Q
What is the command line to allow the firewall with adding the port?
A
The command line to allow the firewall with adding the port is using by ufw allow 8000 commands.
Q
What is the download process of Ajenti?
A
To download the Ajenti using the below link
(curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s -) URL
Q
Is Ajenti dependencies need to download?
A
No, because the installation script has been installed along with the dependency packages.