How To Install Jenkins On Ubuntu 18.04

How To Install Jenkins On Ubuntu 18.04

Introduction to Jenkins

Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software. You can also tell like for CI & CD, Jenkins comes and play a handy role. 

Features of Jenkins

  1. Continuous Integration [CI] & Continuous Delivery [CD]
    Jenkins works as automated servers which take codes from the developer side end and turned into the continuous delivery.
  2. Easy to Configure
    Jenkins can be easy to configure and comes with a web user interface which makes it easy to use.
  3. Distributed in nature
    Jenkins can easily distribute work across multiple machines, helping drive builds, tests and deployments across multiple platforms faster. You can integrate Jenkins with GitHub, svn etc.
  4. Plugin supports
    Jenkins supports hundreds of plugins which you can download directly from Update Center.

Prerequisites

  1. Ubuntu 18.04 OS 
    You can install Ubuntu 18.04 in the virtual box also for learning purpose.
  2. Java JDK Install
    Make sure java JDK latest version should be installed into the system. 
  3. 1 GB RAM
    Make sure, the system comes with at least 1 GB RAM size.
  4. sudo access
    Used can able to access to perform sudo commands.
  5. 8080 port should be open and available
    Make sure 8080 port should not occupy with another service, because Jenkins use 8080 port by default.

Now the time came to learn steps about how to install Jenkins on Ubuntu 18.04.

Step 1:-  Add Jenkins repository key to the system.

[css]$ wget -q -O – https://pkg.jenkins.io/debian/jenkins-io.key | sudo apt-key add -[/css]

Step 2:- Check Source List 

[css]$ sudo sh -c ‘echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'[/css]

Step 3:- Update the system to make sure apt-get can able to get value from Jenkins repository

[css]$ sudo apt update[/css]

Step 4:- Install Jenkins

[css]$ sudo apt install jenkins[/css]

Bingo, now you successfully installed Jenkins on Ubuntu 18.04 and you learn very well about how to install Jenkins on Ubuntu 18.04.  Now we need to start our Jenkins server.

For Starting the Jenkins server, you can use systemctl

[css]$ sudo systemctl start jenkins[/css]

For Checking Status of Jenkins running server, you can use the statuscommand

[css]$ sudo systemctl status jenkins [/css]

As everything is running fine, so you can start Jenkins server, for that, you have to visit tohttp://IP_ADDRESS OR LOCALHOST:8080 open Jenkins Web User interface.

Conclusion

I hope, you learn how to install Jenkins on Ubuntu 16.04 and your Jenkins server is running. In case of any confusion, you can comment down and I will try my best to reply as soon as possible. 

If you want to visit Jenkins official website, then please click here

For other tutorials, related to Jenkins and other technology, please visit my website 

If you are using Ubuntu 16.04, then please check my article “How to Install Jenkins on Ubuntu 16.04”


How To Install Jenkins On Ubuntu 16.04

How To Install Jenkins On Ubuntu 16.04

Introduction to Jenkins

Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software. You can also tell like for CI & CD, Jenkins comes and play a handy role. 

Features of Jenkins

  1. Continuous Integration [CI] & Continuous Delivery [CD]
    Jenkins works as automated servers which take codes from the developer side end and turned into the continuous delivery.
  2. Easy to Configure
    Jenkins can be easy to configure and comes with a web user interface which makes it easy to use.
  3. Distributed in nature
    Jenkins can easily distribute work across multiple machines, helping drive builds, tests and deployments across multiple platforms faster. You can integrate Jenkins with GitHub, svn etc.
  4. Plugin supports
    Jenkins supports hundreds of plugins which you can download directly from Update Center.

Prerequisites

  1. Ubuntu 16.04 OS 
    You can install Ubuntu 16.04 in the virtual box also for learning purpose.
  2. Java JDK Install
    Make sure java JDK latest version should be installed into the system. 
  3. 1 GB RAM
    Make sure, the system comes with at least 1 GB RAM size.
  4. sudo access
    Used can able to access to perform sudo commands.
  5. 8080 port should be open and available
    Make sure 8080 port should not occupy with another service, because Jenkins use 8080 port by default.

Now the time came to learn steps about how to install Jenkins on Ubuntu 16.04.

Step 1:-  Add Jenkins repository key to the system.

[css]$ wget -q -O – https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -[/css]

Step 2:- Check Source List 

[css]$ echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list[/css]

Step 3:- Update the system to make sure apt-get can able to get value from Jenkins repository

[css]$ sudo apt-get update[/css]

Step 4:- Install Jenkins

[css]$ sudo apt-get install jenkins[/css]

Bingo, now you successfully installed Jenkins on Ubuntu 16.04 and you learn very well about how to install Jenkins on Ubuntu 16.04.  Now we need to start our Jenkins server.

For Starting the Jenkins server, you can use systemctl

[css]$ sudo systemctl start jenkins[/css]

For Checking Status of Jenkins running server, you can use the statuscommand

[css]$ sudo systemctl status jenkins [/css]

As everything is running fine, so you can start Jenkins server, for that, you have to visit tohttp://IP_ADDRESS OR LOCALHOST:8080 open Jenkins Web User interface.

Conclusion

I hope, you learn how to install Jenkins on Ubuntu 16.04 and your Jenkins server is running. In case of any confusion, you can comment down and I will try my best to reply as soon as possible. 

If you want to visit Jenkins official website, then please click here

For other tutorials, related to Jenkins and other technology, please visit my website 

If you are using Ubuntu 18.04, then please check my article “How to Install Jenkins on Ubuntu 18.04”

Install Kibana on Ubuntu – Chapter 3

Install Kibana on Ubuntu – In easy and simple steps

In this article, we will discuss install Kibana on ubuntu in easy steps. This is the 3rd article in Kibana series in which we will discuss Kibana installation process in ubuntu in simple and easy steps.

Steps for Installation

The best thing about Kibana installation on Ubuntu Operating system is, you can install by downloading deb package or you can simply install from APT repository, but I will suggest you go with deb package to make sure you have to install everything by yourself and get better control and knowledge.

Using APT Repository

  1. Download and Install Public Elastic PGP key
    For Download, you have to use the wget command.

    [css]wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -[/css]

  2. Using APT repository, install apt-transport-https package
    For installing apt-transport-https, use below command.

    [css]sudo apt-get install apt-transport-https[/css]

  3. Save repository definition to source.list.d
    For adding into the source file, use below command.

    [css]echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
    [/css]

    As you are using 6.x, it will take the latest version, if you want to add any specific version, then need to provide version number correctly.

  4. Install apt-install command to install Kibana in Ubuntu.

    [css]sudo apt-get update && sudo apt-get install kibana[/css]

Using Debian Package Manually

  1. Download Kibana 6.3 version using wget
    Use below command to download wget package for Kibana 6.3

    [css]wget https://artifacts.elastic.co/downloads/kibana/kibana-6.3.0-amd64.deb[/css]

  2. Compare the SHA value
    For Comparing, you can use shasum command as below.

    [css]shasum -a 512 kibana-6.3.0-amd64.deb[/css]

  3. Install Kibana dpkg
    Now you are ready to install Kibana dpkg file, Use below command.

    [css]sudo dpkg -i kibana-6.3.0-amd64.deb[/css]

Now congratulations, you installed Kibana successfully on your Ubuntu system. Now Let’s start Kibana as service because Kibana is not installing as service so you have to set as auto service to make sure always Kibana has to be run in the background.

Running Kibana with systemd

Running Kibana with systemd is very easy and you can start and stop Kibana service with a single command.

  • First, you need to reload the daemon which helps to add kibana service

    [css]sudo /bin/systemctl daemon-reload[/css]

  • Once this will be done, then enable Kibana services

    [css]sudo /bin/systemctl enable kibana.service[/css]

  • Once Kibana service will get enable, then you can start kibana service by

    [css]sudo systemctl start kibana.service[/css]

  • And If you want to stop the service then you can use below command

    [css]sudo systemctl stop kibana service[/css]

Information about Kibana directory layout

Kibana zip self-contained few folders out of which we will discuss few important ones.

  1. home: This is Kibana home directory.
  2. bin: All binary scripts including kibana.bat which need to run your Kibana instance also reside inside bin folder as well as Kibana-plugin which used to install a plugin for Kibana.
  3. config: All Kibana related configuration file which used for tuning and managing Kibana resides inside config folder such as Kibana.yaml
  4. data: This folder used for data file which written to disk by Kibana instance and it’s plugins.
  5. plugins: Once you will install any plugin, it will create a subfolder inside this plugin folder.

Conclusion

In this article, you learn about install Kibana on Ubuntu in easy steps. In the next article, we will discuss more about Kibana process. Till that keep learning and don’t forget to put comments below. 

Related Articles:-

How to install Hadoop on Ubuntu in Stand-Alone Mode

How to install Hadoop on Ubuntu in Stand-Alone Mode

Before directly jumping to know about “how to install Hadoop on ubuntu in stand-alone mode”, let’s first know about Introduction about Hadoop and typed of installation mode.

Introduction to Hadoop

Apache Hadoop

  •  Is an open-source software used for handling and processing in reliable, scalable, distributive nature.
  •  Is a framework that allows for the distributed processing of large dataset in size of Exabyte – petabyte datasets across clusters of commodity servers using simple programming models.
  •  Builds on the concept of easy to scale up from single servers to multiple servers, each offering local computation and storage.

The different mode of Hadoop Installation

In this article, we are going to learn about how to install Hadoop on Ubuntu – standalone mode. but there are 3 different types of installation mode used for Apache Hadoop as below.

  1. Local Mode or Stand Alone mode – Used for learning and testing purpose.
  2. Pseudo-distributed Mode – Single Node server where name node and data node resides on the same machine.
  3. Fully- Distributive Mode – Multi-Node Installation used in Production

Installation Step

  1. Prerequisites for Hadoop Installation in Standalone mode
    Make sure, you [non-root user] must have
    sudo
  2. Update package list on Ubuntu
    First update package list on Ubuntu

    [css]$ sudo apt-get update[/css]

  3. Install JAVA
    Hadoop is a JAVA-based open source framework, so first, we need to install JAVA on the system.

    [css]$ sudo apt-get install default-jdk
    $ java -version[/css]

    Note:- java -version command will show details about installed java version.

  4. Install Apache Hadoop
    First, go to Hadoop release URL and select Hadoop version. I am going to install Hadoop Version 2.9.1
    Click on “binary” under “Tarball” section. You can click on this link directly
    Note:- If you want to use wget command in ubuntu terminal then you can use directly

    [css]$ wget http://www-us.apache.org/dist/hadoop/common/hadoop-2.9.1/hadoop-2.9.1.tar.gz[/css]

  5. Download SHA-256 file
    Once you will complete step 4, then click on “Checksum file” in front of version “2.9.1” which we downloaded in step 4
    Note:- If you want to use wget command in ubuntu terminal, then you can use directly.

    [css]$ wget https://dist.apache.org/repos/dist/release/hadoop/common/hadoop-2.9.1/hadoop-2.9.1.tar.gz.mds[/css]

    
    
  6. Verify the SHA-256 file
    For Verification, run below command

    [css]$ shasum -a 256 hadoop-2.9.1.tar.gz [/css]

    And then check and verify output with same in the SHA-256 file

    [css]$ cat hadoop-2.9.1.tar.gz.mds [/css]

    If the output of both commands is same, It means you have the correct file.

  7. Extract Hadoop tar file
    Now you need to extract Hadoop tar file which you downloaded into step 4.

    [css]$ tar –xzvf hadoop-2.9.1.tar.gz [/css]
  8. Move extract to Local directory

    [css]$ sudo mv hadoop-2.9.1 /usr/local/hadoop[/css]

    Here I am moving Hadoop extracted directory to /usr/local directrory inside “hadoop” directory because it will be easy to identify.

  9. Set JAVA_HOME location for Hadoop
    Open “hadoop-env.sh” file inside “etc” location

    [css] $ sudo vim /usr/local/Hadoop/etc/hadoop/hadoop-env.sh [/css]

    And add JAVA_HOME
    export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/
    just below of #export JAVA_HOME in “hadoop-env.sh” file.

  10. Save and Exit from hadoop-env.sh file.
  11. Run Hadoop
    Now we are ready to start hadoop.

    [css]$ /usr/local/hadoop/bin/hadoop version[/css]

    This command will show Hadoop version.

Conclusion

In this tutorial, we learn how to install Hadoop on ubuntu in stand alone mode. Please comment down about your experience with this article and also let me know in case of any improvement required. Please check my website for upcoming tutorials belong to big data and Hadoop.

Read Another Articles Related To Big Data

  1. How to create and activate AWS account?
  2. How To Make A Career In Big Data

How to Upgrade Ubuntu

To Upgrade Ubuntu from older to New version.

Prerequisites:-
Configured with a non-root user with sudo privileges for administrative tasks.

Steps Need to follow:-

  1. Upgrade Currently Installed Packages
    $ sudo apt-get update
  2. Upgrade Installed package
    $ sudo apt-get upgrade
  3. Upgrade the distribution
    $ sudo apt-get dist-upgrade
    Note:- Give answer as Y, whenever it asks for permission.
  4. Need to Check do-release upgrade tool is present or not
    $ sudo apt-get install update-manager-core
  5. You can follow with do-release-upgrade also.
    $ sudo do-release-upgrade
    Note:- Give answer as Y, whenever it asks for permission.
  6. After the end, Please do restart your system
    $ sudo init 6
  7. After a restart, Check ubuntu release
    $ lsb_release -a

Install clusterssh on Ubuntu 16.04

Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected thing.

Clusterssh is a tool for making the same changes on multiple servers at the same time.

For Installing clusterssh:-

Installing clusterssh package on Ubuntu 16.04 (Xenial Xerus) is as easy as running the following command on terminal:

$ sudo apt-get update
$ sudo apt-get install clusterssh


Remove clusterssh package from Ubuntu 16.04 (Xenial Xerus):-

$ sudo apt-get remove clusterssh


Uninstall clusterssh and it’s dependent packages

To remove the clusterssh package and any other dependent package which are no longer needed from Ubuntu Xenial.
$ sudo apt-get remove — auto-remove clusterssh


Purging clusterssh

If you also want to delete configuration and/or data files of clusterssh from Ubuntu Xenial then this will work:
$ sudo apt-get purge clusterssh

To delete configuration and/or data files of clusterssh and it’s dependencies from Ubuntu Xenial then execute:

$ sudo apt-get purge — auto-remove clusterssh