Last active
August 29, 2015 14:21
-
-
Save filipesperandio/45888038e6a98a47c698 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
#!/usr/bin/env bash | |
echo "Installing docker" | |
wget -qO- https://get.docker.com/ | sudo sh | |
sudo usermod -aG docker filipesperandio | |
echo "Installing SMB/CIFS and local net discovery" | |
sudo apt-get install cifs-utils pyNeighborhood | |
echo "Mounting NAS" | |
sudo bash -c "echo '//mybooklive.local/public /media/mybooklive cifs guest,uid=1000,iocharset=utf8 0 0' >> /etc/fstab" | |
sudo mkdir -p /media/mybooklive | |
sudo mount -a |
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
#!/usr/bin/env bash | |
sudo docker pull timhaak/plex | |
sudo ln -s /media/mybooklive/PlexConfig PlexConfig | |
sudo ln -s /media/mybooklive/Shared\ Videos Videos | |
sudo docker run -d --name=plex-server --restart=always \ | |
--net="host" \ | |
-v "/tmp/PlexConfig":/config \ | |
-v "/opt/Videos":/data \ | |
-p 32400:32400 \ | |
timhaak/plex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment