Wednesday, September 19, 2012

CentOS Installation Step By Step

CENT OS 6 INSTALLATION


******************************LINUX~ROOT~SHELL*****************************

YUM Master Configuration in RHEl 6


YUM master Configuration

Mount the RHEL 6 ISO or DvdConfiguration of Yum Server
STEP 1:
RHEL 6 YUM Configuration is little bit different from RHEL 5
in RHEL 6 we need to install Dependencies packages  for Createrepo package First and then we need to install the createrepo package.
 
STEP 2:
#rpm -ivh vsftpd-2.2.2-6.el6.x86_64.rpm
HERE YOU GET GET THE BELOW ERROR IF U INSTALL CREATEREPO  PACKAGE WITHOUT INSTALLING DEPENDENCIES FIRST
# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
        deltarpm is needed by createrepo-0.9.8-4.el6.noarch
        python-deltarpm is needed by createrepo-0.9.8-4.el6.noarch
STEP 3:
Install Below two dependenciey packages first
# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

Now Try to install Createrepo package it will install Sucessfully# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm

 STEP 4:
Copy the Packages from CDROM to /var/ftp/pub folder. The folder will be automatically created once we install the vsftpd Package
[root@server /]# cp -r /mnt/Packages /var/ftp/pub/

STEP 5:
Create a repodata which will be used as a repository of packages for Yum configuration
 
# createrepo -v /var/ftp/pub

Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@server Packages]#

STEP 6:
Configuration of YUM Master.

cd /etc/yum.repos.d
# vi server.repo
[server]
name=server.hp.com
baseurl=ftp://192.168.24.145/pub/Packages        OR         baseurl=file:///var/ftp/pub/Packages
enabled=1
gpgcheck=0

STEP 7:
# yum clean all
#yum update
******************************LINUX~ROOT~SHELL*****************************

Tuesday, September 18, 2012

YUM (Yellow Dog Updater Modified) Configuration in RHEL 5

YUM Server Configuration in RHEL5 (Yellow Dog Updater Modified)


YUM configuration Includes 3 Steps:
STEP 1:
Mount the RHEL 5 Dvd for ISO file to /mnt 
Install vsftpd and Creterepo packages from RHEL Dvd
# rpm -ivh vsftpd.xxxx.rpm
# rpm -ivh createrepo.xxx.rpm


STEP 2: 
Copy all rpms form the DVD /Server  folder to /var/ftp/pub Location
#cp -av /mnt/Server /var/ftp/pub 

After copying the all rpms to ftp location, we need to create local repository database for that we need to rum the following command

#createrepo -v /var/ftp/pub/Server

It will take several minutes that depends upon the number of rpms that you have copied from the DVD specified and the configuration of your server

Now it time to create repository file which indicates repository location and repository parameters

STEP 3 :
Creating a repo file

#vim /etc/yum.repos.d/local.repo
[Note:repo filename can be anything]

[local.repo]
name=my repo
baseurl=file:///var/ftp/pub/Server
enabled=1
gpgcheck=0

:wq! save and exit

[Note:repo name (taking above parameters) "local.repo" , it should not have any spaces,u can put "-" or "." or anything] 

open a file
#vim /etc/yum.conf
make sure gpgcheck=0

:wq! save and exit

#yum clean all
#yum update all

[Note : If yum update all show a error it means your rpm repositery is croupted ]




Saturday, July 21, 2012

LINUX COMMANDS

LINUX COMMANDS


PWD                      -              PRESENT WORKING DIRECTORY
LS                            -              LIST
CAT                        -              COMMAND TO READ A FILE
TOUCH                 -              COMMAND TO CREATE 0Kb FILES
MKDIR                  -              COMMAND TO CREATE DIRECTORY
CD                          -              CHANGE DIRECTORY / CLEAR DIRECTORY
CP                           -              COPY COMMAND
MV                         -              RENAME OR MOVE COMMAND
RM                         -              RENAME OR REMOVE DIRECTORY
DATE                     -              DATE
CAL                        -              CALENDER
MAN                     -              MANUAL
HEAD                     -              TO VIEW TOP 10 LINES OF FILE
USERADD            -              ADD USER
USERMOD           -              MODIFY USER
USERDEL              -              DELETE USER
PASSWD              -              TO CREATE PASSWORD
ID                            -              TO KNOW ID FOR USER
GROUDADD       -              ADD GROUP
GROUPMOD      -              MODIFY GROUP
GROUPDEL         -              DELETE GROUP
GPASSWD           -              GROUP PASSWORD