Sal Aguilar's Bilingual Adventures in IT

computers are easier to deal with than people

miniDLNA issues on MacOS Mojave (part 1) — November 13, 2018

miniDLNA issues on MacOS Mojave (part 1)

Last week I finally had some courage to update my Macbook to Mojave. The latest version of the MacOS family. The only thing I was really looking forward was the security updates and Dark Mode. Aside from that, it was unappealing to me.

Today, I downloaded some videos and wanted to fire up my minidlna local install only to find out that service was not working. None of my devices was able to see the DLNA service so I couldn’t stream to any TV.

I started investigating.  I did the basics, tried to restart, and services were launching fine.

➜ ~ brew services restart minidlna
Stopping `minidlna`... (might take a while)
==> Successfully stopped `minidlna` (label: homebrew.mxcl.minidlna)
==> Successfully started `minidlna` (label: homebrew.mxcl.minidlna)

Since everything seem fine, and still I couldn’t see the DLNA media. I went to the logs.

➜ ~ tail -100 /usr/local/var/log/minidlnad.log

I saw some errors which caught my attention. So I decided to remove it completely.

➜ ~ brew remove minidlna
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Uninstalling /usr/local/Cellar/minidlna/1.2.1_1... (11 files, 307.6KB)

And I saw the xcrun error, invalid active developer path? After quickly reviewing in Google this was due to the X Code Command Line tools that needed to be installed. It seems when Mojave was installed, the old X Code Command line tools were removed. Ok now we are getting somewhere. Now I would install that package. Again I went to my terminal and:

➜ ~ xcode-select --install

The package started downloading. It was about 130MB. Once it was installed I went and installed minidlna again.

➜ ~ brew install minidlna
==> Installing dependencies for minidlna: ffmpeg
==> Installing minidlna dependency: ffmpeg
==> Downloading
######################################################################## 100.0%
==> Pouring ffmpeg-4.1.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/ffmpeg/4.1: 282 files, 55.4MB
==> Installing minidlna
==> Downloading
######################################################################## 100.0%
==> Pouring minidlna-1.2.1_1.mojave.bottle.tar.gz
==> Caveats
Simple single-user configuration:

mkdir -p ~/.config/minidlna
cp /usr/local/opt/minidlna/share/minidlna/minidlna.conf ~/.config/minidlna/minidlna.conf
ln -s YOUR_MEDIA_DIR ~/.config/minidlna/media
minidlnad -f ~/.config/minidlna/minidlna.conf -P ~/.config/minidlna/

To have launchd start minidlna now and restart at login:
brew services start minidlna
Or, if you don't want/need a background service you can just run:
==> Summary
🍺 /usr/local/Cellar/minidlna/1.2.1_1: 11 files, 307.9KB
==> Caveats
==> minidlna
Simple single-user configuration:

mkdir -p ~/.config/minidlna
cp /usr/local/opt/minidlna/share/minidlna/minidlna.conf ~/.config/minidlna/minidlna.conf
ln -s YOUR_MEDIA_DIR ~/.config/minidlna/media
minidlnad -f ~/.config/minidlna/minidlna.conf -P ~/.config/minidlna/

To have launchd start minidlna now and restart at login:
brew services start minidlna
Or, if you don't want/need a background service you can just run:

Once it was re-installed. I tried to launch it once more.

➜ minidlna brew services start minidlna
==> Successfully started `minidlna` (label: homebrew.mxcl.minidlna)

It launched, again, with no error but still it wouldn’t work. Sighs. We have to keep digging. So I went to the logs again, on a bug hunting mission and found this:

[2018/11/13 20:04:46] minidlna.c:1048: warn: Starting MiniDLNA version 1.2.1.
[2018/11/13 20:04:46] minissdp.c:131: error: bind(udp): Address already in use
[2018/11/13 20:04:46] minidlna.c:1080: info: Failed to open socket for receiving SSDP. Trying to use MiniSSDPd
[2018/11/13 20:04:46] minissdp.c:84: error: setsockopt(udp, IP_ADD_MEMBERSHIP): Bad file descriptor
[2018/11/13 20:04:46] minissdp.c:189: warn: Failed to add multicast membership for address
[2018/11/13 20:04:46] getifaddr.c:338: info: Enabling interface
[2018/11/13 20:04:46] minissdp.c:830: error: connect("/var/run/minissdpd.sock"): No such file or directory[2018/11/13 20:04:46] minidlna.c:1083: fatal: Failed to connect to MiniSSDPd. EXITING%

Reviewing online on the minidlna site, they do suggest to try to install such software.

Funny enough I found a link to my article on that link.

Right now I will keep reviewing and will come back later with an answer.

Stream Media from Debian to Xbox One — November 11, 2015

Stream Media from Debian to Xbox One

Hi there, if you have been reading my blog, you probably read my article about Streaming from Mac OS X to a Roku Streaming Device. Well now I am back for another one, but this time is from my Debian 8.2 (Jessie) to my XBOX One.

