CentoOS Linux

Setup secure ProFTPD server on CentOS 7 with TLS

Objective The objective is to first configure a basic ProFTPD server on CentOS 7. Once we have a basic FTP server setup, we will then add FTP passive mode and increase security by adding Transport Layer Security ( TLS ). Lastly, we add an optional anonymous configuration to allow anonymous user to login to FTP server without username and password. Operating System and Software Versions Operating System: - CentOS Linux release 7.5.1804 Software: - ProFTPD Version 1.3.5e Requirements Privileged...
Read More...

How to install Python 3 on CentOS 7 with SCL

Objective The objective is to install Python 3 on CentOS 7 with Software Collections (SCL). Operating System and Software Versions Operating System: - CentOS 7 or higher Requirements Privileged access to your Ubuntu System as root or via sudo command is required. Difficulty EASY Conventions
Read More...

How to install VirtualBox Guest Additions on CentOS 7 Linux

Objective The objective is to install VirtualBox Guest Additions on CentOS 7 Linux Operating System and Software Versions Operating System: - CentOS Linux release 7.5.1804 (Core) Requirements Privileged access to your Ubuntu System as root or via sudo command is required. Difficulty EASY Conventions
Read More...

Configure RNDC Key for Bind DNS server on CentOS 7

Objective In order to administer DNS server (bind) from a command line, the RNDC utility needs to be correctly configured to avoid error message such as " rndc connect failed 127.0.0.1 connection refused ". The objective is to configure RNDC for Bind DNS server on CentOS 7 Linux. Operating System and Software Versions Operating System: - CentOS Linux release 7.4.1708 (Core) Linux Software: - Bind 9 Requirements Privileged access to your Ubuntu System as root or via sudo command is required....
Read More...

How to remove old unused kernels on CentOS Linux

Objective The objective is to remove old unused kernel. Operating System and Software Versions Operating System: - CentOS 7 Requirements Privileged access to your CentOS server will be required. Difficulty EASY Conventions
Read More...

How to remove orphaned packages on CentOS Linux

Objective The objective is to remove all orphaned packages from CentOS Linux. By orphaned packages we mean all packages which no longer serve a purpose of package dependencies. For example, package A is depended on package B, thus, in order to install package A the package B must also be installed. Once the package A is removed the package B might still be installed, hence the package B is now orphaned package. Operating System and Software Versions Operating System: - CentOS 7 Requirements...
Read More...

How to install or upgrade to PHP 7 on CentOS 7 Linux Server

Objective The objective is to install or replace existing PHP 5 with PHP 7 on CentOS 7 Linux server. As you will see, this procedure is fairly simple when using Remi Repository. Requirements Privileged access to your CentOS Linux system either directly as root user or via sudo command is required. Difficulty EASY Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command $ - requires given linux commands to be...
Read More...

How to install Popcorn Time movie player on CentOS 7 Linux

Introduction Popcorn Time streams movies and TV shows from torrents directly into your screen. Objective The objective is to install Popcorn Time player on CentOS 7. Requirements Optional privileged access to your CentOS is required if system-wide installation is required. Difficulty EASY Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command $ - requires given linux commands to be executed as a regular...
Read More...

Howto install ifconfig on CentOS 7 Linux

Objective The the network command line tool ifconfig is not installed thus missing by default on CentOS 7 Linux. Users are instead encouraged to use ip command to do most of the network administration work. For example the following ip command can be used to show IP address on CentOS 7: # ip address show OR SIMPLY # ip a s 1: lo: mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever...
Read More...

Enable GDM automatic user login on CentOS 7 Linux

Objective The objective is to instruct Gnome Desktop Manager to automatically login a specified system user. Requirements Privileged access to your CentOS 7 installation and existing user account to enable Automatic login upon. Difficulty EASY Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command $ - requires given linux commands to be executed as a regular non-privileged user Instructions Update GDM settings...
Read More...

