Installing with Kickstart  
Tuesday, February 28, 2006, 16:45 - Desktop
To save time installing the same configuration for most PC with Fedora Core,
I have created a kickstart file based my ananconda-ks.cfg file.

Below is my ks.cfg after modified. To use this kickstart file, I am copying the file into Floppy disk
and boot user PC with CD which contain Fedora Core 4 boot iso for Install/Upgrade.

After the linux install prompt appear I type,

boot: linux ks=floppy

then it will start seeking floppy disk for file named ks.cfg

Please note: you should have a DHCP server running to provide the PC with IP address and a FC4 repository

#Generated by Kickstart Configurator
#platform=x86, AMD64, or Intel EM64T
#date 27 Feb 2006

#System language
lang en_US
#Language modules to install
langsupport --default=en_US.UTF-8
#System keyboard
keyboard us
#System mouse
mouse
#Sytem timezone
timezone Asia/Jakarta
#Root password
rootpw --iscrypted $1$XSRac/ou$sRJijao6VWEsVGS4RDuI01
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --url http://10.10.105.105/software/fedora/os
#System bootloader configuration
bootloader --location=mbr --append="rhgb quiet"
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext3 --size 100
part swap --size 512
part / --fstype ext3 --size 5000
part /home --fstype ext3 --size 1 --grow
#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --disabled
#SELinux configuration
selinux --disabled
#XWindows configuration information
xconfig --depth=24 --resolution=800x600 --defaultdesktop=GNOME --startxonboot
#Run the Setup Agent on first boot
firstboot --enable
#Package install information
%packages
@ office
@ editors
@ text-internet
@ gnome-desktop
@ dialup
@ games
@ base-x
@ graphics
@ printing
@ admin-tools
@ sound-and-video
@ graphical-internet
kernel-smp
grub
e2fsprogs
dosfstools

%post
wget http://10.10.105.105/software/fedora/ex ... datefc4.sh -O /root/updatefc4.sh
chmod +x /root/updatefc4.sh

[ add comment ]   |  permalink  |   ( 3 / 157 )
Simplify Update Fedora Core 4 System 
Tuesday, February 28, 2006, 16:43 - Desktop
To simplify Fedora Core 4 system update, I have created a scripts to check current runlevel, id and update the yum configuration file before updating the system. Below is the scripts.

Below is the scripts

#!/bin/bash
#filename: updatefc4.sh
#scripts for updating FC4 system
#
currentinit=`runlevel | awk '{ print $2 }'`
correctinit='3'
currentid=`whoami`
correctid='root'
echo "Current RunLevel = " $currentinit
echo "Correct RunLevel = " $correctinit
echo "Current ID = " $currentid
echo "Correct ID = " $correctid
if [ $currentinit == $correctinit ]
then
echo "Current runlevel is 3, preparing to updating your Fedora Core 4"
if [ $currentid == $correctid ]
then
echo "Update is lauched"

echo "Downloading Fedora Update Repository Configuration Files"
mkdir fcupdate
cd fcupdate
wget http://10.10.105.105/software/fedora/ex ... epo.tar.gz
tar -xzvf fedora-rpx.repo.tar.gz

echo "Updating Update Configuration Files"
cp --reply=yes *.repo /etc/yum.repos.d/

echo "Updating the system, Please wait a while..."
yum -y update

echo "Update complete!"
echo "You should reboot your system!!!"
else
echo "Update need root id to run update program"
echo "Update is cancel"
fi
else
echo "This update can't be run on runlevel 5"
echo "Only on runlevel 3"
echo "Please go to runlevel 3, by typing:"
echo "init 3"
fi


[ add comment ]   |  permalink  |   ( 3 / 141 )
Fedora Core Updates 
Tuesday, February 28, 2006, 16:42 - Desktop
I have already downloaded Fedora Core 4 repository for Core and Updates and for the Extras I didn't so I disabled the option

Here the contents of files below /etc/yum.repos.d folder

