Some common actions and files needed when setting up a server for the first time.
Add the CA public cert, update sshd_config, and help get a signed certificate.
sudo curl https://raw.githubusercontent.com/ahoeppner/setup-utilities/main/ca_setup | sudo bashAutomate the setup of a new Ubuntu system. The script performs a series of tasks including updating and upgrading packages, installing essential utilities, setting up a user account with sudo privileges, configuring SSH, and installing bash dotfiles.
The ubuntu_setup.sh script carries out the following main tasks:
- Updates and Upgrades Packages: Ensures your system's package list and installed packages are updated.
- Installs Utilities: Installs necessary utilities such as
curlandgit. - User Setup: Creates a new user named
siegward, adds the user to thesudogroup, and prompts for a password change. - SSH Configuration: Sets up SSH for the user
siegward, including creating an.sshdirectory, downloading SSH keys, and modifying the SSH config to enhance security. - Bash Dotfiles Installation: Clones a git repository containing bash dotfiles and runs an installation script to apply these configurations.
- A running Ubuntu system.
- Root access to the system.
- Internet access (obviously)
To run the script, download it and run with bash.
wget https://raw.githubusercontent.com/ahoeppner/setup-utilities/main/ubuntu_setup.sh
chmod +x ubuntu_setup.sh
./ubuntu_setup.sh