If you want to remaster DSL, but asked your question at wrong place, a typical answer is "as stated we already have a remastering thread." So, basically the only options you have is to "read through this lengthy thread, which has been kept updated over the last couple of years". As of 2007.01.21, the thread is nearly 3 years old, and already has 68 pages.
If you want a bare-bone version of the 68 pages, read on…
> I'm trying to figure out a few things surrounding 'remastering'. > What can you do with 'mkmydsl' that can't be done with Meo's 'remastering > how-to's'? And visa-versa?
I'm sure this has been answered somewhere in this thread… but here's some info:
documented on: Jan. 01 2007, thehatsrule
http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?act=ST;f=2;t=16501;hl=mkmydsl
mkmydsl allows to include extensions in a custom iso but you can't use it to remove apps in DSL base. Such a feature will:
documented on: Dec. 12 2006, Selim
http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?act=ST;f=23;t=16023
This is a preliminary, pre-beta, not-for-serious-use script! I haven't tested it at all, except to check the command syntax.
This script will be used for traditional harddrive installs and for remastering, to remove unwanted applications.
documented on: Nov. 10 2006, mikshaw
http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?act=ST;f=12;t=7177;hl=new;st=0
First of all I want to make clear that I'm not taking any credit for these remastering HOWTOS. I have just kind of "translated" posts from nucpc and Del so that even a newbie or a selflearned DSL-enthusiast (as myself) might understand HOWTO get into the wonders of remastering DSL. As you can se of the instructions below my "playaround partition" is hda3 (if you have another just replace hda3 with your own).
Start by running from the live DSL-cdrom
Become root and mount the right partition
$sudo su #mount -rw /dev/hda3 /mnt/hda3
Make the directories needed
#mkdir /mnt/hda3/source #mkdir /mnt/hda3/newcd #mkdir /mnt/hda3/newcd/KNOPPIX
Copy necessary files to directory /newcd
#cp -Rp /cdrom/autorun.bat /mnt/hda3/newcd #cp -Rp /cdrom/autorun.inf /mnt/hda3/newcd #cp -Rp /cdrom/index.html /mnt/hda3/newcd
Copy files to directory /newcd/KNOPPIX
#cp -Rp /cdrom/KNOPPIX/boot.cat /mnt/hda3/newcd/KNOPPIX #cp -Rp /cdrom/KNOPPIX/boot.img /mnt/hda3/newcd/KNOPPIX
Copy the sources to the right directory
#cp -Rp /KNOPPIX/* /mnt/hda3/source #cp -Rp /KNOPPIX/.bash_profile /mnt/hda3/source
Go through and copy wanted things to /mnt/hda3/source
I usually keep scripts, studyprojects and whatever I want to have handy in a directory on a usb-drive. That makes it easy to copy it to what will be the home directory on the live cd. In that way all I have to take along is the live cd, knowing it's all right there (and perhaps some favorite mp3's on the usb-drive):
(Don't forget to mount your usb-drive first with mount.app if you try this)
#cp -Rp /mnt/sda1/Docs/* /mnt/hda3/source/home/damnsmall
Create the custom compressed image file:
#mkisofs -R /mnt/hda3/source | create_compressed_fs - 65536 > /mnt/hda3/newcd/KNOPPIX/KNOPPIX
Create the iso-file as follows:
#cd /mnt/hda3 #mkisofs -r -J -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -o myknoppix.iso newcd
Copying your new iso-file to another partition to be able to burn it First be sure that you have mounted the target partition (You can use the mount.app)
#cp /mnt/hda3/myknoppix.iso /mnt/hda1
Now just burn the iso with whatever software you have installed in the target partition.
It can surely be done in many ways, but this is the way I do it
Mount, copy and chroot
$sudo su #mount /mnt/hda3 #cp -Rp /KNOPPIX /mnt/hda3 #mount --bind /dev /mnt/hda3/KNOPPIX/dev #chroot /mnt/hda3/KNOPPIX #mount -t proc /proc proc
(Connect to internet)
#dpkg-restore #nano /etc/apt/sources.list (Change to the testing branch)
Add and remove packages to your liking
#umount /proc #ctrl+D #mkdir /dev/hda3/newcd (Copy everything from cd except the KNOPPIX image to this directory )
(See the previous HOWTO if you are uncertain)
Create the custom compressed image file
#mkisofs -R /mnt/hda3/KNOPPIX | create_compressed_fs - 65536 > /mnt/hda3/newcd/KNOPPIX/KNOPPIX
Create the iso-image
#cd /mnt/hda3 #mkisofs -r -J -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -o my_custom_DSL.iso newcd
Testing the new KNOPPIX-image
Make a boot-floppy
#dd if=/mnt/hda3/KNOPPIX/boot.img of=/dev/fd0
Boot with this floppy to try if your new KNOPPIX-image works (Then burn it if you like)
I must point out that I have not done it this way myself yet, so I can't tell if I got it wrong. If I have got it wrong please post a correction in this forum. This HOWTO is derived from a post by Del and I might have missed out in the "translation". If so keep me posted!
I hope this post will be useful for some that would like to get into the wonders of remastering DSL (this wonderful little distribution of linux) and making their own personalized copy of it.
Have a lot of fun (as I have had),
documented on: April 14 2004, meo
http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?act=ST;f=12;t=7177;st=305
With the newer versions of DSL there also has come new possibilities to make remasters. Personally I made the following type of remaster from an usb pendrive. I unzipped DSL-Embedded 3.1 directly to the drive. Then I created a mydsl directory containing gnu-utils.unc and gcc1-with-libs.unc and booted the drive with the following cheatcodes: norestore and xsetup. Once up and running it is possible to compile source code.
#mkdir source newcd newcd/KNOPPIX #cp -Rp /KNOPPIX/* source #cp -Rp /KNOPPIX/.bash_profile source
Now it's possible to add or remove things from the source directory
The following step is to make the compressed KNOPPIX file
#mkisofs -R source | create_compressed_fs - 65536 > newcd/KNOPPIX/KNOPPIX
Now you have the both unc-files and bcrypt inside the KNOPPIX file. So just by removing the old KNOPPIX file from your usb pendrive and replacing it with the new you will have the capabilities of compiling source code and encrypting files with bcrypt. So the principle is that unc-files that are mounted will get transferred to the source dir when you do the:
#cp -Rp /KNOPPIX/* source
This is the way I've done it but it can probably be done in other ways but it really is an easy way to make a remaster. This works with unc-files but not with uci-files because the uci-files are selfcontained and doesn't get transferred to the source directory.
As always have fun remastering DSL,
documented on: Dec. 06 2006, meo
Hi all remaster fans!
I just made a remaster of DSL 3.2 RC3 and it seems to work just fine. I used the principles of the HOWTO on page 62 doing this remaster.
documented on: Jan. 09 2007, meo
First off - thanks for all the work.
Now could a linux dummy ask you to help cut the extreme confusion that's grown through reading the last 62 pages and ask you to condense one point.
My remaster worked, but gnu-utils did not get loaded on the remaster. can you summarized the steps I'd have to take prior to doing the remaster to make sure gnu-utils load?
> how you did the remaster
Here goes (sorry for the length of the post, but wanted to give you all the details): http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?act=ST;f=12;t=7177;st=310
documented on: Dec. 20 2006, SCOEIT
Check it out, extremely detailed step by step DSL ReMastering!
The right answer to the problem is at http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?act=ST;f=12;t=7177;st=320
I'm kind of puzzled that it doesn't work as you want because gnu-utils.dsl should be there in the remaster according to your description. But if it has to be reloaded in order to work there is a very easy way to do that.
If you want to reload it directly from the cd just put a directory called mydsl containing gnu-utils.dsl (or gnu-utils.unc witch is a low-ram variant of gnu-utils) on the cd. Just copy it to the newcd directory before making the iso file and it will end up in the root of the cd and load at boot.
Another way of doing it is to copy the mydsl directory with gnu-utils.dsl in it onto an usb pendrive because DSL will look for a mydsl directory on at least any removable media. So give it a try and tell me how it works out!
documented on: Dec. 21 2006, meo
If you are just missing gnu-utils, you can load the .unc version before remastering,
or extract the .dsl to /mnt/hda3/source
Follow this procedure with all the modules so they all end up in /mnt/hda3/source/home/dsl
#chroot source #cd home/dsl
OBS! Make sure there are two hyphens "-" before —same in same-owner. I doesn't look so in the standard firefox browser.
#tar -zxvf gnu-utils.dsl --same-owner -C / #rm gnu-utils.dsl #exit
documented on: Dec. 21 2006, ^thehatsrule^