Skip to content

Instantly share code, notes, and snippets.

@BlockByBlock
Last active December 21, 2018 05:32
Show Gist options
  • Save BlockByBlock/17474417046b9ebaa2007e6c69a3c012 to your computer and use it in GitHub Desktop.
Save BlockByBlock/17474417046b9ebaa2007e6c69a3c012 to your computer and use it in GitHub Desktop.
For fresh ubuntu installation
#!/usr/bin/env bash
set -o verbose
set -o errexit
sudo apt update
sudo apt install -y git curl wget lsb-release build-essential software-properties-common terminator
#install Docker
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
#install visual studio code
wget -O vscode.deb https://go.microsoft.com/fwlink/?LinkID=760868
sudo dpkg -i vscode.deb
sudo apt-get install -f
#install google chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get -f install -y
rm google-chrome-stable_current_amd64.deb
#install typora
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update
sudo apt-get install typora
# ip environment variable
echo "ip=\$(ip addr show wlan0 | grep -o 'inet [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+' | grep -o [0-9].*)" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment