This file contains hidden or 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/bash | |
ROUTER="192.168.1.1" | |
IP=$(hostname -I | cut -d ' ' -f 1) | |
IF="/sbin/ip" | |
IFACE=$($IF -o link show | awk '{print $2,$9}' | grep "UP" | cut -d ":" -f 1) | |
DOMAIN="vpn.waaromzomoeilijk.nl" | |
# Check if root | |
if [ "$(whoami)" != "root" ]; then | |
echo |
This file contains hidden or 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/bash | |
# | |
# Tech and Me, ©2016 - www.techandme.se | |
# Variable | |
IMG='/path' | |
MNT='/mnt/arm' | |
# Upgrade and update | |
apt-get autoclean |
This file contains hidden or 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 | |
# | |
# Tech and Me, 2016 - www.techandme.se | |
# Whiptail menu to install various Nextcloud app and do other useful stuf. | |
################################################ Variable 1 | |
################################ Network 1.1 | |
IFCONFIG=$(ifconfig) | |
IP="/sbin/ip" | |
IFACE=$($IP -o link show | awk '{print $2,$9}' | grep "UP" | cut -d ":" -f 1) |
This file contains hidden or 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/bash | |
HTTPS_CONF="/etc/apache2/sites-available/$EDITORDOMAIN" | |
DOMAIN=$(whiptail --title "Techandme.se Collabora" --inputbox "Nextcloud url, make sure it looks like this: cloud\.yourdomain\.com" 10 60 cloud\.yourdomain\.com 3>&1 1>&2 2>&3) | |
EDITORDOMAIN=$(whiptail --title "Techandme.se Collabora" --inputbox "Collabora subdomain eg: office.yourdomain.com" 10 60 3>&1 1>&2 2>&3) | |
# Message | |
whiptail --msgbox "Please before you start make sure port 443 is directly forwarded to this machine or open!" 20 60 2 | |
# Update & upgrade | |
{ |
OlderNewer