Showing posts with label installation. Show all posts
Showing posts with label installation. Show all posts

Monday, November 27, 2017

How to install gradle on ubuntu 16.04 with sdkman?

install Gradle on Ubuntu 16.04 With SDKMAN

Open terminal and then enter

$ curl -s "https://get.sdkman.io" | bash
$ sudo apt install unzip
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
$ sdk version
$ sdk install gradle 4.3.1

$ gradle -v

How to install Kdiff3 in Ubuntu?

Install kdiff3

$ sudo apt-get update

$ sudo apt-get install kdiff3

Then run


$ kdiff3

How to install git in Ubuntu?

Install Git

$ sudo apt-get update
$ sudo apt-get install git
Set Up Git

$ git config --global user.name "Your Name"
$ git config --global user.email "youremail@domain.com"

Install git-gui

$ sudo apt-get update
$ sudo apt-get install git-gui


How to Install Groovy in Ubuntu?

INSTALL JAVA

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
$ sudo apt-get install oracle-java8-set-default

INSTALL GROOVY

1. open Terminal and write the text
$ sudo apt-get update
$ sudo apt-get install groovy

2.Then check groovy using

$ groovy -version

Wednesday, October 18, 2017

Install JDK9 in Ubuntu

Installation and Configuration of JDK9 is step by step given below:

Install JDK9 in Ubuntu:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java9-installer

Make it as default:

sudo apt-get install oracle-java9-set-default
Changed in .bashrc, /etc/environment and also set default using
3 sections to change java configuration.

.bashrc:

export JAVA_HOME=/usr/lib/jvm/java-9-oracle
export PATH=$JAVA_HOME/bin:$PATH

/ect/environment:

JAVA_HOME="/usr/lib/jvm/java-9-oracle"
PATH=$PATH:$JAVA_HOME/bin
Then run the following command and set
sudo update-alternatives --config java

sudo update-alternatives --config javac
Then run the command
source /etc/environment

Check in terminal:

java -version
echo $JAVA_HOME
which java
which javac

Issue#1:

Execute "source /etc/environment" in every shell where you want the variables to be updated:
$ source /etc/environment

Issue#2:

Just write JAVA_HOME="/usr/lib/jvm/java-9-oracle" on your /etc/environment, without the "export"
/etc/environment is supposed to contain a set of environment variables given as key=value pairs. It is not a shell script, so you can't use shell commands such as export in it.

Resource Link:

Issue#3:

To check if java is properly installed:
$ which java

$ which javac
You should get similar output:
/usr/bin/java

Issue#4:

To remove Oracle JDK completely, run the commands below:

Completely remove criteria:

sudo apt-get remove oracle-java9-installer
sudo apt-get remove --auto-remove oracle-java9-installer
sudo apt-get purge oracle-java9-installer
sudo apt-get purge --auto-remove oracle-java9-installer

Resource Link:

Wednesday, August 9, 2017

How to check mongo process ID? How to check mongo status?

How to check mongo process ID:

ps -ax | grep -v grep | grep mongod
or
ps -aux | grep mongod
or

pgrep mongod

> 1017
--------------------------------------------------
Kill the process:

sudo kill -9 <PID>

Example:
sudo kill -9 1017
--------------------------------------------------
Check mongo Status:

Sudo systemctl status mongod
or
Sudo service mongod status

--------------------------------------------------
Start mongo service:

Sudo systemctl start mongod
or
Sudo service mongod start

--------------------------------------------------
Stop mongo service:

Sudo systemctl stop mongod
or
Sudo service mongod stop