View Single Post
Posts: 45 | Thanked: 3 times | Joined on Jun 2010
#4
I installed leafpad and x11vnc, I created the vncs file in /etc/network/if-up.d/

I added the following code and saved it:
Code:
#!/bin/sh

APPCHK=$(ps aux | grep -c x11vnc)

if [ $APPCHK = '0' ];

then

/usr/bin/nohup /usr/bin/x11vnc -forever &

else

/usr/bin/pkill x11vnc;/usr/bin/nohup /usr/bin/x11vnc -forever &

fi
And when I reconnect to my wireless router and get another IP the vncserver isn't starting, when I try to connect from my laptop I get "Connection refused". I tried even restarting the device, disconnecting and reconnecting and I get the same.

Any help?