Skip to content

Instantly share code, notes, and snippets.

@ghulamMustafaRaza
Last active January 19, 2019 09:41
Show Gist options
  • Save ghulamMustafaRaza/fb9020e7a773ac12cd23aec9aa205533 to your computer and use it in GitHub Desktop.
Save ghulamMustafaRaza/fb9020e7a773ac12cd23aec9aa205533 to your computer and use it in GitHub Desktop.
INITIAL SETUP OF JAVASCRIPT, PYTHON, GIT, VSCODE, DOCKER, DOCKER-COMPOSE & GO-LANG DEVELOPMENT SETUP FOR DEBIAN BASED LINUX, eg. UBUNTU, DEEPIN, ELEMENTRY-OS, DEBIAN AND GNOME

INITIAL SETUP OF JAVASCRIPT, PYTHON, GIT, VSCODE, DOCKER, DOCKER-COMPOSE & GO-LANG DEVELOPMENT SETUP FOR DEBIAN BASED LINUX, eg. UBUNTU, DEEPIN, ELEMENTRY-OS, DEBIAN AND GNOME

INITIAL JAVASCRIPT, PYTHON, GIT AND VS-CODE SETUP

curl https://gist.githubusercontent.com/ghulamMustafaRaza/fb9020e7a773ac12cd23aec9aa205533/raw/initialJavascript_VsCodeStackSetup.sh | bash

SETUP DOCKER AND DOCKER-COMPOSE

curl https://gist.githubusercontent.com/ghulamMustafaRaza/fb9020e7a773ac12cd23aec9aa205533/raw/setupDocker_dockerCompose.sh | bash

SETUP GOLANG ENVIRENMENT

curl https://gist.githubusercontent.com/ghulamMustafaRaza/fb9020e7a773ac12cd23aec9aa205533/raw/setupGoLangENV.sh | bash
echo "################# ADD NODE SOURSE ################"
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
echo "################# INSTALL MODULES ################"
sudo apt-get install -y nodejs python git >> /dev/null && echo "Successfully Installed MODULES" || echo "There was an error while installing MODULES"
echo "################# ADD CODE SOURSE ################"
sudo add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" >> /dev/null
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF >> /dev/null
sudo apt update
echo "################# INSTALL VS-CODE ################"
sudo apt -y install code >> /dev/null && echo "Successfully Installed VS-CODE" || echo "There was an error while installing VS-CODE"
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
apt-get update
apt-get install build-essential libssl-dev
sudo apt install openjdk-8-jre openjdk-8-jdk
sudo snap install android-studio
echo 'export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
# Configure android emulator to run directly in terminal.
function emulator { ( cd "$(dirname "$(whence -p emulator)")" && ./emulator "$@"; ) }
# Set alias to shorten command and also fix the side-effect
alias emu="$ANDROID_HOME/tools/emulator"' >> ~/.bash_profile
source ~/.bash_profile
echo "################# INSTALL DOCKER ################"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo groupadd docker
sudo gpasswd -a $USER docker
newgrp docker
echo "################# INSTALL COMPOSE ################"
sudo apt-get update
sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
sudo apt-get update
echo "################# DOWNLOADING SOURSE ################"
cd ~
curl -O https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz
echo "################# EXTRACTING SOURSE ################"
tar xvf go1.9.linux-amd64.tar.gz >> /dev/null
echo "################# INSTALLING SOURSE ################"
sudo chown -R root:root ./go >> /dev/null
sudo mv go /usr/local >> /dev/null
echo "################# SETTING ENV SOURSE ################"
cd ~ >> /dev/null
echo '' >> ~/.bashrc
echo '' >> ~/.bashrc
echo 'export GOPATH=$HOME/myworkspace' >> ~/.bashrc >> /dev/null
echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> ~/.bashrc >> /dev/null
source ~/.bashrc >> /dev/null
go version >> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment