CentOS6.6中安装VNC server
发布时间:2023-04-07 16:43:30 所属栏目:教程 来源:
导读:CentOS6.6中安装VNC server
1、安装服务
yum install tigervnc-server
名字有点怪哦,CentOS5前叫vnc-server
2、运行并设置密码
vncserver + 回车
输入密码,会生成相关的文件
[root@localhost
1、安装服务
yum install tigervnc-server
名字有点怪哦,CentOS5前叫vnc-server
2、运行并设置密码
vncserver + 回车
输入密码,会生成相关的文件
[root@localhost
|
CentOS6.6中安装VNC server 1、安装服务 yum install tigervnc-server 名字有点怪哦,CentOS5前叫vnc-server 2、运行并设置密码 vncserver + 回车 输入密码,会生成相关的文件 [root@localhost ~]# vncserver You will require a password to access your desktops. Password: Verify: New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/localhost.localdomain:1.log [root@localhost ~]# vim /etc/sysconfig/vncservers 3、配置用户 vim /etc/sysconfig/vncservers 最后一行加入: VNCSERVERS=”1:root” 多个用户用空格分开,并要先su - 到那个用户运行vncserver[:n]来设定配置文件和密码 4、实用命令 **usage: vncserver [:] [-name ] [-depth ] [-geometry x] [-pixelformat rgbNNN|bgrNNN] [-fp ] [-fg] … vncserver -kill vncserver -list** **vncserver[:n] 开服务 vncserver -list 看有几个在运行 vncserver -kill :n 杀掉第几个x-display vncpasswd 修改密码** 5、服务管理 service vncserver restart 其它用法:/etc/init.d/vncserver {start|stop|restart|try-restart|status|force-reload} chkconfig vncserver on 加入到自启动(chkconfig –level 35 vncserver on) 6、客户端连接 CentOS:使用TigerVNC Viewer 连接 ip:1 Windows:使用Real VNC Viewer 连接ip:1 输入密码即可访问 (编辑:汽车网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
