Friday, December 9, 2011

Remote X via ssh: Can't open display

Remote X has been sacrificed in the name of better security from the get-go. Typically there are several hurdles to overcome in getting it to work. In short, getting remote X sessions to work is a pain. Here's what I came up with on Debian 6.0. All of this has to be done on the machine running the X server.
# Put this one in .xsession or similar startup script
$ xhost +

# It will say "nolisten tcp", but that isn't right
$ ps ax | grep X

# Get rid of "nolisten tcp"
$ sudo vim /etc/gdm/gdm.conf

# Throw up an xterm
$ ssh -X pavla /usr/bin/lxterminal

# In the xterm
$ xclock


No comments:

Post a Comment