From 5bce1dbb749da7ead61df7ba36dc6f738b63236b Mon Sep 17 00:00:00 2001 From: mkono87 Date: Sun, 24 Oct 2021 00:29:23 -0400 Subject: [PATCH] initial commit --- Proxmox_Setup/proxmox_setup.sh | 59 +++++++++++++++++++++++++++++ Tailscale_Linux/tailscaleinstall.sh | 14 +++++++ 2 files changed, 73 insertions(+) create mode 100644 Proxmox_Setup/proxmox_setup.sh create mode 100644 Tailscale_Linux/tailscaleinstall.sh diff --git a/Proxmox_Setup/proxmox_setup.sh b/Proxmox_Setup/proxmox_setup.sh new file mode 100644 index 0000000..47262f2 --- /dev/null +++ b/Proxmox_Setup/proxmox_setup.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +function nettest { + echo -e "GET http://google.com HTTP/1.0\n\n" | nc google.com 80 > /dev/null 2>&1 + if [ $? -eq 0 ]; then + echo "Internet connection confirmed" + else + echo "No internet connection available. Script will now exit." + sleep 2 + exit + fi +} + +function darkmode { + wget https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.sh + bash PVEDiscordDark.sh install + echo "You will need to refresh the gui for the theme to take affect." + sleep 2 +} + +#Remove local-pve partition, resize and partition the disk all in to local. +function partition { + lvremove /dev/pve/data -y + lvresize -l +100%FREE /dev/pve/root + resize2fs /dev/mapper/pve-root +} + + +##MAIN## + +#Test for internet connectivity + + +nettest + +cat <