27 January 2010

make a mininal linux kernel from Fedora Core 12

Details about Fedora Core 11 installation click here.
1. allocate 12GB of HDD space
(don't select "Allocalte all disk space now")
2. Allocate 400MB of RAM
(required for graphical mode installation)
3. Install FC12 on VMware
4. Review and modify partitioning layout
(select "Create custom layout")
5. Delete VolGroup, sda1 and sda2 partitions
6. Create 800MB swap space
7. Create EXT4 file system and mount pount "/"
8. Un-select everything in software selection
9. Select the default repository
("Installation Repo")
10. Select "customize now" for software selection
11. Again un-select everything in software selection
12. A total of 200 packages will get installed.
mkdir /mnt/cdrom
vi /etc/fstab
>> /dev/cdrom /mnt/cdrom iso9660 defaults 0 0
mount /dev/cdrom
cd /mnt/cdrom/Pakages
rpm -ivh deltarpm* python-deltarpm* libxml2-python*
rpm -ivh createrepo*
cd /mnt
createrepo .
cd /etc/yum.repos.d/
vi fedora.repo >> enabled=0
vi fedora-updates.repo
>> baseurl=file:///mnt
>> #baseurl
>> #mirrorurl
>> enabled=1
>> gpgcheck=0
yum install ftp make which vim gcc ctags ncur*
yum install dhclient bzip2 man man-pages kernel-devel
yum install ntsysv gpm openssh* strace ...
vi /etc/syscofig/network-scripts/ifcfg-eth0
>> DEVICE=eth0
>> ONBOOT=yes
>> BOOTPROTO=dhcp
vi ~/.bashrc
>> alias vi='/usr/bin/vim'
vi /sbin/installkernel
>> /sbin/new-kernel-pkg --dracut ...

For the installation of kernel 2.6.32 refer here.
Other:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

Reference:
http://www.brandonhutchinson.com/cpio_command.html

No comments:

Post a Comment