Skip to content

Instantly share code, notes, and snippets.

@choonchernlim
Last active September 23, 2022 20:57
Show Gist options
  • Save choonchernlim/85d6cb3225616c5da5481b2e902aba27 to your computer and use it in GitHub Desktop.
Save choonchernlim/85d6cb3225616c5da5481b2e902aba27 to your computer and use it in GitHub Desktop.
Configuring Tools in Chromebook
#!/bin/bash
echo "Installing/Updating VSCode..."
VSCODE_DEB_FILE="${HOME}/vscode.deb"
curl -L "https://go.microsoft.com/fwlink/?LinkID=760868" > "${VSCODE_DEB_FILE}"
sudo apt-get -y install "${VSCODE_DEB_FILE}"
rm "${VSCODE_DEB_FILE}"
echo "Installing/Updating Google SDK..."
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
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 -y install google-cloud-sdk
echo "Installing NoMachine..."
# Find latest version from https://www.nomachine.com/download/download&id=3
wget https://download.nomachine.com/download/8.0/Linux/nomachine_8.0.168_2_amd64.deb
sudo apt install ./nomachine_8.0.168_2_amd64.deb
sudo /etc/NX/nxserver --shutdown --startmode manual
#-----------------------------------------------
# Uncomment if Docker is needed
#-----------------------------------------------
#echo "Installing Docker..."
#sudo apt-get -y install apt-transport-https ca-certificates software-properties-common gnupg2
#curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
#sudo apt-key fingerprint 0EBFCD88
#sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
#sudo apt-get update
#sudo apt-get -y install docker-ce
#sudo usermod -a -G docker ${USER}
#sudo systemctl restart docker
#newgrp docker
echo "Creating local bin dir..."
mkdir -p "${HOME}/bin"
BASH_ALIASES="${HOME}/.bash_aliases"
echo "Creating ${BASH_ALIASES}..."
cat <<EOF > "${BASH_ALIASES}"
PATH="$HOME/bin:$PATH"
EOF
echo "Sourcing ${BASH_ALIASES}..."
. "${BASH_ALIASES}"
@choonchernlim
Copy link
Author

  • Create update.sh at home dir
  • Make file executable: chmod +x update.sh
  • Run it

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