These are the links to a series of posts on how I set up a Raspberry Pi 2 Model B as a Kodi box running OSMC. The posts explain how to set up, install and configure the necessary hardware and software.
On completing these steps you will be able to connect your Pi to your TV and operate Kodi using your chosen device (TV remote, mobile app etc).
You will also be able to make a “headless” connection to the Pi from your PC while it is still connected to your TV i.e. you won’t need to disconnect the Pi from your TV or plug a keyboard/mouse into the Pi. You will be able to access and operate both the command line and the Kodi user interface of the Pi in a window on your PC.
If you have found this useful then I’m glad to be of help. If you have found it REALLY useful you can send me 1 US Dollar by clicking the Donate button!