日期:2014-05-17  浏览次数:20881 次

【转】windows下通过Xmanager远程桌面访问Ubuntu
原文:http://ubuntuguide.net/enable-xdmcp-remote-login-in-ubuntu-12-04-lts-lightdm
This is simple guide about enable xdmcp service on Ubuntu 12.04 for user/root remote login. Precise uses the LightDM, so this method also works on ubuntu 11.10 with default LightDM display manager.

To enable xdmcp:

Edit lightdm config file with your favorite editor:

sudo vi /etc/lightdm/lightdm.conf
Add two lines at the end and save the file:

[XDMCPServer]
enabled=true
Restart and you can use Xmanager to remote login now!

If you would like root login in 12.04

First, enable root by giving it password:

sudo passwd root
Then add this line to ‘/etc/lightdm/lightdm.conf’:

greeter-show-manual-login=true
Restart and you can login by input USERNAEM and PASSWORD.

另外还需要打开端口:
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 177 -j ACCEPT
之后就可以通过Xmanager访问了。