LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mplayer only works as Root (https://www.linuxquestions.org/questions/linux-newbie-8/mplayer-only-works-as-root-357507/)

ArthurDent 08-27-2005 10:10 AM

Mplayer only works as Root
 
Hi All,

I am am happy FC3 user. In fact I have used all Fedora versions and some of the Red Hat versions before that. I have never had any real trouble with Mplayer.

I am trying out FC4 in a test partition before switching full-time but I still have quite a few problems. One of them is Mplayer.

I installed Mplayer (and GMPlayer etc) using Yum (with the Livna repositories).

Installation went without a hitch. It put the usual icon in the usual menu place. However starting it from the menu results in nothing. If I open a terminal, su to Root and type "gmplayer" it works fine. If I start it from a terminal in my normal user account I get the following:
Code:

[mark@localhost ~]$ gmplayer
MPlayer 1.0pre7-4.0.0 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0



vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
[skin] file ( /usr/share/mplayer/Skin/default/skin ) not found.
Skin not found (default).
[mark@localhost ~]$

Any ideas why this is happening?

I have never had to make any changes to startup scripts in the past (I don't even know how to do this).

Thanks

Mark

trickykid 08-27-2005 10:22 AM

Did you download skins that are required for the gmplayer?

[skin] file ( /usr/share/mplayer/Skin/default/skin ) not found.
Skin not found (default).

Also, does just simply doing mplayer <media-filename> play the video or media file for your user?

ArthurDent 08-27-2005 10:47 AM

I didn't download skins - but the skin "Blue" is present in the /usr/share/mplayer/Skin/ directory (and that is the standard one that I am happy with). There is indeed no "default" in that directory but I think that the "Blue" skin is the same.

Yes, doing "mplayer <filename> works as a normal user.

Any suggestions?

Thanks

Mark

slackie1000 08-27-2005 11:23 AM

hi there,
and running as root, what message you receive when mplayer tries to get the skin?
does it load from the same directory, i.e.,/usr/share/mplayer/Skin/ ?? could it be a permission problem?
what happens if you set a symbolic link between default and blue in this directory?
regards,
slackie1000

ArthurDent 08-27-2005 11:35 AM

Opening gmplayer as root gives no error message about the skins (but I think I selected the "Blue" skin when I was playing with it).
Code:

[root@localhost mark]# gmplayer
MPlayer 1.0pre7-4.0.0 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0



vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.

Exiting... (Exit)
[root@localhost mark]#

However, I think that the skins issue is not the real problem.

I have also installed RealPlayer (I use this in particular for audio on the BBC website) again, this has never given me a problem in the past (just install it and link the two file nphelix.so & nphelix.xpt to the "plugins" directory of the browser and hey presto!...)

Now - in FC4 - however I get the following error:
Code:

[root@localhost mark]# realplay
/usr/local/RealPlayer/realplay.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Sound itself is not an issue. I can play music etc. and, if I load MPlayer as root, I can get sound & video just fine - just not as a normal user...

Mark

slackie1000 08-27-2005 11:42 AM

hi there,
i will try to make general suggestions cause i don't use fedora. ;)
the directory and the file exist?
Code:

/usr/local/RealPlayer/realplay.bin
do you have this file in your system?
Code:

libstdc++.so.5
if not, install it. if yes, be sure that the path where is this file is in your
Code:

ld.so.conf
run ldconfig again it you change it.
can you try some other video format that is not RealPlay with your non-root user? if it works, we know where the problem is. ;)
regards,
slackie1000

ArthurDent 08-27-2005 03:49 PM

Well RealPlayer seems there OK...
Code:

[root@localhost mark]#ls /usr/local/RealPlayer/
codecs  doc  LICENSE  plugins  README    realplay.bak  share
common  lib  mozilla  postinst  realplay  realplay.bin

[root@localhost mark]#whereis realplay
realplay: /usr/bin/realplay
[root@localhost mark]#

But I don't have libstdc++.so.5, I have so.6 instead...

Code:

[root@localhost mark]#locate libstdc++.so.
/usr/lib/libstdc++.so.6.0.5
/usr/lib/libstdc++.so.6

What does libstdc++ do?
Could I just get a copy of libstdc++.so.5 and put it in that directory?
Should RealPlayer (I installed it from RealPlayerGOLD10.rpm from their website) work with libstdc++.so.6?

And what of MPlayer? Is that a related problem or are these two completely different issues?

Thanks

Mark

slackie1000 08-27-2005 04:08 PM

hi there,
hummm. ..that is what i wrote before ... :confused:
find another media file - not RealPlayer type - and fire mplayer as non-root user ...
only then, we can isolate the problem: Mplayer or RealPlay.
yes, the library version can be the problem...
if you don't know what it is, take a look at the first hit from google.
regards,
slackie1000

ArthurDent 08-27-2005 04:15 PM

Quote:

if you don't know what it is, take a look at the first hit from google.
Well I hope that makes more sense to you than it does to me....

Does this have anything to do with the fact that FC4 uses GCC4x not GCC3x? (Although both packages were installed from rpm - not compiled from source...)

Sigh...

I think I will just have to stick with FC3 for a while longer...

Thanks

Mark

slackie1000 08-27-2005 04:26 PM

hi there,
you are welcome. :cool:
Quote:

Originally posted by ArthurDent
Does this have anything to do with the fact that FC4 uses GCC4x not GCC3x? (Although both packages were installed from rpm - not compiled from source...)

i think that is exactly the point. the gcc/++ compiler and the gcc/++libraries are the blood of your system. if a package - like the rpm that you got - is compiled against another version this can bring a big mess to your system. i don't know specifically in the case of RealPlayer how the dependencies and required libraries are checked but i don't think that their provided rpm is supported in FC4.
hope you can solve your problem with FC3.
just :twocents:
regards,
slackie1000
[edit] i think this can be interesting for you. Mplayer has no mention of gcc4 in their docu. I trust a lot in those guys from mplayer. if you want to use it, i would stick with gcc3 for while.

vimal 08-28-2005 01:32 AM

locate the binary of mplayer by the command "whereis mplayer". after that look forward to the permissions of the binary. after changing the permissions also for the skin location, execute the command "rpm -ql mplayer". this lists all the files and folders that the rpm has installed. check for permissions for all the locations,also for the folders. this will probably solve the issue since it will be a permission problem because root can use it and an ordinary user cannot.
vimal....

ArthurDent 08-28-2005 03:46 AM

Hi Vimal,

Thanks.

Code:

[root@localhost mark]# whereis mplayer
mplayer: /usr/bin/mplayer /etc/mplayer /usr/lib/mplayer /usr/share/mplayer /usr/share/man/man1/mplayer.1.gz
[root@localhost mark]# ls -la /usr/bin/mplayer
-rwxr-xr-x  1 root root 6163460 Jun 21 09:03 /usr/bin/mplayer

What should I change the permissions to so that any user will be able to use it?

But the thing that really puzzles me is the fact that I used Yum to install it. Surely that should take care of all this stuff?

I have to admit that in the past (FC1, FC2 & FC3) I used apt-get and synaptic to install it from different repositories. I used Yum this time because it seems to be "approved" for FC4. Perhaps I should just unistall it and try the apt-get repositories instead?

[Edit] A quick check (I will look harder later) seems to indicate that there is no version of apt-get for Fedora4 [/Edit]

Thanks again

Mark

ArthurDent 08-28-2005 05:12 AM

OK Guys,

I now have this all sorted out.

I uninstalled mplayer (+gmplayer etc) using Yum.

I then downloaded an mplayer rpm for FC4 from rpm.pbone.net which led me into dependency hell. However, one of the dependencies was libstdc++.so.5 so (with some trepidation) I downloaded and installed an rpm which contained that from the same site. I don't know if it has screwed anything else up but installing that allowed RealPlayer to work - so my wife can now listen to the Archers on BBC Radio 4...

Next I fixed the other (several) dependencies and finally installed some skins.

Now it works! (as a user).

Thanks to all for all your help.

I'm just a little bit cross that Yum did not do this for me...

Thanks again

Mark

slackie1000 08-28-2005 07:01 AM

hi there,
welcome.... :cool:
Quote:

Originally posted by ArthurDent
OK Guys,
I now have this all sorted out.

and that is the most important thing...
have fun..
regards,
slackie1000


All times are GMT -5. The time now is 09:25 AM.