How to install Bind DNS server on CentOS and RHEL

This steps show you on how to install Bind DNS for CentOS or Redhat Enterprise (RHEL) using yum command :

    [root@server ~]# yum install bind-chroot
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons: ftp.oss.eznetsols.org
     * base: ftp.oss.eznetsols.org
     * contrib: ftp.oss.eznetsols.org
     * extras: ftp.oss.eznetsols.org
     * updates: ftp.oss.eznetsols.org
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package bind-chroot.x86_64 30:9.3.6-4.P1.el5_5.3 set to be updated
    --> Processing Dependency: bind = 30:9.3.6-4.P1.el5_5.3 for package: bind-chroot
    --> Running transaction check
    ---> Package bind.x86_64 30:9.3.6-4.P1.el5_5.3 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package           Arch         Version                     Repository     Size
    ================================================================================
    Installing:
     bind-chroot       x86_64       30:9.3.6-4.P1.el5_5.3       updates        44 k
    Installing for dependencies:
     bind              x86_64       30:9.3.6-4.P1.el5_5.3       updates       986 k
    
    Transaction Summary
    ================================================================================
    Install       2 Package(s)
    Upgrade       0 Package(s)
    
    Total download size: 1.0 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/2): bind-chroot-9.3.6-4.P1.el5_5.3.x86_64.rpm         |  44 kB     00:00
    (2/2): bind-9.3.6-4.P1.el5_5.3.x86_64.rpm                | 986 kB     00:09
    --------------------------------------------------------------------------------
    Total                                            85 kB/s | 1.0 MB     00:12
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing     : bind                                                     1/2
      Installing     : bind-chroot                                              2/2
    
    Installed:
      bind-chroot.x86_64 30:9.3.6-4.P1.el5_5.3
    
    Dependency Installed:
      bind.x86_64 30:9.3.6-4.P1.el5_5.3
    
    Complete!
    

How to Install MySQL Database in Linux Using Yum

I will show you how to install MySQL database server in Linux CentOS using yum command. It very straight forward and easy as long as your server connected directly to internet

    [root@myserver tmp]# yum install mysql-server
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons: ftp.oss.eznetsols.org
     * base: ftp.oss.eznetsols.org
     * epel: bali.idrepo.or.id
     * extras: ftp.oss.eznetsols.org
     * updates: ftp.oss.eznetsols.org
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package mysql-server.x86_64 0:5.0.77-4.el5_5.4 set to be updated
    --> Processing Dependency: mysql = 5.0.77-4.el5_5.4 for package: mysql-server
    --> Processing Dependency: perl-DBD-MySQL for package: mysql-server
    --> Running transaction check
    ---> Package mysql.x86_64 0:5.0.77-4.el5_5.4 set to be updated
    ---> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package              Arch         Version                  Repository     Size
    ================================================================================
    Installing:
     mysql-server         x86_64       5.0.77-4.el5_5.4         updates       9.8 M
    Installing for dependencies:
     perl-DBD-MySQL       x86_64       3.0007-2.el5             base          148 k
    Updating for dependencies:
     mysql                x86_64       5.0.77-4.el5_5.4         updates       4.8 M
    
    Transaction Summary
    ================================================================================
    Install       2 Package(s)
    Upgrade       1 Package(s)
    
    Total download size: 15 M
    Is this ok [y/N]: y
    Downloading Packages:
    
    (1/3): perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm            | 148 kB     00:17
    (2/3): mysql-5.0.77-4.el5_5.4.x86_64.rpm                 | 4.8 MB     06:40
    (3/3): mysql-server-5.0.77-4.el5_5.4.x86_64.rpm          | 9.8 MB     15:12
    --------------------------------------------------------------------------------
    Total                                            11 kB/s |  15 MB     22:20
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating       : mysql                                                    1/4
      Installing     : perl-DBD-MySQL                                           2/4
      Installing     : mysql-server                                             3/4
      Cleanup        : mysql                                                    4/4
    
    Installed:
      mysql-server.x86_64 0:5.0.77-4.el5_5.4
    
    Dependency Installed:
      perl-DBD-MySQL.x86_64 0:3.0007-2.el5
    
    Dependency Updated:
      mysql.x86_64 0:5.0.77-4.el5_5.4
    
    Complete!
    

How to Prepare Other Yum Repositories For RHEL/CentOS 5

There are three updated yum repositories for RHEL/ CentOS. Remi and Webtatic repository are my favorites. Follow below steps to install some other repositories into yum.repos.d.

Install epel Repository

64 Bit OS

    [root@myserver tmp]# wget http://download.fedora.redhat.com/pub/epel/5/x86_64/
    epel-release-5-4.noarch.rpm
    

