{"id":12879,"date":"2019-03-29T00:44:31","date_gmt":"2019-03-29T00:44:31","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12879"},"modified":"2019-03-29T00:44:31","modified_gmt":"2019-03-29T00:44:31","slug":"gerbera-a-upnp-media-server-that-lets-you-stream-media-on-home-network","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/29\/gerbera-a-upnp-media-server-that-lets-you-stream-media-on-home-network\/","title":{"rendered":"Gerbera \u2013 A UPnP Media Server That Let\u2019s You Stream Media on Home Network"},"content":{"rendered":"<p><strong>Gerbera<\/strong>\u00a0is a feature-rich and powerful\u00a0<strong>UPnP<\/strong>\u00a0(<strong>Universal Plug and Play<\/strong>) media server with a pleasant and intuitive web user interface, which allows users to stream digital media (videos, images, audio etc..) through a home network and consume it on different types of UPnP compatible devices from mobile phone to tablets and many more.<\/p>\n<h4>Gerbera Features:<\/h4>\n<ul>\n<li>Allows you to browse and playback media via UpnP.<\/li>\n<li>Supports metadata extraction from mp3, ogg, flac, jpeg, etc. files.<\/li>\n<li>Highly flexible configuration, allowing you to control the behavior of various features of the server.<\/li>\n<li>Supports user defined server layout based on extracted metadata.<\/li>\n<li>Support for ContentDirectoryService container updates.<\/li>\n<li>Offers exif thumbnail support.<\/li>\n<li>Supports automatic directory rescans (timed, inotify).<\/li>\n<li>Offers a nice Web UI with a tree view of the database and the file system, allowing to add\/remove\/edit\/browse media.<\/li>\n<li>Support for external URLs (create links to internet content and serve them via UPnP to your renderer).<\/li>\n<li>Supports flexible media format transcoding via plugins \/ scripts and many more including a number of experimental features.<\/li>\n<\/ul>\n<h3>How to Install Gerbera \u2013 UPnP Media Server in Linux<\/h3>\n<p>On\u00a0<strong>Ubuntu<\/strong>\u00a0distribution, there is a PPA created and maintained by\u00a0<strong>Stephen Czetty<\/strong>, from which you can install\u00a0<strong>Gerbera<\/strong>\u00a0using following commands.<\/p>\n<pre>$ sudo add-apt-repository ppa:stephenczetty\/gerbera\r\n$ sudo apt update\r\n$ sudo apt install gerbera \r\n<\/pre>\n<p>On\u00a0<strong>Debian<\/strong>\u00a0distribution,\u00a0<strong>Gerbera<\/strong>\u00a0is available in the\u00a0<strong>testing<\/strong>\u00a0and\u00a0<strong>unstable<\/strong>\u00a0repositories, which you can enable by adding the lines below in your\u00a0<strong>\/etc\/apt\/sources.list<\/strong>\u00a0file.<\/p>\n<pre># Testing repository - main, contrib and non-free branches\r\ndeb http:\/\/http.us.debian.org\/debian testing main non-free contrib\r\ndeb-src http:\/\/http.us.debian.org\/debian testing main non-free contrib\r\n\r\n# Testing security updates repository\r\ndeb http:\/\/security.debian.org\/ testing\/updates main contrib non-free\r\ndeb-src http:\/\/security.debian.org\/ testing\/updates main contrib non-free\r\n\r\n# Unstable repo main, contrib and non-free branches, no security updates here\r\ndeb http:\/\/http.us.debian.org\/debian unstable main non-free contrib\r\ndeb-src http:\/\/http.us.debian.org\/debian unstable main non-free contrib\r\n<\/pre>\n<p>Then update your system package sources cache and install\u00a0<strong>gerbera<\/strong>\u00a0with the following commands.<\/p>\n<pre># apt update\r\n# apt install gerbera<\/pre>\n<p>For other Linux distributions like\u00a0<strong>Gentoo<\/strong>,\u00a0<strong>Arch Linux<\/strong>,\u00a0<strong>openSUSE<\/strong>,\u00a0<strong>CentOS<\/strong>, etc. follow\u00a0<a href=\"http:\/\/docs.gerbera.io\/en\/latest\/install.html\" target=\"_blank\" rel=\"nofollow noopener\">Gerbera installation guide<\/a>.<\/p>\n<p>Once you have installed\u00a0<strong>gerbera<\/strong>, start, enable and view the service status using the following commands.<\/p>\n<pre>$ sudo systemctl start gerbera.service \r\n$ sudo systemctl enable gerbera.service\r\n$ sudo systemctl status gerbera.service\r\n<\/pre>\n<p><strong>Note<\/strong>: If\u00a0<strong>gerbera<\/strong>\u00a0fails to start on your system, you need to do one of the following.<\/p>\n<p>Check if the log file (<strong>\/var\/log\/gerbera<\/strong>) has been created, otherwise create it as shown.<\/p>\n<pre>$ sudo touch \/var\/log\/gerbera\r\n$ sudo chown -Rv root:gerbera \/var\/log\/gerbera\r\n$ sudo chmod -Rv 0660 \/var\/log\/gerbera\r\n<\/pre>\n<p>Secondly, define a network interface that your are currently using as the value of\u00a0<strong>MT_INTERFACE<\/strong>\u00a0environment variable, the default is \u201c<strong>eth0<\/strong>\u201d but if you are using wireless, then set this to something like \u201c<strong>wlp1s0<\/strong>\u201d. In\u00a0<strong>Debian\/Ubuntu<\/strong>, you can set these settings in\u00a0<strong>\/etc\/default\/gerbera<\/strong>\u00a0file.<\/p>\n<h3>Getting Started with Gerbera Media Server Web UI<\/h3>\n<p>Gerbera service listens on port\u00a0<strong>49152<\/strong>, which you can use to access the web UI via a web browser as shown.<\/p>\n<pre>http:\/\/domain.com:49152\r\nOR\r\nhttp:\/\/ip-address:49152\r\n<\/pre>\n<div id=\"attachment_28970\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/gerbera-ui-error.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28970\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/gerbera-ui-error.png\" alt=\"Gerbera UI Error\" width=\"676\" height=\"208\" aria-describedby=\"caption-attachment-28970\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28970\" class=\"wp-caption-text\">Gerbera UI Error<\/p>\n<\/div>\n<p>If you get the error shown in the above screenshot, you need to enable the web UI from the gerbera configuration file.<\/p>\n<pre>$ sudo vim \/etc\/gerbera\/config.xml\r\n<\/pre>\n<p>Change the value\u00a0<strong>enabled=\u201dno\u201d<\/strong>\u00a0to\u00a0<strong>enabled=\u201dyes\u201d<\/strong>\u00a0as shown in the following screenshot.<\/p>\n<div id=\"attachment_28971\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/enable-gerbera-ui-from-config-file.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28971\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/enable-gerbera-ui-from-config-file.png\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/enable-gerbera-ui-from-config-file.png 782w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/enable-gerbera-ui-from-config-file-768x319.png 768w\" alt=\"Enable Gerbera UI \" width=\"782\" height=\"325\" aria-describedby=\"caption-attachment-28971\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28971\" class=\"wp-caption-text\">Enable Gerbera UI<\/p>\n<\/div>\n<p>After making above changes, close the file and restart the gerbera service.<\/p>\n<pre>$ sudo systemctl restart gerbera.service\r\n<\/pre>\n<p>Now go back to your browser and try to open the UI once more in a new tab, this time around it should load. You will see two tabs:<\/p>\n<ul>\n<li><strong>Database<\/strong>\u00a0\u2013 shows the files that can be accessed by publicly.<\/li>\n<\/ul>\n<div id=\"attachment_28972\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/gerbera-web-ui-database-interface.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28972\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/gerbera-web-ui-database-interface.png\" alt=\"Gerbera Web UI Database\" width=\"676\" height=\"493\" aria-describedby=\"caption-attachment-28972\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28972\" class=\"wp-caption-text\">Gerbera Web UI Database<\/p>\n<\/div>\n<ul>\n<li><strong>Filesystem<\/strong>\u00a0\u2013 this is where you can browse files from your system and select them for streaming. To add a file, simply click on the plus\u00a0<code>(+)<\/code>\u00a0sign.<\/li>\n<\/ul>\n<div id=\"attachment_28973\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/gerbera-web-ui-filesystem-interface.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28973\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/gerbera-web-ui-filesystem-interface.png\" alt=\"Gerbera File System\" width=\"676\" height=\"616\" aria-describedby=\"caption-attachment-28973\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28973\" class=\"wp-caption-text\">Gerbera File System<\/p>\n<\/div>\n<p>After adding files for streaming from the filesystem, the database interface should look like this.<\/p>\n<div id=\"attachment_28974\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/gerbera-web-ui-after-adding-files-for-streaming.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28974\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/gerbera-web-ui-after-adding-files-for-streaming.png\" alt=\"Gerbera Database File System\" width=\"676\" height=\"483\" aria-describedby=\"caption-attachment-28974\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28974\" class=\"wp-caption-text\">Gerbera Database File System<\/p>\n<\/div>\n<h3>Stream Media Files Using Gerbera on Your Home Network<\/h3>\n<p>At this point you can start streaming media files over your network from the gerbera server. To test it, we will use a mobile phone as a client. Start by installing a compatible\u00a0<strong>upnp<\/strong>\u00a0application (like\u00a0<strong><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.bubblesoft.android.bubbleupnp&amp;hl=en\" target=\"_blank\" rel=\"nofollow noopener\">BubbleUpnp<\/a><\/strong>) on your phone.<\/p>\n<p>Once installed\u00a0<strong>BubbleUpnp<\/strong>\u00a0app, open it and on the\u00a0<strong>menu<\/strong>, go to\u00a0<strong>Library<\/strong>\u00a0and click on\u00a0<strong>Local and Cloud<\/strong>\u00a0to view available servers, and the gerbera server we created should show in there. Click on it to access added directories and files in them.<\/p>\n<div id=\"attachment_28975\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/search-for-gerbera-server.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28975\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/search-for-gerbera-server.jpg\" alt=\"Gerbera Media Server\" width=\"400\" height=\"600\" aria-describedby=\"caption-attachment-28975\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28975\" class=\"wp-caption-text\">Gerbera Media Server<\/p>\n<\/div>\n<div id=\"attachment_28976\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/view-directories-under-gerbera-server.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28976\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/view-directories-under-gerbera-server.jpg\" alt=\"Gerbera Filesystem View\" width=\"400\" height=\"600\" aria-describedby=\"caption-attachment-28976\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28976\" class=\"wp-caption-text\">Gerbera Filesystem View<\/p>\n<\/div>\n<p>Finally click on a file that you would like to stream.<\/p>\n<div id=\"attachment_28977\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/view-added-files-in-gerbera-server.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28977\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/view-added-files-in-gerbera-server.jpg\" alt=\"Stream Files via Gerbera Server\" width=\"400\" height=\"600\" aria-describedby=\"caption-attachment-28977\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28977\" class=\"wp-caption-text\">Stream Files via Gerbera Server<\/p>\n<\/div>\n<p>For more information visit, Gerbera Github Repository:\u00a0<a href=\"https:\/\/github.com\/gerbera\/gerbera\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/github.com\/gerbera\/gerbera<\/a>.<\/p>\n<p><strong>Gerbera<\/strong>\u00a0is a feature-rich and powerful Upnp media server, used to stream your digital media through your home network with a nice web user interface. Share your thoughts about it or ask a question via the feedback form.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/gerbera-stream-media-on-home-network\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gerbera\u00a0is a feature-rich and powerful\u00a0UPnP\u00a0(Universal Plug and Play) media server with a pleasant and intuitive web user interface, which allows users to stream digital media (videos, images, audio etc..) through a home network and consume it on different types of UPnP compatible devices from mobile phone to tablets and many more. Gerbera Features: Allows you &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/29\/gerbera-a-upnp-media-server-that-lets-you-stream-media-on-home-network\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Gerbera \u2013 A UPnP Media Server That Let\u2019s You Stream Media on Home Network&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12879","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12879"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12879\/revisions"}],"predecessor-version":[{"id":12881,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12879\/revisions\/12881"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}