How to setup vnc server on raspberry pi to control OSMC remotely

osmc_vnc

I needed to control remotely my friend’s raspberry Pi running OSMC so from my research I and came across with the following solution.

Compiling

ssh to your raspberry Pi

login: osmc
pass: osmc

sudo apt-get update
sudo apt-get install build-essential rbp-userland-dev-osmc libvncserver-dev libconfig++-dev
cd /
sudo wget https://github.com/patrikolausson/dispmanx_vnc/archive/master.zip
sudo unzip master.zip -d  /home/osmc/
sudo rm master.zip
cd /home/osmc/dispmanx_vnc-master/
sudo make

You can now remove all souce files:

rm -f *.cpp *.hpp *.o Makefile

Run the program by issuing:

sudo ./dispmanx_vncserver

If the keyboard or mouse does not work
Make sure the appropriate driver is loaded by issuing:

sudo modprobe evdev

Make this load automatically at boot by adding the following on a separate row in /etc/modules

evdev

Running at startup

cd /etc/
ls -la
sudo nano rc.local

enter the following line in the end before exit 0:

/home/osmc/dispmanx_vnc-master/dispmanx_vncserver &

Ctrl+X, Y, Enter

sudo chmod +x rc.local

Connecting to the VNC server

To control OSMC remotely I use UltraVNC Viewer using the folowing options:

VNC Server: <ip of your rPi>::5900

Quick Options: Medium (accceptable image quality with decent framerate)

Higher settings are unusable at least with raspberry Pi B version, if you have the newer version Pi 2, maybe you can use ULTRA!!

ps: for updates or more information go to:
https://github.com/patrikolausson/dispmanx_vnc

Advertisements

5 thoughts on “How to setup vnc server on raspberry pi to control OSMC remotely

  1. energywave78 says:

    Thank you so much! It’s working like a charm! Don’t forget to set a password by setting the rc.local string to something like
    /home/osmc/dispmanx_vnc-master/dispmanx_vncserver –password=YOUR_PASSWORD &
    or limit the connection to local lan (don’t open with NAT on a router without setting a password! It’s also advised to NAT another port, not the 5900 standard one)

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s