writing only to home, tmp, and opt


Forum: myDSL Extensions (deprecated)
Topic: writing only to home, tmp, and opt
started by: clacker

Posted by clacker on Sep. 03 2004,16:49
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?

Posted by clacker on Sep. 03 2004,17:41
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.

Posted by clacker on Sep. 03 2004,18:35
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.

Posted by mikshaw on Sep. 03 2004,19:30
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.

Posted by ke4nt1 on Sep. 03 2004,21:04
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

Posted by mikshaw on Sep. 03 2004,23:53
lintian?
Posted by ke4nt1 on Sep. 04 2004,00:41
Look in /usr/share/lintian , for example ..

This stuff is for debian package management..
It doesn't apply to .dsl or .tar.gz files..

I frequently find them in extensions,
probably from using .debs for making .dsl's and .tar.gz's

73
ke4nt

Posted by mikshaw on Sep. 04 2004,04:23
ah....that would explain why i never heard of it.  I try to stay away from packages as much as I can.
Posted by Happy on Feb. 27 2005,09:36
I'm not much of a linux guru.
but I do need the use of octave for a course I'm doing.
could someone explain the exact procudure they used (including file location) to get octave running on dsl?
thanks


edit:
nm
I was so annoyed at being unable to install octave on SME server (stupid red hat rpm's) that I completely forgot that dsl was debian based...
'apt-get install octave' is sooo much nicer than hunting down several hundred rpm files

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.