Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
These are the aliases I have configured to control my MiniDLNA set-up.
# Running DLNA server via `minidlnad`
alias dlna_remove_log="if [ -f ~/.config/minidlna/minidlna.log ];then rm ~/.config/minidlna/minidlna.log;fi"
alias dlna_stop="if [ -f ~/.config/minidlna/minidlna.pid ];then cat ~/.config/minidlna/minidlna.pid | xargs kill;fi"
alias dlna_init="minidlnad -f ~/.config/minidlna/minidlna.conf -P ~/.config/minidlna/minidlna.pid"
alias dlna_start="dlna_stop;dlna_remove_log;dlna_init"
alias dlna_rescan="dlna_stop;dlna_remove_log;dlna_init -R"
# ~/.config/minidlna/minidlna.conf
friendly_name=Martijn
media_dir=/Users/martijn/Movies
db_dir=/Users/martijn/.config/minidlna/cache
log_dir=/Users/martijn/.config/minidlna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.