Last active
July 22, 2020 20:40
-
-
Save namila007/388d668a6a42312611413ed6848f3712 to your computer and use it in GitHub Desktop.
install docker and node, vscode in 1 Go
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
# Uninstall old versions | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
# SETUP REPO | |
# Update the apt package index: | |
sudo apt-get update | |
# Install packages to allow apt to use a repository over HTTPS: | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
# Add Docker’s official GPG key: | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# stable | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
# | |
# Docker engin | |
sudo apt-get update | |
# Install the latest version of Docker Engine - Community and containerd, or go to the next step to install a specific version: | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
export version='18.06.3~ce~3-0~ubuntu ' | |
echo $version | |
sudo apt-get install docker-ce=$version containerd.io | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
# install docker composer | |
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# logout user | |
exit |
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
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - | |
sudo apt install nodejs |
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
# install essentials | |
sudo apt install --assume-yes libx11-xcb1 libasound2 x11-apps libice6 libsm6 libxaw7 libxft2 libxmu6 libxpm4 libxt6 x11-apps xbitmaps | |
#get latest vscode | |
wget https://go.microsoft.com/fwlink/?LinkID=760868 | |
#rename | |
cp 'index.html?LinkID=760868' vscode.deb | |
#install | |
sudo apt install ./vscode.deb | |
#remote desktop extenstion | |
wget https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-vscode-remote/vsextensions/vscode-remote-extensionpack/0.20.0/vspackage | |
# rename | |
cp vspackage vspackage.vsix | |
#install | |
code --install-extension vspackage.vsix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment