Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@christroutner
Last active December 20, 2022 14:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christroutner/a39f656850dc022b60f25c9663dd1cdd to your computer and use it in GitHub Desktop.
Save christroutner/a39f656850dc022b60f25c9663dd1cdd to your computer and use it in GitHub Desktop.
Ubuntu Setup Notes

This file contains a list of commands that can be used to quickly and easily setup a new Ubuntu 20.04 installation.

Update and Upgrade

  • sudo apt update
  • sudo apt upgrade

Install SSH Server

  • sudo apt install openssh-server

Install Basic Apps

  • sudo apt install git curl wget zip unzip net-tools

Connect Remotely

  • Lookup your IP address: ifconfig
  • Connect to your server with a remote computer: ssh <username>@<ip address>

Install Node.js

  • curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
  • sudo apt-get install -y nodejs build-essential
  • sudo npm install -g npm

Install Docker

  • sudo apt-get install -y software-properties-common
  • curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
  • sudo usermod -aG docker ${USER}
  • Log out and back in for changes to take effect.

Install Docker Compose (amd64 processor)

  • sudo curl -L https://github.com/docker/compose/releases/download/1.27.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
  • sudo chmod +x /usr/local/bin/docker-compose

Install Docker Compose (Raspberry Pi arm64 processor)

  • sudo apt-get install -y libffi-dev libssl-dev
  • sudo apt-get install -y python3 python3-pip
  • sudo apt-get remove python-configparser
  • sudo pip3 -v install docker-compose

Install Go

  • sudo apt install snapd
  • sudo snap install go --classic

Install IPFS

  • wget https://dist.ipfs.io/go-ipfs/v0.11.0/go-ipfs_v0.11.0_linux-amd64.tar.gz
  • tar -xvf go-ipfs_v0.11.0_linux-amd64.tar.gz rm go-ipfs_v0.9.1_linux-amd64.tar.gz
  • cd go-ipfs
  • sudo ./install.sh

Disable Autoupdate and Update Reminder

  • sudo apt remove unattended-upgrades
  • sudo apt remove update-manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment