Skip to content

Instantly share code, notes, and snippets.

@Porco-Rosso
Last active October 28, 2024 17:19
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
# apt install nala
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"
# Add MOTD
bash <(wget -qO- https://raw.githubusercontent.com/Porco-Rosso/Lipstick-on-a-Pig/main/install.sh)
printf "\033[1;31mYou look jetlagged...\033[0m\n"
timedatectl set-timezone Europe/Moscow
printf "\033[1;31mGotta keep the pounds off...\033[0m\n"
mkdir /etc/systemd/journald.conf.d/
cat > /etc/systemd/journald.conf.d/00-custom-journal.conf <<EOL
[Journal]
Storage=auto
Compress=yes
SystemMaxUse=30M
SystemKeepFree=50M
SystemMaxFileSize=10M
EOL
# 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