A shell script file for installing dev tools. It would be very useful for quick start on development without much worrying about dev tools setup and in other case if you have a crazy habit of changing debian/ubuntu distros like me ;-)
echo "Installing snap store.."
# For Linux Mint 20 or above. By default snapd is not enabled in Linux Mint 20 or higher. To enable, use the below command.
# sudo mv /etc/apt/preferences.d/nosnap.pref ~
sudo apt-get install snapd
echo "Snap store installed successfully"echo "Installing Java...."
sudo apt-get update
sudo apt-get install openjdk-11-jdk
sudo update-alternatives --config java
java -version
echo "Java installed successfully"VS code linux package installation docs | Snap store docs for vscode
echo "Installing visual studio code"
sudo snap install --classic code
echo "VScode IDE installed successfully"snapstore installation docs for Pycharm
echo "Installing pycharm"
sudo snap install pycharm-community --classic
echo "PyCharm IDE installed successfully"snapstore installation docs for Intellij Idea
echo "Installing Intellij idea - community"
sudo snap install intellij-idea-community --classic
echo "Intellij Idea IDE installed successfully"echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
sudo apt-get update
sudo apt-get install sbt
echo "Scala installed successfully"echo "Installing pip"
sudo apt-get install python-pip
sudo pip install --upgrade pip setuptools
echo "pip installed successfully"mkdir ~/.pip
touch ~/.pip/pip.conf
PIPCONFIG="~/.pip/pip.conf"
/bin/cat <<EOM >$PIPCONFIG
[global]
index-url = <index-url>
EOMreplace with actual URL
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
source ~/.nvm/nvm.sh
source ~/.profile
source ~/.bashrcnvm install 13.7.0
nvm listYou can any node version using
nvm installand you can check list of node versions withnvm list
touch ~/.npmrc
npm config set registry <npm-regisry-url>registry url should be accurate if it's intranet otherwise npm login doesn't work. Prevalidation, it would be better to verify npm login with corp credentials.
echo "Login to npm using your corp credentials"
npm loginsudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
#https://github.com/typora/typora-issues/issues/2065
sudo add-apt-repository "deb https://download.docker.com/linux/ubuntu bionic stable"
sudo apt-get update
sudo apt-get -y install docker-ce
sudo usermod -aG docker $USERsudo touch /etc/docker/daemon.json
sudo tee -a /etc/docker/daemon.json > /dev/null <<EOT
{
"dns": ["<dns_ip1>", "<dns_ip2>"],
"insecure-registries": ["registry1", "registry2"]
}
EOTreplace dns_ip1 dns_ip2 with intranet IP addresses, the same way for insecure regisries