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 https://homebrew.bintray.com/bottles/ffmpeg-4.1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ffmpeg-4.1.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/ffmpeg/4.1: 282 files, 55.4MB
==> Installing minidlna
==> Downloading https://homebrew.bintray.com/bottles/minidlna-1.2.1_1.mojave.bottle.tar.gz
######################################################################## 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/minidlna.pid

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:
minidlna
==> 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/minidlna.pid

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:
minidlna

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 192.168.1.137
[2018/11/13 20:04:46] getifaddr.c:338: info: Enabling interface 192.168.1.137/255.255.255.0
[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.
https://sourceforge.net/p/minidlna/support-requests/55/

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.

Advertisements
FREE Apps that I NEED on my MacOS computers — January 26, 2018

FREE Apps that I NEED on my MacOS computers


Chrome

Google ChromeIt’s my go-to browser. I can publicly confirm that I don’t have love for Safari (#DieSafariDie) or Opera (#OperaWho?). I use Google’s Chrome as my personal browser and I use Firefox for work. Yes I keep my personal and work life separate and you should too. However Chrome is far from perfect, so I always add the following extensions:

  • UBlock Origin – To get rid of all the ads on all pages including ads on YouTube.
  • Ghostery – disable trackers, analytics, chats and other stuff and be ghost online.

>> DOWNLOAD CHROME NOW <<

KeePass

keepassx

As an IT Professional & SysAdmin, I do have to login to several services, servers, and its not SECURE to use the same password for EVERYTHING, nor to write them down on notepads or post-its.

I use KeePass as my centralized password manager, it allows you to create groups with icons, and it can help you generate secure passwords and even copy them securely and remove it from the clipboard as soon as you used them. And yes its FREE!

>> DOWNLOAD KEEPASS NOW <<

MonoSnap

Working on support you are in constant need of sharing screenshots or capture part of your screen to point out specific parts either by highlighting. It also includes a useful feature to record a video of the your screen or partial regions of it.

It also comes with keys shortcuts for easier use and it comes with a free service that uploads them to a website and creates a short URL that you can share via email or social media.

>> DOWNLOAD MONOSNAP NOW <<

Spectacle

One of the things I was missing from Windows & Gnome when I migrated to MacOS a few years back, was the ability to resize the windows of the apps and move them either to the sides or the top or even doing a maximize screen which MacOS was lacking. I found Spectacle and it solved my problem right away.

Managing the windows becomes as easy as if you were using Windows or Gnome. Try it out TODAY!

>> DOWNLOAD SPECTACLE NOW <<

DropBox

Keeping my documents and important information backed up and available on any computer makes me able to work from any computer or any place in the world. That is what I love about Dropbox.

>> DOWNLOAD DROPBOX NOW <<

iTerm2

The built-in terminal app that comes with MacOS is not bad, however iTerm2 brings many features that will make it way better, you will love the split panes, the search, paste history and much more.

Try it out  and you will never go back to the default terminal app.

>> DOWNLOAD ITERM2 NOW <<

FileZilla

Its a vital part if you work on the web, a FTP/sFTP client. The most used client in the world and that is FREE.

Saving different sites, credentials and different authentication methods. It’s a no brainer!

>> DOWNLOAD FILEZILLA NOW <<

 

VLC

Resultado de imagen para vlcThe multimedia swiss knife app that you need to have to be able to see almost any video format and other types of media. It can even allow you to change media formats.

VLC is the the only video player and media player that you will ever need.

>> DOWNLOAD VLC NOW <<

SublimeText

The last text editor you’ll ever need. It just… works. It has support for several programming languages and has tons of plugins that can enhances the functions of the site, such as git and other features.

It’s FREE so give it a try right away!

>> DOWNLOAD SUBLIMETEXT NOW <<

Caffeine

If you want to prevent your computer from going into screensaver mode or prevent the monitor from shutting down when you are away from it, then Caffeine is your solution.

It runs on the top bar of your MacOS and is ready to help you when you need!

>> DOWNLOAD CAFFEINE NOW <<

Typinator

In support jobs that I’ve held in KOM-1, Site5.com, Sucuri.net & Kinsta.com you need to share the same instructions to customers or same greetings. This is where Typinator comes into play. 

It’s a text expander that optimizes the time you spend repeating similar replies to customers. You set short codes for sentences or paragraphs and avoid typing and Typinator replaces them with the entire values that you previously setup.

>> DOWNLOAD TYPINATOR NOW <<

Slack

Resultado de imagen para slackThe modern communication tool to get rid of 200 emails a day. Slack is a super powered IRC platform, with tons of integration into the most popular platform like DropBox, Google Drive, New Relic, GitHub, BitBucket, etc.

It has clients that can run on web, Windows, Mac, Linux, iOS & Android. They do have a FREE TIER and other PAID plans that offer extra options.

>> DOWNLOAD SLACK NOW <<

What about you guys? What app am I missing from this list?

MacOS Improvements: Homebrew — November 13, 2017

MacOS Improvements: Homebrew


For those who have used any Linux distro like Debian or CentOS, you are pretty familiar with packet managers. But this is also for all those Mac newbies out there, basically a packet manager is:

… a collection of software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer‘s operating system in a consistent manner.

On Debian has APT and CentOS comes with YUM. Every IT Pro, SysAdmin or Dev knows how lovely packet managers are, and well since Apple never made one for MacOS, some one did and its amazing.

It’s called HOMEBREW and it brings the sweetness and ease of installing packages just like APT or YUM does on Linux.

How do you install HOMEBREW?

Open your favorite terminal app, either the one that comes with MacOS or my favorite iTerm2 and execute this command:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
 And that’s it. YES, IT’S THAT SIMPLE!

Now What?

Now you should update Homebrew and you do it with this command:

brew update

And you can install any program/software. On this example I’m going to install Apache, PHP 7, MySQL:

brew install apache2 php70 mysql

This will proceed to install all the required dependencies for each of the software we are installing and that are NOT currently installed on the server.

After it is installed all software is saved the following directory:

/usr/local/Cellar

Below is a snapshot of how my HomeBrew directory is currently:

1. salvador@RipeR81-MBP: :usr:local:Cellar (zsh) 2017-11-09 21-27-20

So start experimenting with HomeBrew today, and let me know if you need a hand!

Tweet at me @RipeR81

%d bloggers like this: