Last active
September 18, 2024 08:06
-
-
Save JuniYadi/6e34176f3127396a9345f774d3e1ec20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Install VSCode for Ubuntu or Debian" | |
echo "Ref: https://code.visualstudio.com/docs/setup/linux" | |
echo "code code/add-microsoft-repo boolean true" | sudo debconf-set-selections | |
sudo apt-get install wget gpg -y | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg | |
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" |sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null | |
rm -f packages.microsoft.gpg | |
sudo apt install apt-transport-https -y | |
sudo apt update | |
sudo apt install code -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install