RealVNC 1 The problem is as follows/etc/sysconfig/vncservers---profile action to remove the last two lines of comment No route to host is the cause of the firewall---must be studied good firewall local can vnc, local can access Zha Nglinux.org:1158/em I always thought there was no route caused by route add default gw 192.168.0.254 After a series of tests, it was found to be a firewall problem. Later in the study of network problems, the first thing to pay attention to the firewall settings. First, the firewall is removed from the settings, on the basis of no firewall to achieve connectivity. Then set up the firewall. Firewalls are critical to the security control of the network and to network access. This is a fundamental problem. From today's practice can be seen, the basic grasp ability is not enough. 2 software downloads for Windows VNC---http://download.pchome.net/php/tdownload2.php?sid=2603&url=/internet/server/remote/ Vnc-3.3.7-x86_win32.zip&svr=1&typ=0 Linux Vnc--http://mirror.etf.bg.ac.yu/fedora/development/i386/fedora /rpms/vnc-4.1.1-34.i386.rpm Ps:http://rpmfind.net Find the package you need. Because the school proxy server Setup old problem, originally with Yum Install-y Universal package name-very convenient, have to use old-fashioned rpm-uvh , rpm-q These two commands are very important. 3 Installation: RPM-UVH *rpm Note Dependent ~ ~ ~ 4 Set the server to allow connections under the X desktop, and you can set the connection password. http://www.linuxsir.org/bbs/showthread.php?t=262457 above the problem, I am here because of the firewall caused by the---can be set on the X desktop firewall --------------------specific Use method------------Kai Vncserver:vncserver, the first time you will be prompted to enter the password; Close: Vncserver-kill: Desktopor using the system's own script: Supplemental vncserver command line startup, shutdown method: 1) server-side start: #vncserver $vncserver Notice that each user can start their own vncserver, each user can start multiple vncserver, Use the display port number: 1,:2,:3, etc. to identify. 2) Client: a) under Linux, run the vncviewer command, the server address is written like 192.168.3.119:1 b) under Windows, run the Windows version of Vncviewer, and use similar to Linux. c) using a browser (platform-independent), as a Java applet to implement, in a form like http://192.168.3.119:5801 to start 3) password modification: The first boot vncserver will prompt to enter a password, later to modify, run: # Vncpassword 4) Stop VNC server: #vncserver-kill:1 #vncserver-kill:2 Notice that vncserver can only be turned off by the user who started it. Instant root is not able to close other user-opened vncserver unless you kill the process with kill command. 5) Specify the display port number to start the VNC server: #vncserver: 3 $vncserver: 6 6) Set the VNC server resolution: #vncserver-geometry 800x600 #vncserver-geometry 640x480 7) Sets the color depth of the Vncserver: 8 bits is 256 colors, 16 bits is 64k color #vncserver-depth 8 #vncserver-depth 16 stability settings: Vncserver By default in multiple clients connect the same Vncserv Er's display port, vncserver port old connection, and for new connection service, can keep the old connection through-dontdisconnect rejecting new connection request. 9) Set the same display port of Vncserver to connect multiple clients #vncserver-alwaysshared 10) The default remote login starts with the KDE desktop (if installed when installing the system), if you modify the login GUI. When Vncserver is enabled under Oracle Users, a. VNC folder is automatically created under the Oracle user's home directory, under which there is a file, Xstartup, edit this file,Comment out all the lines, then add a line at the end: Gnome-session & Save the file, restart Vncserver, you will find the login GUI has become the style you want. For example: Service side [Root@zhanglinux. vnc]# vncserver:3 You'll require a password to access your desktops. Password:password must is at least 6 characters-try again Password:password must is at least 6 characters-try Again Password:Verify:New ' zhanglinux.org:3 (root) ' Desktop is zhanglinux.org:3 Creating default startup script /root/.vnc/xstartup starting applications specified In/root/.vnc/xstartup Log file Is/root/.vnc/zhanglinux.org:3.log & nbsp Client logon: After Vncviewer Ip:3 logon, view the default port 5900 corresponding to the process name Vnc-serv [root@zhanglinux. vnc]# Netstat-na | grep 5900 tcp 0 0 202.116.130.243:5900 202.116.130.241:1729 Established exit Vncviewer [Root@zhanglinux. vnc]# Netstat-na | grep 5900 tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN ---------------------------------------------------------------------------- Finally solved the problem of joining the service when VNC started [http://bbs.chinaunix.net/viewthread.php?tid=149091] I did not do, personally feel not much necessary, need to start. vi/etc/rc.d/init.d/vncserver service startup Related Settings-------------------------------------------------------------------- --------
VNC Server Configuration Instance 1) Configure the user to allow access [Root@rhce ~]# vi/etc/sysconfig/vncservers
# The Vncservers variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on Display:2
# as my ' myusername ' (adjust this to your own). You'll also
# need to set a VNC password; Run ' man vncpasswd ' to see how
# to does that.
#
# do not RUN the this SERVICE if your the local area network is
# untrusted! For a secure-to-the-using VNC, see
# <url: [Url]http://www.uk.research.att.com/archive/vnc/sshvnc.html[/url]>. # use "-nolisten TCP" to prevent X connections to your VNC server via TCP. # Use the "-nohttpd" to prevent web-based VNC clients connecting. # use "-localhost" to prevent remote VNC clients connecting except when
# Doing so through a secure tunnel. See the '-via ' option in the
# ' Man vncviewer ' manual page. # vncservers= "2:myusername"
# vncserverargs[2]= "-geometry 800x600-nolisten tcp-nohttpd-localhost" # Own definition section: Run user Jchen remote Access with a resolution of 800*600 VNCSERVERS= "2:jchen"
vncserverargs[2]= "-geometry 800x600-nolisten tcp-nohttpd" # own definition part: Run user Jackie Remote access, resolution of 1024x768 vncservers= "3:jackie "
vncserverargs[3]= "-geometry 1024x768" 2) Configure user VNC access password [root@rhce ~]# Su-jackie
[Jackie@rhce ~]$ mkdir. VNC
[Jackie@rhce ~]$ CD. VNC
[Jackie@rhce. vnc]$ vncpasswd
Password:xxxxxx
Verify:xxxxxx 3) Start VNC Service [root@rhce ~]# service vncserver start 4) Configure VNC access mode [Root@rhce ~]# Vi/home/jackie/.vnc/xstartup #!/bin/sh # Uncomment the following two lines for normal desktop: (remove the following lines of # to allow the desktop to be used)
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 & 5) configuration iptables allow access to 5902 ports [Root@rhce ~]# iptables-i rh-firewall-1-input-p tcp--dport 5903-j ACCEPT
[Root@rhce ~]# iptables-i rh-firewall-1-input-p UDP--dport 5903-j ACCEPT 6) test succeeded under Windows
The server-side configuration is as follows:
1) First boot vncserver will prompt for password: Administrator account:
[Root@localhost/]# Vncserver you'll require a password to access your desktops. Password: Enter VNC connection password Verify: Confirm VNC password xauth:creating new authority file/root/. Xauthority New ' localhost.localdomain:1 (root) ' Desktop is localhost.localdomain:1 Creating default startup script/root/ . Vnc/xstartup starting applications specified In/root/.vnc/xstartup Log file Is/root/.vnc/localhost.localdomain:1.log Normal User:
[Root@localhost/] #su Huilin [huilin@localhost/]$ vncserver you'll require a password to access your desktops. Password: Enter VNC connection password Verify: Confirm VNC password xauth:creating new authority file/home/huilin/. Xauthority New ' Localhost.localdomain:2 (huilin) ' Desktop is Localhost.localdomain:2 Creating default startup Script/hom E/huilin/.vnc/xstartup starting applications specified In/home/huilin/.vnc/xstartup Log file is/home/huilin/.vnc/ Localhost.localdomain:2.log * Note that each user can start their own vncserver, each user can launch multiple vncserver, identified by the IP port number ip:1,ip:2,ip:3. Most of the Vncserver configuration files and log files are in the user home directory. The user can customize the startup number under the VNC directory such as: [Huilin@localhost/]$ vncserver:2 A VNC server is already running As:2 2) Configure the VNC configuration file Xstartup file
If you are using a GNOME desktop environment, you will also need to modify [root@localhost. vnc]# vi xstartup #!/bin/sh # Uncomment the following-lines for normal desktop: # unset Session_manager Remove the comment from this line # EXEC/ETC/X11/XINIT/XINITRC remove the comment from this line [-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" & Gnome-session Gnome Add connection when using GNOME desktop environment TWM &
3) Set the login user's information in vncserver [root@localhost: ~] #vi/etc/sysconfig/vncservers
# The Vncservers variable is a list of display:user pairs. #
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.