Installation of KDE desktop environment on CentOS 7

Objective The objective is to install KDE desktop environment on a minimal CentOS 7 installation. Requirements Privileged access to CentOS 7 system installation and Internet access or configured local CentOS 7 package repository. Furthermore, the guide assumes that you have already performed a CentOS 7 Linux installation. Difficulty EASY Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command $ - requires given...
Read More...

How to list, import and remove archive signing keys on CentOS 7

Official archive signing keys for CentOS 7 are located inside /etc/pki/rpm-gpg/ directory: # ls /etc/pki/rpm-gpg/ RPM-GPG-KEY-CentOS-7 RPM-GPG-KEY-CentOS-Debug-7 RPM-GPG-KEY-CentOS-Testing-7
Read More...

How to install mpeg-4 aac decoder for CentOS 7 Linux

Symptoms Any attempt to play video will result in an error: Movie Player requires additional plugins to decode this file. The following plugins are required : MPEG-4-AAC decoder and H.264 decoder The offered help for search also fails.
Read More...

How to remove unused kernel images from CentOS Linux system

Every time you update your CentOS Linux and the update includes a new kernel image update the system will not remove your old kernel but it will cumulatively add new kernel to the top of your Linux kernel installed list. Normally, this does not present any issue to your running system and you are not required to take any action to remove any old and unused kernel images. The reason why you may wish to remove/uninstall unused kernel images is that you need to reduce disk usage space of your...
Read More...

Installation of Amazon s3cmd Command Line S3 tool on CentOS Linux

The following linux command s will help you to install Amazon s3cmd Command Line S3 tool on CentOS Linux. First, enable EPEL repository: # wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm # rpm -Uvh epel-release*.rpm
Read More...

How to debootstrap on CentOS Linux

debootstrap is Debian GNU/Linux bootstrapper which allows you to install Debian base systems such as Debian or Ubuntu into a directory of your currently running system. This config is a getting started guide on how to debbootstrap on CentOS/RHEL. The debootstrap package is not available in a standard CentOS repository. To make it available we first need to enable EPEL repository. Download EPEL repository package: # wget...
Read More...

How to disable YUM package repository on CentOS

In order to disable YUM package repository on CentOS we first need to get a unique repository ID using the following yum command: # yum repolist Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.optus.net * epel: epel.mirror.digitalpacific.com.au * extras: mirror.ventraip.net.au * updates: mirror.optus.net repo id repo name status base/7/x86_64 CentOS-7 - Base 8,652 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 8,935 extras/7/x86_64...
Read More...

How to install Chrome browser on CentOS Linux 7

To install Google Chrome Internet browser on your CentOS 7 Linux box first download the actual Chrome 64 bit .rpm (For Fedora/openSUSE) ) package from Google's website https://www.google.com/chrome/#eula . Locate your downloaded .rpm and use yum command to install it allong with all other prirequsites: # yum localinstall google-chrome-stable_current_x86_64.rpm Loaded plugins: fastestmirror, langpacks Examining google-chrome-stable_current_x86_64.rpm: google-chrome-stable-44.0.2403.155-1.x86_64...
Read More...

NVIDIA GeForce Driver Installation on CentOS 7 Linux 64-bit

This config describes an installation of NVIDIA GeFNVIDIA GeForce Driver on CentOS 7 Linux 64-bit. Prerequisites First update your system. We do not wand to build NVidia modules on based on outdated Linux kernel. Do a full updated and reboot your system: # yum update # reboot
Read More...

How to check CentOS version

There are several ways on how to check what version of CentOS is running on your system. Below you can find multiple examples on how to determine CentOS version. However, depending on your system not all examples may be applicable. For a Redhat specific guide visit How to check Redhat version . First, example uses hostnamectl command: # hostnamectl Static hostname: localhost.localdomain Icon name: computer-laptop Chassis: laptop Machine ID: 6892999b8d8c43fab29fca961dbff24b Boot ID:...
Read More...