You are here
Home > Redhat

Red Hat kickstart installation

configure yum server copy dvd contents to /var/ftp/pub create yum repostory [yum server] cd /var/ftp/pub/Server cd repodata copy comps-rhel5-server-core.xml to /var/ftp/pub/Server copy comps-rhel5-server-core.xml to /root createrepo -g comps-rhel5-server-core.xml /var/ftp/pub/Server Create nfs vi /etc/exports /var/ftp/pub/ *(rw,sync,no_root_squash) Execute the following command to export share folder exportfs -avr open /etc/sysconfig/nfs file and uncomment the following two lines RPCNFSDARGS="-N 2 -N 3" RPCNFSDARGS="-N 4" start nfs service and portmap configure chkconfig

Different between Extended 2, 3, 4 file system

Ext2(Extended 2 file system ) Ext3(Extended 3 file system ) Ext4(Extended 4 file system ) This was developed to overcome the limitation of the original ext file system. The main benefit of ext3 is that it allows journaling. Journaling has a dedicated area in the file system, where all the changes

RedHat Kickstart Installation

configure yum server copy dvd contents to /var/ftp/pub create yum repostory [yum server] cd /var/ftp/pub/Server cd repodata copy comps-rhel5-server-core.xml to /var/ftp/pub/Server copy comps-rhel5-server-core.xml to /root createrepo -g comps-rhel5-server-core.xml /var/ftp/pub/Server Create nfs vi /etc/exports /var/ftp/pub/ *(rw,sync,no_root_squash) Execute the following command to export share folder exportfs -avr open /etc/sysconfig/nfs file and uncomment the following two lines RPCNFSDARGS="-N 2 -N 3" RPCNFSDARGS="-N 4" start nfs service and portmap configure chkconfig

NIS Server

Packages for Server: yptool, ypserv,ypbind Install yptool,ypserv and ypbind packages in server system To start service service yppasswdd start service nfs start service portmap start Configure domain name Open /etc/sysconfig/network file and add the following line to assign your domain name. NISDOMAIN =

Plan to secure your Apache Webserver Configuration

1. Check your Apache Configuration is updated with latest Patches if you're not patched up properly, there will be loop hole to attack the server 2. Protect and hide your Apache Version, and other important information. By default many Apache installations tells the version of Apache

Operational Mode Commands

root@sysadmin>? clear                       Clear information in the system configure                Manipulate software configuration information file                          Perform file operations help                        Provide help information monitor                   Real-time debugging ping                        Ping a remote target quit                         Exit the

Logical volume management (LVM)

fdisk -l ( To list partition) create two Parition in unallocated space (sda5&sda6) ------------------------------------------ fdisk /dev/sda n – to create partition t – partion type (8e for lvm) w – save partprobe ( to update to kernel) To create physical Volume -------------------------------- pvcreate

RAID Configuration in Linux

Raid level - 0 Stripping :- Converting two or more total number of disks into a single disk is called Stripping Command for Creating Raid mdadm -C /dev/md0 -l 0 -n 2 /dev/sda{5,6} creating array ? Y Formatting Raid Device mkfe2fs -j /dev/md0

What is UMASK ?

The user file-creation mode mask [umask] is used to determine the file permission for Normal User and Root User. Default Value for Folder                       777 Default Value for File                            666 For Root User               Umask value is 022 Type    

Top