资讯

展开

win7远程桌面连接 CentOS7 GNOME桌面教程

作者:快盘下载 人气:

为了实现windows远程连接到CentOS7 GNOME桌面,没有使用ked桌面测试。真是浪费了不少时间,至少3个小时吧。记录一下心得。也方便其他朋友使用。Ubuntu 18的也测试过了,没搞定,不管是改配置还是下载官方的sh脚本都没搞定。


win7远程桌面连接 CentOS7 GNOME桌面教程


1、下载


centos7 http://archive.kernel.org/centos-vault/7.6.1810/isos/x86_64/ 我下载的是CentOS-7-x86_64-DVD-1810.iso标准版,


2、安装过程就不写了。 


3、安装桌面环境


yum -y groups install "GNOME Desktop"

4、安装完桌面环境后

# 从命令行切换到桌面环境
startx
# 修改启动模式为图形化
systemctl set-default graphical.target
# 获取当前启动模式
systemctl get-default
# 修改启动模式为命令行
systemctl set-default multi-user.target

5、默认启动桌面环境后以 root 用户自动登录


# 修改配置文件vi/etc/gdm/custom.conf

# 增加如下配置

[daemon]
AutomaticLoginEnable=True
AutomaticLogin=root


6、安装相关的软件


# Windows 远程登录需要安装 Xrdp,需要 epel 源

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum install -y xrdp


# Xrdp 会调用 VNC,安装 tigervnc-server

yum install -y tigervnc-server

# 修改 Xrdp 最大连接数

vim /etc/xrdp/xrdp.ini
max_bpp=32

# 启动 Xrdp 并设置开机启动

systemctl start xrdp
systemctl enable xrdp


# 开放 3389 端口,或者关闭防火墙

firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload

# 关闭防火墙

systemctl stop firewalld

# 禁止防火墙开机启动

systemctl disable firewalld

启动win的mstsc工具


直接选择是


win7远程桌面


输入账号和密码 


CentOS7远程桌面


解锁密码


win7远程桌面


搞定。登录上了。


CentOS7远程桌面


加载全部内容

相关教程
猜你喜欢
用户评论
快盘暂不提供评论功能!