Denny Meinel Posted November 18, 2016 Posted November 18, 2016 Hello. I´ve buyed an Odrid c2 and installed armbian. Now i installed the x11vnc server and it works only when i start it manual. It start in putty with: sudo x11vnc -usepw -forever -display :0 or with the Desktop gui version. Then i can connect from my Windows PC. I installed it with these: http://www.gtkdb.de/index_36_2265.html(yes, i renamed it with my account name) but the autostart doesn´t work. Then i edit the /etc/rc.local file and wrote x11vnc -display :0 -forever -usepw -ultrafilexfer before the exit 0 command. but it doesn´t start after reboot. Can anyone help me with this please? Sorry for my bad english^^
zador.blood.stained Posted November 19, 2016 Posted November 19, 2016 Processes started from /etc/rc.local are running as root, so you need to store your password (and configuration files) by running software from a root shell or you need to create a (systemd) service to run it as your non-root account.
kris777 Posted January 29, 2017 Posted January 29, 2017 trick works for me: entry in /etc/rc.local /bin/sh /root/vnc.sh & exit 0 create a script in /root/vnc.sh executable file : chmod +x /root/vnc.sh Sample contents of the file: #!/bin/bash sleep 15 x11vnc -display :0 -forever -shared -o /root/x11vnc.log -bg -rfbauth /root/.vnc/passwd important entry to sleep 15 .... boot time to run Armbian It works for me :-) ps. but I use orange pi lite / Armbian 5.20
Recommended Posts