rdp协议打开 windows_使用Windows远程桌面(mstsc)通过RDP协议访问Ubuntu/Debian服务器--转...

由于Ubuntu 12.10及以上版本不再支持Unity 2D,可以安装xRDP来远程访问。安装gnome-session-fallback、Xfce或LXDE作为桌面界面。创建~/.xsession文件指定界面,并配置键盘布局。在xRDP会话中,使用gnome-session-quit --logout命令退出登录。
摘要由CSDN通过智能技术生成

As of Ubuntu 12.10, the Unity 2D desktop interface ("Ubuntu 2D") no

longer exists. Ordinarily, computers without adequate 3D

acceleration use the llvmpipe software renderer.

Since Unity 2D used to be the easy way to xRDP into an Ubuntu

system, its removal requires the use of a different technique.

Fortunately, there is a solution:

Install xRDP

That page provides a circuitous way to install xRDP, but really

it's as

simple as before. Install xrdp  in

the Software Center. Or install from the Terminal by running:

sudo apt-get update && sudo apt-get upgrade

If it is not found, make sure

Install a Desktop Interface Not Requiring (Real or Simulated) 3D

Acceleration

Grifon's instructions recommend GNOME

Fallback (providing the "GNOME Classic"

session type). Thegnome-session-fallback  package

provides it.

sudo apt-get install gnome-session-fallback

(It's best to run sudo

apt-get update first if you haven't done so

recently.)

Other alternatives include:

Xfce (xubuntu-desktop  / sudo

apt-get install xubuntu-desktop)

LXDE (lubuntu-desktop  / sudo

apt-get install lubuntu-desktop)

MATE (this

is a bit more involved to install, see these instructions)

Create a ~/.xsession File

Specifying the Desired Interface for xRDP

In the home directory of the user or users who you wish to log in

via xRDP, create a file called .xsession.

You can do this with any text editor, such as Gedit. Once created,

this file won't be visible in file managers except

when View

> Show Hidden Files (or similar) is

enabled. In Nautilus and most other file

managers, Ctrl+H does

this.

The quickest and easiest way to make this file is probably the

Terminal--a single command will create it.

To use GNOME Fallback ("GNOME Classic (no effects)"):

echo gnome-session --session=gnome-fallback > ~/.xsession

Or, to use Xfce ("Xubuntu Session"):

echo xfce4-session > ~/.xsession

Or, to use LXDE ("Lubuntu Desktop"):

echo lxsession -s Lubuntu -e LXDE > ~/.xsession

Configure the Keyboard Layout

If you want an English keyboard layout, you don't need to do

anything for this step.

Otherwise, to configure xRDP to use a different keyboard layout,

see the "Solving the keyboard Layouts problem in the xRDP session"

section of this

post (the rest of that post applies just to

earlier versions of Ubuntu; the post was linked to

from

Now it should work!

Griffon has pointed out that,

unfortunately, in GNOME Fallback, the usual way of logging out does

not work (when connected via xRDP). Instead, log out by running the

command:

gnome-session-quit --logout

You can open a Terminal window (Ctrl+Alt+T)

for this, but you might as well just use the Run dialog

(Alt+F2).

In other desktop environments, logging out might still work, but if

it does not, you can use their approximate equivalents of

the

Acknowledgements

Much of the information here is from that blog

post (though no text is copied).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值