How to install Chkservice on Ubuntu 17.04

To install Chkservice on Ubuntu 17.04

chkservice is a ncurses-based command line tool for managing systemd units on a terminal. It can list the different services on the system alphabetically under categories showing their status and description and allows the superuser privileges to start,stop and disable running processes. This tutorial covers the installation of chkservice on Ubuntu 17.04.

Installation procedure

To proceed with the installation procedure, add the required repository to the target system by running the following command.

root@linuxhelp:~# add-apt-repository ppa:linuxenko/chkservice
 Ncurses based gui for systemd
 More info: https://launchpad.net/~linuxenko/+archive/ubuntu/chkservice
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox ' /tmp/tmpunh4j3z5/pubring.gpg'  created
gpg: /tmp/tmpunh4j3z5/trustdb.gpg: trustdb created
gpg: key A74F310A5BFEC7DD: public key " Launchpad PPA for Svetlana Linuxenko"  imported
gpg: Total number processed: 1
gpg:               imported: 1
OK

The repositories are added to the system. Update the system by executing the apt-get update command as follows.

root@linuxhelp:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu zesty InRelease           
Get:2 http://ppa.launchpad.net/linuxenko/chkservice/ubuntu zesty InRelease [15.9 kB]
Get:3 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
Get:4 http://ppa.launchpad.net/linuxenko/chkservice/ubuntu zesty/main i386 Packages [464 B]
Get:5 http://security.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata [12.8 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB]    
Get:7 http://security.ubuntu.com/ubuntu zesty-security/main DEP-11 64x64 Icons [12.4 kB]
Get:8 http://security.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata [21.1 kB]
Get:9 http://ppa.launchpad.net/linuxenko/chkservice/ubuntu zesty/main amd64 Packages [464 B]
.
.
.
Get:18 http://in.archive.ubuntu.com/ubuntu zesty-updates/multiverse amd64 DEP-11 Metadata [5,840 B]
Get:19 http://in.archive.ubuntu.com/ubuntu zesty-backports/universe amd64 DEP-11 Metadata [4,588 B]
Fetched 871 kB in 8s (100 kB/s)                                                
Reading package lists... Done

The target system is updated with the required repositories. Next install the Chkservice application by executing the following command.

root@linuxhelp:~# apt install chkservice
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  chkservice
0 upgraded, 1 newly installed, 0 to remove and 116 not upgraded.
Need to get 24.4 kB of archives.
After this operation, 81.9 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/linuxenko/chkservice/ubuntu zesty/main amd64 chkservice amd64 0.1.0.2ppa0ubuntu3 [24.4 kB]
Fetched 24.4 kB in 0s (43.0 kB/s)
Selecting previously unselected package chkservice.
(Reading database ... 204978 files and directories currently installed.)
Preparing to unpack .../chkservice_0.1.0.2ppa0ubuntu3_amd64.deb ...
Unpacking chkservice (0.1.0.2ppa0ubuntu3) ...
Setting up chkservice (0.1.0.2ppa0ubuntu3) ...

The chkservice is installed successfully in the system. To run the application, execute the following chkservice command.

root@linuxhelp:~# chkservice

The chkservice application is running in the target system. The application shows the list of running, idle services in the target system.

Thus the installation procedure of chkservice on Ubuntu 17.04 is done without any glitches.

FAQ
Q
How do I start xampp from terminal?
A
Create a Shortcut to Start XAMPP in Ubuntu
Right-click on the Ubuntu desktop and select “Create Launcher.”
Select “Application in Terminal” for the Type.
Enter “Start XAMPP” for the Name (or enter whatever you want to call your shortcut).
Enter “ sudo /opt/lampp/lampp start ” into the Command field.
Click OK.
Q
What is Chkconfig?
A
chkconfig – check configuration. Description : advertisement. It updates and queries runlevel information for system services. Chkconfig command is used to setup, view, or change services that are configured to start automatically during the system startup.
Q
kindly explain it a bit. How can I define network range. As a webserver the server is going to be accessed from all over the world. So, I think it would be impossible for me to define any ran
A
Please add the ports that you want to accessible from public to the below line. # Allow incoming TCP ports TCP_IN = “20,21,22,25,53,80,110,143,443,465,587,993,995”
Q
How to check version of this?
A
run the command on teminal to know the version of this, # chkservice --version
Q
How to remove chkservice ?
A
execute the command as below, # apt-get remove chkservice