how to remaster fedora core
TRANSCRIPT
![Page 2: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/2.jpg)
2
Agenda
➲ Linux History➲ Linux Distributions➲ How to Remaster Fedora Core?➲ Conclusion➲ References
![Page 3: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/3.jpg)
3
Linux History
![Page 4: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/4.jpg)
4
➲ In 1983➲ Richard Stallman➲ It is free
free means freedom➲ GNU's Not Unix
GNU History
![Page 5: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/5.jpg)
5
➲ In 1991➲ Linus Torvalds➲ Based on Minix➲ GNU/Linux
Linux History
![Page 6: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/6.jpg)
6
Linux Distributions
![Page 7: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/7.jpg)
7
Linux Distributions
![Page 8: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/8.jpg)
8
Linux Distributions Ranking
➲ Ubuntu➲ SuSE➲ Mandriva➲ Fedora Core➲ MEPIS➲ Damn Small➲ Debian
![Page 9: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/9.jpg)
9
Ubuntu
➲ Ubuntu Linux is a complete desktop Linux operating system.
➲ Freely available with both community and professional support.
➲ The "Ubuntu" is an ancient African word, meaning "humanity to others".
![Page 10: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/10.jpg)
10
SuSE
➲ SUSE LINUX is the international technology leader and solutions provider in Open Source operating system software.
➲ SUSE LINUX was acquired by Novell, Inc in November 2003.
![Page 11: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/11.jpg)
11
Mandriva
➲ Mandriva Linux was created in 1998.➲ The goal of making Linux easier to use for
everyone.
![Page 12: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/12.jpg)
12
Fedora Core
➲ The Fedora Project is an openlydeveloped project designed by Red Hat.
➲ The goal of The Fedora Project is to work with the Linux community to build a complete, general purpose operating system exclusively from open source software.
![Page 13: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/13.jpg)
13
MEPIS
➲ MEPIS Linux is a desktop Linux system that is also easy to configure as a dedicated server.
➲ It includes cuttingedge features such as a live/installation/recovery CD and ... .
![Page 14: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/14.jpg)
14
Damn Small
➲ Damn Small Linux is a business card size (50MB) Live CD Linux distribution.
➲ Despite its minuscule size it strives to have a functional and easy to use desktop.
![Page 15: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/15.jpg)
15
Debian
➲ The Debian Project is an association of individuals who have made common cause to create a free operating system.
➲ Debian comes with over 8000 packages all of it free.
![Page 16: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/16.jpg)
16
What Makes Distros Different?
➲ System Installer Anaconda (Red Hat, Fedora and ...) Yast (SuSE)
➲ Package Management RPM (Red Hat, Fedora, SuSE and ...) DEB (Debian based distros) TGZ (Slackware based distros)
➲ Configuration System Yast (SuSE) system-config-* (Fedora)
➲ Packages
![Page 17: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/17.jpg)
17
How to RemasterFedora Core
![Page 18: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/18.jpg)
18
How to
➲ Step 1 Create a minimum system. Rebuild the Anaconda.
➲ Step 2 Install Required packages. Configure the system.
➲ Step 3 Create the iso file.
![Page 19: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/19.jpg)
19
Step 1
![Page 20: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/20.jpg)
20
Step 1
➲ Selecting the basic packages.➲ Changing the comps.xml file.➲ Changing the Anaconda logos.➲ Rebuild the Anaconda.
![Page 21: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/21.jpg)
21
comps.xml
➲ The comps file defines how the packages are bundled during the installation.
➲ It is then broken into different sections The first is the group lists
which describe the different groups available for selection during a Red Hat Linux installation.
The second section is a group hierarchy. This defines an ordering of the groups by
breaking them down into categories. Finally, there is a section with the list of
packages included and their resolved dependencies.
![Page 22: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/22.jpg)
22
Anaconda – Group List
![Page 23: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/23.jpg)
23
Anaconda – Detailed Group List
![Page 24: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/24.jpg)
24
comps.xml – Group list
<group> <id>somegroup</id> <name>Sample Group</name> <default>true</default> <uservisible>false</uservisible> <description>This is a silly sample group</description> <packagelist> <packagereq type="mandatory">bash</packagereq> <packagereq type="default">cpio</packagereq> </packagelist></group>
![Page 25: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/25.jpg)
25
comps.xml – Group Hierarchy
<grouphierarchy> <category> <name>Random Groups</name> <subcategories> <subcategory>somegroup</subcategory> </subcategories> </category></grouphierarchy>
![Page 26: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/26.jpg)
26
Changing the Anaconda Logos
➲ fedoralogo<ver>.rpm➲ Download fedoralogo<ver>.src.rpm➲ Extract it.➲ Replacing the logos.➲ Rebuild the fedoralogo rpm file:
/usr/src/redhat/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
rpmbuild -bb /usr/src/redhat/SPECS/fedora-logo.spec
![Page 27: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/27.jpg)
27
Rebuild the Anaconda
1) Preparation2) Updating3) Cleanup4) Build5) Splitting the installation tree
![Page 28: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/28.jpg)
28
Preparation
➲ Installing necessary tools anaconda anaconda−help anaconda−runtime busybox−anaconda
➲ Set the environment variable export PYTHONPATH=/usr/lib/anaconda export
PATH="$PATH:/usr/lib/anaconda−runtime"➲ Copy the entire Fedora CD
![Page 29: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/29.jpg)
29
Updating
➲ It consists of replacing the RPMs and src RPMs with updated versions.
![Page 30: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/30.jpg)
30
Cleanup
➲ Removing extra files find $FCBASE/fc3 −name TRANS.TBL −exec rm
−f {} \; find $FCBASE/fc3 −name boot.cat −exec rm −f
{} \;
![Page 31: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/31.jpg)
31
Build➲ Update the hdlist file
genhdlist −−productpath=DISTRO \ $MYPATH/mydistro-cd
➲ Create the package order filepkgorder $MYPATH/mydistro-cd i386 DISTRO \ > $MYPATH/pkgfile
➲ Update the installation filesbuildinstall −−pkgorder $MYPATH/mydistro-cd \−−version 1 −−product "My Distro" \−−release "My Distro" \−−prodpath DISTRO \$MYPATH/mydistro-cd
![Page 32: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/32.jpg)
32
Splitting The Installation Tree➲ Split the distribution tree
splittree.py −−arch=i386 \−−total−discs=8 −−bin−discs=4
−−src−discs=4 \−−release−string="Fedora Core 3" \−−pkgorderfile=$FCBASE/fc3/pkgfile \−−distdir=$FCBASE/fc3/i386 \−−srcdir=$FCBASE/fc3/i386/SRPMS \−−productpath=Fedora
➲ Rebuild the hdlistgenhdlist −−productpath=Fedora
−−withnumbers \−−fileorder $MYPATH/pkgfile \$MYPATH/mydistro-cd
![Page 33: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/33.jpg)
33
Step 2
![Page 34: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/34.jpg)
34
Kickstart➲ Using kickstart, a system administrator can create a
single file containing the answers to all the questions that would normally be asked during a typical installation.
![Page 35: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/35.jpg)
35
Kickstart File➲ Command section➲ The %packages section ➲ The %pre and %post sections
![Page 36: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/36.jpg)
36
Starting a Kickstart Installation➲ To begin a kickstart installation, you must boot the
system from boot media you have made.
linux ks=cdrom:/ks.cfg
![Page 37: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/37.jpg)
37
My Distro Kickstart Config➲ Creating CD device in /dev➲ Finding the correct CD drive➲ Doing required configuration for my distro
![Page 38: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/38.jpg)
38
Creating CD Device
cd_list=`cat /proc/sys/dev/cdrom/info | head n 3 | tail n 1 | cut d ":" f2`
for dev in $cd_listdo major=`cat /sys/block/$dev/dev | cut d: f1` minor=`cat /sys/block/$dev/dev | cut d: f2` mknod /dev/$dev b $major $minordone
![Page 39: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/39.jpg)
39
Finding the Correct CD Drive
mkdir p /mnt/cdromfor dev in $cd_listdo mount /dev/$dev /mnt/cdrom if [ d /mnt/cdrom/DISTRO ]; then magfa_cd=$dev fi sleep 1 umount /mnt/cdrom sleep 1done
![Page 40: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/40.jpg)
40
Step 3
![Page 41: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/41.jpg)
41
Creating The ISO File➲ The bootable CD
mkisofs −R −J −T −v \−no−emul−boot −boot−load−size 4
−boot−info−table \−V "My Distro" \−b isolinux/isolinux.bin −c isolinux/boot.cat \−x "lost+found" \−o mydistor.iso \$MYPATH/mydistro-cd
![Page 42: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/42.jpg)
42
Creating The ISO File➲ Other CDs
mkisofs −R −J −T −v \−V "My Distro" \−x "lost+found" \−o cd2.iso \i386−disc2
![Page 43: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/43.jpg)
43
Conclusion
![Page 44: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/44.jpg)
44
Conclusion
Creating a new Distribution
Selecting minimumpackages
Editing comps.xml
Rebuild Anaconda
Creating kickstart file
Creating iso file
Editing logos
![Page 45: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/45.jpg)
45
References
![Page 46: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/46.jpg)
46
➲ http://www.redhat.com➲ http://fedoraproject.org/wiki/Anaconda➲ http://vnx.com➲ http://blagblagblag.com➲ http://rhlinux.redhat.com/anaconda
Refernces
![Page 47: How to Remaster Fedora Core](https://reader036.vdocuments.mx/reader036/viewer/2022081602/613d0909736caf36b7588b4a/html5/thumbnails/47.jpg)
47
Questions
Comments