diff --git a/sbfrmsc-dti-14.04.sh b/sbfrmsc-dti-14.04.sh index 1527083..201ffb8 100644 --- a/sbfrmsc-dti-14.04.sh +++ b/sbfrmsc-dti-14.04.sh @@ -760,6 +760,121 @@ fi # createSeedboxUser bash /etc/seedbox-from-scratch/createSeedboxUser $NEWUSER1 $PASSWORD1 YES YES YES NO +#98. Bitsync Setup + +clear +bldgrn='\e[1;32m' # Green +bldylw='\e[1;33m' # Yellow +txtrst='\e[0m' # Text Reset +BitorrentSyncUser=$NEWUSER1 +IPADDRESS1=`ifconfig | sed -n 's/.*inet addr:\([0-9.]\+\)\s.*/\1/p' | grep -v 127 | head -n 1` + + if [ ! $BitorrentSyncUser ]; then + echo -n "Username: " + read BitorrentSyncUser + fi + if [ ! $BitorrentSyncUser ]; then + echo "Error no Username!" + exit 0 + fi + +sudo apt-get --yes update +sudo apt-get --yes install python-software-properties +sudo add-apt-repository --yes ppa:tuxpoldo/btsync +sudo apt-get --yes update +sudo chown -R $BitorrentSyncUser:$BitorrentSyncUser /home/$BitorrentSyncUser/btsync +sudo chmod -R 755 /home/$BitorrentSyncUser/btsync +sudo mkdir -p /home/$BitorrentSyncUser/btsync +sudo wget -N https://download-cdn.getsyncapp.com/stable/linux-x64/BitTorrent-Sync_x64.tar.gz +sudo tar xvfz BitTorrent-Sync_x64.tar.gz -C /home/$BitorrentSyncUser/btsync +sudo su --login --command "/home/$BitorrentSyncUser/btsync/btsync --webui.listen 0.0.0.0:8888" $BitorrentSyncUser + +#101. Subsonic +SubsonicUser=$NEWUSER1 +IPADDRESS1=`ifconfig | sed -n 's/.*inet addr:\([0-9.]\+\)\s.*/\1/p' | grep -v 127 | head -n 1` + + if [ ! $SubsonicUser ]; then + echo -n "Username: " + read SubsonicUser + fi + if [ ! $SubsonicUser ]; then + echo "Error no Username!" + exit 0 + fi + +sudo apt-get --yes install openjdk-7-jre +sudo wget -N http://cznic.dl.sourceforge.net/project/subsonic/subsonic/5.2.1/subsonic-5.2.1.deb +sudo dpkg -i subsonic-5.2.1.deb +sudo chmod -R 755 /etc/default/subsonic +sudo perl -pi -e "s/SUBSONIC_USER=root/SUBSONIC_USER=$SubsonicUser/g" /etc/default/subsonic +sudo service subsonic restart +echo "YES" | sudo tee /etc/hostdz/subsonic.info + +echo +echo -e "${bldgrn}Subsonic installed! ${bldylw}Web: http://$IPADDRESS1:4040${txtrst}" +echo -e "${bldgrn}Username: ${bldylw}admin${txtrst}" +echo -e "${bldgrn}Password: ${bldylw}admin${txtrst}" +echo + +#102. +NZBGetUser=$NEWUSER1 +IPADDRESS1=`ifconfig | sed -n 's/.*inet addr:\([0-9.]\+\)\s.*/\1/p' | grep -v 127 | head -n 1` + + if [ ! $NZBGetUser ]; then + echo -n "Username: " + read NZBGetUser + fi + if [ ! $NZBGetUser ]; then + echo "Error no Username!" + exit 0 + fi + +sudo add-apt-repository --yes ppa:modriscoll/nzbget +sudo apt-get --yes update +sudo apt-get --yes install unrar +sudo apt-get --yes install libncurses5-dev libsigc++-dev sigc++ libpar2-0-dev libssl-dev libgnutls-dev libxml2-dev build-essential unrar unzip p7zip-full + + +wget http://sourceforge.net/projects/nzbget/files/nzbget-12.0.tar.gz +tar -xvf nzbget-12.0.tar.gz && cd nzbget-12.0 +wget http://sourceforge.net/projects/parchive/files/libpar2/0.2/libpar2-0.2.tar.gz +tar -xvf libpar2-0.2.tar.gz && cd libpar2-0.2 && cp ../libpar2-0.2-*.patch . +patch < libpar2-0.2-bugfixes.patch +patch < libpar2-0.2-cancel.patch +./configure +make +sudo make install +cd .. +./configure +make +sudo make install +sudo make install-conf +mv ppscripts ~/downloads/ +wget http://sourceforge.net/projects/nzbget/files/ppscripts/videosort/videosort-ppscript-4.0.zip +unzip videosort-ppscript-4.0.zip -d ~/downloads/ppscripts/ +nzbget -D + + + + + + + +echo +echo "${bldgrn}NZBGet installed! ${bldylw}Web: http://$IPADDRESS1:6789${txtrst}" +echo "${bldgrn}Username: ${bldylw}nzbget${txtrst}" +echo "${bldgrn}Password: ${bldylw}$PASSWORD1{txtrst}" +echo + + +##apt-get --yes install btsync +##dpkg-reconfigure btsync +echo "YES" | sudo tee /etc/hostdz/bittorrentsync.info + +echo +echo -e "${bldgrn}BitTorrent-Sync installed! ${bldylw}Web: https://$IPADDRESS1:8888/gui/${txtrst}" +echo + # 98. Cosmetic corrections & installing plowshare #cd /var/www/rutorrent/plugins/autodl-irssi #rm AutodlFilesDownloader.js diff --git a/sbfrmsc-dti.sh b/sbfrmsc-dti.sh index dd488db..7d4db48 100644 --- a/sbfrmsc-dti.sh +++ b/sbfrmsc-dti.sh @@ -290,6 +290,7 @@ apt-get --yes install whois sudo makepasswd git nano rm -f -r /etc/seedbox-from-scratch git clone -b v$SBFSCURRENTVERSION1 https://github.com/dannyti/seedbox-from-scratch.git /etc/seedbox-from-scratch +bash -c 'cd /etc/seedbox-from-scratch && git checkout 72c60d29730c31bec795ea63f7e5b88556ad2efd' mkdir -p cd /etc/seedbox-from-scratch/source mkdir -p cd /etc/seedbox-from-scratch/users