Export DISPLAY on CentOS
Writing by shivdev on Wednesday, 29 of September , 2010 at 4:41 pm
One of the pain points with UNIX is that there are several flavors of Linux and several flavors of Shells. Things that work one way on Solaris (CSH) may not work with CentOS (BASH) or Ubuntu (tcsh). After major struggle and after several trials-and-errors, I figured how a simple thing like exporting display can be so painful if you don’t know how it works.
On the CentOS box where you want to see the DISPLAY (pretty standard)
xhost +
Then simply ssh -X to the remote host and you should be all set: (This is the trick)
ssh -X user@remotehost
xclock &
That’s it folks! Remember to use the -X option with SSH.
Don’t mess with export DISPLAY=SOURCEIP:0.0. This will cause you MAJOR GRIEF.
Comments (1)
Category: Linux
- Add this post to
- Del.icio.us -
- Digg -
- -
- Tweet -
-
-
Comment by fenderbirds
Made Monday, 18 of October , 2010 at 10:41 am
nice article, keep the posts coming
You must be logged in to post a comment.