DSL Ideas and Suggestions :: Install Script for Synaptic
My best guess as to the problem was that some text editors have a "word wrap" mode that will take a long command line and "wrap" it into two separate lines so that something like:
tar -zxvf daaa.tgz dkg sldkfs hkgh jfgohf jo jhesor heo hesohj tohre ho
becomes:
tar -zxvf daaa.tgz dkg sldkfs hkgh
jfgohf jo jhesor heo hesohj tohre ho
and then it will fail. Glad to hear that it is working now.
cbagger01,
Just to say thanks for posting your script....excellent addition
to DSL and just what I've been looking for/trying to do
myself. I hope it makes the future releases (personally I've
re-mastered my own immediately to include it).
Cheers.
You're welcome.
Someday I'm going to attempt a remaster of DSL and include my scripts inside.
Did you encounter any difficulty doing the remaster beyond the standard instructions provided in the "DSL Remaster How-To" that was posted here recently?
Hi cbagger,
Basically I follow most elements of the How-To's but then
remaster quickly and crudely in order to keep the size
small (and still fit on business card disks)....to get your
script in can be very fast...
In summary it's something like this;
Running from a liveCD (or liveCD toram) and having copied
and pasted or downloaded your script;
On my free ext2 partition, say /mnt/hda8, I follow existing
How-To's and make two folders /source and /newcd. I copy
autorun.bat, autorun.inf and index.html into /newcd
and then mkdir a /KNOPPIX directory in /newcd. Into
/newcd/KNOPPIX I copy boot.cat and boot.img.
Then changing into /source I copy /KNOPPIX/* into
here.....(all copying is done cp -Rp to preserve all symbolic
links etc).
So precisely following many How-To's so far (except the above
is for 0.6.+, for earlier versions there's no autorun.* files
etc to copy into /newcd)....
Now though all I do is go through /mnt/hda8/source and copy
in manually anything I want, like say your script. So no
`chroot'ing, or mounting /proc or re-installing dpkg etc.
For your script I would `cd' to
/mnt/hda8/source/home/damnsmall/
and cp /home/damnsmall/.start_synaptic start_synaptic
i.e. copy and rename it without the `.' (if you hide it it'll
just be ignored). When I'm later running live with my
remastering I'll need to rename it prior to use but that
I can live with.....
At this point I can also manually copy in anything else
I want (but I'll have to know all the associated libraries
and depencies).
Then its back to /mnt/hda8 and the two `usual' mkisofs
strings....
So that's
mkisofs -R /mnt/hda8/source | create_compressed_fs - 65536
> /mnt/hda8/newcd/KNOPPIX/KNOPPIX
and
mkisofs -r -J -b KNOPPIX/boot.img -c KNOPPIX/boot.cat
-o myknoppix.iso newcd
So why so crudely?? Just a size issue... Proceeding this
tedious way I can get, for example,
f2c, xmgr, ogle, an old copy of xv and all their libraries
onto a new `50' Mb disk (the final .iso is 52Mb on ls -l
but still writes to the disk.....winner). So that's ~ 10M
more of uncompressed stuff going on.......
Little note; f2c and ogle will only work with DSL prior to
0.6 (f2c can be got going with 0.6.+ but needs a bit
of hacking round in /usr/lib).
So that's how I do mine...........primarily its to get me some
useful things when I'm running off network and some
un`apt-get'able stuff on my live CD. Crude but effective.
As for disk capacity, don't be afraid to explore it, basically
if xcdroast says the .iso is still less than 50Mb then my
experience is that it'll write (and like I say you can squeeze
in 10 MB more of stuff that compresses well).
Okay, hope that helps, cheers, nucpc.
P.S. cbagger01 just to let you know I expect most of the
lengthy reply above is fairly obvious to you but I put it out
just in case its handy for someone else (partial How-To's
are a little annoying).
Cheers.
Next Page...
original here.