I am currently working on updating this guide after updating my media server. I have added notes on things I no longer use but may update those sections in the future for users who still use them. As of now, I have everything working with the exception of Ombi and the plugins I no longer use.
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 | |
# Source: https://gist.github.com/Limych/35e83cb65ca8e48808c567984aee1ff8 | |
# | |
# Usage: | |
# Place one or more OVPN-files to some folder on target machine. | |
# You may additional place VPN credentials to file 'login.txt': 1st line — login, 2nd line — password. | |
# Then at that folder run this command: | |
# bash <(curl -sL https://gist.github.com/Limych/35e83cb65ca8e48808c567984aee1ff8/raw/rpi-vpn-gw-install.sh) |
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 | |
set -e | |
function info { echo -e "\e[32m[info] $*\e[39m"; } | |
function warn { echo -e "\e[33m[warn] $*\e[39m"; } | |
function error { echo -e "\e[31m[error] $*\e[39m"; exit 1; } | |
ARCH=$(uname -m) | |
# Check env |
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
#!/bin/sh | |
# Require PREF_ADMIN_USER and PREF_ADMIN_PASS variables | |
# Main prepare | |
######################################################################################## | |
rm /etc/localtime | |
ln -s /usr/share/zoneinfo/Europe/Moscow /etc/localtime |
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 | |
# Rotate best Earth photos as desktop background on Ubuntu. | |
# | |
# Just run this file via crontab. As example for every hour rotation: | |
# 0 * * * * $HOME/change_bg.sh | |
# | |
# Source: https://gist.github.com/Limych/1ebb913ab57a87ce512bb72a5dca1807 | |
USER=$(whoami) |
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
#!/bin/sh | |
# Add swap space | |
sudo dphys-swapfile swapoff | |
sudo sed -r -i "s/(CONF_SWAPSIZE\s*=.*)/#\1/g; s/#((CONF_MAXSWAP\s*=).*)/\24096/g" /etc/dphys-swapfile | |
sudo dphys-swapfile swapon | |
# Update Raspberry Pi and schedule auto-updates | |
sudo apt-get update && sudo apt-get full-upgrade -y && sudo apt-get dist-upgrade -y | |
sudo apt-get autoremove -y |
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
#!/bin/sh | |
# Script for automatic installation mediaserver on TrueNAS: | |
# Torrent client, Sonarr, Radarr, Lidarr and some support programs. | |
# Create new TrueNAS jail using "Advanced jail creation". | |
# Ensure for switch on jail flag allow_mlock (REQUIRED) | |
# Jail flag allow_raw_sockets is helpful for troubleshooting (e.g. ping, traceroute) | |
# Setup jail's mountpoints. |