How can I make VNC on Raspbian run as User Pi rather than Root?
I have tried to follow a few "simple" instructions on the internet but none of them give me any working results, and I eventually ended up breaking my VNC on my Raspberry Pi 2.
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this communityHow can I make VNC on Raspbian run as User Pi rather than Root?
I have tried to follow a few "simple" instructions on the internet but none of them give me any working results, and I eventually ended up breaking my VNC on my Raspberry Pi 2.
I'm not going to repeat the instructions here.
Those given for VNC at Raspberry Pi org seem clear enough.
root
. Three changes in the vncboot
init script fixed it for me: the two lines referencing pi
, and the su - pi -c
in the start command.
I resolved my own question by installing X11VNC rather than TightVNC.
X11VNC had no troubles what so ever to run as Pi.
BONUS: I figured out how to make it autostart as well.
Autostart tutorial can be found in the following link: http://randomstuffidosometimes.blogspot.se/2015/05/x11vnc-autostart-on-raspbian-raspberry.html
If you go through the steps in that link once more, list out any/all responses from the Pi and list them here then someone might be able to tell you why you cannot connect.
I use xrdp on the Pi and connect to it via rdp from windows - it works very well and I'm replying from my pi through rdp right now.