Sunday, 9 August 2020

LibreELEC on the Raspberry Pi

Whether you like watching streaming media from the internetz or just want a unified interface that looks good, is skinnable and can be adjusted to your needs to watch movies from a home server or from local drive, look at your photo collection or listen to music, then chances are you want a media center. Not sure if Windows XP Media Center Edition made the idea popular or if it was the advent of cheap broadband that made it viable - probably both.

As always, it didn't take long until free and open source implementations became also available. One of them was of course XBMC, the Xbox Media Center, later to be renamed to Kodi and easily the most popular choice due to its options, add-ons and extensibility. There are of course other choices and if you have a Playstation you might want to use that for all your media needs. But real movie junkies and binge watchers will want a media center in every room.

The need for a dedicated device

Thinking of devices one again has several options. We could install Kodi on a PC, even a dedicated PC, but that would be a waste of computing cycles and consumes far too much power unnecessarily. With the price of electricity these days, in some areas close to 0,30 Cents per KWH, that quickly racks up an additional $100 or Euros. There is your need for a dedicated device.
We have tiny Android boxes with their own custom Kodi setups just as much as the ones that give you a stock experience. The bonus here is they already come with a remote control so no need to use a mouse or get up. Problem is most of the time you don't know what exactly you're going to get or how good the quality of the hardware as a lot of them are manufactured in China. I've even come across reports of melting plugs and short-circuits caused. That said, the one box I had was very good and I heavily used it for about two full years. I guess the magic is to find a reputable supplier, or rely on your luck. Another option is to load Kodi on a Fire Stick. Yet another one would be to cast from your phone to a (so-called) smart TV. Or one could just install LibreELEC on a Raspberry Pi for about the same price as a Kodi box and have an extremely energy-efficient solution.

LibreELEC is a cut down OS and just enough operating system to run Kodi and it shows. I first tried both Raspbian and Debian on a Pi 3B+ via Noobs and loaded Kodi on them. Navigation and trying to load anything like add-ons was painfully slow, let alone trying to watch a movie. Pointless so don't even go there. What's needed is a trimmed base that leaves as much resources as possible to the main purpose so we can relax and watch something without stutter.

LibreELEC comes with the latest version of the Kodi media center and is available as a gzipped image custom-built for various arm processor boards and boxes (126-129 MB for RPi´s) and for the x86_64 architecture (243 MB) from the download page. It is updated frequently, the latest version is from June 2020. There's also a virtual image in open format that can be imported. Unfortunately the system uses systemd but that's another discussion. The important thing here is that it works. It's also available fine-tuned for particular devices further down that page as well as in their respective formats for Windows and MacOS but these will not be standalone builds.

Installation

What can I say. Installation is extremely easy, just select it in Noobs and off you go. No hassle, no fuss. You need a Micro SD card or a USB adapter. Easy as pi (sic) so to speak. Or download it from their site and write the image to your storage of choice. Reboot.

LibreELEC in action

The system is booting straight into the media center which is, being a stripped-down specialist distribution built for a single purpose, the only graphical interface it comes with and exactly what we want. So far so good. A few things are different from a stock Kodi install.

A welcome screen pops up and launches a dialog straight after booting into the interface where we can set the host name (default is LibreELEC), connect to a network and decide whether to use Samba file sharing or ssh remote access. The latter is for advanced users who wish to interact with the underlying operating system - handy for pulling in the VPN plugin with wget as you cannot simply add the repo in the file manager (OpenVPN is already installed). The default user is root with password libreelec. Samba is enabled by default. After this we find ourselves in the media center to add repositories, set up media directories and network shares, install add-ons and all the rest like setting up locations for the weather forecast or whatever you use Kodi for.

Access system settings in the lower left

The main screen has a LibreELEC entry added where the above as well as time servers, Bluetooth, updates and keyboard type and layout can be reconfigured. We can set a PIN code and enable the firewall for more security. This is as close to a configuration panel for non-Kodi related operating system settings as it gets here. It can also be accessed from the Add-ons section.

Network settings to enable time server and firewall

The latest version 9.2.3 is an incremental update and has added Wireguard support, general updates and improvements in terms of better hardware support for the RPi4. If wanting to watch 4k output on the Pi4 one needs to add 'hdmi_enable_4kp60=1' to config.txt.

Memory consumption
Very unscientifically, performance is a lot better than running Kodi on top of an OS implementation not optimized for multimedia taking up resources. A fresh LibreELEC system used 118 MB of RAM but expect that to increase with add-ons. With a few more add-ons installed, a different skin loaded  and a bit of activity RAM usage went up to a still very reasonable 145 MB. CPU temperature stayed at a low 39 C.
Contrast that with Raspbian running Kodi which used more than 700 MB and where video playback was choppy.

A fresh virtual amd64 image used 195 MB in Virtualbox without any add-ons.

I found version 9.2.3 to work fluidly and smoothly in content delivery and browsing on the 3 B+ and not in any way worse than running Kodi on more powerful machines. Actually better, if anything. After setting up we can disconnect the keyboard and the mouse as well if your TV's remote is recognized. That makes it as easy as any Android box. Or get a USB pluggable remote (Bluetooth?). With that or a wireless mouse we only have cables for power and HDMI sticking out, plus possibly some form of USB storage connected.

If on the other hand you already have a Kodi box LibreELEC can also be run on them from SD card, circumventing the need to boot into Android.

Conclusion

If you're into media consumption, and I'm using this loosely to include picture and photo galleries or listening to internet radio, this is a great way to make use of a Raspberry Pi and save on your energy bill in the process. It runs great on a 3B+ model but will even do well on the lower clocked 3B or on the 3A+ with 512 MB RAM - tried this and had RAM to spare.

