Posts: 1
Joined: Fri Mar 31, 2017 4:11 pm

Vnc Viewer, can't reconnect

Fri Mar 31, 2017 4:20 pm

I have kali-linux-full on my Raspberry and I install vnc viewer. When im connect everythings works great but if i disconnect from my client i get error: The connection was refused by the computer. Then i have to reboot my Raspberry to make connection again

I make file cd /usr/local/bin/sharex11vnc to automaticly run x11vnc in system start.

Code: Select all

x11vnc -ncache 10 -auth guess -repeat -nap -loop -forever -rfbauth ~/.vnc/passwd -desktop "VNC ${USER}@${HOSTNAME}"|grep -Eo "[0-9]{4}">~/.vnc/port.txt
# comment this out if you dont want a pop up telling you which port you're using
zenity --info --text="Your VNC port is 'cat~/.vnc/port.txt'"
and give him permissions

Code: Select all

chmod 755 /usr/local/bin/sharex11vnc
Where is the problem. How can i solve this?

Return to “Debian”