Use x11vnc for desktop sharing under redhat, redhatx11vnc

Source: Internet
Author: User
Tags x11vnc tightvnc

Use x11vnc for desktop sharing under redhat, redhatx11vnc
1. When installing x11vnc on redhat, pay attention to the following aspects:

(1) download the x11vnc source code package:

The URL is as follows:
Http://sourceforge.net/projects/libvncserver/files/x11vnc/0.9.13/x11vnc-0.9.13.tar.gz/download

(2) perform configuration check and check the auxiliary package to be installed:

2. Find the redhat system on the official website and install the following components in advance:
Gcc
Make
Libc6-dev
Libjpeg62-dev
Libx11-dev
Libxext-dev
Libxrandroid-dev
Libxtst-dev
X-dev
Xlibs-static-dev
Zlib1g-dev
Libssl-dev

For convenience, you can directly use the following command:

[Root @ localhost mnt] # yum install "X *"-y

3. Use tar to decompress the source package after installing the component:

[Root @ localhost mnt] # tar xvf x11vnc-0.9.13.tar.gz

4. Go to the decompressed directory and install it with make:

[Root @ localhost mnt] # x11vnc-0.9.13/cd/
[Root @ localhost: x11vnc-0.9.13] # ls
Acinclude. m4 _ configs. sed install-sh NEWS tightvnc-1.3dev5-vncviewer-alpha-cursor.patch
Aclocal. m4 config. status libvncclient README TODO
AUTHORS config. sub libvncserver README. LibVNCServer x11vnc
ChangeLog configure ltmain. sh RELEASE-NOTES x11vnc. spec
Classes configure. ac Makefile rfb x11vnc. spec. in
Compile COPYING Makefile. am rfbconfig. h
Config. guess depcomp Makefile. in rfbconfig. h. in
Config. log INSTALL missing stamp-h1
[Root @ localhost x11vnc-0.9.13] #./configure

Compile and install the source code:

[Root @ localhost: x11vnc-0.9.13] # ls
Acinclude. m4 _ configs. sed install-sh NEWS tightvnc-1.3dev5-vncviewer-alpha-cursor.patch
Aclocal. m4 config. status libvncclient README TODO
AUTHORS config. sub libvncserver README. LibVNCServer x11vnc
ChangeLog configure ltmain. sh RELEASE-NOTES x11vnc. spec
Classes configure. ac Makefile rfb x11vnc. spec. in
Compile COPYING Makefile. am rfbconfig. h
Config. guess depcomp Makefile. in rfbconfig. h. in
Config. log INSTALL missing stamp-h1
[Root @ localhost x11vnc-0.9.13] # make & make install

Here we have compiled a script to set the x11vnc parameters:

#! /Bin/bash
Nohup/usr/local/bin/x11vnc-display localhost: 2-autoport 5901-viewonly-shared-forever-desktop "root"-auth guess -- scale 1400x760>/dev/null 2> & 1 &

We will forward the 127.0.0.1: 2 content of the local machine to the 127.0.0.1: 1 window, so that users can access the vncserver service IP address and port 1 (for example: 192.168.3.68: 1) you can access the desktop shared by 192.168.3.68: 2. In addition, they can only watch the video during access, and do not perform any operations, and the resolution will not be changed repeatedly, so the user experience is very good.

Note: To achieve this, you must first install the tigervnc-server and enable vncsever: 2 (Port 2 ).

[Root @ localhost x11vnc] # vncserver: 2

Summary:

In summary, this method is because every time you use vncserver for window sharing, different client resolutions will always make the windows of all connected users adjust and redirect repeatedly, which greatly affects the work efficiency. The x11vnc and vncserver software can be used together to prevent such incidents. If you have such confusion, you can try this method. If you have any questions, you can communicate in a timely manner.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.