Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# xbmc movies
sudo su
apt-get update
apt-get install apache2 libapache2-mod-php php-imagick php-cli php-sqlite3 php-json php-mbstring git curl unzip
a2dismod mpm_event
a2enmod rewrite expires php7.0 mpm_prefork
service apache2 restart
cd /var/www/html
git clone git://github.com/Jalle19/xbmc-video-server.git
#!/bin/bash
# obs studio with ffmpeg
sudo apt-add-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get install ffmpeg
sudo apt-add-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install obs-studio
@Domin8-IPTV
Domin8-IPTV / ufw-torblock.sh
Last active August 23, 2018 21:38
block TOR
#!/bin/bash
echo -e "\n\tGetting Tor node list from dan.me.uk\n"
wget -q -O - https://www.dan.me.uk/torlist/ > /tmp/full.tor
CMD=$(cat /tmp/full.tor | uniq | sort)
for IP in $CMD; do
let COUNT=COUNT+1
ufw deny from $IP
done
echo -e "\n\tUFW now blocking TOR connections !\n"
[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target
[Service]
Type=simple
User=plex
Group=plex
UMask=000
echo INSTALLING UTORRENT NOW
sudo apt-get update
sudo apt-get install libssl1.0.0 libssl-dev
wget http://download-new.utorrent.com/endpoint/utserver/os/linux-x64-ubuntu-13-04/track/beta/ -O utserver.tar.gz
sudo tar -zxvf utserver.tar.gz -C /opt/
sudo chmod 777 /opt/utorrent-server-alpha-v3_3/
sudo ln -s /opt/utorrent-server-alpha-v3_3/utserver /usr/bin/utserver
utserver -settingspath /opt/utorrent-server-alpha-v3_3/ &
#/bin/sh
apt-get update
apt-get install firefox-esr xfce4 xfce4-goodies gnome-icon-theme tightvncserver -y
cd /etc/init.d/
wget https://gist.githubusercontent.com/Domin8-IPTV/efcf0a118b6eab7a5461e4afab608437/raw/d926bdfb4f802e53b97e9c4b74552874397fa1a7/vncserver && chmod +x vncserver
systemctl daemon-reload
systemctl enable vncserver
vncserver
@Domin8-IPTV
Domin8-IPTV / letv-nginx.sh
Last active February 16, 2019 00:53
nginx letv rp
#!/bin/bash
#
# MAUNDYS LETV with lets encrypt config setup
#
if [ "$(id -u)" != "0" ]; then
echo "This script requires root privileges."
exit 1
fi
@Domin8-IPTV
Domin8-IPTV / composer.sh
Last active February 27, 2019 11:04
compser install
#!/bin/sh
EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]
then
>&2 echo 'ERROR: Invalid installer signature'
rm composer-setup.php
@Domin8-IPTV
Domin8-IPTV / web.sh
Created April 19, 2019 21:59
ubuntu install LAMP phpMyAdmin nodejs and SSL with Let's Encrypt
#!/bin/bash
#
read -p 'Set Web Directory (Example: /var/www/html) ' directory
read -p 'Set Web Domain (Example: 127.0.0.1 [Not trailing slash!]) ' domain
#
sudo apt-get update && sudo apt-get upgrade
sudo apt update && sudo apt dist-upgrade && sudo apt autoremove -y
sudo apt-get install default-jdk -y
sudo apt-get install software-properties-common -y
sudo apt-get install python-software-properties -y
#!/bin/bash
apt-get update
apt-get install unrar-free git-core openssl libssl-dev python2.7 -y
wget https://downloads.plex.tv/plex-media-server-new/1.15.3.876-ad6e39743/debian/plexmediaserver_1.15.3.876-ad6e39743_armhf.deb
dpkg -i plexmediaserver_1.15.3.876-ad6e39743_armhf.deb
mkdir -p /home/plex/
chown -R plex:plex /home/plex/
chmod -R 777 /home/plex/
apt-get install squid -y
service squid stop