redhat下配置vncserver 以及开机自启动vnc

简介: 1. 使用vncserver命令为当前用户启动vnc服务(将在当前用户主目录下生成.vnc配置文件夹)  [root@tech `]# vncserver  You will require a password to access your desktops.    Password:<输入密码>  Verify:<输入密码> 2. 首次创

1. 使用vncserver命令为当前用户启动vnc服务(将在当前用户主目录下生成.vnc配置文件夹)
 [root@tech `]# vncserver
 You will require a password to access your desktops.
 
 Password:<输入密码>
 Verify:<输入密码>


2. 首次创建 /.vnc/xstartup 时,指定的窗口管理器是twn,它是一个极小的窗口管理器,几乎每台xwindows系统及其上都有twn 。twn不具备完整桌面管理器的大部分花哨功能,下面是修改过的实例。
      [root@tech]# vi .vnc/xstartup
       在最下面添加一行:
   DISPPLAY=:1 gnome-session &
3. 设置开机自动运行vncserver
 a. 在/etc/rc.d/rc.local文件中加入下面行
  /etc/init.d/vncserver start
 b. 编辑/etc/sysconfig/vncservers
  VNCSERVERS="1:root"
  VNCSERVERARGS[1]="-geometry 1024x768"  --配置启动的桌面
 多个用户可以这样写:
 VNCSERVERS= "1:user 2:user2 3:user3"


redhat系统上vnc启动命令:
 /etc/init.d/vncserver start
查看vnc启动情况
 netstat -tulnp
关闭服务器上自己的vnc链接
 vncserver -kill :桌面号
 例如:关闭上面的vnc链接
 vncserver -kill :1  

目录
相关文章
|
8月前
|
Ubuntu Java Linux
|
Linux
Centos/Redhat 本地yum源配置(Linux)
Centos/Redhat 本地yum源配置(Linux)
264 0
Centos/Redhat 本地yum源配置(Linux)
|
Linux
配置yum软件仓库(redhat 7.0)
第一步:切换到yum配置文件目录 执行:cd /etc/yum.repos.d/ 第二步:创建文件并进行编辑:vi rhel7.repo 写入如下内容:[rhel7] name=rhel7 ##名字随便命名 baseurl=file:///media/cdrom enabled=1 gpgch...
1200 0
|
Linux 数据安全/隐私保护 安全
|
Linux 网络安全 虚拟化
|
Windows Linux 数据安全/隐私保护
|
Web App开发 安全 Linux

推荐镜像

更多