How to connect to remote x11 server

Following are the steps to connect to a remote x11 server,

On the client machine set the DISPLAY variable as follows,

$ export DISPLAY=server-host-name:0.0

On the server machine, enable remote connection from client

$ xhost +

N.B – use + if you are not concerned about any security issues. It enables any one to connect to your server. Use specific client name otherwise.
To read more about reasons to use remote display server and better security options , check this link.

1 Comment »

  1. On a modern Unix system supporting xauth, you never ever (ever) use xhost +, unless you’re in a network of your own.

    Use xauth. Or use ssh (ssh -X, ssh -Y) to log in to the remote machine and/or as another user.

RSS feed for comments on this post · TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.