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

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

reply to topic new topic new poll
Topic: Struggling to Remaster, Need DSL to completely load into RAM< Next Oldest | Next Newest >
casio Offline





Group: Members
Posts: 41
Joined: Sep. 2005
Posted: Sep. 28 2005,11:47 QUOTE

Since I posted my last question on this thread , I am trying to get all of the files that uucp needs for it to work. At the moment I have created a list of files by using dpkg --contents <deb file> >>uucpfiles. However this is becoming 1) time consuming and 2) possible problomatic as some of the files are Symbolic links which as far as I can tell , tar will not understand.

Can someone please help me on making this an easier task as I dont even know if this current effect is going to work and I really do need to use DSL.

Regards

Casio


--------------
Regards

Casio

Please fill free to visit my website : http://www.timcs.co.uk
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Sep. 28 2005,12:39 QUOTE

casio, if you have all of the deb files, you can load them into a dsl file the same way that the alsa.dsl does it.  Put those deb files into a directory (say /opt/uucp) and make a menu item "install uucp" with an /tmp/mydsl.menu/uucp entry something like this:

[exec] (install uucp) {rxvt -rv -T "uucp install" -e sudo dpkg -i /opt/uucp/*.deb}

If the dpkg-dsl package has already been loaded then this will use dpkg to load the debs.  This won't happen automatically, but will run when you choose the menu item.

If you are remastering you could chroot and install your debs that way.  This is how I make my remasters:

Code Sample
mkdir source
cp -Rp /KNOPPIX source
cp /wherever/dsl-dpkg.dsl source/KNOPPIX
cp /wherever/gnu-utils.dsl source/KNOPPIX
cp /wherever/*.deb.deb source/KNOPPIX
chroot source/KNOPPIX
mount -t proc /proc proc # not always needed
mydsl-load dsl-dpkg.dsl
mydsl-load gnu-utils.dsl
dpkg -i *.deb
rm dsl-dpkg.dsl
rm gnu-utils.dsl
rm *.deb
umount proc # not always needed, only if you mounted proc
<CTRL> D


The nice thing with this method is you don't need to load to ram since that source/knoppix directory isn't a link to the CD.  It gets rid of a lot of my deb loading errors caused by locked files and symlinks.

Another option would be to make a shell script that would run at the start of xwindows like dillo does.  Then it would start automatically in your remaster.

You can try using the deb2dsl script, but if uucp does things like adding users and groups this won't work.  For lots of simple things it does though.

The fourth option is to use the find command to locate all of the files that changed or were added after you ran dpkg.  I first load gnu-utils.dsl package because the find in busybox doesn't have all of the commands.  Then I do:

touch mymarker                     #as a starting timestamp
sudo dpkg -i /wherever/*.deb   # load the debs
sudo find / -cnewer mymarker | grep -v "\/proc\/" > files

Then look through files and keep what you want.
Back to top
Profile PM 
casio Offline





Group: Members
Posts: 41
Joined: Sep. 2005
Posted: Sep. 28 2005,14:06 QUOTE

Clacker thanks for your detailed reply!. One question I need to ask is this, if I try and install  any one of deb files manually,it grumbles that the other(s) are not installed. how do I get around this and how is apt-get getting around this?

The packages that I ask apt-get to install are postfix and then uucp. postfix then as part of its own installation, installs several other deb files. The complete list of deb files that are downloaded are as follows:

cron_3.0pl1-72_i386.deb                   postfix-ldap_1.1.11-0.woody3_i386.deb
libldap2_2.0.23-6.3_i386.deb              postfix-pcre_1.1.11-0.woody3_i386.deb
liblockfile1_1.03_i386.deb                postfix_1.1.11-0.woody3_i386.deb
libpcre3_3.4-1.1_i386.deb                 uucp_1.06.1-18_i386.deb
mailx_1%3a8.1.2-0.20020411cvs-1_i386.deb  

So the main question is, how do I tell dpkg to install the packages in the right order?

Regards

Casio


--------------
Regards

Casio

Please fill free to visit my website : http://www.timcs.co.uk
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Sep. 28 2005,22:24 QUOTE

casio, once I have all of the deb packages I need (say I saved them from before) I add them all at the same time with the sudo dpkg -i *.deb command.  If I got them using apt-get in groups, say uucp first and the eudora, I would add them in groups by placing each of the sets of debs I downloaded into separate directories and then running sudo dpkg -i uucp/*.deb and sudo dpkg -i eudora/*.deb.  The *.deb expands so that all of the deb files wind up being installed at the same time by the dpkg command.

As far as I can tell if you put all of the debs in the same place and install them all at once, dpkg understands that there is a required order and loads them in that order.  That's what I've seen when I've done it.
Back to top
Profile PM 
casio Offline





Group: Members
Posts: 41
Joined: Sep. 2005
Posted: Sep. 29 2005,08:21 QUOTE

Thanks again clacker for your help on this. Just one final question (hears groans  :D ) in you set of commands to do regarding the remastering instructions you have a line that says this:

cp /wherever/*.deb.deb source/KNOPPIX

Is this correct in how it should be typed?

Regards

Casio


--------------
Regards

Casio

Please fill free to visit my website : http://www.timcs.co.uk
Back to top
Profile PM 
32 replies since Sep. 22 2005,13:29 < Next Oldest | Next Newest >

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

Pages: (7) </ 1 [2] 3 4 5 6 7 ... >/
reply to topic new topic new poll
Quick Reply: Struggling to Remaster

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