imported>ThorstenStaerk |
imported>ThorstenStaerk |
Line 1: |
Line 1: |
− | [[vnc]] allows you to [[control a computer]]'s display over the [[network]]. It consists of a client and a server. The client is the viewer, the server provides the display. You can also allow browsers to view the server's desktop. | + | [[vnc]] allows you to [[control a computer]]'s display over the [[network]]. It consists of a client and a server. The client is the viewer, the server provides the display. |
| | | |
− | = server =
| + | To read on [[find out your distribution]]. |
| | | |
− | == for vncviewer == | + | = Ubuntu = |
| | | |
− | === Fedora 14 === | + | == Server == |
− | * install vncserver
| + | To set up a VNC server with Ubuntu [[open a console]] and issue |
− | yum install tigervnc-server
| + | sudo apt-get update |
− | * install software to start a KDE desktop
| + | sudo apt-get install tightvncserver |
− | yum install kdebase-workspace | + | |
− | * install some software to experiment with
| + | To start it issue the [[command]] |
− | yum install gedit xterm | |
− | * install the fonts
| |
− | yum install zvbi-fonts
| |
− | * stop fedora's firewall
| |
− | /etc/init.d/iptables stop
| |
− | chkconfig iptables off
| |
− | * start vncserver once to get a configuration folder
| |
− | vncserver
| |
− | * kill vncserver
| |
− | [[killall]] -9 Xvnc
| |
− | * create a new startup configuration for vncserver
| |
− | cat >.vnc/xstartup << EOF
| |
− | #!/bin/sh
| |
− |
| |
− | vncconfig -iconic &
| |
− | startkde
| |
− | EOF
| |
− | * start vncserver again
| |
| vncserver | | vncserver |
| | | |
− | == for a web browser ==
| + | To stop it issue the command |
− | In this chapter we will set up a vnc server that acts as a web browser, so we have a VNC session in a browser. It will look like this:
| + | sudo killall Xvnc |
− | | |
− | [[Image:Snapshot-vnc-in-a-browser.png|525px]]
| |
− | | |
− | === Fedora 14 ===
| |
− | * install and start vncserver
| |
− | yum install tigervnc-server-applet
| |
− | vncserver -httpport 80
| |
− | * install xterm as vncserver will by default try to start xterm. Install nmap to verify vncserver is listening on a network port.
| |
− | yum install xterm nmap
| |
− | * verify the server is listening on port 80
| |
− | # nmap localhost
| |
− |
| |
− | Starting Nmap 5.21 ( http://nmap.org ) at 2010-11-28 09:57 UTC
| |
− | Nmap scan report for localhost (127.0.0.1)
| |
− | Host is up (0.000015s latency).
| |
− | Not shown: 996 closed ports
| |
− | PORT STATE SERVICE
| |
− | 22/tcp open ssh
| |
− | '''80/tcp open http'''
| |
− | 5901/tcp open vnc-1
| |
− | 6001/tcp open X11:1
| |
− | * stop the firewall
| |
− | /etc/init.d/iptables stop
| |
− | chkconfig iptables off
| |
− | * point your browser to your server
| |
− | * you can log in, then you see the same content as when calling vncviewer
| |
− | | |
− | === Ubuntu 8.04 (hardy) ===
| |
− | Read and follow http://packages.ubuntu.com/hardy/all/tightvnc-java/download, then
| |
− | sudo apt-get install tightvnc-java xfonts-base
| |
− | vncserver -httpport 80
| |
− | | |
− | === Ubuntu 9.10 ===
| |
− | sudo apt-get install tightvnc-java tightvncserver | |
− | vncserver -httpport 80
| |
− | | |
− | === Ubuntu 10.04 ===
| |
− | Errors like
| |
− | Xtightvnc[6159]: segfault at e28116d8 ip 00007fdee17c635e sp 00007fffc36b0930 error 4 in libc-2.11.1.so[7fdee177d000+17a000]
| |
| | | |
− | === Ubuntu 10.10 === | + | == Client == |
− | cat >>/etc/apt/sources.list<<EOF
| + | Command |
− | deb http://ubuntu.mirror.cambrium.nl/ubuntu/ maverick main multiverse
| + | vncviewer ''myserver'':1 |
− | EOF
| |
− | apt-get update
| |
− | apt-get install tightvnc-java
| |
− | apt-get install tightvncserver
| |
− | vncserver -httpport 80
| |
− | results in errors like
| |
− | Xtightvnc[3508]: segfault at 8475f6d8 ip 00007f5e837127aa sp 00007fff06913a70 error 4 in libc-2.12.1.so[7f5e836c9000+17a000] | |
| | | |
| = TroubleShooting = | | = TroubleShooting = |
Line 90: |
Line 26: |
| = See also = | | = See also = |
| * http://www.online-marketwatch.com/HttpTunnel4vnc/ | | * http://www.online-marketwatch.com/HttpTunnel4vnc/ |
− |
| |
− | {{stub}}
| |
vnc allows you to control a computer's display over the network. It consists of a client and a server. The client is the viewer, the server provides the display.
To read on find out your distribution.
Ubuntu
Server
To set up a VNC server with Ubuntu open a console and issue
sudo apt-get update
sudo apt-get install tightvncserver
To start it issue the command
vncserver
To stop it issue the command
sudo killall Xvnc
Client
Command
vncviewer myserver:1
TroubleShooting
Fonts e.g. in nautilus do not work. For CentOs 6:
yum install bitmap-miscfixed-fonts
See also