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: (5) </ [1] 2 3 4 5 >/

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

reply to topic new topic new poll
Topic: Mini DSL Remastering HowTo, use at your own risk!< Next Oldest | Next Newest >
Del Offline





Group: Members
Posts: 109
Joined: Dec. 2003
Posted: Feb. 29 2004,05:51 QUOTE

Quick DSL Remastering Howto.

This is completely untested with the new 0.6.x series. I know it worked with
0.5.3. I offer no promises that this will work as desired/expected,
nor do I take any responsibility for any damage it may or may not cause
to you, your computer, your relationships, your cat, etc... In other words,
use this at your own risk. This howto is not endorsed by John, or any other
person who directly has anything to do with Damn Small Linux. It's just a
compilation of techniques gathered from the web by one DSL pseudo-user who
has enough computers and backups to not really care if any data is lost. It
is assumed that you already have some idea what you are doing. If that is not
true, please stop now and read some more forum posts and play with the default
DSL for a few weeks, then come back and try again.

First thing's first, you need 300+ Mb of free space on an existing ext2
partition. To do it right, I'd suggest no less than one Gb of free, formatted
ext2 space. For the remainder of this howto it will be assumed you have a
dedicated partition for remastering DSL located at /dev/hda1 (the first
partition of the first hard disk). You must be root to accomplish this project,
'sudo su' at a command prompt will suffice.

This has been tested on a machine with 256Mb of physical RAM, and about 500Mb
of swap space. I'd suggest having at least 128Mb physical RAM with an equal
amount of swap.

#mount /mnt/hda1
#cp -Rp  /KNOPPIX    /mnt/hda1/
#mount --bind /dev /mnt/hda1/KNOPPIX/dev
#chroot /mnt/hda1/KNOPPIX
#mount -t proc /proc proc
(do whatever it is you did to get your internet connection up and running on the LiveCD)
#dpkg-restore
#vi /etc/apt/sources.list
(change to testing branch)

-- add/remove packages, etc... --

#umount /proc
#ctrl-d
(press Ctrl and 'D' together, to un-chroot)

