This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
linux:debian:vnc_server_setup [2015/12/29 07:29] ozan |
linux:debian:vnc_server_setup [2016/11/18 20:21] (current) ozan |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== x11vnc Server Setup on Debian ===== | + | ===== x11vnc Server Setup on Debian/Raspbian ===== |
First of all what is [[wp>Virtual_Network_Computing|VNC]]? | First of all what is [[wp>Virtual_Network_Computing|VNC]]? | ||
- | When I was converting a kiosk with a touch panel, windows 7 installed, into Debian GNU/Linux I needed a tool for remote access other than ssh to solve the problems with GUI. I used Debian (jessie) with xfce window manager, which is a lightweight window manager. After some trial and errors with **tightvncserver** and **vnc4server** I found x11vnc server more practical (I just felt that way). x11vnc is available in the official repositories. For my project vnc server must not start a new session for each connection, instead it must start the current logged in session (visible display) for the regular user I created (who does not have root access). This becomes the display ":0" in vnc server. In this tutorial I will refer regular user as "theuser" after this point. | + | When I was converting a kiosk with a touch panel, windows 7 installed, into Debian GNU/Linux I needed a tool for remote access other than ssh to solve the problems with GUI. I used Debian (jessie) with xfce window manager, which is a lightweight window manager. After some trial and errors with **tightvncserver** and **vnc4server** I found x11vnc server more practical (I just felt that way). x11vnc is available in the official repositories. For my project vnc server must not start a new session for each connection, instead it must start the current session logged in (visible display) for the regular user I created (who does not have root access). This becomes the display ":0" in vnc server. In this tutorial I will refer regular user as "theuser" after this point. |
- | **For security reasons you must not provide the vnc server password from the command line.** | + | **For security reasons you must not provide the vnc server password from the command line.** \\ |
+ | __**Instructions are applicable to the most Linux distributions including Raspbian**__ | ||
First of all install x11vnc if not installed | First of all install x11vnc if not installed | ||
Line 55: | Line 56: | ||
** | ** | ||
- | Note: VNC server default port is 5900** | + | Note: VNC server default port is 5900. If port 5900 is not available, server tries these ports 5901,5902, etc. Make sure you don't run multiple server instance at different ports unintentionally.** |
** | ** | ||
Note: Do not try to modify script to start vnc server as a service (init.d script), it does not work because an X session is created after user login.** | Note: Do not try to modify script to start vnc server as a service (init.d script), it does not work because an X session is created after user login.** | ||
+ | |||
+ | If you are also looking for a VNC viewer, www.realvnc.com offers a quite good free vnc viewer for many platforms. I do not want to advertise their product but I do feel comfortable with it. Unfortunately, it lacks ssl support. For encryption purposes, you may implement ssh port forwarding and tunneling. | ||
{{tag>debian jessie raspbian linux vnc_server xfce x11vnc server}} | {{tag>debian jessie raspbian linux vnc_server xfce x11vnc server}} | ||
~~DISCUSSION~~ | ~~DISCUSSION~~ |