?
Solved

Run xclock on remote server.

Posted on 2008-06-17
4
Medium Priority
?
2,622 Views
Last Modified: 2008-06-17
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.
0
Comment
Question by:tommy13v
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Expert Comment

by:pzurowski
ID: 21806935
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
 
LVL 2

Author Comment

by:tommy13v
ID: 21807096
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
 
LVL 3

Expert Comment

by:pzurowski
ID: 21807147
on remote screen? (form. on remote xserver?)

if yes, just try run:
   DISPLAY=:0 xclock
0
 
LVL 35

Accepted Solution

by:
Duncan Roe earned 2000 total points
ID: 21807931
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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question