You might want to consider purchasing one of the many USB dongle or infrared remote controls for the RPi or you could use a virtual remote to control your media center over the network from your phone or tablet.

Disclaimer: Screenshots taken in a virtual machine for illustration purposes only.

1 comment:

  1. This is a great article for Kodi, if you plan to use a Raspberry Pi or other small device, although it is now outdated with the current new release of Kodi. On the other hand, if you want to build a true media PC that is full-featured and fully capable of controlling all your movies, audios, videos and even gaming functions, you have to go way beyond Pi or Android.

    My unit is a small-form factor PC with an Intel Core2-Duo @ 3.00Ghz, 12GB's of RAM and a 128-SSD. Installed is Ubuntu with Kodi as primary function as default. I plan to build an NAS tower from an existing unit also with Core2-Duo but only 4GB's of RAM. Plan is to add 4 16-TB Seagate drives from Newegg. They run a little over $300/each. This should store and feed all the media I can possibly accumulate over the next several years, and then some.

    LibreElec_10.0.2 may be an option after I do some more playing around. I tried the next earlier release a couple months ago, but my PC settings at that time would not let me run it perfectly, and reboot was a mess. I have since corrected and Ubuntu/Kodi runs fine, so I look forward to trying the New LibreElec on another unit soon.

    ReplyDelete

Please leave your comment here. Spam will be deleted.

Note: only a member of this blog may post a comment.

12.04 LTS (1) 1280x1024 (2) 14.1 (1) absolute (6) accessibility (6) ad-blocking (2) administration (2) afterstep (1) android (3) announcements (15) anonymity (5) anonymous (1) anonymous browsing (1) anti-malware (1) anti-virus (1) antiX (4) applications (1) arch (11) archbang (11) archone (1) artix (2) authentication (1) backports (1) base (1) bash (2) bittorrent (2) block-this (1) bluestar (1) bodhi (1) books (1) brave (1) brave-browser (1) browsers (8) browsing (1) bsd (4) bug (2) bugs (3) calculate (1) centos (1) certification (1) chakra (2) changelog (22) chat (1) chatzilla (1) chromebook (1) chromium (2) click (1) commodore 64 (1) ControlD (1) critique (1) crunchbang (5) crux (1) ctkarch (1) cyber war (1) debian (29) desktop (62) devuan (6) digital certificates (1) digital memories (1) distributions (75) DNS (1) documentaries (1) documentation (2) dr. web (1) drivers (1) duo (1) e17 (1) email (1) encryption (3) enlightenment (1) events (1) exit nodes (1) ext4 (1) fake (1) fallout (1) fallout 4 (1) fedora (6) file server (2) file systems (1) firefox (3) flash (1) flush (1) fluxbox (7) fluxflux (1) FPS (2) free software (3) frugalware (1) FSF (1) ftp (2) furybsd (1) fusion (1) fvwm (1) fvwm-crystal (1) games (11) gaming (10) gentoo (3) gnome (9) gnome shell (4) gnu/linux (4) google (2) google-chrome (3) graphics (1) grml (1) gtk+ (1) hangouts (1) hardcore punk (1) hardware (3) how-to (23) humor (2) i3 (1) icewm (6) init (3) init freedom (5) interview (1) introduction (1) jibbed (1) jwm (2) kanotix (4) kde (21) KDE neon (1) kde3 (2) kernel (6) knoppix (1) kodi (2) kongoni (2) kubuntu (3) LAS (1) libtorrent-rasterbar (1) linux (20) linux light (16) Linux Mint (6) live (50) live medium (28) live system (13) liveslak (3) LMDE 4 (3) localisation (1) LTS (1) lxde (12) lxqt (1) mageia (1) mandriva (2) manjaro (1) marine life (1) mate (1) media center (6) mepis (2) mint (5) mobile (2) mobile security (1) movies (6) mozilla (3) music (1) MX Linux (1) netbook (2) netrunner (1) networking (5) news (3) nvidia (1) open source (1) openbox (15) openSUSE (4) opinion (13) other (5) overclockix (1) packages (1) pclinuxos (4) perl (1) plasma (5) poll (2) porteus (3) privacy (5) privoxy (1) programming (1) proxy (2) puppy (3) qbittorrent (1) qt (1) quick look (10) ratpoison (1) red hat (7) redcore linux (1) relax (1) release (2) rescue (3) reviews (57) rhythmbox (1) rolling (1) RPG (2) rpm (1) sabayon (5) salix (15) scientific (7) screenshots (2) scripts (3) seamonkey (1) security (4) semplice (1) server (5) shell (1) shooter (4) siduction (1) slackel (1) slackware (68) slackware 14.2 (2) slackware 15.0 (8) slackware-current (34) slax (7) slitaz (1) smart phones (2) sms (1) south africa (2) specialist (1) spoof (1) ssh (1) surfing (1) systemd (2) table mountain (1) TDE (1) tegra k1 (1) The Walking Dead (1) themes (1) tinyme (2) tips (1) tor (3) torrenting (1) torrents (1) traffic analysis (2) trinity (2) trisquel (1) TV shows (2) TWD (1) ubuntu (6) unity (2) unity linux (4) unix (1) upgrade (6) vector (2) video (4) vinux (2) virtualbsd (1) visual impairment (5) voip (1) vpn (5) VSIDO (1) wallpapers (3) window maker (4) window managers (1) windscribe (1) wireless (10) xfce (16) youtube (1) zenwalk (3) zombies (1) zoo (1)