Solved

Run xclock on remote server.

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

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…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

688 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