日期:2014-05-16  浏览次数:20518 次

Linux Desktop 做 Xserver
方法1:(Ubuntu 下无效)

$ cat /etc/X11/xinit/xserverrc
#!/bin/sh

#exec /usr/bin/X -nolisten tcp "$@"
exec /usr/bin/X tcp "$@"


方法2:(有时需新建 custom.conf)

scott@xserver:~$ cat /etc/gdm/custom.conf 
[security]
DisallowTCP=false

scott@xserver:~$ xhost + xclient
scott@xserver:~$ ssh postfix@xclient
postfix@xclient's password: *******

postfix@xclient:~$ export DISPLAY=xserver:0
postfix@xclient:~$