ITPub博客

首页 > Linux操作系统 > Linux操作系统 > vnc server viewer for linux使用

vnc server viewer for linux使用

原创 Linux操作系统 作者:polestar123 时间:2009-03-02 15:11:39 0 删除 编辑

 1.安装linux版的vnc

  (1)安装

tar zxvf vnc-3.3.3r1_x86_linux_2.0.tgz
cd vnc_x86_linux_2.0
cp *vnc* /usr/local/bin/
mkdir /usr/local/vnc
cp -r classes/ /usr/local/vnc/

  (2)设置vnc server的访问密码
vncpasswd
  (3)启动vnc server
vncserver

2、安装vnc viewer

启动vnc /user/bin/./vncserver

登陆vnc 输入 ip地址:port号

输入vnc密码

可以更改vnc密码 vncpasswd

[root@sunfiretest bin]# ls|grep vnc
vncconfig
vncconfig.py
vncpasswd
vncserver
x0vncserver
Xvnc

[root@sunfiretest .vnc]# /usr/bin/vncserver

New 'sunfiretest:5 (root)' desktop is sunfiretest:5

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/sunfiretest:5.log

怎么进入后看到的界面不是我的gonme界面呢? 这个可以解决的。登陆linux主机编辑/$home/.vnc/xstartup把里面所有的行前面都加上#号让他们都失效 自己再加上一行gnome-session &

如下:

[root@sunfiretest .vnc]# pwd
/root/.vnc
[root@sunfiretest .vnc]# more 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 &
gnome-session &
[root@sunfiretest .vnc]#

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70612/viewspace-1017944/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: linux 开关机命令
下一篇: rpm包安装和管理
请登录后发表评论 登录
全部评论

注册时间:2009-05-22

  • 博文量
    110
  • 访问量
    438369