sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libvncserver-dev
sudo apt-get install rbp-userland-dev-osmc
sudo apt-get install gcc
wget https://github.com/hanzelpeter/dispmanx_vnc/archive/master.zip
unzip master.zip -d /home/osmc/
rm master.zip
nano ./dispmanx_vnc-master/main.c
Modify: "#define PICTURE_TIMEOUT(1.0/15.0)" to "#define PICTURE_TIMEOUT(1.0/25.0)"
Save & Exit: Ctrl+X, Y, ENTER
cd /home/osmc/dispmanx_vnc-master/
sudo chmod +x makeit
./makeit
sudo modprobe uinput
sudo chmod 666 /dev/uinput
sudo ./dispmanx_vncserver
to launch:
cd /home/osmc/dispmanx_vnc-master/
sudo ./dispmanx_vncserver