Skip to content

Instantly share code, notes, and snippets.

@ozaki-r
Last active January 8, 2021 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozaki-r/2e4d7b35958d6813089264f99cabc6a5 to your computer and use it in GitHub Desktop.
Save ozaki-r/2e4d7b35958d6813089264f99cabc6a5 to your computer and use it in GitHub Desktop.
Setups for a newly created VM on GCP

Fill $vmname and $username with yours.

  • gcloud compute ssh $vmname -- tmux -u new-session -A -s main
  • git clone https://github.com/ozaki-r/dotfiles
    • cd dotfiles
    • sh setup.sh
  • sudo apt install zsh
  • sudo passwd $username
  • chsh
    • /usr/bin/zsh
  • ssh-keygen -t ed25519
    • register the pubkey to github, etc.
  • curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • sudo apt install gcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment