DebianThis forum is for the discussion of Debian Linux.
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.
well, i installed the mplayer with GUI interface on my machine, installation went ok
but when i tried to run gmplayer command, i got msg below
any idea?
i'm running Xandros 3.0 Deluxe on a IBM Thinkpad T23 machine.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
erdos@xandros:~$ gmplayer
MPlayer 1.0pre6-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Failed to open /dev/rtc: No such file or directory (it should be readable by the user.)
[1]+ Stopped gmplayer
erdos@xandros:~$ su
Password:
xandros:/home/erdos# gmplayer
MPlayer 1.0pre6-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE
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.
Usage: mplayer [options] [url|path/]filename
Basic options: (complete list in the man page)
-vo <drv[:dev]> select video output driver & device ('-vo help' for a list)
-ao <drv[:dev]> select audio output driver & device ('-ao help' for a list)
vcd://<trackno> play (S)VCD (Super Video CD) track (raw device, no mount)
dvd://<titleno> play DVD title from device instead of plain file
-alang/-slang select DVD audio/subtitle language (by 2-char country code)
-ss <timepos> seek to given (seconds or hh:mm:ss) position
-nosound do not play sound
-fs fullscreen playback (or -vm, -zoom, details in the man page)
-x <x> -y <y> set display resolution (for use with -vm or -zoom)
-sub <file> specify subtitle file to use (also see -subfps, -subdelay)
-playlist <file> specify playlist file
-vid x -aid y select video (x) and audio (y) stream to play
-fps x -srate y change video (x fps) and audio (y Hz) rate
-pp <quality> enable postprocessing filter (details in the man page)
-framedrop enable frame dropping (for slow machines)
Basic keys: (complete list in the man page, also check input.conf)
<- or -> seek backward/forward 10 seconds
up or down seek backward/forward 1 minute
pgup or pgdown seek backward/forward 10 minutes
< or > step backward/forward in playlist
p or SPACE pause movie (press any key to continue)
q or ESC stop playing and quit program
+ or - adjust audio delay by +/- 0.1 second
o cycle OSD mode: none / seekbar / seekbar + timer
* or / increase or decrease PCM volume
z or x adjust subtitle delay by +/- 0.1 second
r or t adjust subtitle position up/down, also see -vf expand
* * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
This may not be an exact answer to your problem, but might point you into the right direction:
At first, you can't access /dev/rtc because you don't have the access rights for that. The quick and dirty solution to that is to chmod the device to 666. The correct solution is to create a special group. The group should have access to that device. Add yourself to that group.
The chmod 666 is fine for testing.
The next thing which goes wrong is that you do 'su'.
Once you are 'su', you can't open a window (display) in X anymore. That is the second error message.
You can workaround this to Alt-F2 to start the app. Then you as user opens the display, but the app is run with 'su' credentials. That should overcome any access errors to devices. Once it runs here, you know what to look for.
Originally posted by bobbens you can also download sux which is a smart su and lets you run x apps from console as super user. Cheers
DONT DO THIS, it is a very bad idea to just start working with superuser privileges. The right way to solve your problem is, as stated above, to make a group that can rw to /dev/rtc.
$ su
$ groupadd rtc
$ chmod g+rw /dev/rtc
You should check out the man page for usermod, but I think this does the trick:
$ usermod -g `groups <username>` rtc <username>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.