How to install Ajenti on Ubuntu 16.04

To install Ajenti on Ubuntu 16.04

Ajenti is an open source web-based control panel (GUI) for Linux server. It will help the server administrator to manage the remote server without any glitches. It&rsquo s lightweight, powerful & responsive web interface. It includes lot of plugins for system and software configuration, monitoring and management purpose. Through this plugin we can install/manage all the major services such as web server, mail server, DNS, Network monitoring service, File System, Firewall, MySQL, Samba, FTP, Squid, etc. This tutorial explains the installation of Ajenti on Ubuntu 16.04.

Installation procedure

To proceed with the installation procedure, add the repository key of Ajenti packages and download the key by running the wget command followed by the download link.


root@linuxhelp:~# wget http://repo.ajenti.org/debian/key -O- | sudo apt-key add - \--2017-11-04 01:54:48--  http://repo.ajenti.org/debian/key
Resolving repo.ajenti.org (repo.ajenti.org)... 151.139.236.224
Connecting to repo.ajenti.org (repo.ajenti.org)|151.139.236.224|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1716 (1.7K) \[application/octet-stream\]
Saving to: &lsquo STDOUT&rsquo 

-100%\[===================> \]   1.68K  --.-KB/s    in 0s      

2017-11-04 01:54:48 (87.4 MB/s) - written to stdout \[1716/1716\]

OK

After adding the repository key, add the repository in the sources.list file to enable the repository by executing the following command.


root@linuxhelp:~# echo " deb http://repo.ajenti.org/ng/debian main main ubuntu"  | sudo tee -a /etc/apt/sources.list deb http://repo.ajenti.org/ng/debian main main ubuntu

Update the repository by running the apt-get update command.


root@linuxhelp:~# apt-get update Hit:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial InRelease                    
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease \[102 kB\]     
Get:4 http://repo.ajenti.org/ng/debian main InRelease \[11.7 kB\]                
Get:5 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease \[102 kB\]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata \[60.2 kB\]
.
.
Get:20 http://in.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata \[3,328 B\]
Get:21 http://in.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata \[4,588 B\]
Fetched 1,564 kB in 6s (253 kB/s)                                              
Reading package lists... Done

The target system has been updated with the required repositories. Next install the ajenti appllcation by executing the following command.


root@linuxhelp:~# apt-get install ajenti Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gnome-software-common libgtkspell3-3-0 libmcrypt4
Use ' sudo apt autoremove'  to remove them.
The following additional packages will be installed:
  apt-show-versions docutils-common docutils-doc python-bs4 python-catcher
  python-cffi-backend python-chardet python-cryptography python-daemon
  python-dbus python-docutils python-enum34 python-exconsole python-gevent
  python-gevent-socketio python-gevent-websocket python-gi python-greenlet
.
.
update-alternatives: using /usr/share/docutils/scripts/python2/rst2xetex to provide /usr/bin/rst2xetex (rst2xetex) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2xml to provide /usr/bin/rst2xml (rst2xml) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rstpep2html to provide /usr/bin/rstpep2html (rstpep2html) in auto mode
Setting up python-daemon (2.0.5-1) ...
Setting up ajenti (1.2.23.11) ...

:: Generating key

Generating RSA private key, 2048 bit long modulus
..............................................................+++
.............................+++
e is 65537 (0x10001)

:: Generating certificate request

:: Removing passphrase

writing RSA key

:: Generating certificate

Signature ok
subject=/C=US/ST=NA/L=Nowhere/O=Acme Inc/OU=IT/CN=linuxhelp
Getting Private key
:: SSL configured!
------------------------------------------------
Now start Ajenti with ' service ajenti restart' 
Ajenti will listen on HTTPS port 8000 by default

Default username : root
Default password : admin
------------------------------------------------
Processing triggers for python-support (1.0.15) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu4) ...

The installation is now complete. Start the Ajenti service by running the following command.


root@linuxhelp:~#  systemctl start ajenti

Switch over to the browser and enter the URL as https://localhost:8000. The login page of Ajenti appears on the screen. Provide the default credentials and click Log In.

< ads2>

The Ajenti dashboard appears on the screen.

The installation procedure of Ajenti on Ubuntu 16.04 is done without any glitches.

Tag : Ajenti Ubuntu
FAQ
Q
How do I add domains/PHP/email accounts/websites?¶
A
Pure Ajenti is a server control panel, not a hosting control panel. You need the Ajenti V add-on for web-hosting stuff
Q
Hello! I couldn't able to open my web console though the port 8000 is in listen what can I do ?
A
Make sure your port 8000 is open in iptables/CSF
Q
[Errno -1] Package does not match intended download I am getting the above error.what can I do ?
A
Try running "yum clean metadata"
Q
I cant login ajenti when i tried to login from another laptop .now the login is blocked !!! how to solve this or uninstall agenti !!??
A
Have you opened port on the Firewall? what kind of blocking error you getting?. Use “yum remove ajenti” to un-install.
Q
I forgot my password how can i change?
A
Open /etc/ajenti/config.json, look for your user entry, and replace whole password hash entry with a new plaintext password. Restart Ajenti. Click “save” under “Configuration” to rehash the password.