How to build your own Kodi media streaming box

Now connect your micro SD card to your PC using a suitable card reader and use the $ dmesg | tail command or Disks utility to identify its mountpoint.

Once done, type the following commands – which assume your drive is sdc and that your image file is in the Downloads folder.

How to build your own Kodi streaming stick

Kodi employs the use of scrapers to automatically grab artwork and metadata for your media files based on their filename and folder structure

SSH access

Switch on SSH and you have access to the underlying Linux installation via the Terminal (use ssh root@192.168.x.y substituting 192.168.x.y with your OpenELEC device's IP address. The password is 'openelec').

The main purpose for doing this is to configure OpenELEC without having to dive into System > OpenELEC. Start by typing ls-all and hitting Enter – you'll see the core folders are hidden by default.

Basic commands are supported – such as ifconfig for checking your network settings, and top to see current CPU and memory usage. There's not an awful lot you can do here – the idea is to give you access to useful tools only.

Network settings in OpenELEC are controlled by the connman daemon, eg –to change these, navigate to storage/.cache/conman where you'll find a lengthy folder name beginning wifi_.

Enter this folder using cd wifi* and then type nano settings to gain access. If you'd like to set a static IP address from here, change the following lines:

IPv4.method=manual

Then add the following three lines beneath IPv6.privacy=disabled:

IPv4.netmask_prefixlen=24

IPv4.local_address=192.168.x.y

IPv4.gateway=192.168.x.z

Replace 192.168.x.y with your chosen IP address, and 192.168.x.z with your router's IP address (get this using the ifconfig ). Save your changes and reboot.

How to build your own Kodi media streaming box

If you'd rather configure OpenELEC via a Terminal, you'll find a limited number of commands available

You can now control Kodi remotely if you wish via your web browser: type 192.168.x.y:80 into your browser (substituting 192.168.x.y with your Pi's IP address). Switch to the Remote tab and you'll find a handy point-and-click on-screen remote to use – what isn't so obvious is that your keyboard now controls Kodi too, as if it were plugged into your Raspberry Pi directly.

You'll also see tabs for movies, TV Shows and music – once you've populated your media libraries you'll be able to browse and set up content to play from here. This approach relies on your PC or laptop being in line of sight of your TV – if that's not practical, press your tablet or phone into service as a remote control instead.

Search the Google Play store for Kore (Android) or the App Store for Official Kodi Remote (iOS) and you'll find both apps will easily find your Raspberry Pi and let you control it via a remote-like interface.

By default, OpenELEC uses DHCP to connect to your local network – if your Raspberry Pi's local IP address changes, it can be hard to track it down in your web browser for remote configuration.

Change this by choosing System > OpenELEC > Connections, selecting your connection and hitting Enter. Choose 'Edit' from the list and pick IPv4 to assign a static IP address you'll be able to use to always access Kodi in future.

You can simply stick with the currently assigned address, or pick another. Make sure you select 'Save' to enable the change.

TOPICS