BaseModification
From LocalizationWiki
Working on the Morphix base system:
Download the morphix base from
http://www.morphix.org/index.php?option=com_content&task=view&id=37&Itemid=59 MorphixbBse-0.5-pre5.iso
Extract the iso as follows:
#mkdir /iso #mount -o loop MorphixBase-0.5-pre5.iso /iso #mkdir /mod #cp -Rp /iso/* /mod
//To change the Name from Morphix to one's choice. I have added DzongkhaLinux in my case.
cd /mod/boot/ gunzip miniroot.gz mount -o loop miniroot /iso cd /iso vi linuxrc //change the line to Welcome to DzongkhaLinux umount /iso cd /mod/boot/ gzip /mod/boot/miniroot
//changes made to the linuxrc file (Patch file)
http://www.dit.gov.bt/admin/index.php/Main_Page:linuxrc
//morph is the default user in Morphix base.I want it to be bhutan in my case
//Trying to change the user from morph to bhutan
cd /mod/base/ extract_compressed_fs morphix > morphix.iso mount -o loop morphix.iso /iso cd /iso mkdir /base cp -Rp * /base vi /base/etc/init.d/morphix-start //change the USSERNAME="bhutan" //Added lines for auto detecting usb disk support
//changes made to the morphix-start file(Patch)
http://www.dit.gov.bt/admin/index.php/Main_Page:morphix-start
//Added support for Dzongkha keyboard,country ISO code,character set and time zone.
vi /base/etc/init.d/knoppix-locale //add support for choosing dzongkha language and english language during boot up
//Changes made to the knoppix-locale
http://www.dit.gov.bt/admin/index.php/Main_Page:knoppix-locale
//add hostname as Dzongkhalinux and user name as bhutan.Basically trying to replace morphix with DzongkhaLinux
vi /base/etc/init.d/knoppix-autoconfig
//changes made to the knoppix-autoconfig
http://www.dit.gov.bt/admin/index.php/Main_Page:knoppix-autoconfig
//change morph to bhutan
vi /base/etc/passwd
//change made to the passwd file
http://www.dit.gov.bt/admin/index.php/Main_Page:passwd
//No Change made
vi /base/etc/group
//Here replaced morph with bhutan
cd /mod/boot/ gunzip miniroot.gz mount -o loop miniroot /iso cd /iso vi /etc/passwd //change morph to bhutan
//changes made to the passwd file
http://www.dit.gov.bt/admin/index.php/Main_Page:passwd1
vi /etc/group //change morph to bhutan
//changes made to the group file
http://www.dit.gov.bt/admin/index.php/Main_Page:group
cd .. umount /iso cd /mod/boot/ gzip miniroot
//add language support for dzongkha and english.The user will be provided with the choice to use DzongkhaLinux only in Dzongkha and English language.
cd /mod/boot/grub/ vi menu.lst
//changes made to the menu.lst file
http://www.dit.gov.bt/admin/index.php/Main_Page:menu-lst
//message displayed while shutting down. Replaced MORPHIX with DZONGKHALINUX
cd /base/etc/init.d vi knoppix-reboot vi knoppix-halt
//changes made to the knoppix-reboot
http://www.dit.gov.bt/admin/index.php/Main_Page:knoppix-reboot
//changes made to the knoppix-halt file
http://www.dit.gov.bt/admin/index.php/Main_Page:knoppix-halt
//add Dzongkhalinux as the default hostname vi /base/etc/hostname
//changes made to the hostname file
http://www.dit.gov.bt/admin/index.php/Main_Page:hostname
cp mkpasswd /base/usr/bin/
vi /base/etc/init.d/morphix-start
The following changes were made:
//deleted
chroot /mnt/main useradd -m $USERNAME -s /bin/bash
//added
chroot /mnt/main useradd -m $USERNAME -s /bin/bash -p `/usr/bin/mkpasswd $USERNAME`
//deleted
chroot /mnt/main useradd -s /bin/bash $USERNAME
//added
chroot /mnt/main useradd -s /bin/bash $USERNAME -p `/usr/bin/mkpasswd $USERNAME`
Customizing BOOTSPLASH images
//keep the necessary new images in /newimages cd /mod/boot gunzip miniroot.gz mount -o loop miniroot /iso cd /iso/bootsplash/images/ //replace all the image files from /newimages using the move command cd / umount /iso cd /mod gzip miniroot
Change the messages shown in the Grub menu during the boot up Also change the grub image
cd /mod/boot/grub/ cp /mod/boot/grub/message /iso rm /mod/boot/grub/message cd /iso cpio -i < message //Customize the image shown by the grub Modify the background.pcx //change to dzongkha vi languages //change url to www.dit.gov.bt vi help.en //put dz vi lang //remove text.* except for text.en ls . | cpio -o > message cp message /mod/boot/grub/
//changes made to the languages file
http://www.dit.gov.bt/admin/index.php/Main_Page:languages
//changes made to the help.en file
http://www.dit.gov.bt/admin/index.php/Main_Page:help-en
cd /mod/boot/grub vi install.lst //change morphix to Dzongkhalinux vi lang.lst //keep option for dzongkha language only vi option.lst //change the url to www.dit.gov.bt
//changes made to the install.lst file
http://www.dit.gov.bt/admin/index.php/Main_Page:install-lst
//changes made to the lang.lst file
http://www.dit.gov.bt/admin/index.php/Main_Page:lang-lst
//changes made to the option.lst file
http://www.dit.gov.bt/admin/index.php/Main_Page:option-lst
Change the index.html under /mod and also remove unnecessary files in that folder.
Command to create the iso:
module-builder -t ext3 /sarge base/mod/mainmod/gnome.mod mkisofs -pad -l -r -J -v -V "DZONGHALINUX 1.0 CD" -b boot/grub/iso9660_stage1_5 -c base/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -hide -rr -moved -o /dl.iso /mod
Once the ISO is created, test it with qemu.
//Installing qemu from the debian repository apt-get install qemu //Testing the ISO file qemu --cdrom YOUR_ISO
If you have rewriteable CD,then it is just the matter of burning the iso on the CD and testing it on your computer.
