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: Can user.tar.gz write to /usr?< Next Oldest | Next Newest >
Winter Knight Offline





Group: Members
Posts: 146
Joined: April 2006
Posted: Aug. 08 2006,02:52 QUOTE

I have a question. I want to make a uci for mplayer codecs. I figured I would have the codecs in "/opt/mplayer-codecs-essential-20060611". Then I would have /usr/lib/win32 be a symlink that points to /opt/mplayer-codecs-essential-20060611.

But I read somewhere that tar.gz files, while they technically can write anywhere, are only supposed to write to /home/dsl, /tmp, /var, or /opt. I can't find that document anymore, and I can't find anything to dispute it.

Is it okay for a user.tar.gz to write to /usr?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 08 2006,03:37 QUOTE

The answer is no. Not if you expect any of the myDSL functionality to support it. The .tar.gz only writes to the natively writeable areas of a liveCD. Review the color codes on the extension website.
You have two options:
1. Make a .dsl extension. This would use alot of ram!
2. Make a .unc extension. This gives you the best of both UCI and .dsl. It mountable, therefore uses very little ram and yet all areas of the filesystem are available. Of course .unc currently require the unionfs boot code. Hopefully this will be the standard as soon the the firefox issue is resolved.
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 08 2006,03:53 QUOTE

If mplayer itself was created as a uci, it should have been built to use a directory in /opt or in /home/dsl as its codecs directory.  Seems silly to me for a uci to depend on mkwriteable for any of its features.

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





Group: Members
Posts: 146
Joined: April 2006
Posted: Aug. 09 2006,19:25 QUOTE

Ok. So user.tar.gz is not the solution here.

mplayer for DSL-N RC2 (and I assume RC3) looks for win codecs in /usr/lib/win32, then /usr/local/lib/win32. I haven't downloaded mplayer(s) for DSL, so I don't really know what directory they look in. I guess that is another problem that I didn't see, or saw but forgot.

If different mplayers look in different directories, than whichever one I choose will be wrong anyway, at least for a bunch of people. Unless I choose them all.

But choosing them all still won't solve my original problem. .dsl's use a lot of memory, and .unc's don't work by default. I think I'll just not include a symlink, and put instuctions for the user doing so in the info file. That was what I was planning before coming here to make sure the user.tar.gz was not a viable option.

Shame on mplayer for hardcoding the codec directory instead of having it in mplayer.conf, or codecs.conf.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Aug. 10 2006,04:51 QUOTE

Did you try playing around with LD_LIBRARY_PATH ?

The post in http://lists.mplayerhq.hu/piperma....31.html might be helpful.


Also. it seems like some builds allow "codecs" directory to be searched, i.e. "[installed_dir]/codecs" or "~/.mplayer/codecs" I suppose.
Back to top
Profile PM 
4 replies since Aug. 08 2006,02:52 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Can user.tar.gz write to /usr?

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