bveml.net

VDR 2.4 with Manjaro ARM on a Raspberry Pi 4 Model B with 2 GB RAM

This setup uses VDR on a Raspberry Pi as a SAT-IP gateway. Kodi connects over VNSI, and the Streamdev plugin lets you stream channels with VLC. VDR4Arch is installed from the AUR.

From the archive. This guide applies to the software and hardware versions it describes.

The Raspberry Pi’s low power consumption makes it a good SAT-IP gateway for a home network.
This guide describes how I installed VDR 2.4 with Manjaro ARM on a Raspberry Pi 4 Model B with 2 GB of RAM.
I installed VDR4Arch from the AUR and use Kodi as a client over VNSI.
The Streamdev plugin also lets me stream channels easily with VLC.
You need a card reader on your desktop or laptop to write to the microSD card.

Install Manjaro ARM

First, download the Manjaro ARM minimal image for the Raspberry Pi 4.

https://manjaro.org/download/arm8-raspberry-pi-4-minimal/

Insert the microSD card into your computer’s card reader. You need its device path for the next step. Use lsblk to find it.

$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sde     179:0    0 29,7G  0 disk

Extract the compressed image and write it to the microSD card.
Set of= to the microSD card’s device path.

```
$ unxz Manjaro-ARM-minimal-rpi4-*.img.xz
$ sudo dd if=Manjaro-ARM-minimal-rpi4-*.img of=/dev/sdX bs=4M status=progress
```

Once the write finishes, insert the microSD card into the Raspberry Pi and boot it.
You need a screen and keyboard to complete the installation.

On the first boot, the installer prompts you to configure the basic settings.

  • Create a user and set a password
  • Set the root password
  • Choose a time zone
  • Choose a keyboard layout

You can connect over SSH for the next steps.

Update the system and install Vim, base-devel and Trizen

Vim is my preferred editor. The base-devel package group is required to compile software, and Trizen replaces Yaourt for installing packages from the AUR. Select all packages in the base-devel group.

$ sudo pacman -Syu
$ sudo pacman -S vim trizen base-devel
# base-devel: alle

Install VDR

Prepare for compilation

Set a make option so that compilation can use all four processor cores. This speeds up the build substantially.

$ sudo vim /etc/makepkg.conf

Find the current setting.

#MAKEFLAGS="-j2"

Replace it with the following setting.

MAKEFLAGS="-j5"

Then restart the Raspberry Pi.

Install VDR from the AUR

$ trizen -S vdr

Run Trizen interactively. The --noconfirm option skips the prompt that lets you edit the PKGBUILD, and the installation requires an aarch64 entry.
When asked whether you want to edit the PKGBUILD, answer y and add aarch64 to the list of supported architectures.

arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')

Limit your changes to this file.

Install VDR plugins

As with VDR itself, install the plugins from the AUR using Trizen.
The aarch64 architecture must also be added here.

$ trizen -S [PLUGIN]

Add aarch64 to the list of architectures.

arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
  • vdr-vnsiserver
    • Use this when Kodi connects as a VNSI client.
    • Configure local network streaming in the following file.
      • /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
      • For example, use 192.168.0.0/24 for 192.168.0.*.
  • vdr-streamdev-client vdr-streamdev-server
    • Enables streaming with programs such as VLC.
    • Configure local network streaming in the following file.
      • /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
      • For example, use 192.168.0.0/24 for 192.168.0.*.
  • vdr-femon
    • Displays signal strength.
  • vdr-epgsearch
    • For me, the most important feature is automation based on a search filter.
  • vdr-svdrpservice
    • Provides an interface used by plugins such as EPGSearch.

After installing the plugins, enable their configuration.

$ cd /etc/vdr/conf.d/
$ sudo ln -s ../conf.avail/50-epgsearch.conf .
$ sudo ln -s ../conf.avail/50-femon.conf .
$ sudo ln -s ../conf.avail/50-live.conf .
$ sudo ln -s ../conf.avail/50-streamdev-server.conf .
$ sudo ln -s ../conf.avail/50-vnsiserver.conf .

My hardware

  • Raspberry Pi 4 Model B, 2 GB RAM

  • Raspberry Pi 4 case, heat sinks, fan and power supply

    • The kit below included everything. The case has several layers, so it takes a little more effort to put together. You only have to assemble it once.

    • Amazon (affiliate link)

  • microSD card

    • After the initial installation, the Pi used just over 2 GB. A 4 GB card would probably be enough with some room to spare. I use a 32 GB card.
    • Amazon (affiliate link)
  • Anker USB 3.0 card reader

    • There are probably better models, but I found this one good enough for the price.

    • Amazon (affiliate link)

  • TeVii S662 DVB-S2 USB box

Sources