Local Yum Setup for RHEL

The Yellowdog Updater, Modfied (YUM) is an Open-source command line package-management utility for RPM based Linux systems. YUM allows automatic updates, package and dependency management.

This article helps you in YUM setup in RHEL enviroments

1. Create RPM directory

root@technix#mkdir /RPMS

2. Copy all the rpm packages from disk to “/RPMS" directory

3. Install createrepo rpm

root@technix#rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm

4. createrepo

root@technix# createrepo /RPMS

5. create a local repo file in /etc/yum.repos.d

root@technix#vi /etc/yum.repos.d/local.repo

& save the below lines

name=RHEL-$releasever - Local

6. Make yum Cache, by executing

root@technix#yum makecache

Enjoy software updates locally.


Samba basic configuration in RHEL

The key to configuring Samba is its lone configuration file: smb.conf. A basic samba configuration for the smb.conf file is given below.

workgroup = SIMPLE
comment = Common Share
path = /SHARE
read only = no
guest ok = yes

Prior to adding the confifuration to the smb.conf file, take a backup of the current smb.conf file.

and then add the directory to be shared.

******Keeping a local backup of smb.conf file***********

#cp /etc/samba/smb.conf /etc/samba/smb.conf.backup

******Create a share folder******

#mkdir /SHARE
******Give necessary permission********

#chmod 777 /SHARE

*******Add user for Share access*******

#smbpasswd -a root

give password, restart smb service enjoy sharing. 🙂