Try this solution (RaspberryPi), although it will be different depending on which hw platform and Debian OS version you are using for OSMC,
or this