You are not logged in.
sudo xterm
No protocol specified
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can't open display: %sxterm as user fine, no message.
which xterm
/usr/bin/xterm
ls -l /usr/bin/xterm
-rwxr-xr-x 1 root root 446160 May 29 10:26 /usr/bin/xtermSame for non gtk like mplayer
sudo mplayer file.avi
No protocol specified
vo: couldn't open the X11 display (:0.0)!
No protocol specified
....Last edited by teckk (2013-06-03 17:41:00)
Offline
You don't use sudo for GUI programs. Use something like gksu instead.
Offline
Offline
The problem disappeared after killing and starting X a few times. I don't know why, or where the problem was. It only affected one 32 bit machine.
And no, you don't have to have gksu or kdesu for user to launch an app as root in X, that's what sudo is for.
Offline