Run xclock on remote server.

For some reason I can't remember this.

All I want to do is ssh from my Windows PC to a Linux server and have it launch xclock on the Linux server and not my desktop.
LVL 2
tommy13vAsked:
Who is Participating?
 
Duncan RoeConnect With a Mentor Software DeveloperCommented:
You may need to grant yourself permission to use the remote server:

export DISPLAY=:0.0
export XAUTHORITY=/some/path/.Xauthority
xclock &

("&" puts xclock in background so you can log out)

To find out what XAUTHORITY should be, in a local xterm window type "env|grep XAUTH".
You will need to log in as the same user as started (or is logged in to) the X session, because Xauthority (with or without leading ".") is restricted to user access only (mode rw- --- ---)
0
 
pzurowskiCommented:
On windows box you must have xwindow system installed. Maybe you must grant access to linux box to using xwindow server on windows box.
On linux box you must set DISPLAY environment variable ( DISPLAY=windows.box.net:0 xclock )

Maybe you must set X forwarding on (eg.) in putty.
0
 
tommy13vAuthor Commented:
I don't want to run on my Windows box.  I want it to launch on the remote system and me not see it.
0
 
pzurowskiCommented:
on remote screen? (form. on remote xserver?)

if yes, just try run:
   DISPLAY=:0 xclock
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.