Jump to content

x11vnc Autostart


Denny Meinel

Recommended Posts

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^^

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines