win7 rdp协议访问linux虚拟机,使用Windows远程桌面(mstsc)通过RDP协议访问Ubuntu/Debian服务器...
觉得通过Windows原生的远程桌面访问Ubuntu/Debian服务器,也很有意思。我这里设置成功了,就分享给大家。
服务器使用的是lightdm显示管理器。大家可以尝试其它的显示管理器。
1、Ubuntu/Debian下安装xrdp,同时把建议安装的软件也装上
root@localhost:~# apt-get install xrdp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
vnc4server xbase-clients
Suggested packages:
vnc-java
The following NEW packages will be installed:
vnc4server xbase-clients xrdp
0 upgraded, 3 newly installed, 0 to remove and 72 not upgraded.
Need to get 2,146 kB/2,412 kB of archives.
After this operation, 7,086 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrors.163.com/ubuntu/ precise-updates/main xbase-clients all 1:7.6+12ubuntu2 [2,322 B]
Get:2 http://mirrors.163.com/ubuntu/ precise/universe vnc4server amd64 4.1.1+xorg4.3.0-37ubuntu4 [2,143 kB]
Fetched 2,146 kB in 10s (211 kB/s)
Selecting previously unselected package xbase-clients.
(Reading database ... 93275 files and directories currently installed.)
Unpacking xbase-clients (from .../xbase-clients_1%3a7.6+12ubuntu2_all.deb) ...
Selecting previously unselected package vnc4server.
Unpacking vnc4server (from .../vnc4server_4.1.1+xorg4.3.0-37ubuntu4_amd64.deb) ...
Selecting previously unselected package xrdp.
Unpacking xrdp (from .../xrdp_0.5.0-2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up xbase-clients (1:7.6+12ubuntu2) ...
Setting up vnc4server (4.1.1+xorg4.3.0-37ubuntu4) ...
update-alternatives: using /usr/bin/vnc4server to provide /usr/bin/vncserver (vncserver) in auto mode.
update-alternatives: using /usr/bin/Xvnc4 to provide /usr/bin/Xvnc (Xvnc) in auto mode.
update-alternatives: using /usr/bin/x0vnc4server to provide /usr/bin/x0vncserver (x0vncserver) in auto mode.
update-alternatives: using /usr/bin/vnc4passwd to provide /usr/bin/vncpasswd (vncpasswd) in auto mode.
update-alternatives: using /usr/bin/vnc4config to provide /usr/bin/vncconfig (vncconfig) in auto mode.
Setting up xrdp (0.5.0-2) ...
* Starting Remote Desktop Protocol server [ OK ]
2、配置xrdp
目的是让xrdp传输远程服务的2D桌面,默认传输的是3D桌面,可能会有问题。
root@localhost:~# vim /etc/xrdp/startwm.sh
#!/bin/sh
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
echo "gnome-session --session=ubuntu-2d" > .xsession # 新添加的行
. /etc/X11/Xsession
3、配置lightdm
这里需要配置XDMP服务器
root@localhost:~# vim /etc/lightdm/lightdm.conf
[SeatDefaults]
greeter-session=unity-greeter
user-session=Ubuntu
greeter-show-manual-login=true
[XDMCPServer]
enabled=true
greeter-show-manual-login=true 指允许通过键入用户名和密码的方式来登录系统
XSMCPServer 字段指启动XDMCP服务器
4、重启xrdp 和lightdm
root@localhost:~# /etc/init.d/xrdp rstart
root@localhost:~# /etc/init.d/lightdm rstart
5、现在可以通过mstsc登录了便
Ubuntu 14.10编译安装rdesktop 1.8.3连接Win10的远程桌面:http://www.linuxdiyf.com/linux/11874.html
win7 rdp协议访问linux虚拟机,使用Windows远程桌面(mstsc)通过RDP协议访问Ubuntu/Debian服务器...相关推荐
- 使用Windows远程桌面(mstsc)通过RDP协议访问Ubuntu/Debian服务器
觉得通过windows原生的远程桌面访问服务器,也很有意思.我这里设置成功了,就分享给大家. 服务器使用的是lightdm显示管理器.大家可以尝试其它的显示管理器. 1. 安装xrdp,同时把建议安装 ...
- 服务器远程桌面参数,windows远程桌面mstsc 参数
windows远程桌面(mstsc)非常的方便,简直就是局域网神器. 这里记录下mstsc 对应的参数 [Window Title] 远程桌面连接用法 [Content] MSTSC [] [/v:] ...
- Windows远程桌面(mstsc) 无法全屏显示的解决方法
目录 问题描述 解决方法 问题解决 问题描述 我们通过mstsc远程登录windows服务器时,远程登录的桌面无法全屏显示,这样操作起来特别不方便,还需要滚动条来处理远程的屏幕,极易操作误操作. wi ...
- Windows远程桌面(mstsc)不能复制粘贴的解决办法
原来通过mstsc远程连接Windows能够直接在本地和服务器之间复制.粘贴一些文字和文件,最近突然无法直接复制粘贴了,只能通过远程映射的本地磁盘方式交换文件,太为繁琐. 已经确认远程桌面连接选项&q ...
- windows远程桌面mstsc使用 代理
转自 https://blog.csdn.net/bodybo/article/details/6638005
- windows远程桌面mstsc退出全屏
当远程桌面变为全屏无法退出的时候,切换方法 ctrl+alt+break
- 3389 远程桌面 Mstsc RDP协议详细解析 (上)
转载:https://lcx.cc/post/936/ 下半部分在这里 这是前一段时间想模拟(3389 远程桌面 Mstsc.exe RDP 协议)做一个蜜罐系统,用来记录各种各样的攻击资料,甚至自己 ...
- 3389 远程桌面 Mstsc RDP协议详细解析 (下)
转载:https://lcx.cc/post/937/ 由于太长了,所以分成了两部分,这是下半部分,上半部分在这里 6-1) 连接过程说明 包序号 接收发送 字符 含义 1 R InDr 设备初始连接 ...
- 本地Windows远程桌面连接阿里云Ubuntu服务器
本地Windows远程桌面连接阿里云Ubuntu 16.04服务器: 1.目的:希望通过本地的Windows远程桌面连接到阿里云的Ubuntu服务器,通过远程桌面图形界面的方式操作服务器. 2.条件: ...
最新文章
- JSP 自定义标签介绍
- Cocos2dx游戏开发系列笔记6:怎样让《萝莉快跑》的例子运行在vs和手机上
- 算法时间复杂度lg是多少_时间复杂度入门理解
- HTTP状态码-HTTP Status Code
- Android中项目中各个文件夹的含义和用途详解
- Postgres使用Copy命令将表导出成csv文件的遇到Permission Denied等错误
- 各大浏览器CSS Hack收集
- 化妆definer是什么意思_化妆品上的r是什么意思
- JAVA递归实现全排列
- java中到底有没有指针?
- 微信公众号 获取推送消息
- camvid数据集使用方法_github资源推荐:目标姿态检测数据集与渲染方法
- mbot机器人自动超声波模式程序_测评 | mBot机器人秒变编程达人
- java使用代理请求https
- WPF+VB.net制作桌面股票小助手
- Centos7 出现xxx不在sudoers文件中的解决方案
- 健身预约小程序的设计与实现
- STM32_BKP备份数据
- 文献简读——大肠中胰蛋白酶降解共生菌的鉴定【Identification of trypsin-degrading commensals in the large intestine】
- Android摄像头开发完美demo---(循环聚焦,缩放大小,旋转picture,查询支持的picturesize, ImageButton按键效果)