×


Blog


Install Memcached on Ubuntu 20.04 - Step by step process ?

This article covers how you can install Memcached on Ubuntu 20.04. Memcached has proved to be a very reliable caching system since its inception in 2003 and continues to be a favorite among developers in speeding up web applications. 

Memcached is a high-performance, distributed memory object caching server. It is free and open source software intended for use in speeding up dynamic web applications by mitigating database load.


To install and configure memcached on Ubuntu:

1. Update your Ubuntu server:

$ sudo apt update
$ sudo apt upgrade

2. Install memcached server on Ubuntu:

Run apt command as follows:

$ sudo apt install memcached

3. Configure memcached server:

Edit config file named /etc/memcached.conf using a text editor such as nano command or vim command:

$ sudo nano /etc/memcached.conf

OR

$ sudo vi /etc/memcached.conf


How to restart, stop, reload memcached server on Ubuntu:

To Stop service - $ sudo systemctl stop memcached

To start Service - $ sudo systemctl start memcached

To restart Service - $ sudo systemctl restart memcached

To check the status - $ sudo systemctl status memcached


Install and Use Firewalld in CentOS / RHEL - Step by step process to implement it ?

This article covers method to Install and Use Firewalld in CentOS in order to increase the security of your Linux system. Note that the host-based firewall like firewalld is recommended by compliances like PCI DSS. 

FirewallD is a complete firewall solution that manages the system's iptables rules and provides a D-Bus interface for operating on them. Starting with CentOS 7, FirewallD replaces iptables as the default firewall management tool.

Firewalld services are predefined rules that apply within a zone and define the necessary settings to allow incoming traffic for a specific service.


How to install Firewalld on CentOS?

Firewalld is installed by default on CentOS 7, but if it is not installed on your system, you can install the package by running the command:

$ sudo yum install firewalld

Firewalld service is disabled by default. You can check the firewall status with:

$ sudo firewall-cmd --state

If you just installed or never activated before, the command will print not running. Otherwise, you will see running.

To start the FirewallD service and enable it on boot type:

$ sudo systemctl start firewalld
$ sudo systemctl enable firewalld


To open HTTP and HTTPS ports add permanent service rules to the dmz zone:

$ sudo firewall-cmd --permanent --zone=dmz --add-service=http
$ sudo firewall-cmd --permanent --zone=dmz --add-service=https

Make the changes effective immediately by reloading the firewall:

$ sudo firewall-cmd --reload

Zones provided by FirewallD:

1. drop: All incoming connections are dropped without any notification. Only outgoing connections are allowed.

2. block: All incoming connections are rejected with an icmp-host-prohibited message for IPv4 and icmp6-adm-prohibited for IPv6n. Only outgoing connections are allowed.

3. public: For use in untrusted public areas. You do not trust other computers on the network, but you can allow selected incoming connections.

4. external: For use on external networks with NAT masquerading enabled when your system acts as a gateway or router. Only selected incoming connections are allowed.

5. internal: For use on internal networks when your system acts as a gateway or router. Other systems on the network are generally trusted. Only selected incoming connections are allowed.

6. dmz: Used for computers located in your demilitarized zone that have limited access to the rest of your network. Only selected incoming connections are allowed.

7. work: Used for work machines. Other computers on the network are generally trusted. Only selected incoming connections are allowed.

8. home: Used for home machines. Other computers on the network are generally trusted. Only selected incoming connections are allowed.

9. trusted: All network connections are accepted. Trust all of the computers in the network.


Install and Use Veracrypt on Ubuntu 20.04 - Step by Step process to do it ?

This article covers how to Install and Setup VeraCrypt on Ubuntu 20.04. VeraCrypt, a fork of TrueCrypt, is a free and open source on-the-fly disk encryption (OTFE) tool.


Main features offered by VeraCrypt include:

1. Creates a virtual encrypted disk within a file and mounts it as a real disk.

2. Encrypts an entire partition or storage device such as USB flash drive or hard drive.

3. Encrypts a partition or drive where Windows is installed (pre-boot authentication).

4. Encryption is automatic, real-time(on-the-fly) and transparent.

5. Parallelization and pipelining allow data to be read and written as fast as if the drive was not encrypted.

6. Encryption can be hardware-accelerated on modern processors.

7. Provides plausible deniability, in case an adversary forces you to reveal the password: Hidden volume (steganography) and hidden operating system.


