Last active
January 14, 2017 12:09
-
-
Save Kibur/01dec0f4c50348a6d6c029d4917be5a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My experience towards CentOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
miniDLNA Server Installation (CentOS 7) | |
--------------------------------------- | |
Create a temporary directory for the installation files: | |
mkdir ~/Downloads/minidlna | |
Download the binary files: | |
wget https://sourceforge.net/projects/minidlna/files/minidlna/1.1.5/minidlna-1.1.5_static.tar.gz | |
Extract the files: | |
tar xvf minidlna-1.1.5_static.tar.gz | |
Move the configuration file to /etc: | |
sudo mv etc/minidlna.conf /etc | |
Move the binary file: | |
sudo mv usr/sbin/minidlnad /sbin | |
Remove the temporary directory: | |
rm -rv minidlna | |
Create the service settings: | |
sudo vim /etc/systemd/system/minidlnad.service | |
''' | |
[Unit] | |
Description=Minidlna Daemon | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
PIDFile=/run/minidlnad.pid | |
ExecStart=/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlnad.pid -R | |
ExecStop=/bin/kill -s QUIT $MAINPID | |
[Install] | |
WantedBy=multi-user.target | |
''' | |
Firewall configuration: | |
sudo firewall-cmd --permanent --add-port=1900/udp | |
sudo firewall-cmd --permanent --add-port=8200/tcp | |
sudo firewall-cmd --reload | |
Activate at boot and start the service: | |
sudo systemctl enable minidlnad && sudo systemctl start minidlnad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment