Gtk2 :: Remastering with gtk2
Hi there !
Maybe I'll find the solution to this alone but I thought it might be an interesting topic to share...
So here's the problem : I have a frugal install of DSL 2.2b with ten extensions loaded at boot. XFree86 (with the driver for my touchpad), gtk2, gkrellm, extra fonts, myconf.tar.gz and my own Firefox 1.5 and Thunderbird extensions in French. Uncompressing all this during boot takes about a minute, so I thought it might be a good idea to do a remaster. To cut shorter the boot time and avoid loading by default .dsl extensions. Now this is what I did :
Boot dsl from frugal with cheatcodes 2 base norestore vga=792 nodhcp toram
#mount -rw /dev/hda6 /mnt/hda6 (my Ubuntu home partition with lots of free space)
#mount /dev/hda3 /mnt/hda3 (with mydsl extensions)
#mkdir /mnt/hda6/source
#mkdir /mnt/hda6/new
#mkdir /mnt/hda6/new/KNOPPIX
#cp -Rp /KNOPPIX/* /mnt/hda6/source
#cp -Rp KNOPPIX/.bash_profile /mnt/hda6/source
Copied my extensions from /mnt/hda3 to /mnt/hda6/source/home/dsl
#chroot /mnt/hda6/source
#cd /home/dsl
#su dsl
Loaded all extensions with mydsl-load
$exit (user dsl)
#exit (the chroot)
Deleted the extensions in source/home/dsl
#mkisofs -R /mnt/hda6/source | create_compressed_fs - 65536 > /mnt/hda6/new/KNOPPIX/KNOPPIX
Deleted the source directory and replaced the original KNOPPIX file with the new one.
This took about 20 minutes, I wanted something I can do quickly with every new release of DSL.
As I expected the boot time has been cut down by almost a minute, and everything works fine except the fonts in Gtk2 applications look horrible. My .xinitrc did /usr/bin/start_gtk2 I could see it on the screen just before X started, but...
Is anyone here doing something similar, or has an idea of what could be wrong ?
Thanks
I've greated a gtk2 version of DSL 1.5 in the past. I recommend you run the start_gtk2 in the chroot environment then it never needs to be run again.
Chris
Thanks a lot Chris for pointing to that. However running start_gtk2 in the chroot was only part of the solution. I had to create the symlinks to my font paths there as well :
ln -s /opt/msttcorefonts/TrueType /usr/share/fonts/msttcorefonts
and so forth. It's all logical because /usr is now read-only.
For everyday use this is Devine Small Linux ! Thanks a lot again to John and Robert.
Thierry
Thanks for this helpful posts. I have a question though. I tried doing a similar thing but I want it to actually boot xfree by default. I was wondering how you handled that along with the config file for it. I was also thinking of writing a script or something that loads the correct xfree based on the video card. That would come later. For now I just want to set it up to take off with my nvidia. I tried hack'n the xsetup.sh file up some but I didn't get it right.
Thanks for the tip on the fonts. I had never added those fonts to a remaster before so that's helpful.
Chris
Next Page...
original here.