Difference between revisions of "Vnc"
From Bashlinux
Line 1: | Line 1: | ||
__NOTOC__ |
__NOTOC__ |
||
− | == |
+ | == VNC == |
+ | x11vnc is reliable vnc server which doesn't take much or even all the CPU usage. To install it run: |
||
− | Add to `/etc/services` the proper port for such application in order to start VNC when port `5900` is bind. |
||
<pre><nowiki> |
<pre><nowiki> |
||
+ | # yum -y install x11vnc |
||
⚫ | |||
</nowiki></pre> |
</nowiki></pre> |
||
+ | |||
+ | |||
+ | === VNC on demand === |
||
+ | |||
+ | To improve the usage of VNC, it can be triggered by xinetd, a configuration file under `/etc/xinetd.d` must look like |
||
+ | |||
+ | <pre><nowiki> |
||
+ | service x11vnc |
||
+ | { |
||
+ | disable = no |
||
+ | socket_type = stream |
||
+ | protocol = tcp |
||
+ | port = 5900 |
||
+ | wait = no |
||
+ | user = root |
||
+ | server = /usr/bin/x11vnc |
||
+ | server_args = -inetd -display :0 -scale 2/3 -ncache 10 -auth /var/gdm/\:0.Xauth -usepw -rfbauth /opt/uwink/.vnc/passwd -o /opt/uwink/.vnc/x11vnc.log -ssl SAVE |
||
+ | } |
||
+ | </nowiki></pre> |
||
+ | |||
+ | That means that a service with such name must be created in order to let xinetd know which service to trigger when the desired port is bind. it could be accomplished by adding it to `/etc/services` |
||
+ | |||
+ | <pre><nowiki> |
||
⚫ | |||
+ | </nowiki></pre> |
||
+ | |||
+ | At the end, ensure that X server grants access to *DISPLAY 0* by adding at the end of the {{\~/.bashrc}} file: |
||
+ | |||
+ | <pre><nowiki> |
||
+ | xhost + |
||
+ | </nowiki></pre> |
||
+ | |||
+ | |||
+ | |||
+ | <pre><nowiki>#!wiki info |
||
+ | Please ensure that xinetd is installed before start VNC setup. |
||
+ | </nowiki></pre> |
||
+ | |||
+ | |||
+ | === VNC on on demand over SSL === |
||
+ | |||
+ | Some things that should be considered in order to get connection to a vnc terminal are: |
||
+ | * Iptables is set to only listen for VNC calls from server, to get connection from your terminal you need to remove the statement `-s 10.0.0.1` on `/etc/sysconfig/iptables` rule for vnc. |
||
+ | * To do vnc from mac use ssvnc, it is available at [[http://www.karlrunge.com/x11vnc/ssvnc.html#download]] |
||
+ | |||
+ | === Links === |
||
+ | * x11vnc certificates and key management |
||
+ | [[http://www.karlrunge.com/x11vnc/ssl.html]] |
Revision as of 03:16, 10 December 2009
VNC
x11vnc is reliable vnc server which doesn't take much or even all the CPU usage. To install it run:
# yum -y install x11vnc
VNC on demand
To improve the usage of VNC, it can be triggered by xinetd, a configuration file under `/etc/xinetd.d` must look like
service x11vnc { disable = no socket_type = stream protocol = tcp port = 5900 wait = no user = root server = /usr/bin/x11vnc server_args = -inetd -display :0 -scale 2/3 -ncache 10 -auth /var/gdm/\:0.Xauth -usepw -rfbauth /opt/uwink/.vnc/passwd -o /opt/uwink/.vnc/x11vnc.log -ssl SAVE }
That means that a service with such name must be created in order to let xinetd know which service to trigger when the desired port is bind. it could be accomplished by adding it to `/etc/services`
# echo "x11vnc 5900/tcp" >> /etc/services
At the end, ensure that X server grants access to *DISPLAY 0* by adding at the end of the Template:\~/.bashrc file:
xhost +
#!wiki info Please ensure that xinetd is installed before start VNC setup.
VNC on on demand over SSL
Some things that should be considered in order to get connection to a vnc terminal are:
- Iptables is set to only listen for VNC calls from server, to get connection from your terminal you need to remove the statement `-s 10.0.0.1` on `/etc/sysconfig/iptables` rule for vnc.
- To do vnc from mac use ssvnc, it is available at [[1]]
Links
- x11vnc certificates and key management
[[2]]