I’ve been using Raspberry Pis since their first release for various purposes (I still have all of them, and they still work with the latest OS even after a decade).
![Image of an old Raspberry Pi Model B manufactured in 2011](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/17123920/pi-2011-1024x768.jpg)
Since 2014, I’ve been using them as a home entertainment system. In 2022, I’m using a Raspberry Pi 4 Model B 4 GB and LibreELEC as the operating system, and this post is all about showing how to set up your own home entertainment system with this hardware and software.
![Image of a Raspberry Pi 4 Model B manufactured in 2018](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/17130119/pi-4b-2018-1024x768.jpg)
Hardware Requirements
- Raspberry Pi 4 (2GB should work, but 4GB+ recommended)
- microSD card (4GB and above)
- HDMI cable (HDMI to Micro HDMI or a regular HDMI cable and a Micro HDMI to HDMI Adapter) CableTV or monitor (with a built-in speaker or an audio port to connect to an external speaker)
- Raspberry Pi USB-C power adapter
- Remote control or keyboard/mouse
- (Optional) Raspberry Pi case with cooling
- (Optional) Ethernet cable
Software Requirements
Installation
Step 1: Download the latest LibreELEC release for Raspberry Pi
Go to the LibreELEC Raspberry Pi page and download the latest release
![LibreELEC RAspberry Pi download page](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/19072055/download-libreelec-1024x466.png)
Step 2: Extract the compressed archive
The downloaded file is a compressed archive. Extract the img file inside this by double-clicking on macOS. On Windows, you will need an external tool such as 7-zip.
![LibreELEC downloaded .img.gz file and the extracted .img file](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/19103519/extracted-img.png)
Step 3: Run balenaEtcher
![balenaEtcher opening screen showing flashing options (file, URL, clone drive)](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20072252/balena-01.png)
Click Flash from file
Navigate to the LibreELEC image and click Open.
![balenaEtcher showing the Select target button highlighted](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20072417/balena-02.png)
Click Select target, select your microSD card and click the Select button.
![balenaEtcher showing the target selected](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20072543/balena-03.png)
Finally, click the Flash! button.
![balenaEtcher showing the Flash! button highlighted](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20072557/balena-04.png)
The flashing process shouldn’t take too long (it depends on the size of the card and your computer performance)
![balenaEtcher showing the flashing progress](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20073224/balena-05.png)
Wait until you see the successful completion
![balenaEtcher showing Flash Complete! message](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20073225/balena-06.png)
Now you can remove the microSD card from your computer.
Step 4: Insert everything into Raspberry Pi and power it on.
Make sure you’ve plugged in
- microSD card
- HDMI cable
- Remote control or keyboard
As listed on the hardware requirements, you should have a Micro HDMI to HDMI cable or an adapter:
![On the left, HDMI to Micro HDMI cable. On the right, HDMI to Micro HDMI adapter.](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20071535/hdmi-cable-and-adapter-1024x768.jpg)
I use a DroiX remote control:
![DroiX remote control in its box](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20071927/remote-control.jpg)
Step 5: Configure Kodi
You should now see LibreELEC booting and resizing the SD card.
![LibreELEC boot screen - resizing the SD card](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20073854/libreelec-01-1024x768.jpg)
Wait until it reboots and comes back to the configuration screen.
![LibreELEC welcome screen asking to select the language](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20074020/libreelec-02-1024x768.jpg)
A remote control is great for day-to-day use with Kodi, but for the initial setup, I’d recommend having a keyboard plugged in for faster typing.
Select your language and click Next.
On the next screen, focus on the hostname and press enter.
![LibreELEC showing the default hostname](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20074647/libreelec-03-1024x768.jpg)
Give it a unique name so you can later identify it in your network.
![Input screen for the new hostname](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20074649/libreelec-04-1024x768.jpg)
Select your network. I used a wired network for simplicity and performance. If you are using WiFi, select your network and enter your passphrase.
![LibreELEC showing the selected and available networks](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20075333/libreelec-05.png)
Accept the default for SSH and Samba settings. They are not needed to consume shared content. It’s a good practice to keep these settings off if you are not going to use them for security purposes.
![LibreELEC showing SSH and Samba configuration screen](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20075405/libreelec-06-1024x768.jpg)
You should see the message for completion
![LibreELEC showing the setup completion screen](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20075732/libreelec-07-1024x768.jpg)
Click the Next button to close the window, and now you have a working Kodi on your Raspberry Pi 4.
![Kodi default screen](https://cdn.myhomelab.rocks/wp-content/uploads/2022/08/20075733/libreelec-08-1024x768.jpg)
Conclusion
In this article, you learned how to install Kodi on Raspberry Pi 4.
You can now test your installation by plugging in a USB with some media on it. Also, you might want to backup your microSD card to an image file. This way, if your microSD card gets corrupted, you can flash your image to a new one and carry on without having to install it from scratch.
You will most likely want to access some shared content by a NAS or a file server over the network. There will be more articles about Kodi and its use as a media centre and home entertainment system. Stay tuned and enjoy your Kodi! See you at the next one!