Skip to content

Instantly share code, notes, and snippets.

@akelch
Last active January 30, 2023 16:06
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 akelch/1ccf6d9f5799eb0502041b44a7ffb15b to your computer and use it in GitHub Desktop.
Save akelch/1ccf6d9f5799eb0502041b44a7ffb15b to your computer and use it in GitHub Desktop.
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