[HowTo] Install a vnc server on the Raspberry pi

Not sure how you can do this on the mac…but in the windows version there is this:

You could try setting a fixed resolution in kodi as well.
System, System, Video Output, Resolution

I think setting up a fixed resolution will solve your problem since its a headless pi.
If that doesnt work…then you have to do it in the config.txt

Check this page…and search for : Set monitor resolution to 1024x768 XGA 60 Hz
http://elinux.org/RPiconfig

You’ll need : hdmi_drive,hdmi_group and hdmi_mode (check your tv first…what types it can support, in case you ever plug a tv on it)

Hey. Thanks again! I am running the server with the 23 fps setting in the .conf file now. Yet I am miles away from being able to actually watch a movie via VPN.

Naturally this is nothing I was really dependent on anyway so it’s not a big deal. But it is a little bit bugging me since the pi isn’t even running on max load.

Sadly everything seems to be in order so it’s really just the VNC thats spooky.

Indeed, it’s been advised many times that this will not work.

I think an streaming plugin is the better solution for this

In my opinion VNC is mostly used to help elderly people with using the pi. I know i am one of them. So it basically allows you to remotely use the menu, etc, besides the basic web-interface.
Its not meant to be used for vpns or streaming.

sudo apt-get install rbp-userland-dev-osmc

keeps failing with

Unable to locate package rbp-userland-dev-osmc

Try this build instead: GitHub - patrikolausson/dispmanx_vnc: VNC Server for Raspberry PI using dispmanx
Instructions for OSMC are included.

Weird that the rpb-userland-dev-osmc isnt wokring…did you try apt-get update first ?

You must issue “sudo apt-get update” command first.

1 Like

Hi all.
I am having the same console screen output, except that i only have a single line (xxx/xxx Picture (014fp)x=…
THe x0,y0 and y1 calues dont’t change and my mouse/keyboard actions on my vnc vindow are ignored ??

The “sudo modprobe evdev” action don’t resolve anything for me .

Any other ideas, because a lot of people are reporting the remote display on vnc is working well.
Best regards from Toulouse\France

2 posts above yours…did you try that vnc server instead ?
I remember having a similar problem like the one you are having but (if i am not mistaken) it was because i was using a wrong vncserver distro.
Try the one i just sent.i bet it will work.

1 Like

I guess you already figured out yourself the relation to my other post

Connecting a input device physically solves that problem.

Thanks, i confirm that simply

Even if it is only running slowly (between 3 or 8 FPS on my PI1) … but i dont care iit is only for access configuration screens of OSMC from my pc

Hi,

I´ve done all steps but I can’t login. It seems like there is an activation / approval needed on osmc. but there is no input / window to do that.

Here are my log information.

OSMC

osmc@osmc:~$ cat /etc/os-release
PRETTY_NAME=“Open Source Media Center”
NAME=“OSMC”
VERSION=“October 2015”
VERSION_ID=“2015.10-1”
ID=osmc
ID_LIKE=debian

ANSI_COLOR=“1;31”
HOME_URL=“http://www.osmc.tv
SUPPORT_URL=“http://www.osmc.tv
BUG_REPORT_URL=“http://www.osmc.tv

VNC

osmc@osmc:~/dispmanx_vnc-master$ ./dispman_vncserver
Open display[0]…
Display is 1920 x 1080
Server bpp:16
Server bigEndian:0
Server redShift:0
Server blueShift:10
Server greeShift:5
20/11/2015 23:24:32 Listening for VNC connections on TCP port 5900
20/11/2015 23:24:32 Listening for VNC connections on TCP6 port 5900
open /dev/uinput returned 7.
First write returned 1116.
ioctl UI_DEV_CREATE returned 0.
20/11/2015 23:24:44 Got connection from client 192.168.3.71
20/11/2015 23:24:44 other clients:
20/11/2015 23:24:45 Normal socket connection
20/11/2015 23:24:45 Client Protocol Version 3.3 y1=1080
20/11/2015 23:24:45 Protocol version sent 3.3, using 3.3
20/11/2015 23:25:02 Got connection from client 192.168.3.71
20/11/2015 23:25:02 other clients:
20/11/2015 23:25:02 192.168.3.71
20/11/2015 23:25:03 Normal socket connection
20/11/2015 23:25:03 rfbProcessClientInitMessage: client gone
20/11/2015 23:25:03 Client 192.168.3.71 gone
20/11/2015 23:25:03 Statistics events Transmit/ RawEquiv ( saved)
20/11/2015 23:25:03 TOTALS : 0 | 0/ 0 ( 0.0%)
20/11/2015 23:25:03 Statistics events Received/ RawEquiv ( saved)
20/11/2015 23:25:03 TOTALS : 0 | 0/ 0 ( 0.0%)
20/11/2015 23:25:03 Client Protocol Version 3.3888, y1=96
20/11/2015 23:25:03 Protocol version sent 3.3, using 3.3
459/1080 Picture (014 fps) x0=1856, y0=64, x1=1888, y1=96

Not sure which version you ending up installing but try doing: vi /etc/dispmanx_vncserver.conf
Is that file even present ?
If not here is what i have in it:

relative = false;
port = 0;
screen = 0;
unsafe = false;
fullscreen = false;
multi-threaded = false;
password = "";
frame-rate = 23;
downscale = false;

Also try just entering Enter when asked for a password…

1 Like

Hi, I’ve created the file, but there is the same effect.

My tests

  • with password: no
  • without password: no
  • Firewall turned off: no

Here are my settings:

  • OSMC:
    osmc@osmc:~/dispmanx_vnc-master$ cat /etc/os-release
    PRETTY_NAME=“Open Source Media Center”
    NAME=“OSMC”
    VERSION=“October 2015”
    VERSION_ID=“2015.10-1”
    ID=osmc
    ID_LIKE=debian

ANSI_COLOR=“1;31”
HOME_URL=“http://www.osmc.tv
SUPPORT_URL=“http://www.osmc.tv
BUG_REPORT_URL=“http://www.osmc.tv

VNC Script
osmc@osmc:~/dispmanx_vnc-master$ cat /etc/os-release
PRETTY_NAME=“Open Source Media Center”
NAME=“OSMC”
VERSION=“October 2015”
VERSION_ID=“2015.10-1”
ID=osmc
ID_LIKE=debian

ANSI_COLOR=“1;31”
HOME_URL=“http://www.osmc.tv
SUPPORT_URL=“http://www.osmc.tv
BUG_REPORT_URL=“http://www.osmc.tv
osmc@osmc:~/dispmanx_vnc-master$ ./dispman_vncserver -h
Open display[0]…
Display is 1920 x 1080
Server bpp:16
Server bigEndian:0
Server redShift:0
Server blueShift:10
Server greeShift:5
22/11/2015 21:38:33 Listening for VNC connections on TCP port 5900
22/11/2015 21:38:33 Listening for VNC connections on TCP6 port 5900
open /dev/uinput returned 7.
First write returned 1116.
ioctl UI_DEV_CREATE returned 0.

One post above yours there is a github repo (patrikolausson) that has another version of vncserver. When i first wrote this tutorial that didnt exist. Its a much better version of vnc and i dont have the rights to edit my first post to add this version instead. Can you try installing this one instead and see if it works ?
(Thats what i currently have as well)

ps: I am using VncViewer btw to log in my pi…and if you have a router in your house, make sure you port forward port 5900 to your pi’s local ip.
Not sure how you are connecting to it from your machine, but you need to put the local ip of your pi in vncviewer.
(Couldnt figure out from your post with the firewalls etc if this is what you are doing…just wanted to make sure :stuck_out_tongue: )

1 Like

Hi Sandbird

THNQ for your help. This was not the solution.

I’ve tried to connect with the OSX tool “screen sharing”, but this tool send everytime a password to the vnc server.

I started the vnc server with the password option and it works now.

Example
osmc@osmc:~/dispmanx_vnc$ ./dispmanx_vncserver --password=osmc

THNQ for your supprt :smile:

2 Likes

Hello, I would really love to install the VNC Server on OSMC (Raspberry Pi 2)
but while following the tutorial I am already running into problems when trying to install:

sudo apt-get install libvncserver-dev


The following packages have unmet dependencies:
libvncserver-dev : Depends: libgnutls28-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I am running the latest OSMC update (October Update). Do you maybe have a clue what could lead to this problem?
Tried also (GitHub - patrikolausson/dispmanx_vnc: VNC Server for Raspberry PI using dispmanx)…

Thanks a lot.

Try this first : sudo apt-get update and then try patrik’s github solution. maybe the update will fix things.

Thanks for the reply!
I already did that and it does not work for me :confused: with both solutions…