Skip to content

Instantly share code, notes, and snippets.

@Porco-Rosso
Last active February 16, 2024 11:43
Show Gist options
  • Save Porco-Rosso/27259877c624f48dd99c to your computer and use it in GitHub Desktop.
Save Porco-Rosso/27259877c624f48dd99c to your computer and use it in GitHub Desktop.
# This script is to help bootstrap the default debian lxc containers for proxmox
#! /bin/bash
# This script is to help bootstrap the default lxc containers for proxmox.
# remember to chmod +x it!
# Use at your own risk!
# update system & install basic packages
printf "\033[1;31mLets just pimp out this bitch with some newer threads and bling\033[0m\n"
apt update && apt upgrade -y
apt install nano -y
apt install curl -y
apt install unattended-upgrades apt-listchanges -y
apt install avahi-daemon -y
apt install ncdu -y
apt install btop -y
# curl https://getcroc.schollz.com | bash
wget -qO - portal.spatiumportae.com | bash
portal completion bash > /etc/bash_completion.d/portal
printf "\033[1;31mThose updates look damn fresh!\033[0m\n"
# add custom bash prompt
#echo "'hostnamecolor="1;$((31 + $(hostname | cksum | cut -c1-3) % 6))";'" >>~/.bashrc
#echo "directorycolor=15" >>~/.bashrc
#echo 'export PS1="\[\033[38;5;${hostnamecolor}m\]\u@\h:[\[$(tput sgr0)\]\[\033[38;5;${directorycolor}m\]\w\[$(tput sgr0)\]\[\033[38;5;${hostnamecolor}m\]]\\$>\[$(tput sgr0)\]"' >>~/.bashrc
#printf "\033[1;31mNice Paint!\033[0m\n"
printf "\033[1;31mYou look jetlagged...\033[0m\n"
timedatectl set-timezone Europe/Moscow
# done
printf "\033[1;31mNow go hustle, until next time, peace fool!\033[0m\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment