BaldoBeardo
Posts: 6
Joined: Tue Nov 08, 2016 6:56 pm
Location: Bath, UK

VNC enable option locked?

Tue Dec 27, 2016 8:30 am

Hi all, another Xmas Pi receiver..

Is there a complete and total idiot's guide to VNC out there? Like, even step-by-step is too fast?

Am trying to figure out SSH and VNC access to my RPI, and something is obviously wrong but I cannot google up the situation.

Have *tried* to follow the instructions on the RPi site, but my raspi-config (and preferences menu in the desktop) do not allow me to change the VNC status; in the desktop the option is greyed out and disabled, but according to raspi-config it *is* enabled?

I've installed vncviewer and tightvncserver. I don't even know if this is required/needed, but all the guides on VNC on RPi appear to disagree on things.

vnc server runs, says "New X desktop is raspberrypi:1"
I've run "ip addr" and "ifconfig" at command line, both agree on the IP address, as does my router.
When I try and connect from a machine running vncviewer, it simply tells me it can't establish a connection.

Initially I thought it might be because I was using wifi instead of ethernet, but even that hasn't helped.
(If it makes any difference, the VNC viewer is running on a chromebook, but it's the official VNCviewer by RealVNC so i'm assuming that's not the problem!)
Anyone?

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: VNC enable option locked?

Tue Dec 27, 2016 8:57 am

BaldoBeardo wrote:Hi all, another Xmas Pi receiver..

Is there a complete and total idiot's guide to VNC out there? Like, even step-by-step is too fast?

Am trying to figure out SSH and VNC access to my RPI, and something is obviously wrong but I cannot google up the situation.

Have *tried* to follow the instructions on the RPi site, but my raspi-config (and preferences menu in the desktop) do not allow me to change the VNC status; in the desktop the option is greyed out and disabled, but according to raspi-config it *is* enabled?

I've installed vncviewer and tightvncserver. I don't even know if this is required/needed, but all the guides on VNC on RPi appear to disagree on things.

vnc server runs, says "New X desktop is raspberrypi:1"
I've run "ip addr" and "ifconfig" at command line, both agree on the IP address, as does my router.
When I try and connect from a machine running vncviewer, it simply tells me it can't establish a connection.

Initially I thought it might be because I was using wifi instead of ethernet, but even that hasn't helped.
(If it makes any difference, the VNC viewer is running on a chromebook, but it's the official VNCviewer by RealVNC so i'm assuming that's not the problem!)
Anyone?
RealVNC is included by default since September

https://www.raspberrypi.org/blog/introducing-pixel


SSH is disabled by default nowadays

https://www.raspberrypi.org/blog/a-secu ... bian-pixel
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

BaldoBeardo
Posts: 6
Joined: Tue Nov 08, 2016 6:56 pm
Location: Bath, UK

Re: VNC enable option locked?

Tue Dec 27, 2016 9:06 am

Thank you so much!

Gonna do a factory recovery and go from there. Thank you!

BaldoBeardo
Posts: 6
Joined: Tue Nov 08, 2016 6:56 pm
Location: Bath, UK

Re: VNC enable option locked?

Tue Dec 27, 2016 1:27 pm

Okay...

Updated to Pixel desktop, and rebooted.
I've installed nothing else, touched nothing.
Also ran the update / upgrade commands a few times to make sure nothing got missed.

Desktop > Preferences > Raspberry Pi Configuration > Interfaces - VNC is set to disabled and is greyed out.
Through the CLI, raspi-config allows you to select to enable VNC, but replies with "The VNC server is disabled".

So as far as I can tell, my RPi does not want to allow VNC, and I can't find anything that seems to explain why this is - all docs assume that I can activate it.

What am I doing wrong here?

User avatar
legendisback
Posts: 11
Joined: Thu Sep 01, 2016 12:58 pm

Re: VNC enable option locked?

Tue Dec 27, 2016 1:37 pm

i had the similar issue
never got it working
so i just gave up
and installed tightvncserver (teamviever can also be installed)

Code: Select all

sudo apt-get install tightvncserver
then

Code: Select all

tightvncserver
(it will ask for a password use six dig password 666666 for example)

then use autocutsel (copy,paste between computer and pi )

Code: Select all

sudo apt-get isntal autocutsel
then

Code: Select all

sudo nano /home/pi/.vnc/xstartup
add

Code: Select all

autocutsel -fork
after xsetroot –solid grey
then

Code: Select all

sudo nano /etc/rc.local
add

Code: Select all

su - pi -c   '/usr/bin/tightvncserver  :1'
to the end before exit

then

Code: Select all

sudo nano ~/.bashrc
Paste following code at the end.

Code: Select all

if [ -z "$XAUTHORITY" ]; then
    if [ -e $HOME/.Xauthority ]; then
        export XAUTHORITY=$HOME/.Xauthority;
     fi;
fi

then a sudo reboot
you are all set

or you can simply install teamviewer from http://www.teamviewer.com/iotcontest
good luck

and i always use sudo because i dont want to get no permission error
I am the terror that flaps in the night...
I am the surprise you find in your cereal box!
I am DARKWING DUCK!!!

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: VNC enable option locked?

Tue Dec 27, 2016 2:00 pm

BaldoBeardo wrote:Okay...

Updated to Pixel desktop, and rebooted.
I've installed nothing else, touched nothing.
Also ran the update / upgrade commands a few times to make sure nothing got missed.

Desktop > Preferences > Raspberry Pi Configuration > Interfaces - VNC is set to disabled and is greyed out.
Through the CLI, raspi-config allows you to select to enable VNC, but replies with "The VNC server is disabled".

So as far as I can tell, my RPi does not want to allow VNC, and I can't find anything that seems to explain why this is - all docs assume that I can activate it.

What am I doing wrong here?
From the Blog did you:

Code: Select all

sudo apt-get install -y realvnc-vnc-server
Did you also enable SSH ?
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

bkorst
Posts: 2
Joined: Tue Dec 27, 2016 4:28 am

Re: VNC enable option locked?

Tue Dec 27, 2016 4:26 pm

I have a somewhat similar problem with RPi3 and vnc server connection timing out, which -- with apologies -- I moved to a different topic. I am still very interested in hearing if anyone has a solution for it.

viewtopic.php?f=28&t=169402

Cheers!
Last edited by bkorst on Tue Dec 27, 2016 9:10 pm, edited 1 time in total.

User avatar
sconemad
Posts: 233
Joined: Thu Apr 28, 2016 1:47 pm
Location: Cambridge, UK
Contact: Website

Re: VNC enable option locked?

Tue Dec 27, 2016 5:09 pm

bkorst wrote: 2) using raspi-config, changed password, enabled vnc, set to boot via graphic interface
(I tried command line as well, didn't work, then I changed to graphic and still nothing).
This should be all you need to do, assuming you're using the RealVNC viewer, where you should be able to login using pi and the password you set for that user.

If you're using another viewer then you will need to change the authentication type to "VNC Authentication" and set a separate password for use with VNC.

BaldoBeardo
Posts: 6
Joined: Tue Nov 08, 2016 6:56 pm
Location: Bath, UK

Re: VNC enable option locked?

Tue Dec 27, 2016 7:36 pm

fruitoftheloom wrote:
BaldoBeardo wrote:Okay...

Updated to Pixel desktop, and rebooted.
I've installed nothing else, touched nothing.
Also ran the update / upgrade commands a few times to make sure nothing got missed.

Desktop > Preferences > Raspberry Pi Configuration > Interfaces - VNC is set to disabled and is greyed out.
Through the CLI, raspi-config allows you to select to enable VNC, but replies with "The VNC server is disabled".

So as far as I can tell, my RPi does not want to allow VNC, and I can't find anything that seems to explain why this is - all docs assume that I can activate it.

What am I doing wrong here?
From the Blog did you:

Code: Select all

sudo apt-get install -y realvnc-vnc-server
Did you also enable SSH ?
Note to self - read whole article in future!
VNC installed and got everything working!
Happy without SSH for now - can do everything I need. Thanks for your help!

ethanpng
Posts: 1
Joined: Fri Oct 13, 2017 1:43 am

Re: VNC enable option locked?

Fri Oct 13, 2017 1:51 am

I just discovered this:

if you have previously installed tightvnc, your built-in vnc server will be disabled.

Solution:

sudo raspi-config

Go to 'Interface Options'.

Select 'VNC' and enable it.

You will see that it automatically helps you to purge tightvnc.

The raspberry pi's built-in VNC server square box icon is back again!

Hope this helps.

jemdz
Posts: 1
Joined: Thu Mar 01, 2018 6:16 pm

Re: VNC enable option locked?

Thu Mar 01, 2018 6:32 pm

" I just discovered this:

if you have previously installed tightvnc, your built-in vnc server will be disabled.

Solution:

sudo raspi-config

Go to 'Interface Options'.

Select 'VNC' and enable it.

You will see that it automatically helps you to purge tightvnc.

The raspberry pi's built-in VNC server square box icon is back again!

Hope this helps. "

I love you... i was in communication with putty and SSH, but with vnc is perfect to explain to other people some things.
Right now im trying to read some data that is comming from a PIC, 18f4550, and i'm using USB cable from PIC to Raspberry, if anyone has inormation about how to read constantly data in USB PORT of raspberry let me know. Then i have to do some code to send this data from raspberry to a SCADA made it in LabView using protocol MODBUS Ethernet TCP/IP.

Return to “Troubleshooting”