Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Remastering with gtk2< Next Oldest | Next Newest >
spock Offline





Group: Members
Posts: 53
Joined: Nov. 2005
Posted: Feb. 28 2006,00:13 QUOTE

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   :)


--------------
Computers are useless, they can only give you answers.  Pablo Picasso
Back to top
Profile PM 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: Feb. 28 2006,01:30 QUOTE

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
Back to top
Profile PM MSN YIM 
spock Offline





Group: Members
Posts: 53
Joined: Nov. 2005
Posted: Mar. 01 2006,10:19 QUOTE

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   :D


--------------
Computers are useless, they can only give you answers.  Pablo Picasso
Back to top
Profile PM 
winga
Unregistered






Posted: Mar. 14 2006,20:32 QUOTE

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.
Back to top
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: Mar. 14 2006,21:38 QUOTE

Thanks for the tip on the fonts. I had never added those fonts to a remaster before so that's helpful.

Chris
Back to top
Profile PM MSN YIM 
6 replies since Feb. 28 2006,00:13 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Remastering with gtk2

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code