myDSL Extensions (deprecated) :: writing only to home, tmp, and opt



I want to turn a dsl I made for the octave math program into one that can be run from only the home, tmp, and opt directories.  I'm halfway there.  So far I have a working octave.dsl, which I moved under the opt directory, and I set up an export LD_LIBRARY_PATH="blah blah blah" in a shell script.  It ran fine from this new directory.  I am assumed that it was as simple as tarring the home, tmp, and opt directories I had made, but it wasn't.  When I tried to install the new dsl from the mydsl button in emelfm, it couldn't write to the /opt directory.  Could someone explain to me how this is done?  Does something need to be added or changed?

I'm also curious about wrappers.  People talk about them, but I don't know where to place them.  Do you load them from your menu item entry, or do they run themself on loading?

another piece of information is that this didn't work:

started dsl fresh from the live cd
placed the dsl-aterm.tar.gz file into a temp directory
cd to the temp directory
tar -xzvf dsl-aterm.tar.gz
rm dsl-aterm.tar.gz
tar -czvf dsl-aterm.tar.gz *
then I tried to load that file using the button in emelfm and it didn't work.  I got the error permission denied for /var/tmp/menu.418.  Yet when I look at the permissions for /tmp/mydsl.menu/aterm, it is 644 (-rw-r--r--) owner dsl group staff.  It does show the aterm icon, however.

for crying out loud!  It's always the same thing with me!  After you make the tar file, run:

tar -tzf octave.tar.gz | grep -v "\/$" > files
rm octave.tar.gz
tar --no-recursion --numeric-owner -czvf octave.tar.gz -T files


This strips away the creation of directories from the tar.

the grep -v "\/$" echos every line that doesn't end in a / (ie anything but directories)

I want to say that I'll learn, but I obviously don't.

seems you worked out the directories thing.

Wrappers: they won't run themselves, so yes, you'll need to point the menu item/icon to the wrapper and have the wrapper launch the application.

clacker,
I normally use " tar -ztf whatever.dsl > w.txt "

Then I LOOK in the text file using scite for things to remove.

The problem I find with removing EVERYTHING that ends in a /
is when an EMPTY directory needs to be created.

For example, a program may need to see a sub-directory
called "plugins" , but it is empty for now..
Nevertheless, when it boots, it will scan this dir for any
plugins you might have installed, and error if it does not find it.

Plus, you get a chance to pullout all the BUNK often found in
many programs, like /usr/lib/menu stuff, which is for XF86, and
not used in DSL, or the lintian stuff, again not needed for DSL.

Then, use the ..
" tar -T w.txt  --no-recursion --numeric-owner -cvf- | gzip > whatever.dsl "
or whatever syntax you use, to put it back together cleanly...

My thoughts..

Happy Holiday
73
ke4nt

Next Page...
original here.