I started working on PogoPlugs last year to sharpen my Unix skills and to get some very power/space/simple NAS and media servers onto my home network. I have managed to hack into every pogo version now thanks to the help of people here and now I have managed to get a decent Media server running and I thought I would share my tips with you all because I found the information I needed to do it not very obvious or easy. While I may not have done some of these stages optimally, it has worked.
So here is my guide to building Gerbera 1.6.4. on Pogo Kirkwood Armel architecture boxes running Debian buster. The process is very similar to the UBUNTU guide but you need a few tweaks.
1) You WILL need a swapfile when using 128Mb devices (and probably 256MB too). Add a HD or SSD but not a USB stick because of the risk of hardware failure.
2) I opted for libnpupnp and libupnpp6 from https://www.lesbonscomptes.com/upmpdcli/ - Follow the build instructions to create Debian packages which you can then install with dpkg.
3) Build the latest Taglib [cmake, make -j4] and use 'Make Install' to install
4) Use Apt-get to install the rest of the dev packages as per dependencies list. It is best to load fmtlib-dev and libspdlog.dev from the Buster Backports
5) Clone the Gerbera git and edit the CMakeLists.txt file and comment the original version and add the new.
and add these lines to make the debian package
6) This is my Cmake command:
Cmake Command - cmake -g DEB ../gerbera -DWITH_NPUPNP=YES -DWITH_JS=1 -DWITH_MYSQL=1 -DWITH_CURL=1 -DWITH_TAGLIB=1 -DWITH_MAGIC=1 -DWITH_MATROSKA=0 -DWITH_AVCODEC=1 -DWITH_EXIF=1 -DWITH_EXIV2=0 -DWITH_LASTFM=0 -DWITH_FFMPEGTHUMBNAILER=1 -DWITH_INOTIFY=1
Resolve any dependency issues now!
7) the 'make -j4' will take at least 6 hours - go for a walk, read a book, grab some sleep .....
8) follow the gerbera manual for installation. Create the gerbera user (give the user a home directory e.g. /home/gerbera). Make the /etc/gerbera folder and get the config.xml. Symbolic link the config file:
Symbolic link the web directory:
9) edit config.xml and change the path to
10) Start gerbera with the standard launch command. The server should start - watch the messages for errors. Check the web interface functions too. when happy that all is good - control-c to get back to shell
11) for SystemD users, copy the gerbera.service script into /usr/systemd/system and edit it to correct the path to the gerbera server the use the systemctl command as per the manual to start and stop the server and debug any problems.
12) for init.d users, you need a gerbera script which I took from the earlier version which is in the Debian APT library
13 You need to put your new gerbera package on hold to prevent apt-get upgrade downgrading back to 1.1
That should be everything you need. I have this Gerbera version running on a PogoPlug V2E02 and a V4 Pro quite happily using vlc and bubbleupnp as clients and casting on to a fire stick and chromecast devices.
Hope that helps someone - Bob
So here is my guide to building Gerbera 1.6.4. on Pogo Kirkwood Armel architecture boxes running Debian buster. The process is very similar to the UBUNTU guide but you need a few tweaks.
1) You WILL need a swapfile when using 128Mb devices (and probably 256MB too). Add a HD or SSD but not a USB stick because of the risk of hardware failure.
2) I opted for libnpupnp and libupnpp6 from https://www.lesbonscomptes.com/upmpdcli/ - Follow the build instructions to create Debian packages which you can then install with dpkg.
3) Build the latest Taglib [cmake, make -j4] and use 'Make Install' to install
4) Use Apt-get to install the rest of the dev packages as per dependencies list. It is best to load fmtlib-dev and libspdlog.dev from the Buster Backports
5) Clone the Gerbera git and edit the CMakeLists.txt file and comment the original version and add the new.
# set(GERBERA_VERSION "git") set(GERBERA_VERSION "1.6.4-185-gae283931+d")
and add these lines to make the debian package
SET(CPACK_GENERATOR "DEB") SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "KK") # include (cmake) include(packaging)
6) This is my Cmake command:
Cmake Command - cmake -g DEB ../gerbera -DWITH_NPUPNP=YES -DWITH_JS=1 -DWITH_MYSQL=1 -DWITH_CURL=1 -DWITH_TAGLIB=1 -DWITH_MAGIC=1 -DWITH_MATROSKA=0 -DWITH_AVCODEC=1 -DWITH_EXIF=1 -DWITH_EXIV2=0 -DWITH_LASTFM=0 -DWITH_FFMPEGTHUMBNAILER=1 -DWITH_INOTIFY=1
Resolve any dependency issues now!
7) the 'make -j4' will take at least 6 hours - go for a walk, read a book, grab some sleep .....
cpack -G DEB will create a debian package file - All being well - no errors. Use dpkg to install.
8) follow the gerbera manual for installation. Create the gerbera user (give the user a home directory e.g. /home/gerbera). Make the /etc/gerbera folder and get the config.xml. Symbolic link the config file:
ln -s /etc/gerbera/config.xml /home/gerbera/.config/gerbera
Symbolic link the web directory:
ln -s /usr/share/gerbera /usr/local/share
9) edit config.xml and change the path to
<home>/home/gerbera/.config/gerbera</home>
10) Start gerbera with the standard launch command. The server should start - watch the messages for errors. Check the web interface functions too. when happy that all is good - control-c to get back to shell
gerbera -c /etc/gerbera/config.xml
11) for SystemD users, copy the gerbera.service script into /usr/systemd/system and edit it to correct the path to the gerbera server the use the systemctl command as per the manual to start and stop the server and debug any problems.
ExecStart=/usr/bin/gerbera -c /etc/gerbera/config.xml
12) for init.d users, you need a gerbera script which I took from the earlier version which is in the Debian APT library
13 You need to put your new gerbera package on hold to prevent apt-get upgrade downgrading back to 1.1
apt-mark hold gerbera
That should be everything you need. I have this Gerbera version running on a PogoPlug V2E02 and a V4 Pro quite happily using vlc and bubbleupnp as clients and casting on to a fire stick and chromecast devices.
Hope that helps someone - Bob