在 linux 中安装 RealVNC
来源:互联网 发布:2015东北十大网络神曲 编辑:程序博客网 时间:2024/06/02 22:10
在 linux 中安装 RealVNC
在 linux 中安装 RealVNC
VNC(Virtual Network Computing) 是一款开源的远程控制软件,管理员通过它不仅可以在运行程序的本地机上察看桌面环境,而且可以从 Internet 上的任何地方察看远程机器的运行情况。而且它还不受操作系统平台限制,具有跨平台的特性。可以从 linux 上用 VNC 查看 Windows 系统的机器,也可以在 Windows 系统上利用 VNC 查看 linux 系统的机器。可以上 RealVNC 的官方网站下载 VNC 的安装文件,RealVNC 分为免费版、专业版和企业版,其中专业版和企业版都是要收费的,免费版可以免费使用。不过功能相对于来说会比专业版和企业版少一点,不过对于一般的管理要求,还是可以胜任的。下面是 VNC 的下载网址:http://www.realvnc.com/products/download.html 。
安装VNC
Tarball 安装方式:
[root @ test root] # tar xvfz vnc-4_1_2-x86_linux.tar.gz
[root @ test root] # cd vnc-4_1_2-x86_linux
[root @ test vnc-4_1_2-x86_linux] # ./vncinstall /usr/local/bin
[root @ test vnc-4_1_2-x86_linux] # cp vnc.so /usr/X11R6/lib/modules/extensions/
RPM 安装方式:
[root @ test root] # rpm –ivh vnc-4_1_2-x86_linux.rpm
启动 vncserver
[root @ test vnc-4_1_2-x86_linux] # vncserver
Your will require a password to access your desktop.
Passwd: 输入密码
Verify: 再次输入密码确认
New ‘test:1’ desktop is test:1
# test:1 test是主机名,:1 是登录VNC 的窗口号。
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/test:1.log
第一次执行 vncserver 时需要设定提供远程连入时的访问密码,密码会记录在 /root/.vnc/passwd 文件中,日后可执行 vncpasswd 更改密码。
现在就可以通过 vncviewer 连入操作,
[root @ test vnc-4_1_2-x86_linux] # vncviewer 192.168.98.32:1
会弹出一个对话框,要求输入访问密码,输入密码后,即可连接成功。
VNCServer 的X 桌面默认为 twm, 这时连接进去只能看到终端界面,而看不到远程桌面界面。可修改 /root/.vnc/xstartup 文件,将其改为 GNOME 或 KDE 桌面:
GNOME:
[root @ test vnc-4_1_2-x86_linux] # vi /root/.vnc/xstartup
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot –solid grey
vncconfig –iconic &
xterm –geometry 80x24+10+10 –ls –title “$VNCDESKTOP Desktop” &
gnome-session &
KDE:
[root @ test vnc-4_1_2-x86_linux] # vi /root/.vnc/xstartup
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot –solid grey
vncconfig –iconic &
xterm –geometry 80x24+10+10 –ls –title “$VNCDESKTOP Desktop” &
startkde &
修改完毕后须重新启动 VNCServer
[root @ test vnc-4_1_2-x86_linux] # vncserver –kill :1 && vncserver :1
[root @ test vnc-4_1_2-x86_linux] # vncviewer 192.168.98.32:1
连接后即可使用 GNOME 或 KDE 桌面啦(就像 WinXP 的远程桌面一般),也可以通过 WEB 访问,在浏览器中输入http://192.168.0.252:5801 即可,VNC 默认的端口号为5801。
用 netstat –tlunp | grep 01,可以查看VNC 的端口是否牌监听状态,如看到5801 ,则表示 VNC 端口已正常启动。
VNC(Virtual Network Computing) 是一款开源的远程控制软件,管理员通过它不仅可以在运行程序的本地机上察看桌面环境,而且可以从 Internet 上的任何地方察看远程机器的运行情况。而且它还不受操作系统平台限制,具有跨平台的特性。可以从 linux 上用 VNC 查看 Windows 系统的机器,也可以在 Windows 系统上利用 VNC 查看 linux 系统的机器。可以上 RealVNC 的官方网站下载 VNC 的安装文件,RealVNC 分为免费版、专业版和企业版,其中专业版和企业版都是要收费的,免费版可以免费使用。不过功能相对于来说会比专业版和企业版少一点,不过对于一般的管理要求,还是可以胜任的。下面是 VNC 的下载网址:http://www.realvnc.com/products/download.html 。
安装VNC
Tarball 安装方式:
[root @ test root] # tar xvfz vnc-4_1_2-x86_linux.tar.gz
[root @ test root] # cd vnc-4_1_2-x86_linux
[root @ test vnc-4_1_2-x86_linux] # ./vncinstall /usr/local/bin
[root @ test vnc-4_1_2-x86_linux] # cp vnc.so /usr/X11R6/lib/modules/extensions/
RPM 安装方式:
[root @ test root] # rpm –ivh vnc-4_1_2-x86_linux.rpm
启动 vncserver
[root @ test vnc-4_1_2-x86_linux] # vncserver
Your will require a password to access your desktop.
Passwd: 输入密码
Verify: 再次输入密码确认
New ‘test:1’ desktop is test:1
# test:1 test是主机名,:1 是登录VNC 的窗口号。
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/test:1.log
第一次执行 vncserver 时需要设定提供远程连入时的访问密码,密码会记录在 /root/.vnc/passwd 文件中,日后可执行 vncpasswd 更改密码。
现在就可以通过 vncviewer 连入操作,
[root @ test vnc-4_1_2-x86_linux] # vncviewer 192.168.98.32:1
会弹出一个对话框,要求输入访问密码,输入密码后,即可连接成功。
VNCServer 的X 桌面默认为 twm, 这时连接进去只能看到终端界面,而看不到远程桌面界面。可修改 /root/.vnc/xstartup 文件,将其改为 GNOME 或 KDE 桌面:
GNOME:
[root @ test vnc-4_1_2-x86_linux] # vi /root/.vnc/xstartup
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot –solid grey
vncconfig –iconic &
xterm –geometry 80x24+10+10 –ls –title “$VNCDESKTOP Desktop” &
gnome-session &
KDE:
[root @ test vnc-4_1_2-x86_linux] # vi /root/.vnc/xstartup
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot –solid grey
vncconfig –iconic &
xterm –geometry 80x24+10+10 –ls –title “$VNCDESKTOP Desktop” &
startkde &
修改完毕后须重新启动 VNCServer
[root @ test vnc-4_1_2-x86_linux] # vncserver –kill :1 && vncserver :1
[root @ test vnc-4_1_2-x86_linux] # vncviewer 192.168.98.32:1
连接后即可使用 GNOME 或 KDE 桌面啦(就像 WinXP 的远程桌面一般),也可以通过 WEB 访问,在浏览器中输入http://192.168.0.252:5801 即可,VNC 默认的端口号为5801。
用 netstat –tlunp | grep 01,可以查看VNC 的端口是否牌监听状态,如看到5801 ,则表示 VNC 端口已正常启动。
本文发表于Windows中文站,地址:
- 在 linux 中安装 RealVNC
- REALVNC在linux下的安装与使用
- REALVNC在linux下的安装与使用
- linux:RealVNC安装使用释疑
- linux下源码安装realvnc
- linux下源码安装realvnc
- realVNC windows版本安装
- LINUX下的REALVNC部署方法(全)
- 在Linux中安装CVS
- 在Linux中安装QQ2008
- 在Linux中安装Adoboflashplayer
- XAMPP在Linux中安装
- 在linux中安装中文包
- codeblock在linux中安装
- kscope在linux中安装
- XAMPP在Linux中安装
- 在VMware中安装Linux
- XAMPP在Linux中安装
- emacs配置文件的基础知识
- solaris10上安装php,通过nginx+fastcgi连接
- 【转】使用VIM编辑C程序 - 周海汉的开发专栏 - CSDNBlog
- 关于对象的持久保存
- error LNK2019: 无法解析的外部符号
- 在 linux 中安装 RealVNC
- solaris10上安装Xcache
- 一步一步学习工作流--Flow4J(二)
- C# 读写数据库图片
- asp.net获取当前用户操作的控件
- 计算机中数据信息的表示
- swt 简单DEMO
- derby支持的数据类型
- KERN-EXEC 3错误