Using the minimal install option for a CentOS or other Redhat derived distro can leave a lot to be desired. It really is a minimal installation. That’s actually why I prefer it for production server builds. The end product only contains the minimal set of software I need to run my applications. Here are some amendments I make to turn this minimal installation into a workable LAMP/server platform.
During the setup process you should configure networking – it’s much easier using the gui now than later. But if you forget you can do this:
HWADDR='your mac address'
If you need to find your mac address you can look in a couple of places:
grep eth0 /var/log/messages
dmesg | grep eth0
Both of these will reveal the mac address.
Next, edit the network config file and add the gateway address:
Adding the line:
Now restart the network interface:
From here you should be able to ping your router:
$ ping y.y.y.y
Adding EPEL repo and Additional Packages
Now that your server is connected to the network it’s time to run updates and then add additional repos and packages. First start by running updates:
# yum update
Next add the EPEL repository. CentOS comes with an RPM package to install the repo which makes things easy.
# yum install epel-release
Now add the following packages to round out the installation:
# yum install openssh-clients rsync man wget postfix vim-enhanced \
x11-xorg-apps x11-xorg-xauth ntp ntpdate bind-utils crontabs firefox