---
title: "【转】windows下通过Xmanager远程桌面访问Ubuntu"
author: "up2pu"
date: "2012-12-04T14:03:02Z"
tags: []
categories: ["操作系统"]
slug: "windows-xmanager-ubuntu"
draft: false
lastmod: "2012-12-04T14:03:43Z"
id: 1740782
url: "https://up2pu.iteye.com/blog/1740782"
---

原文：<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:


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访问了。