CentOS下安装vncserver进行远程桌面控制

CentOS下安装vncserver进行远程桌面控制

yum groupinstall -y "X Window System" "Desktop" "Chinese Support"
yum groupinstall -y "Desktop Platform" "Desktop Platform Development" "Fonts" "Internet Browser"

1. 安装vncserver

yum install -y "tigervnc-server"
chkconfig vncserver on

2. 配置 vncserver

1) 配置vncserver启动后监听端口和环境参数
vim /etc/sysconfig/vncservers
-----------------------------------------------------------
# 桌面号:用户===对应===监听端口5901
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600"
-----------------------------------------------------------

2) 修改 /root/.vnc/xstartup文件,配置使用gnome桌面
vim /root/.vnc/xstartup
# 最下面的twm & 更换为gnome-session &

3) 配置远程登录密码,启动服务
vncserver
service vncserver restart

3.VNC客户端连接测试

192.168.1.71:5901

posted @ 2023-05-17 17:17  天生帅才  阅读(180)  评论(0编辑  收藏  举报
// 百度统计