Skip to content

suryahanumandla/linux-dev-tool-installation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Linux development tools installation

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 ;-)

Install snap store

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"

Install Java

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"

Install visual studio code

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"

Install Pycharm community

snapstore installation docs for Pycharm

echo "Installing pycharm"
sudo snap install pycharm-community --classic
echo "PyCharm IDE installed successfully"

Install intellij-idea-community

snapstore installation docs for Intellij Idea

echo "Installing Intellij idea - community"
sudo snap install intellij-idea-community --classic
echo "Intellij Idea IDE installed successfully"

Installing scala sbt

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"

pip install

echo "Installing pip"
sudo apt-get install python-pip
sudo pip install --upgrade pip setuptools
echo "pip installed successfully"

set pip.config

mkdir ~/.pip
touch ~/.pip/pip.conf
PIPCONFIG="~/.pip/pip.conf"

/bin/cat <<EOM >$PIPCONFIG
[global]
index-url = <index-url>
EOM

replace with actual URL

Install nvm

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
source ~/.nvm/nvm.sh
source ~/.profile
source ~/.bashrc

Install node version

nvm install 13.7.0
nvm list

You can any node version using nvm install and you can check list of node versions with nvm list

set artifactory .npmrc

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.

login to npm (No need if you are using public registry i.e. )

echo "Login to npm using your corp credentials"
npm login

Install docker

sudo 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 $USER

Create deamon.json file for docker registry

sudo touch /etc/docker/daemon.json
sudo tee -a /etc/docker/daemon.json > /dev/null <<EOT
{
    "dns": ["<dns_ip1>", "<dns_ip2>"],
    "insecure-registries": ["registry1", "registry2"]
}
EOT

replace dns_ip1 dns_ip2 with intranet IP addresses, the same way for insecure regisries

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors