RHCE Training

Preview:

DESCRIPTION

its about RHCE & RHCSA

Citation preview

Redhat Certified SystemAdministration (RHCSA) &Redhat Certified Engineer(RHCE)

Hardware requirement for RHEL6 Installation

• 64-bit system• Ram requirement• Hard Drive• CDROM Drive

Basic commands in RHCE6

• pwd • cd• ls • ls –l • vi • cat• rm

• mkdir• rmdir• more & less• head• tail• logout• init 0

• exit• clear• sudo• gedit• reboot• man

USERADD

1. /etc/passwd2. /etc/shadow3. /etc/gshadow 4. /etc/group5. /etc/spool/mail6. /etc/home

Description

R Read

W Write

X Execute

S Set user or group ID on execution

U Permission granted to user who owns the file

G Permission granted to user in the file’s group

O permission granted to other user

Digits permission 0 none 1 execute 2 write 4 read 3(1+2) write and execute 5(1+4) read and execute7(1+2+4) read, write and execute

RPM in Linux

1. rpm –q <package name>2. Rpm –qa3. Rpm –ivh foo-1.0-1.i386.rpm4. Rpm –e foo5. Rpm –Uvh foo-2.0.1.i386.rpm

Linux ACL

Categories of ACLs per file1. For an individual user2. For a user group3. Via the effective rights mask4. For users not in the user group associated

with file.

File system Administration

Useful commands for file system 1. Df –h2. Du3. Mount4. umount 5. Fdisk –l6. Fdisk /dev/sda7. Mkfs –t ext4 /dev/sda68. fstab

Create Swap partition

• Fdisk /dev/sda• Reboot –f• Mkswap /dev/sda6• Swapon /dev/sda• Fstab

LVM(logical volume management

For step for create a LVM1. Create PV2. Create VG3. Create LVM4. Format LVM & mount it

Basic commands for LVM

1. Pvcreate 2. Pvdisplay3. Vgcreate4. Vgdisplay5. Lvcreate6. mkfs.ext4 /dev/vol1/lv1

Extend LVM

• Lvextend +60MB /dev/vol0/lv1• Resize2fs /dev/vol0/lv1

Reduce LVM size

• Umount• E2fsck –f /dev/vol0/lv1• resize2fs /dev/vol0/lv1 60MB• Lvreduce 60MB /dev/vol0/lv1• mount

KERNEL and GRUB

“kernel is the core part of any operating system which allows every activity which is going to occur in your operation system”

* Command for kernel version- Uname –ro/p2.6.22-14-generic

servers

i. TELNETii. SSHiii. FTPiv. NISv. NFSvi. SAMBAvii. NTPviii. DNS

Configure Telnet server

1 . Server side• Install Telnet server software• Configure • Service xinetd restart• Security Setenforce 0 Iptables –f2. Client side* telnet <server ip>

Configure SSH Server

1. Server side• Install SSH server software • Configure SSH server• Service sshd restart• Security Setenforce 0 Iptables –f2. Client side* Ssh <server ip>

Configure FTP server

1. server side• Install FTP server software• Configure FTP server• Service vsftpd restart• Security Setenforce 0 Iptables –f2. Client side* Software install* ftp <server ip>

Configure NIS Server

1. Server side install ypserv software Configure NiS server service ypserv restart2. Client side install ypbind software run setup command

Configure NFS server

1. Server side install nfs –utis software configure server service nfs restart2. Client side mount <server ip> : /movies /media/abc

Configure SAMBA server

1. Server side install samba software configure samba service smb restart2. Client side install sambaclient software mount <server ip> : /movies /media/abc