REALVNC在linux下的安装与使用
来源:互联网 发布:淘宝手机详情添加视频 编辑:程序博客网 时间:2024/06/03 13:55
『VNC的安装与使用』
本人的操作环境:被控端 RHEL AS 3 U4,主控端Windows 2003。
1.下载RealVNC
VNC
2.安装。
rpm –Uvh vnc-4_1_1-1.i386.rpm(如果是源代码请看包里的说明)
安装winvnc.exe
3.在Linux上启动VNC
执行vncserver命令:
[root@linux root]# vncserver
You will require a password to access your desktops.
Password:
Verify:
New ‘X’ desktop is linux:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/linux:1.log
(经上述步骤后,便已启动了VNC
4.在Microsoft Windows上运行VNC
直接运行“vncviewer.exe”,系统会出现”Connection details”对话框。
在“Connection details”对话框中的“VNC
5. 从浏览器远程遥控。
启动VNC
例如:http://192.168.01.:5801 (如果显示编号为1,一般第一次设置的显示编号都是1,就用5800+1=5801。)
6.FAQ
A.为什么连接后,不能显示桌面,而只有一个Terminal窗口?
试着修改/root/.vnc/xstartup,把最后一行 twm& 改成 gnome-session& or
B.为什么重新启动VNC
因为重新启动VNC
linux的vnc远程桌面的安装
mount: block device /dev/cdrom is write-protected, mounting read-only
warning: vnc-server-4.1.2-14.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
(注:这里的“用户名”是指linux系统用户的名称)
Starting VNC server: 1:root xauth: creating new authority file /root/.Xauthority
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
[root@localhost ~]#
[root@localhost .vnc]# vi xstartup
#!/bin/sh
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session
#startkde & #kde desktop
#twm &
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5900:5903 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]
[root@localhost ~]# /sbin/service vncserver resatrt
Usage: /etc/init.d/vncserver {start|stop|restart|condrestart|status}
[root@localhost ~]# /sbin/service vncserver restart
Shutting down VNC server: 1:root [ OK ]
Starting VNC server: 1:root
New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1
Log file is /root/.vnc/localhost.localdomain:1.log
如果使用命令行的话,以root身份运行以下两条命令:
mv K35vncserver S35vncserver
vnc 源码安装
anyway, download source code from
http://www.realvnc.com/products/free/4.1/download.html[root@localhost Code]# tar zxvf vnc-4_1_3-x86_linux.tar.gz
[root@localhost vnc-4_1_3-x86_linux]# cd vnc-4_1_3-x86_linux
root@vinco:/home/vinco/Downloads/vnc-4_1_3-x86_linux# ls
java vncconfig vncpasswd vncserver.man vncviewer.man Xvnc
LICENCE.txt vncconfig.man vncpasswd.man vnc.so x0vncserver Xvnc.man
README vncinstall vncserver vncviewer x0vncserver.man
this action is important, believe it or not:
[root@localhost vnc-4_1_3-x86_linux]# vim README
vncviewer 4.1.2 is install by default:
[root@localhost vnc-4_1_3-x86_linux]# which vncviewer
/usr/bin/vncviewer
[root@localhost vnc-4_1_3-x86_linux]#
[root@localhost vnc-4_1_3-x86_linux]# ./vncinstall /usr/local/bin /usr/local/man
Can't install manual pages to /usr/local/man/man1
Copying Xvnc to /usr/local/bin
Copying vncviewer to /usr/local/bin
Copying vncpasswd to /usr/local/bin
Copying vncconfig to /usr/local/bin
Copying vncserver to /usr/local/bin
Copying x0vncserver to /usr/local/bin
[root@localhost vnc-4_1_3-x86_linux]#
[root@localhost vnc-4_1_3-x86_linux]# vncviewer
VNC Viewer Free Edition 4.1.2 for X - built Oct 6 2008 07:20:19
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
[root@localhost vnc-4_1_3-x86_linux]#
[root@localhost vnc-4_1_3-x86_linux]# which vncviewer
/usr/local/bin/vncviewer
[root@localhost vnc-4_1_3-x86_linux]#
remove the old one:
[root@localhost vnc-4_1_3-x86_linux]# rm /usr/bin/vncviewer
Things are not always the way its going :
[root@localhost vnc-4_1_3-x86_linux]# vncserver
You will require a password to access your desktops.
vncpasswd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
[root@localhost vnc-4_1_3-x86_linux]#
somebody advised to create a soft link like this:
[root@localhost lib]# pwd
/usr/lib
[root@localhost lib]# ln -s libstdc++.so.6.0.10 libstdc++-libc6.2-2.so.3
[root@localhost lib]# ls -l libstdc*
lrwxrwxrwx 1 root root 19 2012-05-31 20:40 libstdc++-libc6.2-2.so.3 -> libstdc++.so.6.0.10
lrwxrwxrwx 1 root root 19 2011-06-17 08:35 libstdc++.so.6 -> libstdc++.so.6.0.10
-rwxr-xr-x 1 root root 966072 2008-11-05 20:14 libstdc++.so.6.0.10
[root@localhost lib]#
the guy cheat me, it doesn't work at all:
[root@localhost vnc-4_1_3-x86_linux]# vncserver
You will require a password to access your desktops.
vncpasswd: symbol lookup error: vncpasswd: undefined symbol: __builtin_vec_new
[root@localhost vnc-4_1_3-x86_linux]#
- REALVNC在linux下的安装与使用
- REALVNC在linux下的安装与使用
- linux下源码安装realvnc
- linux下源码安装realvnc
- 在 linux 中安装 RealVNC
- linux:RealVNC安装使用释疑
- RealVNC的安装与使用(win to centos)
- LINUX下的REALVNC部署方法(全)
- RealVNC 不同网络环境下的配置使用
- OpenSSL在linux下的编译安装与使用
- Cryptopp密码库在Linux下的安装与使用
- cmake在linux,windows,mac下的安装与使用
- cmake在linux,windows,mac下的安装与使用
- RabbitMQ在Linux下的安装与使用
- cppunit在linux下的安装使用
- Linux 下 CppUnit的安装与使用
- Linux下MPICH的安装与使用
- Linux下libpcap的安装与使用
- vi、cat定位、查找关键字
- 利用自定义标签实现分块技术
- OC中NSArray用法
- 【小知识点总结】startActivityForResult 和onActivityResult 的用法及【遇到的问题】
- 那些不能错过的Xcode插件
- REALVNC在linux下的安装与使用
- iOS 深入理解“属性”及其关键字
- ZOJ问题(2010浙江大学研究生复试上机题目[找规律] hdoj 3788)
- Volley网络通信框架学习笔记(一)
- DB9公头母头接口定义及连接
- Tomcat自带log的配置
- 数据库(详细步骤)
- spark core源码分析3 Master HA
- Android初学习 - 在Service里面启动Activity