Tag Archives: RHEL

Starting Services on Boot with ntsysv on CentOS/RHEL/Fedora

ntsysv allows you to easily specify the scripts/services you want to automatically start on boot. For CentOS and RHEL users, you can easily install ntsysv using yum. This should work on Fedora too, as they are in the same boat as RHEL and CentOS. ntsysv is not available on Debian/Ubuntu natively, so this method of starting services won’t work.

yum install ntsysv

After you have installed it, run the ntsysv command.


You’ll be presented with a window that has a combination of red, blue, and gray.

Use the up/down arrow to navigate the list. Use the spacebar to check/uncheck a service. Use your tab to navigate to ‘Ok’ and ‘Cancel’. This part is mostly self explanatory.

Installing recordmydesktop on CentOS and RHEL

Recordmydesktop is a command line (and GUI) program that can be used to record a video of the CentOS Desktop (among other distros as well). To install it on CentOS, begin by installing the required dependancies:

yum install gcc make libXext-devel libSM-devel libICE-devel zlib-devel libXfixes-devel libXdamage-devel libvorbis-devel libtheora-devel

Because CentOS does not official an RPM for recordmydesktop, we will have to install it from source. We will download a tar of the source code, untar the source, and remove the tar file:

wget http://downloads.sourceforge.net/project/recordmydesktop/recordmydesktop/
tar xf recordmydesktop-
rm -rf recordmydesktop-

Now, let’s go into the folder and install Recordmydesktop.

cd recordmydesktop-
make install

If you did not set a custom prefix, running /usr/bin/recordmydesktop should begin recording your desktop! Use the following command (just as with most commands) to view the options available:

recordmydesktop --help

Thunderbird and Firefox 10 in CentOS and RHEL

CentOS 6’s default repository still only has Firefox/Thunderbird version 3.1, and a lot of newer and greater versions has been released since then.

To begin with, make sure you have the older version of Firefox/Thunderbird installed. This is necessary, as we are going to use their launch scripts as a template to create the launch scripts for the newer version.

To shorten things up, I will refer to Thunderbird as TB, and Firefox as FF. For the most part, I will refer to TB instead of both TB and FF. All you have to do is change where I write ‘thunderbird’ to ‘firefox’ and it will most likely work. To begin with, you want to download the latest version of Thunderbird or Firefox.

  • 32 bit TB:
    wget 'http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/10.0-real/linux-i686/en-US/thunderbird-10.0.tar.bz2'
  • 64 bit TB:
    wget 'http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/10.0-real/linux-x86_64/en-US/thunderbird-10.0.tar.bz2'
  • 32 bit FF:
    wget 'http://releases.mozilla.org/pub/mozilla.org/firefox/releases/10.0/linux-i686/en-US/firefox-10.0.tar.bz2'
  • 64 bit FF:
    wget 'http://releases.mozilla.org/pub/mozilla.org/firefox/releases/10.0/linux-i686/en-US/firefox-10.0.tar.bz2'

Untar and unzip the file you just downloaded (as said before, name may vary with the product you are installing). Afterwards, delete the tar file, which is no longer necessary.

tar xf thunderbird-10.0.tar.bz2
rm -rf thunderbird-10.0.tar.bz2

The simplest way is to delete the current TB/FF install, and move the newly downloaded files to the old directory. This command will vary for 32 and 64 bit systems. IMPORTANT: For Firefox, change the number 3.1 to 3.6 for both architectures. As for the commands, for 32 bit:

rm -rf /usr/lib/thunderbird-3.1/*
mv thunderbird/* /usr/lib/thunderbird-3.1/

For 64 bit systems:

rm -rf /usr/lib64/thunderbird-3.1/*
mv thunderbird/* /usr/lib64/thunderbird-3.1/

Congratulations! You are more or less done. Now, you may want to get rid of the empty FF/TB folder by running the command:

rm -rf thunderbird

That’s pretty much all. Running command ‘thunderbird’ or going to ‘Applications -> Internet -> Thunderbird Email’ will launch the newly installed version!

Beyond TB/FF 10, the ‘automatic upgrade’ feature should kick in. As you can see in the two screenshots above, TB and FF will automatically look for new versions, and will automatically upgrade when they exist. This way, you can run much newer versions than those found in the CentOS/RHEL repo.