To Install VeraCrypt Using DEB binary Package on Ubuntu:

Debian/Ubuntu packages for VeraCrypt are also available for download on download’s page. However, as of this writing, there is not available a binary package for Ubuntu 20.04 yet. As such, we using binary package for Ubuntu 19.04.

Note that the installers are also available, both for GUI and console based installations.

To install console-based VeraCrypt;

wget https://launchpad.net/veracrypt/trunk/1.24-update4/+download/veracrypt-console-1.24-Update4-Ubuntu-19.10-amd64.deb

Then install it;

$ dpkg -i veracrypt-console-1.24-Update4-Ubuntu-19.10-amd64.deb

To install GUI based;

$ wget https://launchpad.net/veracrypt/trunk/1.24-update4/+download/veracrypt-1.24-Update4-Ubuntu-19.04-amd64.deb

Next, use APT package manager to ensure that any would-be dependency is dealt with automatically:

$ apt install ./veracrypt-1.24-Update4-Ubuntu-19.04-amd64.deb

You can uninstall GUI based VeraCrypt by executing;

$ apt remove --purge veracrypt
$ apt autoremove


Use Speedtest CLI to Test Internet Speed on Ubuntu 20.04 - How to perform this task ?

This article covers how to install and use the Speedtest CLI utility to test your Internet speed while using Ubuntu 20.04.


To check my Internet speed in Ubuntu:

1. Open the Ubuntu Terminal by pressing Ctrl+alt+T or through the Dash. 

2. Then enter the command to install python:

$ sudo apt-get install python-pip

Once python is successfully installed, use the command to install the speedtest-cli tool:

$ sudo pip install speedtest-cli

The tool will be installed in your system.


To check Your Internet Speed:

Run the following command to test your internet speed:

$ speedtest-cli


To share Internet Speed Test Results:

The speedtest-cli also lets you share your internet speed by providing a link on the speedtest.net website through the following command:

$ speedtest-cli --share


Install Docker Compose on Ubuntu 20.04 - Step by step process to perform it ?

This article covers how to install and run Docker Compose on your Ubuntu 20.04 LTS machine. Docker Compose is yet another useful Docker tool. It allows users to launch, execute, communicate, and close containers with a single coordinated command. Essentially, Docker Compose is used for defining and running multi-container Docker applications.


To Install Docker Compose on Ubuntu:

1. Start by updating the default repository to ensure you download the latest Docker Compose:

$ sudo apt update

2. Then, upgrade the system to ensure all local packages and programs are up to date:

$ sudo apt upgrade

3. Then install Docker Compose from the Ubuntu repository by running:

$ sudo apt install docker-compose


To install Install curl on Ubuntu:

To download the binary package using an URL, you need curl. You can check whether you have this command-line utility by typing in the terminal window:

$curl

If the output displays "try 'curl --help' or 'curl --manual' for more information", move on to the next step. 

This message means curl is installed.

However, if the terminal says "command not found", you need to install curl with:

$ sudo apt install curl


To Check Docker Compose Version on Ubuntu:

To verify the installation, check the Docker Compose version by running:

$ docker–compose –version


To uninstall Docker Compose on Ubuntu:

Uninstalling Docker Compose from your Ubuntu system is a simple 3-step process.

1. Delete the Binary

First, delete the binary with the command:

$ sudo rm /usr/local/bin/docker-compose

2. Uninstall the Package

Then, use the apt remove command to uninstall the software:

$ sudo apt remove docker-compose

3. Remove Software Dependencies

Finally, remove the unwanted software dependencies by running:

$ sudo apt autoremove


Install Sublime Text Editor on CentOS 8 - Step by Step process to do it ?

This article covers how to install sublime text editor on the CentOS 8 system through the terminal. Sublime text editor is quite similar to vim editor. Sublime text has a built-in Python API available in Windows, Linux, and Mac OS.


To install Sublime Text on Ubuntu:

1. Install the GPG key:

$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

2. Ensure apt is set up to work with https sources:

$ sudo apt-get install apt-transport-https

3. Select the channel to use:

i. Stable

$ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

ii. Dev

$ echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

4. Update apt sources and install Sublime Text:

$ sudo apt-get update
$ sudo apt-get install sublime-text


To fix yum-config-manager command not found:

You need to Install yum-utils by running the command below:

$ yum install yum-utils