Solved

Run xclock on remote server.

Posted on 2008-06-17
4
2,592 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
  • 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 34

Accepted Solution

by:
Duncan Roe earned 500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

807 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