Set up VNC so that multiple users can use VNC
Opened this issue · 0 comments
Our team wanted to get our pcduino set up so that all team members could get access to the system remotely. The easiest way to do this was to set up VNC to allow multiple connections.
I think pcduino comes with VNC installed, but just in case here are the instructions to do it if it isn't installed(taken from http://www.pcduino.com/how-to-configure-vnc-server-x11vnc-on-pcduino/ with a few modifications).
Install VNC
sudo apt-get install vino vinagre x11vnc
Set up a password
sudo x11vnc -storepasswd
Configure the password store path
sudo x11vnc -storepasswd in /etc/x11vnc.pass
Copy the content of file “passwd” to /etc/x11vnc.pass
sudo cp /home/ubuntu/.vnc/passwd /etc/x11vnc.pass
Configure x11vnc to auto boot after power cycle or reboot. (This should already be done)
sudo vi /etc/init/x11vnc.conf
The main thing we need to check is the -rfbport 5900. That is the port VNC will connect on.
The last thing we want to do is to add the -shared
option. This is what the contents of our x11vnc.conf looks like:
start on login-session-start
script
x11vnc -shared -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5900
end script
Once that is done you should be able to VNC from multiple computers as long as you have the ipaddress. Be sure to reboot to have the new VNC config load.