forked from Notos/seedbox-from-scratch
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathinstallPLEX
executable file
·23 lines (22 loc) · 922 Bytes
/
installPLEX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
IPADDRESS1=`cat /etc/seedbox-from-scratch/hostname.info`
logfile="/dev/null"
OS1=$(lsb_release -si)
echo "Installing Plex Media Server . . . ."
if [ `getconf LONG_BIT` = "64" ]; then
wget -c https://downloads.plex.tv/plex-media-server/1.10.0.4523-648bc61d4/plexmediaserver_1.10.0.4523-648bc61d4_amd64.deb >> $logfile 2>&1
sudo apt-get install -f >> $logfile 2>&1
rm plexmediaserver_*_amd64.deb
else
wget -c https://downloads.plex.tv/plex-media-server/1.10.0.4523-648bc61d4/plexmediaserver_1.10.0.4523-648bc61d4_i386.deb >> $logfile 2>&1
sudo apt-get install -f >> $logfile 2>&1
rm plexmediaserver_*_i386.deb
fi
echo ""
echo "Plex Media Server is installed"
echo ""
echo "To enable remote access, set up ssh tunnel;"
echo "and access - http://$IPADDRESS1:32400/web"
echo "For initial Plex Setup check : "
echo "https://github.com/dannyti/sboxsetup/wiki/Initial-set-up-of-Plex-Media-Server"
echo ""