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
 

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

reply to topic new topic new poll
Topic: MyDSL Extensions, tips for building and using DSL packages< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 24 2005,18:40 QUOTE

Make A UCI From Any Directory

Here's a little Bash script which (apparently) builds a UCI package from any given directory.  Use the command "scriptname directoryname".  If the script is named "mkuci" and the directory you want to use is "blah", use the command "mkuci blah".

The script currently creates the package in the same directory as the one that contains the "blah" directory, so make sure you are root unless you build a package in /home/dsl.

UCI packages are mounted in /opt, so if you're making a package for an executable program make sure that it will run from /opt/blah

Code Sample
#!/bin/bash
UCINAME=$1
if [ -n "$UCINAME" ]; then
if [ -d "$UCINAME" ]; then
mkisofs -R -hide-rr-moved -cache-inodes -pad $UCINAME | create_compressed_fs - 65536 > $UCINAME.uci
else
echo "There is no directory named \"$UCINAME\""
exit 1
fi
else
echo "Usage: `basename $0` directory_name"
exit 1
fi


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 24 2005,19:20 QUOTE

Multiple Sets Of MyDSL Packages Means Multiple Systems

We all know the usefulness of myDSL packages autoloading into your DSL setup, and specifying different partitions for mydsl during boot allows you to boot with different combinations of apps.  Going one step further, you can organize your application sets into subdirectories and use that directory on the boot line instead of using a different partition for every set of applications.

Using either of these methods, you may run into the issue of "what do I do if I want one or more apps to install in more than one of these combos?".  You could make copies of the myDSL packages and put them into each of your myDSL locations...but that can quickly fill up your disks, particularly with larger packages.
So, fortunately in Linux we have symlinks, which can be used in practically any situation including this one.
Using symlinks you can put all of your myDSL packages into one directory, such as /cdrom/optional, and symlink them to individual directories.  For example, if you have a "games" collection, and an "xfree" collection, but want XFree86.dsl in both, make a directory called /cdrom/games and one called /cdrom/xfree.  Then symlink to /cdrom/optiona/XFree86.dsll from those two directories:
ln -s ../optional/XFree86.dsl /cdrom/games/XFree86.dsl
ln -s ../optional/XFree86.dsl /cdrom/xfree/XFree86.dsl
Using the relative path in the link allows you transfer them later to other partitions or media where "/cdrom" might not apply.
Now you have XFree86 loading with both sets of apps, without having to use a full copy of the package in both directories.
Loading them during boot is as simple as changing the "mydsl=" option.
For "games" you'd use "mydsl=xxx/games", where "xxx" is the boot partition.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Monkey 9 Offline





Group: Members
Posts: 25
Joined: Dec. 2005
Posted: Dec. 08 2005,10:17 QUOTE

Eh....

please forgive me, if it was not meant to post here....

The frugal install is convenient, in this way, that if something does not work out, one can delete backup.tar.gz, and everything is as in the beginning.
But I still cann't figure out how to load apps.
I have saved the apps /mnt/hda7, and they are all there, but the links are gone from the fluxbox menu's and from the desktop  after reboot. And I cann't figure out how to restart them manualy...
The themes in fluxbox are all there, and are usable everytime.
Aslo the extensions from Firefox lost their config, and have to be configured every time I reboot.
I have changed the ownership of the DSL partition earlier, and hda7 is my 'home'..
I tried to create a symlink, but cannot get it visable...
(must be something i did wrong?)

I searched the entire forum, but could not find the answer...
Maybe you can help a little, if it is not to much trouble?

tia....

M9.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 08 2005,15:09 QUOTE

If your apps are stored on /mnt/hda7 then the boot time option of mydsl=hda7 will load the at boot time.

If you are using a frugal grub installed system then you can edit your boot time options by editing the file /cdrom/boot/grub/menu.lst You will have to edit that file as root.

Or if you don't want them loaded automatically then you can use the file manager emelfm to mount /mnt/hda7 and the mydsl load button to load each one.
Back to top
Profile PM WEB 
Monkey 9 Offline





Group: Members
Posts: 25
Joined: Dec. 2005
Posted: Dec. 11 2005,15:35 QUOTE

Quote (roberts @ Dec. 08 2005,10:09)
If your apps are stored on /mnt/hda7 then the boot time option of mydsl=hda7 will load the at boot time.

If you are using a frugal grub installed system then you can edit your boot time options by editing the file /cdrom/boot/grub/menu.lst You will have to edit that file as root.

Or if you don't want them loaded automatically then you can use the file manager emelfm to mount /mnt/hda7 and the mydsl load button to load each one.


This is correct.

One question:
Is it that with copying, in some occasions only the original location is linked, instead of realy copied? (which is imho one of the most clever thoughts of this extremely clever system!)

The more I get into DSL, the more I am astonished and amazed by the clear thinking, this little system is based upon.

Thank you for developing this beautifull, extraordinairy handy OS, which makes old hardware usefull as never before....

M9.
Back to top
Profile PM 
4 replies since Oct. 24 2005,18:40 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: MyDSL Extensions

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