Skip to content

Instantly share code, notes, and snippets.

@n0531m
Last active December 26, 2023 01:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n0531m/5a8cdd19863188ebc6879f163c73124b to your computer and use it in GitHub Desktop.
Save n0531m/5a8cdd19863188ebc6879f163c73124b to your computer and use it in GitHub Desktop.
setting up my chromebook
##!/bin/bash
## setting up the least to a clean linux env on a chromebook
## mostly a copy&paste from instructions found on the web, which is why the approach is not consistent...
## i might clean it up in the future but as long as it works it does the job.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common apt-utils
#Google Cloud SDK
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
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 update && sudo apt-get install google-cloud-sdk
##Need to get 69.8 MB of archives.
##After this operation, 426 MB of additional disk space will be used.
gcloud auth login --enable-gdrive-access
#terraform
#source : https://www.terraform.io/docs/cli/install/apt.html
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt install terraform
##Need to get 33.8 MB of archives.
##After this operation, 82.7 MB of additional disk space will be used.
#sublimetext
#source : https://www.sublimetext.com/docs/3/linux_repositories.html
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
##Need to get 9,835 kB of archives.
##After this operation, 34.8 MB of additional disk space will be used.
#vscode
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt-get update
sudo apt-get install code
##Need to get 72.5 MB of archives.
##After this operation, 283 MB of additional disk space will be used.
#java
sudo apt-get install default-jdk
##Need to get 271 MB of archives.
##After this operation, 426 MB of additional disk space will be used.
##alternative
## sudo apt install openjdk-8-jdk
#maven
sudo apt-get install maven
##Need to get 9,165 kB of archives.
##After this operation, 12.0 MB of additional disk space will be used.
##git
## git config --global user.email "you@example.com"
## git config --global user.name "Your Name"
##protoc
sudo apt-get install -y protobuf-compiler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment