×


Blog


Install and Use TermRecord on CentOS 8 - Do it now

This article Covers how to install the TermRecord application on CentOS 8. The TermRecord application allows you to better enjoy the recorded #Terminal content. 

TermRecord is a simple, open source, terminal session recorder with easy-to-share self-contained HTML output.

#TermRecord Stores these files as your own notes, email them to collaborators, use them as instructional examples, or whatever you wish.

TermRecord consumes output from the script command with timing information and can create a self-contained HTML file which replays the recorded session without needing to load anything from the web. 

These term sessions can be emailed and viewed on practically any device (including iPads etc.). 

The end user only needs a modern browser.


Features of TermRecord includes:

1. User friendly.

2. Detects the terminal size.

3. Nest sessions.

4. Cross-platform HTML-based output.

5. Stores the output as either JSON, embeddable JavaScript, or a static HTML file.

6. Written in Python.


To install on TermRecord #CentOS:

1. First of all, connect to your server via SSH and make sure that all of your system software is up to date. 

Run the following command to update the package list and upgrade all of your system software to the latest version available:

$ sudo yum update -y

2. Install Pip. 

Add the EPEL Repository:

$sudo yum install epel-release

Install pip:

$ sudo yum install python-pip

Once the installation has completed, you can verify that it was successful by using the following command:

$pip -V

3. Install TermRecord

Install TermRecord using the Python package manager (pip):

$sudo pip install TermRecord


How to use TermRecord on CentOS system ?

Taking a video of the terminal with TermRecord is rather simple, just run the following command (be attentive to capital letters):

TermRecord -o record.html

Note: We specify the output file in which the video will be recorded using the -o option. the .html format is the default format.

For more complex operations check out TermRecord --help


Assign Multiple IP Addresses to Single NIC in Debian 10 - How to do it ?

This article covers how to assign and remove multiple IP addresses to and from a single NIC. Based on your preferences, you can either assign the multiple IP addresses temporarily or permanently.

There's no simple command that you can run to determine whether the IP address on a Linux system is assigned by DHCP or static. 

If it changes when the system restarts, it's clearly dynamically assigned, but even a dynamic address has some resistance to change. 

The best way is to look at the configuration file.


To add a static route in Linux:

1. Use the route command with the –p option to add a persistent route: # route -p add default ip-address.

2. Use the route command with the –name option to add a persistent route by specifying a name rather than destination and gateway: # route -p add destination-address gateway-address -name name.


What is ip route command in Linux?

ip route is used to manipulate entries in the kernel routing tables. 

Route types: 

1. unicast - the route entry describes real paths to the destinations covered by the route prefix. 

2. unreachable - these destinations are unreachable. 

Packets are discarded and the ICMP message host unreachable is generated.


Create and Run a Shell Script in Debian 10 -Step by step process to do it ?

This article covers how to easily create a shell script and automate repetitive jobs in #Linux. Shell scripts are just a series of commands that you add in a file and run them together.  


To write and execute a #script:

1. Open the #terminal. Go to the directory where you want to create your script.

2. Create a file with . sh extension.

3. Write the script in the file using an editor.

4. Make the script executable with command chmod +x <fileName>.

5. Run the script using ./<fileName>.


#Shell is a #UNIX term for an interface between a user and an operating system service. 

Shell provides users with an interface and accepts human-readable commands into the system and executes those commands which can run automatically and give the program's output in a shell script.


Different Methods to Find Your Private IP Address in Linux Mint 20 ?

This article covers different methods to quickly find the IP address of your #Linux Mint system. 

The simplest way to check the ip address of linux Mint, when using the bash shell is typing the command ifconfig. 

On typing the ifconfig you will not only be provided with the ip address, but also the mac address, subnet mask and other information. 


The following commands will get you the private IP address of your interfaces:

1. ifconfig -a.

2. ip addr (ip a).

3. hostname -I | awk '{print $1}'.

4. ip route get 1.2.

5. nmcli -p device show.


What is the #ipconfig command for Linux?

ifconfig(interface configuration) command is used to configure the kernel-resident network interfaces. It is used at the boot time to set up the interfaces as necessary. 

After that, it is usually used when needed during debugging or when you need system tuning.


Install PostgreSQL in CentOS 8 - Step by Step Process ?

This article will cover how to install and remove the PostgreSQL server and create a database in PostgreSQL on CentOS 8. Also you will learn how to add tables in the database by using the SQL query.

PostgreSQL is available from CentOS 8's default AppStream software repository, and there are multiple versions which you can install. 

You can choose between these versions by enabling the appropriate collection of packages and dependencies that align with the version you want to install, with each collection referred to as a module stream.


To List out the available streams for the postgresql module using the dnf command:

$ dnf module list postgresql


Reboot Debian 10 - Different methods to do it ?

This article covers different methods to reboot your Debian 10 system. reboot command is used restart or reboot the system.
In a Linux system administration, there comes a need to restart the server after the completion of some network and other major updates.
It can be of software or hardware that are being carried on the server.

To reboot Linux using the command line:
1. To reboot the Linux system from a terminal session, sign in or “su”/”sudo” to the “root” account.
2. Then type “ sudo reboot ” to reboot the box.
3. Wait for some time and the Linux server will reboot itself.

To restart a Linux (Ubuntu / Debian) network?
1. Use the following command to restart the server networking service. # sudo /etc/init.d/networking restart or # sudo /etc/init.d/networking stop # sudo /etc/init.d/networking start else # sudo systemctl restart networking.
2. Once this done, use the following command to check the server network status.