Posts tagged ‘centos’

Prevent Yum Upgrades in Fedora / Red Hat for select packages

fedora.png

Simple enough, add an exclude line to the end of your [main] section in /etc/yum.conf , and you are done. Your yum.conf should look something like this:

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
exclude=gdm  pidgin

This will prevent upgrades of the gdm package as well as pidgin.  The list of apps in the exclude should be space sepeated.  Shell wildcards ( * ? ) can also be included.

Redhat/Fedora: Auto Complete for the “service” command

redhat.png

In  Redhat, Fedora, or Centos Linux, you’re required to type command such as “service sshd start” and the main problem is NO auto complete for service command by default. Yes I admitted I’m lazy guy!

So how to set AUTO COMPLETE “service” command on Redhat/Centos? Read Below.

Continue reading ‘Redhat/Fedora: Auto Complete for the “service” command’ »

Install Guest Additions in CentOS through VirtualBox

centos.png

VirtualBox has special software that can be installed inside Windows and Linux virtual machines to improve performance and make integration much more seamless. Among the features provided by these Guest Additions are mouse pointer integration and arbitrary screen solutions (e.g. by resizing the guest window).

For some reason, I have never installed them on my CentOS 5.2 image… and I suddenly feel compelled to

So, let’s open VirtualBox, start the CentOS image and log in.
Continue reading ‘Install Guest Additions in CentOS through VirtualBox’ »

How to manage services in Fedora/Redhat

redhat.png

A “service” is a program that starts automatically when you start your computer, and runs in the background. For example, the “network” service sets up your connection to the Internet and keeps it running correctly.

There are two ways to manage services in Fedora, one using the graphical tools, and one using only the command line. If you’re not in a graphical environment, use the command line method.

Continue reading ‘How to manage services in Fedora/Redhat’ »