LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-20-2004, 01:42 PM   #1
Stan the caddy
Member
 
Registered: Dec 2003
Location: Victoria, B.C
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
GMplayer only works as root


Hi,
when i try to run gmplayer as user i get the following errors:

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/jeff/.mplayer/config
[cfg] read config file: /home/jeff/.mplayer/gui.conf
Reading config file /home/jeff/.mplayer/gui.conf: No such file or directory
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

vo: couldn't open the X11 display (:0.0)!
MPlayer GUI requires X11.
Reading /home/jeff/.mplayer/codecs.conf: Can't open '/home/jeff/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory

Howerer when i run it as root it works fine. Also normal mplayer works fine as user. And I compiled it as user not root.
Any ideas?

Last edited by Stan the caddy; 09-20-2004 at 01:50 PM.
 
Old 09-20-2004, 02:41 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
What version of Mplayer did you install? Also, have you added yourself to the video group?
usermod $USERNAME -g $GROUP -G video
Change $USERNAME for your username and $GROUP for the group you're in (usually that will be users) and add any other groups you want to be part of at the endin a comma separated list video,audio . Check it worked with the command
groups $USERNAME
For more info check man usermod
Also, have you tried chowning the mplayer so it's owned by root and if that doesn't work, try setting the sticky bit so it runs as though it is being run by root
chown /path/to/mplayer
chmod +s /path/to/mplayer

Last edited by Andrew Benton; 09-20-2004 at 02:56 PM.
 
Old 09-20-2004, 08:36 PM   #3
Stan the caddy
Member
 
Registered: Dec 2003
Location: Victoria, B.C
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 15
The version of MPlayer I installed was 1.0pre5.
I tryed the usermod thing and i got command errors, when i checked my /etc/group file videos wasnt listed as a group.
When you say:

chown /path/to/mplayer
chmod +s /path/to/mplayer

what path do you mean? when i compiled MPlayer is seemed to put stuff everywhere. I tryed that with the MPlayer directory i compiled everything from and got chown: too few arguments.
 
Old 09-21-2004, 02:21 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Sorry, my mistake, it should have been

chown -R root:root /path/to/mplayer
chmod +s /path/to/mplayer

The /path/to should be the path to wherever it was installed on your system, probably /usr/local/share/mplayer
 
Old 09-21-2004, 03:01 AM   #5
the_shaman
Member
 
Registered: Sep 2004
Distribution: Debian Sid
Posts: 34

Rep: Reputation: 15
Quote:
Originally posted by Stan the caddy
The version of MPlayer I installed was 1.0pre5.
I tryed the usermod thing and i got command errors, when i checked my /etc/group file videos wasnt listed as a group.
When you say:

chown /path/to/mplayer
chmod +s /path/to/mplayer

what path do you mean? when i compiled MPlayer is seemed to put stuff everywhere. I tryed that with the MPlayer directory i compiled everything from and got chown: too few arguments.
Type 'which mplayer' and 'whereis mplayer' in a terminal of your choice e.g. Gnome Terminal or Konsole, you'll get the '/path/to/mplayer' soon enough. BTW which distro are you using?
 
Old 09-21-2004, 12:19 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Here's a question: when you ran ./configure and make, were you root or the user? If you ran those as root, this may be the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer works but not gmplayer gilq1927 Linux - Newbie 5 12-05-2004 05:38 PM
mplayer works great, gmplayer won't load Trogdor Linux - Software 2 07-22-2004 07:24 PM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
can watch movie using gmplayer in root, but not as a user!? sirpelidor Linux - Software 6 01-07-2004 03:04 AM
mplayer works, gmplayer does not Texicle Linux - Software 15 03-26-2003 02:31 PM


All times are GMT -5. The time now is 07:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration