Skip to content

Instantly share code, notes, and snippets.

@filipesperandio
Last active August 29, 2015 14:21
Show Gist options
  • Save filipesperandio/45888038e6a98a47c698 to your computer and use it in GitHub Desktop.
Save filipesperandio/45888038e6a98a47c698 to your computer and use it in GitHub Desktop.
#!/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
#!/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