Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39
Rep:
su + permissions = nothing
Hi all!
I'm a total Linux n00b who is currently using Fedora Core 4.
I have installed MPLAYER (somehow)and so far so good, but I wanted to add all of the codecs(win32...)so I could enjoy my mpeg,wmv,divx movies. To make a long story short I downloaded Mplayers codec pack, it was a tar.bz2 and tried to extract it to /usr/local/lib/codecs,but it seems I don;t have permission to do this ?
I have even logged in as root using "Su"
and it got me nowhere. What am I doing incorrectly? I couldn't even create a folder to name it codecs in the lib folder either? I swore I was root when I used the "su" command. What gives?Nor was I able to drag the file to the folder either
I'm running out of ideas now and this is hours later. I'd appreciate any input or help.
To make sure you are in fact root, after you 'su -', type 'id'. If it returns 0, then yes you are root. Can you paste the exact error message it says when you try to create that folder in that directory?
Originally posted by xsithlordx Hmm what do u mean by that? I thought I was root when I used the "su" command?
I don't know any other way to log in, this is all very new to me.
There's nothing to be gained by that, it's just more work.
Hmm what do u mean by that? I thought I was root when I used the "su" command?
I don't know any other way to log in, this is all very new to me.
You're right, you ARE root with a su, however, with a
su as opposed to a "su -" you keep the normal users
environment, not that that should impact on permissions,
though.
What exactly is the invocation of tar you're using to
unpack the codecs, from where are you doing it?
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39
Original Poster
Rep:
the file is "essential-20050412.tar.bz2". Its all of the codecs for Mplayer it will allow me to play almost every file type...win32 codecs all of that. I have no idea what to do. This is so crazy. I just want to watch a few videos on my box
Anyways hopefully with ur help I can get this to work. Here are some of my other issues.
How come when I use Yum_extender when I see something I want to install it says they're missing dependencies , like I need to also get those files but they are not included ? I don't understand the logic here? Also I need to edit the yum.conf file but it was read me only. I ws not able to make changes to add repos
I also would like to know how to see my 2 other XP machines and swap files over my network. I had no idea how to do that with SUSE and now I have FC4 its still a problem. Everything I read has just given me more questions. How come there isn't a sticky for these things? BTW the search function is acting weird
I hope I'm not asking for too much, either way I will accept any help and ur good deed won't go unoticed
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39
Original Poster
Rep:
Quote:
Originally posted by twantrd To make sure you are in fact root, after you 'su -', type 'id'. If it returns 0, then yes you are root. Can you paste the exact error message it says when you try to create that folder in that directory?
-twantrd
[cam@localhost ~]$ su
Password:
[root@localhost cam]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=root:system_r:unconfined_t
[root@localhost cam]#
I can't make sense of this. I assume I'm not root since I see a "0" there
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39
Original Poster
Rep:
Quote:
Originally posted by bosewicht no, you are root.
now try
tar xjvf cornbread.tar.bz2
then
cp cornbread/* /usr/local/lib/codecs/
Ok it extracted some where, though when I input the second part I get this message:
cp: missing destination file
Try `cp --help' for more information.
[root@localhost cam]#
Also do I have to make the codec folder? It doesn't exsit yet,is that why it failed?
I noticed that the extracted folder is now in my home folder,it has a small red "lock" over it
Now what? I'm listening attentively
Last edited by xsithlordx; 11-14-2005 at 08:13 PM.
do a ls and it should show you all of your files in the current dir, where you just extracted it too. yours would be "essential/" probably. Those are the files you want to copy or mv to the destination dir.
do you have a /usr/local/lib/codecs/ ? is that where it should go?
try "whereis codecs" without the quotes
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39
Original Poster
Rep:
Quote:
Originally posted by bosewicht do a ls and it should show you all of your files in the current dir, where you just extracted it too. yours would be "essential/" probably. Those are the files you want to copy or mv to the destination dir.
do you have a /usr/local/lib/codecs/ ? is that where it should go?
try "whereis codecs" without the quotes
[root@localhost cam]# ls
Azureus_2.3.0.4_linux.GTK.tar.bz2 essential-20050412
Desktop essential-20050412.tar.bz2
[root@localhost cam]#
the above files are in the home folder,and no there is no codec folder as of yet in /local /lib. I tried to make one manually, but there was no option to do so sadly. I feel like I'm almost there. Can I do this via the terminal(make a folder or directory?)then execute the command?Yes that is where it should go,to answer ur question.
Last edited by xsithlordx; 11-14-2005 at 08:23 PM.
if you are positive that is where mplayer is looking for the codecs, then just do a
mkdir /usr/local/lib/codecs/
then
cp essential-20050412/* /usr/local/lib/codecs/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.