#vi /etc/yum.repos.d/fedora.repo
[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
baseurl=http://10.10.105.105/software/fedora/os/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

#vi /etc/yum.repos.d/fedora-updates.repo
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
baseurl=http://10.10.105.105/software/fedora/updates/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

#vi /etc/yum.repos.d/fedora-extras.repo
[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

go to init 3
#init 3

then type
#yum -y update


[ add comment ]   |  permalink  |   ( 3 / 151 )
Install Log 
Tuesday, February 28, 2006, 16:38 - Desktop
Installation of FC4, I am using Personal Computer packages. For detailed you can see the kickstart file which generated by anaconda automatically

# Kickstart file automatically generated by anaconda.

install
url --url http://10.10.105.105/software/fedora/os
lang en_US.UTF-8
langsupport --default=en_US.UTF-8
keyboard us
xconfig --card "ATI Radeon 9100 IGP" --videoram 131072 --hsync 30-70 --vsync 50-
160 --resolution 800x600 --depth 16 --startxonboot --defaultdesktop gnome
network --device eth0 --bootproto static --ip 10.10.105.181 --netmask 255.255.25
5.0 --gateway 10.10.105.2 --nameserver 10.10.105.6 --hostname am3n
rootpw --iscrypted $1$sAIbEDRK$s77UeokuDlA3lzCkY3H2V.
firewall --disabled
selinux --disabled
authconfig --enableshadow --enablemd5
timezone Asia/Jakarta
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux
#part / --fstype ext3 --size=30000
#part /home --fstype ext3 --size=20000
#part /data --fstype vfat --size=20000
#part swap --size=2000

%packages
@ office
@ editors
@ text-internet
@ gnome-desktop
@ dialup
@ games
@ base-x
@ graphics
@ printing
@ admin-tools
@ sound-and-video
@ graphical-internet
kernel-smp
grub
e2fsprogs
dosfstools

%post


[ add comment ]   |  permalink  |   ( 3.3 / 152 )
Fedora Core 4 Downloaded and Installed 
Tuesday, February 28, 2006, 16:33 - Desktop
On Saturday, 21 January 2006 I am downloading Fedora Core 4 binary DVD ISO using bittorrent. The download took about 10 hours and after the download complete extract all files into 1 folder and edit apache configuration to have virtual folder pointed to folder hold Fedora Core 4 files and restart it.

Afterthat I copy file boot.iso which is located on images folder then burn it to my cdrw so I can do a network install FC4 to my PC. After burning boot.iso completed, restart PC and make sure on the BIOS that first boot up is using CDROM. I am installing via http server http://10.10.105.105/software/fedora on my network there is a DHCP server running so I do not need to key in my IP address. BTW this is my HDDs configuration:
- Seagate 40GB HDD on Primary Slave (Windows XP reside)
- LiteON DVD-CDRW on Secondary Master
- Quantum 20GB HDD on Secondary Slave (I am going to install FC4 here)

The Installation is succesfull. I am just installed the default software in Personal configuration. and for the boot loader (grub) installed on the first boot sector of harddisk /dev/hdd
I am intended to install a free boot loader (not like bootmagic which is paid version) on my windows drive but till then I have to manually change boot order from my BIOS which OS I want to use.
Actually FC4 detects my Windows and create a device.map and grub.conf so I can choose Windows XP from GRUB boot loader but it seem didn''t work. I finally fix it by changing these files:

vi /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/hdd
(hd1) /dev/hdb
#was
#(hd0) /dev/hdb
#(hd1) /dev/hdd

vi /boot/grub/grub.conf
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#was splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4smp)
root (hd1,0)
#was root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4smp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4smp.img
title Fedora Core-up (2.6.11-1.1369_FC4)
root (hd1,0)
#was root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4.img
title Windows XP Pro
rootnoverify (hd1,0)
chainloader +1

after changing the harddisk device map I can boot off to FC4 flawlessly and all my hardware detected correctly like (vga, nic, soundcard, key and mouse)

Now I am ready to use Fedora Core 4

[ add comment ]   |  permalink  |   ( 2.9 / 157 )

Back