Requirements before we start

The setup is pretty simple, but before that let me first explain what are the requirements to accomplish this:

  1. Debian 8.2 installed on a computer with WIFI or connected to the same router as the XBOX.
  2. A XBOX One device that is connected to the same WIFI as the computer and that is up to date.
  3. A WIFI connection with internet connection, the faster the better.
  4. On the Debian box you must have root or sudo rights.

Let’s get started!

I’m going to divide this in 3 phases: Debian Setup, XBOX Setup and Playing time!

Debian SETUP

So for this you would have need to have terminal access to the computer running Debian 8.2 (Jessie). Once you are logged in you will type the following command on the terminal:

sudo apt-get install minidla

This will install minidla and all the requirements. MiniDLA is now called ReadyMedia, and its a very small and simple DLNA/UPnP media server that is compatible with all media players and OS: Windows, Roku, Smart TVs, Android, XBOX & Playstations. So this program, is a daemon itself that is installed on your Debian box and it shares all your media files with your network.

Once minidla is installed on your Debian box, it’s time to set it up. So let’s go back to the terminal and use our favorite text editor to edit the file, on this case I’m using vim:

sudo vim /etc/minidlna.conf

Once you have the file opened, look for the line that stats with: media_dir=
(or line 24 if your editor supports this) and then go ahead and change the value for your home folder so the statement looks something like this:


Where username is the one that you use to login to your Debian box. I use that one because that way it will scan all the media on my home folder; however if you have your media stored elsewhere like on a USB Hard drive, then please use that full path instead of the one I used.

When you are done stating what is the media directory, save the file and close it. We will then now start the minidlna service on our console with the following command:

sudo service minidlna start

That command will start the sharing media service and now all computers (but Mac unless you use Plex) and media streaming devices will be able to see the media contents of the folder that we previously set on the minidlna.conf file. And that’s it on Debian 🙂

XBOX One setup

For the XBOX One setup is easier, just turn on the XBOX, make sure you have internet and then go to the XBOX Store and look for the Media Player app and install it if you do not already have it.

XBOX One Media Player

Once the apps finishes installing (its about ~ 45MB), go to your XBOX home screen >> My Games & Apps >> Apps >> Media Player and launch it.

Once you are on the app you should see the name of your computer with minidlna listed 🙂 on my case my computer is called debianXPS as you can see on the screenshot below:

XBOX Media Player showing DLNA

When you click on it with your XBOX One Remote, you will see all the folders listed. I navigated to videos and found all the videos listed as you can see below:

XBOX Media Player DLNA Movies

Just click on any of the videos to play them. And enjoy!

If you are facing issues about this not showing, please be sure that:

  • Debian box firewall has the minidlna ports opened.
  • Both Debian Box and XBOX One are on the SAME NETWORK.
  • That you setup correctly the media folder on minidlna.conf file and then restarted the minidlna service.

I am still looking for a way to use my XBOX as a secondary screen, so if you have a suggestion, let me know either on the comments or elsewhere!!

Stream from your Mac via DLNA to your Roku (or any other DLNA capable device) — February 4, 2015

Stream from your Mac via DLNA to your Roku (or any other DLNA capable device)

I have a Mac which is my primary computer. But I also have a Dell XPS with Windows on it. Windows has DLNA built in, so you can stream it to any DLNA capable device such as SmartTVs, tablets, gaming consoles, smartphones, etc. So streaming a video from my Windows computer to my Roku or my SmartTV was a piece of cake.

But ever since I moved to Mac, it’s been a real pain trying to stream from Mac OS to any other DLNA. So I started looking for an option. While doing research online, the only solution most people suggested was to use Apple TV, but I don’t own one, so that was not a good solution for me. So I kept on searching, and then I stumbled upon Plex.


Plex, has a channel on Roku, has an Mac application, even for Android and Windows, but we do not need them since both Android and Windows already have DLNA. So far it seem a really good alternative for streaming. So I went ahead and did all the following:

  1. Went to my Roku Channel store, and installed Plex.
  2. Went to Plex website and downloaded the Mac app.
    Plex Mac app
  3. Installed Plex on my Mac and moved the executable to the Application folder.

Plex media Server Mac

4. I launched Plex on my Mac and it opened a browser window. (cool)

Plex dashboard

5. Then you add the folder where you have your Video files on

Then you get this screen, you click on Movies:

Plex will now ask you to name the Library that you want to add, you can name it anything you’d like, I named it Movies

Now we are going to select the folder where this Library will be pulling files from…

Then you simple browse to the directory that you would like to add, and done.

After this, then you go back to your Roku or DLNA capable device and scan the local wireless LAC on which both the Mac and Roku are connected to and you should be ready to stream.

If you face issues I recommend the following tutorials:

Or simply comment here or drop me a note via my contact me page.

%d bloggers like this: