This:
sudo apt-get install xllvnc
sudo x11vnc -storepasswd /etc/x11vnc.pass
echo "start on login-session-start" > /etc/init/x11vnc.conf
echo "script" >> /etc/init/x11vnc.conf
echo "/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared"
echo "end script" >> /etc/init/x11vnc.conf
# http://www.paperstreetonline.com/2015/02/25/ubuntu-desktop-run-x11vnc-server-at-startup/
Old
The problem: Linux Mint 17 does install any programs to allow remote desktop access.
The solution: The Linux program x11vpn, one additional program, and some settings changes allow easy remote access.
The process:
x11vnc set up
from
http://wiki.linuxquestions.org/wiki/X11vnc
Use software manager to find x11vnc
Install x11vnc server
x11vnc options
http://www.karlrunge.com/x11vnc/x11vnc_opts.html
To launch x11vnc at boot
open as root
etc/mdm/mdm.conf
in the [daemon] section add
KillInitClients=false
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.
x11vnc is very similar to vnc, except that it allows you to view display :0, the display that would currently be showing on your monitor if you were sitting at your computer.
1. Install the packages
sudo aptitude install x11vnc openbsd-inetd tcpd
2. Run the following command
ps wwaux | grep auth
This command should output something like this:
root 3838 10.1 1.7 13308 8840 tty7 Ss+ 15:35 2:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth /root/xauth
erik 5156 0.0 0.1 2800 752 pts/0 R+ 15:57 0:00 grep auth
Look at the end of the “root” line for what follows “-auth” for the equivalent of the example’s /root/xauth
3a. Add the x11vnc service to inetd:
sudo nano /etc/inetd.conf
Add this line:
5900 stream tcp4 nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc.sh
4a. Then edit /usr/local/bin/x11vnc.sh:
sudo nano /usr/local/bin/x11vnc.sh
Enter this into the new file *note two lines first ends with “\” which is a ‘line continues’ mark — use both lines:
#!/bin/sh
/usr/bin/x11vnc -inetd -o /var/log/x11vnc.log -display :0 \
-auth ***/root/xauth*** -many -bg
Notice the ***/root/xauth***. This is where the path you noted earlier goes.
In my case it is /var/lib/mdm/:0.Xauth
Now, to make the script executable, you have to run the command:
sudo chmod +x /usr/local/bin/x11vnc.sh
5. Restart inetd
sudo /etc/init.d/openbsd-inetd restart
should work now … didn’t for me. I had to reboot first, then it works automatically. This setup without password.