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:~$

相关推荐