Installer
From LocalizationWiki
MORPHIX INSTALLER
............................................
Need to install glade for creating customized pot files for the morphix installer
Need automake-1.9 for compiling the installer
................................................................................
Before customizing morphix installer, the live cd should be in place i.e working and tested well. The morphix installer will be installed in the debian image /sarge base created during the live cd development. Please have a look at the details on developing live cd at http://www.dit.gov.bt/admin/index.php/Main_Page:Livecd Livecd
............................................................................
Download
1.morphixInstaller-0.5-9.tar.gz
2.os-prober-0.1-1-all.deb
3.gengrubmenu2-0.1-5-all.deb
4.partitionmorpher-0.3-5.i386.deb
............................................................................
tar -xvzf morphixInstaller-0.5-9.tar.gz
cd morphixInstaller
./configure --prefix=/usr
- gives an error
mv /usr/share/automake-1.9/depcomp /morphixInstaller
./configure --prefix=/usr
make
make install
- this installs morphixinstaller in /usr/sbin
.............................................................................
adding dzongkha language support in the morphix installer
cd morphixInstaller
vi configure
//set ALL_LINGUAS="dz"
cd po
cp morphixinstaller.pot dz.po
//remove other language po files
vi configure.in
//set ALL_LINGUAS="dz"
cd ..
make uninstall
./configure --prefix=/usr/
make
make install
Actually create a deb file for morphix installer
install checkinstall software for creating the deb file from the source file
cd morphixInstaller
./configure --prefix=/usr/
make
checkinstall
This will create a dzongkhainstaller.deb file
cp dzongkhainstaller.deb /sarge base
chroot /sarge base
dpkg -i dzongkhainsaller.deb
dpkg -L dzongkhainstaller
remove the dzongkhainstaller.deb file from /sarge base
..................................................................................
The images displayed while running the morphix installer can be found at
/usr/share/morphixinstaller/pixmaps/
dancingpenguin.gif
installpenguin.png
matty.png
These images can be customized according to ones need.
..............................................................................
Installing the other required packages
cp os-prober-0.1-1-all.deb gengrubmenu2-0.1-5-all.deb /sarge base
chroot /sarge base
dpkg -i os-prober-0.1-1-all.deb
dpkg -i gengrubmenu2-0.1-5-all.deb
remove the os-prober-0.1-1-all.deb gengrubmenu2-0.1-5-all.deb files from /sarge base
vi /usr/sbin/gengrubmenu2
change the title form Morphix to DzongkhaLinux
...............................................................................................
Making the dzongkhainstaller script executable
chmod +x /usr/bin/dzongkhainstaller
Creating a shortcut menu for the installer
shortcut to be displayed in the menu
cp install.desktop /sarge base/usr/share/applications
shortcut to be displayed on the desktop
cd /etc/skel
mkdir Desktop
cp install.desktop Desktop
..............................................................................................
Working on the gnome desktop manager (gdm)
cd /sarge base/usr/share/gdm/themes
mkdir gdm-dzongkhalinux
copy background.jpeg
screenshot.png
gnome-linux-desktop.png
shade-left.png
vline.svg
dashed-rect.svg
gnome-nld.xml
shade-right.png
dotline.png
README
small-n.png
GdmGreeterTheme.desktop
screenshot.png
to gdm-dzongkhalinux
cd /sarge base/etc/gdm
vi gdm.conf
set GraphicalTheme=gdm-dzongkhalinux
cd /sarge base/usr/share/gdm/themes/gdm-dzongkhalinux
vi GdmGreetertheme.desktop
Add the following line
# This is not really a .desktop file like the rest, but it's useful to treat</nowiki> # it as such</nowiki> [GdmGreeterTheme] Encoding=UTF-8 Greeter=gnome-nld.xml Name=dzongkhalinux Dawn Description=Debian theme for GDM based on the NLD by Tuomas Kuosmanen Author=PemaGeyleg <pgeyleg@dit.gov.bt> Copyleft=© 2005 Pemageyleg Screenshot=screenshot.jpg
vi gnome-nld.xml
point to the appropiate images in the gdm-dzongkhalinux folder.
...........................................................................................................
Working on the splash screen displayed during the boot up process
download splashy_0.1.6_i386.deb from http://linux.softpedia.com
apt-get install libdirectfb-0.9-22
copy background.jpg
error.jpg
to /sarge base/etc/splashy/themes/default/
............................................................................................................
BootSplash
Morphix uses bootsplash by default during the bootup process, where as we are trying to use splashy. So during the installation process, we need to remove splashy scripts from the rc.s and then create the scripts after the installation is complete.
chroot /sarge base
cd etc/rcS.d
ls -la | grep splashy
it displays
lrwxrwxrwx 1 root root 17 2006-03-24 08:58 S02splashy -> ../init.d/splashy lrwxrwxrwx 1 root root 19 2006-03-24 08:58 S10splashy10 -> ../init.d/splashy10 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 S20splashy20 -> ../init.d/splashy20 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 S30splashy30 -> ../init.d/splashy30 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 S40splashy40 -> ../init.d/splashy40 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 S50splashy50 -> ../init.d/splashy50 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 S60splashy60 -> ../init.d/splashy60 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 S70splashy70 -> ../init.d/splashy70
remove S02splashy S10splashy10 S20splashy20 S30splashy30 S40splashy40 S50splashy50 S60splashy60 S70splashy70
cd etc/rc0.d
ls -la | grep splashy
It displays
lrwxrwxrwx 1 root root 18 2006-03-24 08:58 K01splashyZ -> ../init.d/splashyZ lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K10splashy10 -> ../init.d/splashy10 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K20splashy20 -> ../init.d/splashy20 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K30splashy30 -> ../init.d/splashy30 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K40splashy40 -> ../init.d/splashy40 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K50splashy50 -> ../init.d/splashy50 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K60splashy60 -> ../init.d/splashy60 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K70splashy70 -> ../init.d/splashy70 lrwxrwxrwx 1 root root 18 2006-03-24 08:58 S89splashyZ -> ../init.d/splashyZ
remove the splashy files as in the earlier case
cd etc/rc2.d
ls -la | grep splashy
It displays
lrwxrwxrwx 1 root root 18 2006-03-24 08:58 S99splashyZ -> ../init.d/splashyZ
remove the file
cd etc/rc3.d
ls -la | grep splashy
It displays.
lrwxrwxrwx 1 root root 18 2006-03-24 08:58 S99splashyZ -> ../init.d/splashyZ
remove the file
cd etc/rc4.d
ls -la | grep splashy
It displays.
lrwxrwxrwx 1 root root 18 2006-03-24 08:58 S99splashyZ -> ../init.d/splashyZ
remove the file
cd etc/rc5.d
ls -la | grep splashy
It displays.
lrwxrwxrwx 1 root root 18 2006-03-24 08:58 S99splashyZ -> ../init.d/splashyZ
remove the file
cd etc/rc6.d
ls -la | grep splashy
It displays.
lrwxrwxrwx 1 root root 18 2006-03-24 08:58 K01splashyZ -> ../init.d/splashyZ lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K10splashy10 -> ../init.d/splashy10 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K20splashy20 -> ../init.d/splashy20 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K30splashy30 -> ../init.d/splashy30 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K40splashy40 -> ../init.d/splashy40 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K50splashy50 -> ../init.d/splashy50 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K60splashy60 -> ../init.d/splashy60 lrwxrwxrwx 1 root root 19 2006-03-24 08:58 K70splashy70 -> ../init.d/splashy70 lrwxrwxrwx 1 root root 18 2006-03-24 08:58 S89splashyZ -> ../init.d/splashyZ
remove the files
Create a file to start splashy after the completion of installation
cp dzscripts /sarge base/etc/init.d/
dzscripts creates all the links that were removed for splashy right after the installation
cd /etc/rc2.d
ln -s ../init.d/dzscripts S98dzscripts
.....................................................................................................
Grub Splash
gzip splash.xpm
mv splash.xpm.gz /sarge base/etc
cd /sarge base/usr/sbin
vi gengrubmenu2
set splashimage=/etc/splash.xpm.gz
on line 222 add the following line
kernel $image root=$root $user_params quiet vga=791
vi /sarge base/sbin/update-grub
Change Debian to Dzongkha Linux as follows
echo -n "title Dzongkha GNU/Linux, kernel $kernel_version" >> $buffer
..............................................................................................................
Installing sound driver after completing the installation
Try to install the three sound packages after completing the installation process using the dzscripts.
create a local repository inside the sarge base.
mkdir /sarge base/opt/updates
copy the sources.lst files here.
mkdir /sarge base/opt/updatesrepo
copy
alsa-base_1.0.9b-4_all.deb alsa-utils_1.0.9a-4_i386.deb linux-sound-base_1.0.9b-4_all.deb
to updatesrepo folder
cd /sarge base/opt
dpkg-scanpackages updatesrepo /dev/null | gzip > updatesrepo/Packages.gz
..........................................................................................
Finishing Touch
apt-get install lsof
Install totem-gstreamer instead of totem-xine
apt-get install totem-gstreamer
apt-get install gstreamer0.8-plugins
Download samba and samba common from the stable repository
vi /etc/samba/samba.conf
security = share workgroup = WORKGROUP
apt-get -f install //right after installing samba
apt-get install aumix //volume controller
apt-get install gnome-volume-manager
cd /sarge base/etc/ppp
chmod + peers/ -R
chmod 666 chap-secrets
chmod 666 pap-secrets
apt-get install libparted-dev
apt-get install partitionmorpher-0.3-5.i386.deb
.............................................................................
Errors encountered with the Morphix Installer
gcc and g++ has to be pointed to version 3.3 before compiling the Morphix Installer source.
It exits with the line segmentation fault. cd /sarge base/usr/bin rm gcc ln -s gcc-3.3 gcc rm g++ ln -s g++-3.3 g++
compile and install the morphixinstaller now.
To be completed
