怎么用Centos系统做VNC远程桌面

作者:小橘猫 | 创建时间: 2023-07-05
VNC是Centos系列系统自带的一款远程桌面...
怎么用Centos系统做VNC远程桌面

操作方法

如果安装系统的时候没有装图形界面,那么需要安装图形界面的rpm包,共289个 [root@test Packages]# yum -y groupinstall "desktop"[root@test Packages]# yum -y install mousetweaks

安装完毕后再安装VNC的rpm包 [root@test Packages]# yum -y install vnc *vnc-server*

安装完毕后修改VNC的主配置文件 [root@test ~]# vi /etc/sysconfig/vncservers

复制最后两行并去掉注释,修改为 VNCSERVERS="1:root"VNCSERVERARGS[1]="-geometry 1024x768 "

设置VNCserver服务root用户远程连接密码 [root@test ~]# vncserver You will require a password to access your desktops.Password:Verify:xauth: creating new authority file /root/.XauthorityNew 'test:1 (root)' desktop is test:1Creating default startup script /root/.vnc/xstartupStarting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/test:1.log

启动VNCserver服务 [root@test ~]# service vncserver startStarting VNC server: 1:root New 'test:1 (root)' desktop is test:1Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/test:1.log[ OK ]

温馨提示

VNCserver的运行端口是从5901开始的,每增加一个用户,端口都会相应的增加,注意,相应用户的密码必须切换到相应用户的shell中设置。
点击展开全文

更多推荐