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

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

reply to topic new topic new poll
Topic: development distro assistance?, help needed for modifying dsl-embedded< Next Oldest | Next Newest >
marc_island Offline





Group: Members
Posts: 4
Joined: July 2005
Posted: July 18 2005,01:59 QUOTE

Ok, I've been searching through the forums, and every solution i've tried hasn't worked. Maybe it's because i'm using dsl 1.3, maybe it's because i'm a moron . . . who knows?

hopefully this isn't in the wrong area

well my goal is to create a usb development suite. So the gcc, g++ jazz, and the qt libraries would be nice.

Unfortunately, no matter where i place the dsl files, they aren't automatically loaded on startup. /root and /opt were recommended and proved fruitless.

And the descriptions i've found for remastering the distrobution involve using linux outside of dsl . . .
unfortunately i'm running windows, so it's a whole different can of worms.

I was hoping maybe someone would be able to guide me towards my goal? Obviously a full remaster would be a cleaner solution, but i don't mind dirty ones so long as I can compile right after booting.

thank you in advance
Back to top
Profile PM 
mgmont Offline





Group: Members
Posts: 77
Joined: April 2005
Posted: July 18 2005,03:17 QUOTE

I don't know how you have DSL installed, but you need to be sure that you designated a partition for backup/restore.  Some of the apps that you want probably involve more that just the base application.  For instance you may have the base application that you moved to root or some place you have designated for persistancy, but the install also added libraries needed for the application in places like /usr/lib.  If you do not also save and restore these files, your application will not work when you reboot.

I had a similar problem when I wanted to add "aumix" which I downloaded from Debian.  It included multiple library files.  What I ended up doing was to add the line "usr/lib" (without quotes) to filetool.lst.  This has the effect of backing up all the files and subdirectorys within usr/lib.  I know this backs up a lot more than I need, but it was a quick and dirty method and it works.

I hope this helps.
Back to top
Profile PM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: July 18 2005,04:41 QUOTE

marc,

I'm guessing that your confused about /root and /opt ..

For storing extensions, and having them self-install at boottime,
you need to use the "root" of whatever partition you use to store things.

e.g /mnt/hda2 <--  this is the root of your /dev/hda2 partition

NOT the /root directory in linux , this is for user root files only.

Same with placing them in /optional for menu accessability.
They would go into /mnt/hda2/optional , NOT /opt ,
which is for operational files, not extension storage.

If you used e.g /dev/hda2 for extension storage,
you could use this line at boottime.

dsl mydsl=hda2

Then DSL would know to look in /mnt/hda2 for any extensions to load,
and look in /mnt/hda2/optional for any extensions to add to menu.

73
ke4nt
Back to top
Profile PM 
marc_island Offline





Group: Members
Posts: 4
Joined: July 2005
Posted: July 18 2005,10:56 QUOTE

wow - thank you guys so much for such a quick and friendly response!

ok, i guess a little more background info is required for my goals:
As much as I love the idea of booting directly from the usb key and getting that sweet speed, It jsut doesn't seem that practical when so many computers have interesting quirks about booting options. And a lot of public computers don't allow you to reboot anyways (some library terminals come to mind), so qemu is the way I went.
So the way I installed dsl is getting the dsl-embedded 1.3 zip that includes qemu, the dsl image, and the harddisk image, and unzip it to a 128 MB key (if i require more space, i can move it to a 512)

to mgmont:
I may be mistaken, but i thought that the dsl packages were similar to rpm and deb packages, they just install very nicely on dsl. So if i stored the dsl package in a saved folder and loaded them on boot-time, then they would install to all of the temporary subdirectories and such. If i installed them, then added *every* directory where files were added/changed, then i wouldn't need to keep the .dsl file at all?
Of course, both have disadvantages. . . saving the dsl file will take extra space and extra time at boot to install. Where as saving all of the directories in the .filetool.lst takes extra time at bootup to restore the backup for each directory, and backs it up everytime you shut it down.

and for ke4nt1:
ok, i take it I'm screwing myself over with using qemu in terms of your directions. I thought it mounted the harddisk image as /mnt/hda . . . so I cannot access /dev/hd2 (unless you meant for me to download the .dsl file directly to the usb key outside of dsl, in which case i'd need to move to a larger usb key)
Mydsl will not download the dsl file for gcc to /mnt/hda, so i download to tmp and try to move it there after as super user. But it says that I don't have any space there! (the harddisk image is 60 megs, and gcc.dsl is around 15 i think . ..  should be plenty of room)

so does it look like my best option is to install these things, then just add all of the directories to .filetool.lst ?
Or can we just bug the creators of dsl to provide a dl for a development iso?  :p
Although, if someone were to help me remaster one, I could probably find somewhere to host it for others, or set up a torrent . . .

Thanks again for being so quick and courteous!
Back to top
Profile PM 
mgmont Offline





Group: Members
Posts: 77
Joined: April 2005
Posted: July 18 2005,22:23 QUOTE

OK, marc_island, I guess I did not read your post close enough.  Please bear with me as I am fairly new at using DSL myself.  If I lead you astray, there are a lot of helpful and knowledgeable people like Ke4nt1 that will straighten me out and we will both learn.  At any rate here is what I understand about "DSL under qemu".

It was written to fit on a 128mb usb key.  It is divided into two partitions hda and hdb  roughly half is devoted to hda and the other half to hdb.  In order to keep DSL apps, you need to create an directory called optional at the root of hdb.  Also I found that I needed to modify the dsl-windows.bat file and add "dsl mydsl=hdb" within the append part of the start command so that the bat file looks like this:

REM Start qemu on windows.
@ECHO OFF

START qemu\qemu.exe -L qemu/ -enable-audio -localtime -kernel linux24 -initrd minirt24.gz -hda KNOPPIX/knoppix -hdb qemu/harddisk -append "qemu sb=0x220,5,1,1 frugal quiet dsl mydsl=hdb"

CLS
EXIT


If you start DSL with this bat file, you can move your downloaded dsl apps from /tmp to the root of hdb (/mnt/hdb) if you want them to auto install when you bootup next time or you can move them from /temp to /mnt/hdb/optional which will not install them at bootup, but will create a menu option where you can install them at will.

To my knowledge, all the files with .dsl extensions will work correctly this way.  The thing that I was trying to explain in my first post is that if you down load something from Debian using apt-get which will not have the dsl extension, you may have supporting libraries and such also installed in addition to the application.  Since you are trying to make a development system, I would suspect that you might want some of the Debian apps.

Also with the size of hdb only about 60mb, you might want to resize it to a larger size.  I have not tried this myself, but there are write ups here in the forums that tell you how to do this.

I hope this explanation helps and I have not lead you to far astray.  

Ke4nt1 or anyone else, please straighten me out and correct anything I may have wrong.

Good luck,

Mel
Back to top
Profile PM 
6 replies since July 18 2005,01:59 < Next Oldest | Next Newest >

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

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: development distro assistance?

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