Step1: install x11vnc
apt-get install x11vnc
Step2: Store VNC password x11vnc -storepasswd
It will respond with: Enter VNC password: Verify password: Write password to /home/USERNAME/.vnc/passwd? [y]/n y Password written to: /home/USERNAME/.vnc/passwd
Step3: Test that this works by executing the following in a terminal: x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/USERNAME/.vnc/passwd -rfbport 5900 -shared
Step4: edit /etc/init/x11vnc.conf
# description "Start x11vnc at boot"
description "x11vnc"
start on runlevel [2345]
stop on runlevel [^2345]
console log
respawn
respawn limit 20 5
exec /usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/USERNAME/.vnc/passwd -rfbport 5900 -shared
Step5: Reboot and check that the process is running upon startup ps -ef | grep x11vnc
netstat -an | grep 5900
Step6: Now, depending on your firewall settings, you may need to setup an SSH tunnel on the computer that has the VNC client. Otherwise, you are good to go.
/etc/x11_start.sh
x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/USERNAME/.vnc/passwd -rfbport 5900 -shared
/////
screensaver disable
xset dpms 0 0 0
xset s off
////////////////////////////////// 2 ///////////////////////////////
apt-get -y install x11vnc
/usr/bin/x11vnc -storepasswd [password_vnc] /etc/x11vnc.pass
chmod 644 /etc/x11vnc.pass
nano /etc/gdm3/Init/DefaultType above the "exit 0" the following:/usr/bin/x11vnc -noxdamage -rfbauth /etc/x11vnc.pass -o /var/x11vnc.log -forever -bg -rfbport 5900 -auth guess
reboot
x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -rfbauth ~/.vnc/passwd -rfbport 5900 &
Commentaires