Skip to content

Instantly share code, notes, and snippets.

@BhanukaUOM
Last active February 11, 2021 16:08
Show Gist options
  • Save BhanukaUOM/f7eceac3a1b90a55df1ebd418beeb366 to your computer and use it in GitHub Desktop.
Save BhanukaUOM/f7eceac3a1b90a55df1ebd418beeb366 to your computer and use it in GitHub Desktop.
Config Dev Env in Ubuntu
sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup
sudo echo "# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirror.0x.sg/ubuntu/ focal main restricted
# deb-src http://mirror.0x.sg/ubuntu/ focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirror.0x.sg/ubuntu/ focal-updates main restricted
# deb-src http://mirror.0x.sg/ubuntu/ focal-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirror.0x.sg/ubuntu/ focal universe
# deb-src http://mirror.0x.sg/ubuntu/ focal universe
deb http://mirror.0x.sg/ubuntu/ focal-updates universe
# deb-src http://mirror.0x.sg/ubuntu/ focal-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirror.0x.sg/ubuntu/ focal multiverse
# deb-src http://mirror.0x.sg/ubuntu/ focal multiverse
deb http://mirror.0x.sg/ubuntu/ focal-updates multiverse
# deb-src http://mirror.0x.sg/ubuntu/ focal-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirror.0x.sg/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://mirror.0x.sg/ubuntu/ focal-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner
deb http://mirror.0x.sg/ubuntu/ focal-security main restricted
# deb-src http://mirror.0x.sg/ubuntu/ focal-security main restricted
deb http://mirror.0x.sg/ubuntu/ focal-security universe
# deb-src http://mirror.0x.sg/ubuntu/ focal-security universe
deb http://mirror.0x.sg/ubuntu/ focal-security multiverse
# deb-src http://mirror.0x.sg/ubuntu/ focal-security multiverse
deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" >> sources.list
sudo mv sources.list /etc/apt/
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-get update
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update && sudo apt-get install -y google-cloud-sdk
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
rm nodesource_setup.sh
sudo apt-get install -y nodejs python3-pip awscli
sudo pip3 install pipenv
sudo npm install -g firebase-tools
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
sudo apt install -y docker-ce
sudo usermod -aG docker ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment