This config will describe a procedure on how to persistently load kernel modules during a boot time on CentOS or Redhat Linux system. In the below commands will use nf_conntrack_pptp as a sample module. Replace the name of this module with a module name you wish to load.
First, create a script within /etc/sysconfig/modules/ directory with a file extension modules. Where the name of the script can be any name of your choice. In our case the script will be called nf_conntrack_pptp.modules. Enter a following code into your new nf_conntrack_pptp.modules script while replacing the name of the module with the one you wish to load:
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 system, especially if your /boot mount point is mounted separately and has a limited disk space
$ df -h /boot/
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 331M 198M 112M 64% /boot
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:
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
Marking google-chrome-stable_current_x86_64.rpm to be installed
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:44.0.2403.155-1 will be installed
--> Processing Dependency: lsb >= 4.0 for package: google-chrome-stable-44.0.2403.155-1.x86_64
The Vagrant installation on CentOS Linux is a fairly simple few commands process. First, we need to download a official RPM from http://www.vagrantup.com/downloads.html. Open up your terminal and use wget command to download latest Vagrant RPM package eg:
At the moment Skype.com does not provide and installation package for CentOS Linux. The closest package we can use to install Skype communicator on CentOS is is based on Fedora Linux. Navigate to http://www.skype.com/en/download-skype/skype-for-linux/ and download a Fedora i386 skype package. At the time of writing the package version is skype-22.214.171.124-fedora.i586.rpm. Once downloaded run the below yum command as a privileged user to install Skype on your CentOS linux system:
The python version 3 is not available from CentOS 7 repositories. The following config will show you how to compile and install Python version 3 from source on CentOS 7 Linux. Let's start by installation of some required tools which you will need for this tutorial.
# yum install yum-utils make wget
Next, we will install all python build prerequisites to meet all compilation requirements:
The default installation of CentOS Linux 7 does not come with installation of adobe flash player for Firefox web browser and thus must be installed separately. To begin flash player installation first we need to include Adobe's repository. This can be achieved by the following linux command:
This article will describe a way on how to change/set a primary display on CentOS/RHEL 7 with dual monitors and GNOME. The easiest and perhaps recommended way is to use GUI and navigate to Applications->System Tools->Settings->Displays.
SUBSCRIBE TO NEWSLETTER Subscribe to our NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.
The current primary screen is highlighted by a black top bar. To change you primary display simply drag-n-drop the black top bar from one screen to another:
. Another alternative is to you command line tool xrandr. First get all your connected screens:
$ xrandr | grep -w connected
DVI-D-1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
HDMI-1 connected primary 1920x1080+1680+0 (normal left inverted right x axis y axis) 598mm x 336mm
If you currently do not hold a Red Hat Subscription and yet you need to enable EPEL ( Extra Packages for Enterprise Linux ) repository on your RHEL 7 Linux you need to download and install following file directly from Fedora project: