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: (85) </ ... 66 67 68 69 70 [71] 72 73 74 75 76 ... >/

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

reply to topic new topic new poll
Topic: ReMastering HOWTO for DSL, Also for newbies and other enthusiasts< Next Oldest | Next Newest >
zmsc1 Offline





Group: Members
Posts: 7
Joined: June 2006
Posted: Mar. 09 2007,11:07 QUOTE

Quote (zmsc1 @ Mar. 08 2007,13:05)
Hi All,

I've just joined the ranks of DSL remasterers, on a mission like SCOEIT's back around Xmas. I want to remaster a version that starts rdesktop and only runs that. I've spent all day reading through this topic, and I think I roughly understand it. But when it comes to actually remastering, I've hit a silly problem, so I hope someone can advise. I've got through mkisofs successfully (I think) and now need to copy the files with

cp -Rp /KNOPPIX/* source

But the copy insists on confirming every file. And there are far too many to confirm every one with Y and return! I've tried adding the -f switch, but it makes no difference.

Ideas very welcome!

TIA
Stuart

Answered my own question! It shows I'm still a noobie at the command line, the answer is

cp -Rp --reply=yes /KNOPPIX/* source

And I think the reason is that though cp's default is to overwrite without confirmation, if recursion is set, the default changes!
Back to top
Profile PM 
meo Offline





Group: Members
Posts: 552
Joined: April 2004
Posted: April 03 2007,17:25 QUOTE

Hi all remaster fans! Here comes an updated HOWTO used to remaster DSL-3.3.

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.3 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 and in this example I'll use bcrypt. Copy the unzipped directory to home/dsl. It can be found on the bcrypt site. Just google for bcrypt and you'll find it. Here comes the HOWTO:

Install-and-Compiling-RAM-Remaster-HOWTO

#cd bcrypt-1.1
#make
#make install
#cd ..

Now you can delete the bcrypt directory (I usually use Emelfm) and make the directories

#mkdir source newcd newcd/KNOPPIX

Now it's time to copy everything to the source directory

#cp -Rp /KNOPPIX/* source
#cp -Rp /KNOPPIX/.bash_profile source

Now it's possible to add or remove things from the source directory

In this remaster I also included flex-bison-libtool.dsl

#chroot source
#cd home/dsl     (I copied the flex-bison-libtool.dsl here with Emelfm before)
#tar -zxvf flex-bison-libtool.dsl –same-owner -C /
#rm flex-bison-libtool.dsl
#exit

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,
meo


--------------
"Live and let live"   Treat others the way you want to be treated because that's what you should expect from them.

"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire
Back to top
Profile PM 
un-master Offline





Group: Members
Posts: 19
Joined: April 2007
Posted: April 17 2007,22:27 QUOTE

Hi all, long-time DSL user, first post. I am trying to remaster DSL, but istead of adding DSL extensions, I would like to be able to use apt-get, and install kernelsource to compile a kernel with changes.

I am working with DSL 3.3 (non-embedded) and I chose that because I saw that apt-get was easily enabled now. I haven't looked into DSL-N that closely, but 2.4.26 kernel is fine. Another important aspect of this remaster is that I want it to be as small as possible, many packages will be removed.

I am working in VMware with adequate memory and HD reserved. I have an ext2 partition for /source and /newcd created. So far, I am booting in VMware directly from the current.iso with the TORAM option, then copy everything from KNOPPIX/* to /source, then I
Code Sample
chroot /path/to/drive/source
then cd / (which would be the chrooted /source path).

Since I am in command line only, I can (as root) run the desktop menu choice to enable apt with
Code Sample
dpkg-restore
and enable GNU Utilities with:
Code Sample
gnu-utils-restore
I can apt-get several things happily, but one thing I need requires a newer libc6 than the archived/Woody repository.

I can run deselect and easily add the repos for stable, which is switching distro versions. The puzzling part is that I can do all of this (and apt-get install from the upgraded version) but I cannot do it in chroot. I get an error about 'need to temporarily remove e2fsprg (that is from memory, I can't access the exact message now), use Force LoopBreak to do it anyway.

After some searching, I determine this is what it wants before the install (or could put it in /etc/apt/apt.conf):
Code Sample
apt-get -o APT::Force-LoopBreak=yes


So then it runs and actually is looking pretty good, until the end where it gives me this:
Code Sample
/var/lib/dpkg/info/libc6.postinst: line 1: /dev/null: Permission denied
Searching for this error, I see many people getting it when trying to do the initial chroot, and don't have the partition mounted read-write. That is not my problem, because both root and chroot root can
write to there with no problems.

Suggestions? I would also like to know how to enable the mydslPanel.lua from command line, I tried exporting the X display to localhost:0 and then running it, but it did not appear to work (I need that to download kernelsource, though I have it saved locally already). I have seen other posts mentioning remastering from a HD install, and wonder if that may be better for what I am trying to do.

thanks in advance..
Back to top
Profile PM 
un-master Offline





Group: Members
Posts: 19
Joined: April 2007
Posted: April 18 2007,04:37 QUOTE

I am answering my own questions here... The problem with
Code Sample
/var/lib/dpkg/info/libc6.postinst: line 1: /dev/null: Permission denied
was that the /path/to/drive should have been mounted like this before I chroot:
Code Sample
mount -rw /dev/sda1 /path/to/drive  (sda1 in my case, change it for yours)
This is puzzling, because I could read and write to it before, but mounting it with the -rw switch let me continue with apt-get. There is still more testing to be done, but this may have been the problem with seeming to need Force-LoopBreak=yes.

I now seem to have a DSL 3.3 that can apt-get from Debian Stable while chrooted. This could be a problem in the future as the packages and repos change, but if I can get the desired things working, and the unwanted things removed I hope to get it back to an ISO that will not need anything further changed.

Now to see if I can put the pieces back together and get it to boot.
Back to top
Profile PM 
un-master Offline





Group: Members
Posts: 19
Joined: April 2007
Posted: April 18 2007,05:08 QUOTE

While doing Knoppix remasters, it is often needed to mount /proc. In reading further on this, I saw it mentioned that if you cannot apt-get then /proc may need to be mounted. I have not seemed to need to, but the final remaster may tell me more.

While trying to run progs (I am still in chroot) I also tried to run ps and grep for my app, and I got this message:
Code Sample
bash-2.05b# ps aux | grep <app name here>
Error, do this: mount -t proc none /proc


I mounted /proc as instructed above, and I could then grep for my program running.

If I get this going, I promise I will clean up all the intermediate steps, and make it nice and neat!

Does anyone have any suggestions on how load load the kernelsource and gcc1-with-libs dsl files locally (that will work in chroot)?

edit:  mydsl-load /path/to/extension
Back to top
Profile PM 
422 replies since April 14 2004,19:11 < Next Oldest | Next Newest >

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

Pages: (85) </ ... 66 67 68 69 70 [71] 72 73 74 75 76 ... >/
reply to topic new topic new poll
Quick Reply: ReMastering HOWTO for DSL

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