Solved

Run xclock on remote server.

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

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