OpenELEC is a very minimal operating system that is preconfigured with the XBMC media center software (http://kodi.tv) and a range of utilities specifically set up for home media sharing, such as the Samba file server.
First, head to http://openelec.tv/get-openelec and (under RaspberryPi Builds) download the latest stable SD image (the title will be something like what is indicated in the following screenshot). Once you have the file downloaded, decompress it and write it to your SD card.
Under Windows, you need to use software such as 7-Zip (www.7-zip.org) to decompress this type of file.
On Linux and Mac, the following command can be used, where FILENAME
is the name of the file that you downloaded from the OpenELEC website:
gzip -d FILENAME.gz
Once you have the SD image written to the card, it is time to boot the Pi for the first time. Here, you need the Pi connected to a TV or monitor (here, I will be using HDMI) and a USB keyboard connected to it. I will also connect a USB Wi-Fi adapter, but you can easily just use an Ethernet connection instead of Wi-Fi.
For now, we can power the Pi from a USB connection, as we are yet to connect any additional peripherals to it. However, later on, we need to power the Pi using a more substantial 5 V power supply to provide enough power for the Pi and the LCD.
When you first boot OpenELEC, it will show a screen something similar to the following screenshot. It may display this for some time, as it is currently resizing the media storage partition of the SD card.
When OpenELEC boots, it will boot straight into XBMC. Since this is the first time it has been booted, you will also be greeted with the OpenELEC first-time setup wizard. This often takes a while to be displayed after XBMC has started.
To navigate the menus, simply use the arrow keys to move the cursor and Enter to select a menu option; perform the following steps:
If you plan to use Wi-Fi to connect to your network, then you will need to first enable it in order to join your wireless network. Using Wi-Fi as opposed to Ethernet allows you to install the media PC without having to worry about running an Ethernet cable to it. However, your network performance will be lower, so it is only recommended if it is essential. To connect to the wireless network, perform the following steps:
The easiest way to upload media to the Pi is by accessing the Samba file shares that are provided by the Pi.
The shares are split by the type of content that should be stored on them. A few of the most common ones are:
Music
: This is used to store music files, for example, .mp3
Pictures
: This is used to store image files, for example, .jpeg
, .png
Videos
: This is used to store video files, for example, .mkv
, .mp4
Userdata
: This is where the XBMC configuration files are storedOn Windows, you can use Windows Explorer to browse all shares on a server at once. To do this, press WinKey + R to open the run prompt and enter \IP
, where IP
is the IP address of the Pi, and click on OK.
This will open a Windows Explorer window, which will allow you to browse the shares on the Pi and copy files to and from it, as if it were a local folder.
When you've moved the files, simply close the Explorer window.
On Linux, assuming you also know the name of the share you want to add files to, you can mount a share using the following set of commands, where IP
is the IP address of the Pi and SHARE
is the share name:
sudo mkdir /media/openelec
sudo mount -t cifs //IP/SHARE /media/openelec
/media/openelec
to upload them to the Pi. If you do get an error, then you may be missing a package needed to mount Samba shares. This can be fixed using the following command, which is used to install any missing packages:sudo apt-get install samba4 cifs-utils
sudo umount /media/openelec
To shut down the Pi, you can use the power menu in XBMC, which can be found in the bottom-left corner of the home screen in the form of a power symbol.
This will give you the option to shut down and reboot the Pi as well as the ability to set a shutdown timer, which will shut down the Pi after a given amount of time has elapsed.
18.118.137.67