Install VNC in linux source code

Source: Internet
Author: User

Install the source code as follows:
First, remote access to the server.
1. Download: VNC package from the Internet
[Root @ www root] # wget http://www.realvnc.com/dist/vnc-4.0-x86_linux.tar.gz
-- 14:00:42 -- http://www.realvnc.com/dist/vnc-4.0-x86_linux.tar.gz
=> 'Vnc-4.0-x86_linux.tar.gz'
Resolving www.realvnc.com... done.
Connecting to www.realvnc.com [146.101.152.142]: 80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,625,390 [application/x-gzip]
100% [=========================================>] 1,625,390 104.15 K/s ETA
14:01:00 (104.15 KB/s)-'vnc-4.0-x86_linux.tar.gz 'saved [1625390/1625390]
2. It is found that version 4.0 is more convenient to install. Unzip the package and follow the README instructions:
[Root @ www root] # ls
Anaconda-ks.cfg install. log install. log. syslog vnc-4.0-x86_linux.tar.gz
[Root @ www root] # tar-zxvf vnc-4.0-x86_linux.tar.gz
Vnc-4.0-x86_linux/
Vnc-4.0-x86_linux/README
Vnc-4.0-x86_linux/vncinstall
Vnc-4.0-x86_linux/Xvnc
Vnc-4.0-x86_linux/Xvnc. man
Vnc-4.0-x86_linux/vncviewer
Vnc-4.0-x86_linux/vncviewer. man
Vnc-4.0-x86_linux/vncpasswd
Vnc-4.0-x86_linux/vncpasswd. man
Vnc-4.0-x86_linux/vncconfig
Vnc-4.0-x86_linux/vncconfig. man
Vnc-4.0-x86_linux/vncserver
Vnc-4.0-x86_linux/vncserver. man
Vnc-4.0-x86_linux/x0vncserver
Vnc-4.0-x86_linux/x0vncserver. man
Vnc-4.0-x86_linux/vnc. so
Vnc-4.0-x86_linux/LICENCE. TXT
Vnc-4.0-x86_linux/java/
Vnc-4.0-x86_linux/java/index. vnc
Vnc-4.0-x86_linux/java/logo150x150.gif
Vnc-4.0-x86_linux/java/vncviewer. jar
[Root @ www root] # ls
Anaconda-ks.cfg install. log. syslog vnc-4.0-x86_linux.tar.gz
Install. log vnc-4.0-x86_linux
[Root @ www root] # cd vnc-4.0-x86_linux
[Root @ www vnc-4.0-x86_linux] # ls
Java vncconfig. man vncserver vncviewer. man Xvnc. man
LICENCE. TXT vncinstall vncserver. man x0vncserver
README vncpasswd vnc. so x0vncserver. man
Vncconfig vncpasswd. man vncviewer Xvnc
[Root @ www vnc-4.0-x86_linux] #./vncinstall/usr/local/bin
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 @ www vnc-4.0-x86_linux] # mkdir-p/usr/local/vnc/classes
[Root @ www vnc-4.0-x86_linux] # cp java/*/usr/local/vnc/classes
3. Now you can start vncserver:
Set the password for the first startup. VNC Remote Password
[Root @ www vnc-4.0-x86_linux] # vncserver
You will require a password to access your tops.
Password:
Verify:
New 'www .janny.com: 1 (root) 'desktop is www.janny.com: 1
Creating default startup script/root/. vnc/xstartup
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/www.janny.com: 1.log
The above section indicates that a graphical terminal is started and the number is 1. Remember this number and provide it when you log on.
If you want to stop this process, use
Code ::
$ Vncserver-kill: 1

4. If the above is not successful, the following prompt is displayed: The libstdc ++ library file is missing.
You will require a password to access your tops.
Vncpasswd: error while loading shared libraries: libstdc ++-libc6.1-1. so.2: cannot open shared object file: No such file or directory

5. Please download it here
Http://rpm.pbone.net/index.php3/stat/4/idpl/843376/com/compat-libstdc++-7.3-2.96.118.i386.rpm.html

Rpm-ivh compat-libstdc +++-7.3-2.96.118.i386.rpm
6. If a firewall exists, open the firewall, and then you can access the vncserver through the browser at Port 5801.
Run the following command to check whether the port has been started properly:
[Root @ www vnc-4.0-x86_linux] # netstat-an | grep 01
Tcp 0 0 0.0.0.0: 5801 0.0.0.0: * LISTEN
Tcp 0 0 0.0.0.0: 5901 0.0.0.0: * LISTEN
Tcp 0 0 0.0.0.0: 6001 0.0.0.0: * LISTEN
Unix 2 [ACC] stream listening 4904/tmp/orbit-root/linc-5ee-0-121b01141620a
Unix 2 [ACC] stream listening 4964/tmp/orbit-root/linc-5ec-0-121b011493273
Unix 2 [ACC] stream listening 4994/tmp/orbit-root/linc-5f1-0-121b0114bb267
Unix 2 [ACC] stream listening 3010/tmp/orbit-root/linc-527-0-7af285a063ec3
Unix 3 [] stream connected 5036/tmp/orbit-root/linc-5ec-0-121b011493273
Unix 3 [] stream connected 5013/tmp/. X11-unix/X0
Unix 3 [] stream connected 5012.
Unix 3 [] stream connected 4997/tmp/orbit-root/linc-5f1-0-121b0114bb267
Unix 3 [] stream connected 4967/tmp/orbit-root/linc-5ec-0-121b011493273
Unix 3 [] stream connected 4907/tmp/orbit-root/linc-5ee-0-121b01141620a
7. PS:
In/root/. vnc/xstartup
Change twm & to gnome-session & or kde &
After saving the modified configuration, restart the server. (xwindows appears later)
8. Run the command to enable vncserver again. Once the graphical terminal is enabled, the number is 1,
If you want to enable two graphics terminals, run the vncserver command twice. however, the second graphic terminal is remote. to: XXX. XXX. XXX. XXX: 2. remote graphics Terminal 2
9. when the client is remote, WIndows is usually used.
10. *** how to enable the VNC Server automatically upon startup:
Run ntsysv to enable vncserver

Author "LaoKa"

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.