Monday, January 26, 2009

Delete all other OS & no package Kickstart file

#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth  --useshadow  --enablemd5 
# System bootloader configuration
bootloader --location=mbr --md5pass=$1$.9UebnNJ$hkbfHsfgw0JDYVGnVWWTq.
# Partition clearing information
clearpart --linux
# Use text mode install
text
# Firewall configuration
firewall --enabled   
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use NFS installation media
nfs --server=192.168.0.254 --dir=/var/ftp/pub
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
reboot
#Root password
rootpw --iscrypted $1$bdml0V4e$dTffJK3n.0h0Slimi8XBl.

# SELinux configuration
selinux --enforcing
# System timezone
timezone --isUtc Asia/Calcutta
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig  --defaultdesktop=GNOME --depth=24 --resolution=800x600
# Disk partitioning information
part / --fstype ext3 --size=10000 --asprimary
part swap --size=512 --asprimary

No Packages Kickstart files

#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth  --useshadow  --enablemd5
# System bootloader configuration
bootloader --location=mbr --md5pass=$1$.9UebnNJ$hkbfHsfgw0JDYVGnVWWTq.
# Partition clearing information
clearpart --none
# Use text mode install
text
# Firewall configuration
firewall --enabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use NFS installation media
nfs --server=192.168.0.254 --dir=/var/ftp/pub
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
reboot
#Root password
rootpw --iscrypted $1$bdml0V4e$dTffJK3n.0h0Slimi8XBl.

# SELinux configuration
selinux --enforcing
# System timezone
timezone --isUtc Asia/Calcutta
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig  --defaultdesktop=GNOME --depth=24 --resolution=800x600
# Disk partitioning information
part / --bytes-per-inode=4096 --fstype="ext3" --size=6000
part swap --bytes-per-inode=4096 --fstype="swap" --size=1000

Minimal Packages Kickstart file

#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth  --useshadow  --enablemd5 
# System bootloader configuration
bootloader --location=mbr --md5pass=$1$.9UebnNJ$hkbfHsfgw0JDYVGnVWWTq.
# Partition clearing information
clearpart --none  
# Use text mode install
text
# Firewall configuration
firewall --enabled   
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use NFS installation media
nfs --server=192.168.0.254 --dir=/var/ftp/pub
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
reboot
#Root password
rootpw --iscrypted $1$bdml0V4e$dTffJK3n.0h0Slimi8XBl.

# SELinux configuration
selinux --enforcing
# System timezone
timezone --isUtc Asia/Calcutta
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig  --defaultdesktop=GNOME --depth=24 --resolution=800x600
# Disk partitioning information
part / --bytes-per-inode=4096 --fstype="ext3" --size=6000
part swap --bytes-per-inode=4096 --fstype="swap" --size=1000

%packages
@admin-tools
@base
@base-x
@core
@dialup
@editors
@games
@gnome-desktop
@graphical-internet
@java
@office
@printing
@sound-and-video
@text-internet

Full Packages Kickstart file

#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth  --useshadow  --enablemd5 
# System bootloader configuration
bootloader --location=mbr --md5pass=$1$.9UebnNJ$hkbfHsfgw0JDYVGnVWWTq.
# Partition clearing information
clearpart --none  
# Use text mode install
text
# Firewall configuration
firewall --enabled   
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use NFS installation media
nfs --server=192.168.0.254 --dir=/var/ftp/pub
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
reboot
#Root password
rootpw --iscrypted $1$bdml0V4e$dTffJK3n.0h0Slimi8XBl.

# SELinux configuration
selinux --enforcing
# System timezone
timezone --isUtc Asia/Calcutta
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig  --defaultdesktop=GNOME --depth=24 --resolution=800x600
# Disk partitioning information
part / --bytes-per-inode=4096 --fstype="ext3" --size=6000
part swap --bytes-per-inode=4096 --fstype="swap" --size=1000

%packages
@admin-tools
@authoring-and-publishing
@base
@base-x
@core
@development-libs
@development-tools
@dialup
@dns-server
@editors
@engineering-and-scientific
@ftp-server
@games
@gnome-desktop
@gnome-software-development
@graphical-internet
@graphics
@hindi-support
@java
@java-development
@kannada-support
@kde-desktop
@kde-software-development
@legacy-network-server
@legacy-software-development
@legacy-software-support
@mail-server
@mysql
@network-server
@news-server
@office
@printing
@ruby
@server-cfg
@smb-server
@sound-and-video
@sql-server
@system-tools
@tamil-support
@text-internet
@web-server
@x-software-development
kernel-devel

RHEL5 kickstart file supports to install FEDORA CORE10 smoothly

I installed RHEL5 in my company's Linux box. The company required to install the newly available fedora core 10 which is the newer version of fedora as of now. All monitors are 14 inches in my company except a few. But FEDORA CORE10 did not support with those in GUI. I could not create a kickstart file in FEDORA CORE10 since it is a purely GUI based one. So I did copy the RHEL5 kickstart file and change the time zone, which was the one changed that I noticed when I was installing the FEDORA CORE10.

It was Asia/Colombo in FEDORA CORE10 which was Asia/Calcutta in RHEL5. Then I put the same kickstart file in my pxe server. I found that that was working good serendipitously. I posted the pdf versions of original kickstart files of my Blog. Refer http://pnaprasanna.blog.co.in/2009/01/27/various-kickstart-files-for-downloading/ The kickstart (.ks) version is posted in the same Linux Ocean blog. Check it out.

The reason is that in Fedora Core10 is spelt Asia/Calcutta as Asia/Kolkatta. So it happened. Anyway the kickstart which is created for RHEL5 can be used easily to install FEDORA CORE 10. But the specific change is indispensable. Otherwise the kickstart will interrupt at the time zone stage. So use my kickstart files up and upgrade the machines casually.

Upgrade your file system from Ext3 to Ext4 file system

I read this info from nixcraft blog. I want to share something on this. This ext4 file system will be used in the coming version of fedora (i.e., Fedora 11). The following are the features of ext4.

  • Sub-second timestamps

  • Space preallocation

  • Journal checksumming

  • Large (>2T) file support

  • Large (>16T) file system support

  • De fragmentation support

the kernel existing that one which is used by us now won't support for this file system. You have to download the patch for this stuff. Then ext3 file system can be upgraded to ext4 easily with out any data loss. I am still experimenting on this. But nixcraft vivek got this fully. I got an email on this. Please click the following link and get the full stuff.

http://www.cyberciti.biz

Once you install the specified patch, ext3 is no longer mounted with any mount point. So better to keep the boot partition in ext3 only.

Refer https://fedoraproject.org/wiki/Features/Ext4DefaultFs for further reading.

Saturday, January 3, 2009

DHCP & NFS Configuration in RHEL5

RHEL 5

 

DHCP Server Configuration

 

Step1  :           # rpm –q dhcp*

                        # rpm –ivh dhcp*

Step 2 :           # cd /usr/share/doc/dhcp-3.0.1

# ls

                        # dhcpd.conf.sample

                        # cp dhcpd.conf.sample /etc/dhcpd.conf

Step 3 :           # vi /etc/dhcpd.conf

                       

                        option domain-name           dns      server ip

                        range  172.24.0.10     172.24.0.20

Step 4 :                       # vi /etc/sysconfig/network-scripts/ifcfg-eth0

                        onbootpro=static

Step 5 :           # service dhcpd restart

                        # chkconfig dhcpd on

 

Client Configuration

 

# vi /etc/sysconfig/network-script/ifcfg-eth0

onbootpro=dhcp                                                                 

 

 


NFS Server Configuration

 

Step1  :           # rpm –ivh nf*

Step 2 :           # vi /etc/exports

/test *(rw,sync)

:wq

                        Step3  :           # exportfs –av

                        Step4  :           # service portmap restart

                                                # chkconfig portmap on

                        Step 5 :           # service nfs restart

                                                # chkconfig nfs on


Client Configuration

 

Step1  :           # mount 172.24.0.254:/test /mnt

                        # cd /mnt