Scripts for Linux VM/VPS/Metal SETUP
on Ubuntu, switch to root:
sudo su -Run pre-installs of apps & configs, create user netadmin
bash <(curl -Ls https://raw.githubusercontent.com/FinchTechSoCal/ft-linux-scripts/refs/heads/main/ubuntu-setup.sh)Give netadmin a password:
passwd netadminLogout & login as a different user (netadmin), switch to root
sudo su -then
OLDUSER=ubuntu
NEWUSER=<newuser>
usermod -l $NEWUSER $OLDUSER
groupmod -n $NEWUSER $OLDUSER
usermod -d /home/$NEWUSER -m $NEWUSER