22
Redhat Certified System Administration (RHCSA) & Redhat Certified Engineer(RHCE)

RHCE Training

Embed Size (px)

DESCRIPTION

its about RHCE & RHCSA

Citation preview

Page 1: RHCE Training

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

Page 2: RHCE Training

Hardware requirement for RHEL6 Installation

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

Page 3: RHCE Training

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

Page 4: RHCE Training

USERADD

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

Page 5: RHCE Training

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

Page 6: RHCE Training

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

Page 7: RHCE Training

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

Page 8: RHCE Training

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.

Page 9: RHCE Training

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

Page 10: RHCE Training

Create Swap partition

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

Page 11: RHCE Training

LVM(logical volume management

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

Page 12: RHCE Training

Basic commands for LVM

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

Page 13: RHCE Training

Extend LVM

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

Page 14: RHCE Training

Reduce LVM size

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

Page 15: RHCE Training

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

Page 16: RHCE Training

servers

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

Page 17: RHCE Training

Configure Telnet server

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

Page 18: RHCE Training

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>

Page 19: RHCE Training

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>

Page 20: RHCE Training

Configure NIS Server

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

Page 21: RHCE Training

Configure NFS server

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

Page 22: RHCE Training

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