Make a new directory on /dev/hda1 called NewCD. Copy everything from the DSL CD
to this directory, _except_ for the KNOPPIX compressed image (since this is the
file we'll be replacing with the custom DSL remaster).

Create the compressed image file (your own custom KNOPPIX)

#mkisofs -R /mnt/hda1/KNOPPIX | create_compressed_fs - 65536 > /mnt/hda1/NewCD/KNOPPIX/KNOPPIX  

Now it's time to create the CD image

#cd /mnt/hda1

#mkisofs -r -J -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -o my_custom_DSL.iso NewCd

That's it! You've just whipped up your own custom Linux distribution, with a little
(okay, a lot of) help from other people :) You can now burn this .iso image to a CD
and have a bootable LiveCD of your very own. Of course, if you want to test your
image first (that's probably a good idea) read on...

For testing, you must have a floppy drive for your computer to boot from. Make a boot
floppy from the boot.img you just used in your .iso.

#dd if=/mnt/hda1/KNOPPIX/boot.img of=/dev/fd0

This boot floppy will look for a KNOPPIX file in a /KNOPPIX partition on any partition
when booting up. Since we created a KNOPPIX compressed image in /dev/hda1/KNOPPIX/, that
will do just fine. Stick the floppy in the drive, and reboot the PC, taking care to remove
the Damn Small CD from the cdrom (so it'll boot from the floppy, not the cd).

If it boots up to your customized version of DSL, well, then things worked. If it doesn't,
reread this howto, make sure you're using a version of DSL that it's known to work with
(that'd be 0.5.3), and try again. If it still doesn't work, spit, stomp your feet, and
curse Del who is sitting back and saying "Well, it worked for me.".


--------------
Del
--da da da--
Back to top
Profile PM 
libretto Offline





Group: Members
Posts: 336
Joined: Oct. 2003
Posted: Feb. 29 2004,20:33 QUOTE

Havent had a go yet, but it seems just what is needed, cheers! Better find some blank CDs under all these old DSL disks ;)

--------------
Small Radio,  Small Laptop, DSL Linux
Back to top
Profile PM WEB 
Rapidweather Offline





Group: Members
Posts: 375
Joined: Jan. 2004
Posted: Mar. 01 2004,04:34 QUOTE

I've saved this howto as a file, and I can later bring it up in Scite. Eventually, I'm going to get everything together to try it. I have also the .install_synaptic script, and have run it once, and it works fine. I'm wondering if that could be used in the
remastering procedure, (since it does work great), and as long as we keep the box running we can add more stuff. If all of it works, then the thing could be remastered. (No limit of 50 MB for me.)
Here's another thought. Could the /Knoppix folder that is under development, via
the process of adding and testing applications just be saved in another partition?
I have a big Redhat 9 partition to store it in, but I have found that /dev/hda1 (Windows) is where /knoppix needs to be for the boot floppy to find and run it.
I do that now, with the original DSL /knoppix, off the cd. I copy it to /dev/hda1.
Then, I restore with a 10 MB tarball, in another partition, at /dev/hdb1.
Temporarily keeping the /Knoppix folder that's under development would allow me to shut down the machine, and come back later, put the /knoppix folder back where it can be located, and go at it again. Eventually, I would need to
create a remastered cd, of course (to keep with the program), but would I
if I am doing it this way. As I add programs using Synaptic, will my /knoppix folder follow along? I'm thinking that all the additions are in /ramdisk, not /knoppix, so somehow that might have to be saved as a restorable folder.
-----
Just some thoughts on the possibilities...
-----

???


--------------
Rapidweather Remaster of DSL:
http://www.angelfire.com/ms/telegram/getting_started.html
Rapidweather Remaster of Knoppix Linux:
http://www.geocities.com/rapidweather/getting_started.html
Screenshots:
http://www.rapidweather.com/linuxcdsales.html
Back to top
Profile PM WEB 
Del Offline





Group: Members
Posts: 109
Joined: Dec. 2003
Posted: Mar. 02 2004,04:27 QUOTE

Sorry Rapid, I'm feeling pretty lousy (cold, flu, something...) so I'm gonna come back and reread your post tomorrow when my head's on (more?) straight.

Right off the bat though, it doesn't really matter what partition you actually use. I've done this on a machine with only one partition (hda1) that had DSL hdinstall-ed to it, and just stored the other stuff in /mnt/hda1/KNOPPIX and /mnt/hda1/NewCD. Overall, this really isn't that picky as to where info is stored, as long as it's on an ext2 partition (I've had create_compressed_fs complain when the new filesystem was ext3).


--------------
Del
--da da da--
Back to top
Profile PM 
charpie
Unregistered






Posted: Mar. 02 2004,04:31 QUOTE

I tried it twice and well everything works fine to create the KNOPPIX file. I did not create the iso. I did try to boot using a disk dd floppy of dsl 6.1 to boot the knoppix file on my partition..it work great except for one little thing : my mouse does not work at all. It is an optical usb mouse. Normally it works fine booting on the original KNOPPIX file which i have extracted from the original iso. Somehow the remaster creates a KNOPPIX file that does not recognize my mouse.

Also I can't apt-get synaptic, however i did install mozilla with no problem.

Anyone can help!!

My aim was to try to remaster it to produce a cd with firefox and thunderbird already insatll and ready to go from a minidisk. Then i would save my config on a usbdrive using rapidweather genaral howto!

I am new in linux and i find it a bit difficult to progress and understand how things works. So far i got the menu, the xinit and the icon. I cannot figure out how to have the icon on at boot up?

Any help is appreciated! Cheers.
NOSPAMdjig2000@hotmail.com
Back to top
24 replies since Feb. 29 2004,05:51 < Next Oldest | Next Newest >

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

Pages: (5) </ [1] 2 3 4 5 >/
reply to topic new topic new poll
Quick Reply: Mini DSL Remastering HowTo

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