Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ubuntu 20.04 ViUR - Setup
We use ZSH. If you not use ZSH replace all .zshrc with .bashrc
-----------------------------------------------------------------------------------------------------------------
Python 3
-----------------------------------------------------------------------------------------------------------------
cd ~
sudo apt-get install python3-pip
-----------------------------------------------------------------------------------------------------------------
pipenv
-----------------------------------------------------------------------------------------------------------------
echo 'export PATH=$HOME/.local/bin:$PATH' >> .zshrc
pip3 install pipenv
-----------------------------------------------------------------------------------------------------------------
pyenv
-----------------------------------------------------------------------------------------------------------------
cd ~
sudo apt-get update; sudo apt-get install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
echo 'export PATH=$HOME/.pyenv/bin:$PATH' >> .zshrc
echo 'eval "$(pyenv init -)"' >> .zshrc
echo 'eval "$(pyenv virtualenv-init -)"' >> .zshrc
-----------------------------------------------------------------------------------------------------------------
gcloud
-----------------------------------------------------------------------------------------------------------------
cd ~
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt-get install apt-transport-https ca-certificates gnupg
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 google-cloud-sdk
sudo apt-get install google-cloud-sdk-app-engine-python
sudo apt-get install google-cloud-sdk-app-engine-python-extras
sudo apt-get install google-cloud-sdk-datastore-emulator
gcloud init --no-launch-browser
gcloud auth application-default login --no-launch-browser
sudo apt-get install python3.8-venv
-----------------------------------------------------------------------------------------------------------------
node + npm
-----------------------------------------------------------------------------------------------------------------
sudo apt install nodejs
sudo apt install npm
sudo npm install -g n
sudo n latest
@xnopasaranx
Copy link

note that the last line where curl is called can not be run as a normal user on a normal linux environment because of the --global flag. try this instead if you get a permission error "curl -f https://get.pnpm.io/v6.16.js | sudo node - add --global pnpm" and note that only the node command needs elevated rights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment