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: writing only to home, tmp, and opt, making "green" dsl files< Next Oldest | Next Newest >
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Sep. 03 2004,16:49 QUOTE

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?
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Sep. 03 2004,17:41 QUOTE

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.
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Sep. 03 2004,18:35 QUOTE

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.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 03 2004,19:30 QUOTE

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.


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





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Sep. 03 2004,21:04 QUOTE

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
Back to top
Profile PM 
8 replies since Sep. 03 2004,16:49 < 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: writing only to home, tmp, and opt

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