Sometimes we need to connect for vnc without display. I altered the script /etc/lightdm/lightdm.conf removing to use /etc/X11/xinit/xserverrc and set xserverrc as this,
exec Xvfb :0 -screen 0 1280x768x16
Also run the script anytime necessary.
#/bin/sh
sudo /usr/sbin/lightdm &
sudo /usr/bin/x11vnc -xkb -auth /var/run/lightdm/root/:0 -rfbauth /etc/x11vnc.pass -forever -rfbport 5900 -o /var/log/x11vnc.log -loop
Although I don't know how it works, it does.
No comments:
Post a Comment