首页| 行业标准| 论文文档| 电子资料| 图纸模型
购买积分 购买会员 激活码充值

您现在的位置是:团子下载站 > 通信网络 > VNC远程登录基于CentOS

VNC远程登录基于CentOS

  • 资源大小:3509KB
  • 上传时间:2021-08-12
  • 下载次数:0次
  • 浏览次数:57次
  • 资源积分:1积分
  • 标      签: CentOS 远程

资 源 简 介

配置文档,+VNCViewer软件 准备工作:(默认在root下操作) 在需要生产的服务器端安装VNC服务以及新建多用户: 【安装VNC服务】yum -y install vnc-server vnc 【新建用户user1 user2 user3 】 一、先安装vncserver,并将vncserver设为自启动: [root@CentOS ~]#chkconfig --level 345 vncserver on 二、修改配置文件,设置可通过VNC客户端登陆的用户: [root@CentOS ~]#vi /etc/sysconfig/vncservers 修改vnc配置文件为: # The VNCSERVERS variable is a list of display:user pairs. # # Uncomment the lines below to start a VNC server on display :2 # as my ‘myusername’ (adjust this to your own)。 You will also # need to set a VNC password; run ‘man vncpasswd’ to see how # to do that. # # DO NOT RUN THIS SERVICE if your local area network is # untrusted! For a secure way of using VNC, see # 《URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html》。 # Use “-nolisten tcp” to prevent X connecTIons to your VNC server via TCP. # Use “-nohttpd” to prevent web-based VNC clients connecTIng. # Use “-localhost” to prevent remote VNC clients connecTIng except when # doing so through a secure tunnel. See the “-via” opTIon in the # `man vncviewer‘ manual page. # VNCSERVERS=“2:myusername” VNCSERVERS=“1:user1 2:user2 3:user3” VNCSERVERARGS[1]=“-geometry 800x600” VNCSERVERARGS[2]=“-geometry 800x600” VNCSERVERARGS[3]=“-geometry 800x600” # VNCSERVERARGS[2]=“-geometry 800x600 -nolisten tcp -nohttpd -localhost” 说明:VNCSERVERS为可通过VNC客户端远程登陆的用户,添加其他用户需要按序号添加。 格式为:1:user1 2:user2 3:user3 【序号】:username 注:前面的数字为桌面号,且一一对应。 若此时启动VNC服务的话且序号为【1】的用户为root用户,那么当前启动其他登录用户进入的是root用户桌面。
VIP VIP