Ubuntu——开启远程桌面访问

241 阅读1分钟

1.切换到root 权限

2.安装更新:apt-get upate。

3.安装xrdp:

输入apt-get install xrdp-->

回车-->输入"y"-->回车,安装完成。

(xrdp: An open source remote desktop protocol(rdp) server)

4.安装vnc4server:

输入apt-get install vnc4server"-->

回车-->输入"y"-->回车,安装完成。

(VNC (Virtual Network Console)是虚拟网络控制台的缩写)

5.安装xfce4:

-->输入apt-get install xubuntu-desktop"-->

回车-->输入"y"-->回车。

-->输入echo "xfce4-session" >~/.xsession-->

回车-->输入 service xrdp restart-->回车,安装完成。

(Xfce是一个自由软件,运行在类Unix操作系统 (如Linux、FreeBSD 和 Solaris)上,提供轻量级桌面环境。)

6.在本地Windows电脑上,使用"窗口键+R"打开"运行对话框"-->输入"mstsc"-->回车-->输入Ubuntu主机的IP地址-->"连接"。