32 Bit OS

    [root@myserver tmp]# wget http://download.fedora.redhat.com/pub/epel/5/i386/
    epel-release-5-4.noarch.rpm
    
    [root@myserver tmp]# rpm --import http://download.fedora.redhat.com/pub/epel/
    RPM-GPG-KEY-EPEL
    [root@myserver tmp]# rpm -K epel-release-5-4.noarch.rpm
    epel-release-5-4.noarch.rpm: (sha1) dsa sha1 md5 gpg OK
    [root@myserver tmp]# rpm -ivh epel-release-5-4.noarch.rpm
    Preparing...            ########################################### [100%]
    1:epel-release          ########################################### [100%]
    

Install Remi Repository

    [root@myserver tmp]# wget http://rpms.famillecollet.com/enterprise/
    remi-release-5.rpm
    [root@myserver tmp]# rpm -Uvh remi-release-5.rpm
    warning: remi-release-5.rpm: Header V4 DSA signature: NOKEY, key ID 00f97f56
    Preparing...            ########################################### [100%]
    1:remi-release          ########################################### [100%]
    

Install Webtatic Repository

64 Bit OS

    [root@myserver tmp]# wget http://repo.webtatic.com/yum/centos/5/x86_64/
    webtatic-release-5-2.noarch.rpm
    

32 Bit OS

    [root@myserver tmp]# wget http://repo.webtatic.com/yum/centos/5/i386/
    webtatic-release-5-2.noarch.rpm
    
    [root@myserver tmp]# rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
    [root@myserver tmp]# rpm -K webtatic-release-5-2.noarch.rpm
    webtatic-release-5-2.noarch.rpm: (sha1) dsa sha1 md5 gpg OK
    [root@myserver tmp]# rpm -Uvh webtatic-release-5-2.noarch.rpm
    Preparing...            ########################################### [100%]
    1:webtatic-release      ########################################### [100%]
    

How To use these repositories
yum –enablerepo=epel install [rpm package]
yum –enablerepo=remi install [rpm package]
yum –enablerepo=webtatic install [rpm package]

How to Install Webmin-1.530 in Centos 5.5 using RPM Version

Webmin is a free and open source web-based control panel for managing a dedicated or virtual private linux, solaris, and Microsoft windows server. Webmin is useful for server administrators with intermediate as well as advanced technical knowledge. It can help to reduce the risk or typo in command that ca bring disaster to you. In this post, i will guide you on how to install Webmin-1.530 in Centos 5.5 using rpm. You should install the CentOS first before you install the webmin.

Please follow simple steps :

1. Login to your CentOS server with root privileges.
2. Install the dependencies using yum command.

    [root@server ~]# yum -y install perl-Net-SSLeay
    

3. Download the Webmin 1.530 using wget as below :

    [root@server tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.530-1.noarch.rpm
    

4. Fetch and install GPG key with which the packages are signed.

    [root@server tmp]# rpm --import http://www.webmin.com/jcameron-key.asc
    

5. Install the rpm as below. The rest of the install will be done automatically to the directory /usr/libexec/webmin, the administration username set to root and the password to your current root password.

    [root@server tmp]# rpm -U webmin-1.530-1.noarch.rpm
    Operating system is CentOS Linux
    Webmin install complete. You can now login to https://server.intranet.local:10000/
    as root with your root password.
    

6. Finish and now you can manage your centOS using webmin

7. This additional steps is optional. Click update module at the bottom if you are notified. This can help to fix any issue that related to webmin.

    Updating Webmin modules ..
    
    Updating module status to version 1.531.
              Fixes problem : Fix error Bad arg length for Socket::pack_sockaddr_in in Remote Ping monitor
              Downloading status-1.530-1.wbm.gz (319 bytes) ..
              Downloading http://download.webmin.com/updates/status-1.530-1.wbm.gz (139.18 kB) ..
                   Received 1024 bytes (0 %)
                   Received 14 kB (10 %)
                   Received 28 kB (20 %)
                   Received 42 kB (30 %)
                   Received 56 kB (40 %)
                   Received 70 kB (50 %)
                   Received 84 kB (60 %)
                   Received 98 kB (70 %)
                   Received 112 kB (80 %)
                   Received 126 kB (90 %)
                   Received 139.18 kB (100 %)
              .. download complete.
              Installed module System and Server Status (908 Kb)
    

How to install VMware Tools in Linux VM

VMware Tools is a group of utilities that enhances the overall performance of the virtual machine’s guest operating system (OS) and improves management of the virtual machine (VM). This is one of important components in order to provide perfect VM OS. Without the VMware Tools, guest OS performance will lacks some of the important functionality. Please follow below steps to install the VMware Tools in Linux VM:

1) Right click on the VM, goto Guest, Install/Upgrade VMware tools.
2) That will mount a CDROM on the VM Guest with the VMwareTools*.tar..gz
3) Copy VMwareTools*.tar.gz to /tmp
4) cd /tmp
5) tar zxfv VMwareTools*.tar.gz
6) cd vmware-tools-distrib
7) ./vmware-install.pl –default

This steps will install the VMware tools for you.