Import RPM's signature keys


Mount you Red Hat Linux DVD on to the media directory and simply type on command promt;

#rpm --import /media/RPM-GPG-KEY-redhat-beta
#rpm --import /media/RPM-GPG-KEY-redhat-release


Add IP to your network interface card

This can be achieved in graphical interface easily. But you have to familiar with command line, and it is easier to understand.
The configuration files regarding network are stored in /etc/sysconfig/network-scripts/

If you want to configure Ethernet 0 interface, look for the configuration file of "ifcfg-eth0"

open file using "vim" or "nano"
#vi /etc/sysconfig/network-scripts/ifcfg-eth0

As the figure show add those lines.................................


Another method of adding IP is DHCP server.....
you can configure same configuration file (ifcfg-eth0) to get IP from a dhcp server

open the above file using "vim" or " nano"
make following changes

BOOTPROTO=dhcp

and make following line as comment using "#" mark
#BROADCAST
#IPADD
#NETMASK
#GATEWAY

Every time you make changes your network, mind it to restart the network. it can be done according following method

You can restart everything (eth0, eth1, ppp0, etc) using
#service network restart
only eth0
#ifup eth0


How to enable YUM in your Server


1. Create a repo file in /etc/yum.repo directory.

#vim /etc/yum.repo/myrepo.repo

you can use either "nano" or "vim".

2. Add following statments.

[myrepo.repo]
name=myname
baseurl=file:///media/Server
enabled=1
gpgcheck=0

save and exit
i mounted the red hat dvd to media directory. rpms are in Server directory. you can use any directory you want.

3. Open the yum.conf file.

#vi /etc/yum.conf

find the line "gpgcheck" and make it 0 (gpgcheck=0)
save and exit.

4.Run following commands;

#yum clean all
#yum update all

Now you can easily install any package without looking for package in dvd
ex;
yum install httpd