Difference between revisions of "Set up a VNC server"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk m (Reverted edits by 221.178.182.61 (talk) to last revision by ThorstenStaerk) |
||
(20 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | [[vnc]] allows you to | + | [[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 | vncserver | ||
− | == | + | To stop it issue the command |
− | + | sudo killall Xtightvnc | |
− | + | ||
+ | == Client == | ||
+ | Command | ||
+ | vncviewer ''myserver'':1 | ||
− | == | + | = Hints = |
− | + | * as desktop environment consider XFCE. It is lightweight yet provides a clearly guided user experience. Your .vnc/xstartup could look like this: | |
− | + | #!/bin/sh | |
− | + | xfce4-session | |
− | * | + | To get this working you must install xfce4. You can also [[install gnome]] and set .vnc/xstartup to be |
− | + | #!/bin/sh | |
− | + | gnome-session | |
− | # | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | / | ||
− | |||
− | |||
− | |||
− | == | + | = TroubleShooting = |
− | |||
− | |||
− | |||
− | === | + | == fonts do not work == |
− | + | Fonts e.g. in nautilus do not work. For CentOs 6: | |
− | + | yum install bitmap-miscfixed-fonts | |
− | == | + | == only black window shown == |
− | + | For SUSE: | |
− | + | /etc/init.d/xdm restart | |
− | == | + | = See also = |
− | + | * [[a Linux desktop in a website]] | |
− | + | * [[Terminal Server]] | |
− | + | * http://www.online-marketwatch.com/HttpTunnel4vnc/ | |
− | + | * http://www.novell.com/support/kb/doc.php?id=7004096 | |
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 19:05, 24 November 2015
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.
Contents
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 Xtightvnc
Client
Command
vncviewer myserver:1
Hints
- as desktop environment consider XFCE. It is lightweight yet provides a clearly guided user experience. Your .vnc/xstartup could look like this:
#!/bin/sh xfce4-session
To get this working you must install xfce4. You can also install gnome and set .vnc/xstartup to be
#!/bin/sh gnome-session
TroubleShooting
fonts do not work
Fonts e.g. in nautilus do not work. For CentOs 6:
yum install bitmap-miscfixed-fonts
only black window shown
For SUSE:
/etc/init.d/xdm restart