Linux Resources
- Home
- Linux Resources
This article covers how to install and use Mono on CentOS 8 system. Mono is a platform for developing and running cross-platform applications based on the ECMA/ISO Standards.
It is a free and open-source implementation of Microsoft’s .NET framework.
To Verify the installation by running the following command that prints the Mono version:
$ mono --version
This article covers the installation of Fail2ban and the configuration of an sshd filter. There are so many options to configure but we focused on the basic ones. Feel free to peruse the Fail2ban man pages by running man fail2ban to discover what more you can do with it.
Fail2ban is a free, open-source and widely used intrusion prevention tool that scans log files for IP addresses that show malicious signs such as too many password failures, and much more, and it bans them (updates firewall rules to reject the IP addresses).
By default, it ships with filters for various services including sshd.
To install and configure Fail2ban on CentOS/RHEL 8:
1. After logging into your system, access a command-line interface, then enable the EPEL repository on your system:
# dnf install epel-release
OR
# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
2. Afterward, install the Fail2ban package by running the following command:
# dnf install fail2ban
3. To start and enable the fail2ban service for now and check if it is up and running using the following systemctl command:
# systemctl start fail2ban
# systemctl enable fail2ban
# systemctl status fail2ban
This article covers how to Manage Disk Volumes in Linux. Disk drives management is one of the most repeated and important tasks for every System Administrator which is considered one of the critical activities. Also, you will be able to increase the disk on your system.
Linux needs at least one partition, namely for its root file system and we can't install Linux OS without partitions.
Once created, a partition must be formatted with an appropriate file system before files can be written to it.
Facts about fdisk Command?
1. fdisk stands for fixed disk or format disk is a cli utility that allow users to perform following actions on disks.
2. It allows us to view, create, resize, delete, move and copy the partitions.
3. It understands MBR, Sun, SGI and BSD partition tables and it doesn't understand GUID Partition Table (GPT) and it is not designed for large partitions.
4. fdisk allows us to create a maximum of four primary partitions per disk.
5. One of these may be an extended partition and it holds multiple logical partitions.
This article covers the installation of the LAMP stack (i.e., Linux, Apache, MariaDB, and PHP) on RHEL 8.
LAMP stands for Linux, Apache, MariaDB/MySQL and PHP, all of which are open source.
With the yum commands below, install LAMP stack:
# Will automatically update
$ sudo yum -y update
# Will automatically install Apache/HTTPD
$ sudo yum -y install httpd
To Install MariaDB Database Server on CentOS 8/RHEL 8:
1. Enter the following command to install MariaDB on CentOS 8/RHEL 8.
# dnf install mariadb-server mariadb -y
2. After it's installed, we need to start it.
# systemctl start mariadb
3. Enable auto start at system boot time.
# systemctl enable mariadb
4. Check status:
# systemctl status mariadb
This article covers how to install and use the Docker-compose on CentOS 8 system. By using the Docker-compose, you can deploy multiple Docker applications with container services through a single command.
Basically, Docker Compose is a tool that can be used to define and run multiple containers as a single service. With Docker Compose, you can link multiple containers and deploy an application from a single command.
It is mainly used in the development, testing and staging environment.
Docker Compose uses a YAML file to define a complex stack in a file and running it with a single command.
To install Docker on CentOS:
1. Before starting, make sure you have Docker installed on your server. If not installed, you will need to add Docker-CE repository to your system.
You can add it with the following command:
$ dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
2. Once the repository is added, install the latest version of docker using the following command:
# dnf install docker-ce --nobest -y
# systemctl start docker
# systemctl enable docker
3. You can verify the docker version with the following command:
$ docker --version
This article covers how to install and compile Python3.9 using different methods, using PPA repo, compiling it from the source code, and installing it using the Linuxbrew tool.
We can now start using Python 3.9 for our projects.
Python is a high-level programming language, mostly used to write scripting and automation. It is a very popular language known for its simplicity and easy syntax.
Python one of the best language for for artificial intelligence (AI).
To Install Python 3.9 on Ubuntu 20.04 using APT:
1. Update package list, type:
$ sudo apt update
2. Install software-properties-common package to easily manage distribution and independent software vendor software sources:
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
3. Now install python 3.9 using apt command:
$ sudo apt-get install python3.9
4. The following command can help to identify the proper install location of Python:
$ which python3
The execution of the above command produces the following output on console:
/usr/bin/python3