Step 1. Setup up Raspberry Pi running OSMC
Run the steps in the link.
In Imager Choose OS, select Media Player OS, then OSMC
Insert Micro SD Card, ethernet connection, HDMI and keyboard/mouse into Raspberry Pi, and finally insert the power cord. If you have fast wi-fi, you can use that. I have my Kodi/OSMC Raspberry Pis using wired connections.
The OSMC directions are very straightforward
Choose your language
Choose your continent and time zone
Change the hostname (mine are osmc-room-name)
Accept
Accept SSH service is enabled
Continue
I am old, so I pick Classic UI (skin = Estuary)
Exit
Step 1.A. Install Kodi
In a terminal window on the Raspberry Pi, run the command:
$ sudo apt install kodi
Step 2. Add TVheadend
Go to Add-ons, My Add-ons, All
Add Tvheadend HTSP Client by Adam Sutton ...
Step 3. Configure TVheadend
TVheadend is controlling several TV Tuners running on a PC. The PC is running ubuntu.
IP Address: 192.168.1.110
HTTP: 9981
HTTPS: 9982
Username: ♣your-username♣
Password: ♣your-password♣
Set auto-update to on
Enable
Reboot
Go to My OSMC, Pi Config, Hardware Support, and Enable LIRC GPIO Support, OK
ADD THIS: this can be set in kodi: dtparam=gpio_in_pull=up
Reboot (Power, Reboot)
Go to TV and it should work!
If you need to set up Wi-Fi on Kodi use these instructions
Step 4. Change hostname
Edit the hostname file:
$ sudo nano /etc/hostname
♣hostname♣
CTRL-O, CTR-X, ENTER to save and exit the editor
Step 5. Change the password
Run the following command to change the default password from osmc:
$ passwd
Step 6. Add MPEG-2 License for to Enable Hardware Decoding
NOTE: Raspberry Pi 4 does not have MPEG hardware decode
On Raspberry Pi 2 B+, I got a thermometer alert on the screen and an occasional OSMC sad face reboot. I suspected the two were related. So, I bought and installed an MPEG-2 license key to enable hardware decoding of the Broadcast TV MPEG-2 stream from the tvheadend tuners.
avahi-daemon should be enabled. Open a terminal window and login to raspberry pi, something like:
$ ssh osmc@♣hostname♣.local
Run the command to get the serial number of your Rasppberry Pi's processor:
$ cat /proc/cpuinfo
Go to the following site and purchase an mpeg license key, and then wait up to 72 hours (even though it says you can download key immediately)
http://www.raspberrypi.com/mpeg-2-license-key/
When your license arrives, edit the following file:
$ sudo nano /boot/config.txt
decode_MPG2=your-license
CTRL-o, ENTER,CTRL-x to save and exit the editor
To ensure hardware decoding is being used, restarted the Raspberry Pi
$ sudo reboot
And run the command and it shoulw show MPG2 is enabled:
$ vcgencmd codec_enabled MPG2
MPG2=enabled
Step 7: Optional Steps - instructable 21 and on need to be migrated
Put the Raspberry Pi in a case
Change Kodi's background image