Adding ssh, zsh, and ohmyzsh
first, we set up zsh as our shell:
sudo apt update
sudo apt install -y zsh
which zsh # note the path, e.g. /usr/bin/zsh
chsh -s $(which zsh) $USER
setup ssh from your machine
this will allow us to ssh into your machine using vscode and others
1. Setup port forwarding in your vm or to allow connection to your 22 port to lets say port 2000
2. add this to your .ssh/config
Host ubuntu-ML
HostName localhost
User santy
Port 2000
ForwardAgent true
sign in with password using something like vs code, then copy the key into .ssh/authorized_keys
Add ohmyzsh:
sudo apt install -y git curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Adding node,npm, and nvm
add nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
install latest node(npm is installed automatically)
nvm install node