Skip to content

Instantly share code, notes, and snippets.

View lrobert's full-sized avatar

Lee Robert lrobert

  • Kingston, Ontario
View GitHub Profile
@lrobert
lrobert / hardenUbuntu.sh
Last active August 3, 2023 20:04
Ubuntu Base Server Configuration/Hardening Script
#!/bin/bash
#
# Lee Robert's Base Ubuntu Installation script for use on Digital Ocean (Or any other ubuntu install really.)
# Made and tested with Ubuntu 13.04 64bit
#
# Steps:
# 01. Secure Root User
# 02. Make .bashrc print out pretty colors (and root's prompt will be red)
# 03. Create a local user
# 04. Update sudoers file so only root + local user can use sudo