×


Blog


Monitor Network Socket Connection Using 9 'ss' Command

This article covers how to monitor socket connection using ss command. ss command is a tool that is used for displaying network socket related information on a Linux system. The tool displays more detailed information that the netstat command which is used for displaying active socket connections.

The basic ss command without any options simply lists all the connections regardless of the state they are in:

$ ss


Install and Run Jenkins with Systemd and Docker on Ubuntu 20.04 - Best Method ?

This article covers how to Run Jenkins Server in Docker Container with Systemd. Jenkins is an opensource automation server that is designed to help software developers build, test and deploy applications and thereby streamline the continuous integration and delivery process. 

To create a system group for Jenkins, run the command:

$ sudo groupadd --system jenkins

Then create Jenkins system user:

$ sudo useradd -s /sbin/nologin --system -g jenkins jenkins

And finally add Jenkins user to docker group as shown:

$ sudo usermod -aG docker jenkins

To confirm that Jenkins user is added to the docker group, run the id command as shown:

$ id jenkins


Spice Up Your Terminal by Changing Font Type, Size, and Color in Linux Mint 20 !

This article covers how you can build a comfortable workspace by customizing the look and feel of the Linux Mint terminal. Much of how we interact with computers is through text. To display text on the screen, fonts are used which define the appearance of the characters. Different fonts can be used for different purposes. Linux Mint defines five standard uses for fonts that can be configured independently.


Prevent SSH From Timing Out - Best Method ?

This article covers different ways of keeping SSH sessions alive and preventing them from needlessly timing out. These are handy tips that you can use especially when there are no associated risks with someone taking over your SSH session when you are away. SSH sessions will timeout and the client will automatically be disconnected from the server after being idle or inactive for a while. 


To Avoid SSH timeout from the server:

1. Edit SSHd configuration file using your favorite editor,

$ sudo vi /etc/ssh/sshd_config

2. Set these options as the followings:

TCPKeepAlive no 
ClientAliveInterval 30
ClientAliveCountMax 240

Here, the server will not send the TCP alive packet to check if the client's connection is working, yet will still send the encrypted alive message every 30 seconds. It will only disconnect after at least 2 hours of inactivity. 


Change SSH Port on Ubuntu 20.04 Linux System - Best Method ?

This article covers how to change the ssh port on Ubuntu Linux server. You can easily change the SSH Port for Your Linux server. For better security, consider using SSH passwordless authentication with SSH public/private key pair.

The ssh port defined in sshd_config file. This file located in /etc/ssh/sshd_config location.

To open the new port run the following commands on Fedora/CentOS/RHEL/Oracle Linux using FirewallD:

$ sudo firewall-cmd --permanent --zone=public --add-port=2222/tcp
$ sudo firewall-cmd --reload


How to Restart the sshd service ?

Type the following command on a CentOS/RHEL/Fedora Linux:

$ sudo service sshd restart

OR if you are using CentOS/RHEL/Fedora Linux with systemd:

$ sudo systemctl restart sshd

OR if you are using Ubuntu/Debian/Mint Linux:

$ sudo service ssh restart

OR if you are using Ubuntu/Debian/Mint Linux with systemd:

$ sudo systemctl restart ssh

Or if you are using FreeBSD Unix, enter:

$ sudo service sshd restart


Install Bluefish Editor on Ubuntu 20.04 - Best Method ?

This article covers method to Install bluefish editor on Ubuntu 20.04 system. Bluefish is a text editor. It is used to write code in various programming languages like: C, C++, JAVA, Python, HTML etc.

It is cross-platform, lightweight and easy to learn. It provides many features of IDE to support development and designing of applications.


To Install Bluefish on Ubuntu:

1. Add PPA (Personal Package Archive)

Use the following command to add PPA in our system:

$ sudo add-apt-repository ppa:klaus-vormweg/bluefish  

2. Update Repository

Use this command to update our local repository:

$ apt-get update  

3. Install Bluefish

After updating, now, use this command to install bluefish:

$ sudo apt-get install bluefish

4. Run Bluefish

Now, we can run bluefish either by using terminal or from the application manager.

Execute this command to open bluefish editor:

$ bluefish