vnc

 

安装与启动

[root@test /]# mount /dev/cdrom media/

mount: block device /dev/cdrom is write-protected, mounting read-only

 

 [root@test /]# cd /media/Server/

[root@test Server]# rpm -ivh vnc-server-4.1.2-14.el5_3.1.i386.rpm

warning: vnc-server-4.1.2-14.el5_3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing...                ########################################### [100%]

        package vnc-server-4.1.2-14.el5_3.1.i386 is already installed

 

[root@test /]# rpm -q vnc-server   //确认是否安装了 vnc

vnc-server-4.1.2-14.el5_3.1

[root@test Server]# vncserver :1   //启动vnc服务

New 'test:1 (root)' desktop is test:1

 

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/test:1.log

 

配置文件及信息

路径:/root/.vnc

文件test:1.log

Xvnc Free Edition 4.1.2

Copyright (C) 2002-2005 RealVNC Ltd.

See http://www.realvnc.com for information on VNC.

Underlying X server release 70101000, The X.Org Foundation

 

 

Sat Apr 28 06:33:34 2012

 vncext:      VNC extension running!

 vncext:      Listening for VNC connections on port 5901

 vncext:      Listening for HTTP connections on port 5801

 vncext:      created VNC server for screen 0

文件test\:1.pid

4164        //进程号

文件xstartup

#!/bin/sh

 

# Uncomment the following two lines for normal desktop:

# unset SESSION_MANAGER

# exec /etc/X11/xinit/xinitrc

 

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey

vncconfig -iconic &

xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#twm &

#startkde &     //kde桌面环境

#gnome-session & //gnome桌面环境

常用命令

启动服务:vncserver :1

停止服务:vncserver -kill :1

设置密码:vncpasswd

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值