Skip to content

Instantly share code, notes, and snippets.

@ashbyca
Last active February 3, 2021 17:50
Show Gist options
  • Save ashbyca/2cd766572ef5fd5e0ea69e6c535674f3 to your computer and use it in GitHub Desktop.
Save ashbyca/2cd766572ef5fd5e0ea69e6c535674f3 to your computer and use it in GitHub Desktop.
System Setup
# Install Python PIP and Dependencies
sudo apt-get install python3-dev python3-pip python3-setuptools libyaml-dev wget libreadline7 libreadline-dev git python-dnspython python-mechanize python-slowaes python-xlsxwriter python-jsonrpclib python-lxml lsb-release figlet update-motd libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev -y
# Setup and configure Dynamic MOTD
# Remove the current directory
sudo rm -r /etc/update-motd.d/
# Create new directory
sudo mkdir /etc/update-motd.d/
# Download 00-header, 10-sysinfo, 90-footer and change permissions
cd /etc/update-motd.d/
sudo wget https://gist.githubusercontent.com/ashbyca/9ce85acbcb17e5ecd6055e9c88837158/raw/a0d9dcfd5ff4283ab8cdcdbeedb24796dfd4946b/00-header
sudo wget https://gist.githubusercontent.com/ashbyca/582cf06398ceeb651548bef1743605b8/raw/6785d9f3c08105959c69d285560dc76076ae649e/10-sysinfo
sudo wget https://gist.githubusercontent.com/ashbyca/a7bd031c7efdd9c9c5fe53f9a5dc49ae/raw/20be9196dfd3fbceac2e074d6b3dd0956892ac6f/90-footer
sudo chmod +x /etc/update-motd.d/*
# remove MOTD file
rm /etc/motd.dynamic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment