Showing posts with label Distribution Method. Show all posts
Showing posts with label Distribution Method. Show all posts

Sunday, September 6, 2020

Jenkins Instllation using Binary and Distribution methods in Ubuntu

Jenkins is an Open Source automation server. It helps to automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery. It is a server based system that runs in servlet containers such as Apache Tomcat ...

PreRequisites:

To setup the Jenkins as a prerequisite we need java need to install in the server and then setup the Jenkins.

      Step 1: Setting up the openjdk repo in machine

         $ cd /opt
         $ sudo add-apt-repository ppa:openjdk-r/ppa

      Step 2: update the OS after adding repo and Install jdk 8
         
         $ sudo apt update
         $ sudo apt install openjdk-8-jdk

Jenkins installation using Binary:

     Step 3:  Download and install the necessary GPG key with the command

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

     Step 4: Add the necessary repository with the command

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

    Step 5: Update apt with the command 

        $ sudo apt-get update

    Step 6: Install Jenkins with the command 

        $ sudo apt-get install jenkins -y

    Step 7:  Start the Jenkins Service

        $ sudo systemctl start jenkins


Jenkins Installation using Distribution method

Tomcat Installation:    from https://tomcat.apache.org/download-90.cgi

    Step 1: Install the tomcat from above URL

        $ cd /opt/

    Step 2: Un tar the downloaded file and change the directory name

        $ tar -xvzf apache-tomcat-9.0.37.tar.gz -C /opt

        $ mv /opt/apache-tomcat-9.0.37/ /opt/tomcat

        $ cd tomcat/bin

    Step 3: Change the mode od directory, give the execution permission for user in current bin directory.

        $ sudo chmod u+x *  

Jenins Installation:   from https://updates.jenkins-ci.org/

    Step 4: Install the jenkins.war file from above url

    Step 5: Move the Jenkins.war file to /opt/tomcat/webapps

        $ sudo mv /opt/jenkins.war /opt/tomcat/webapps/

        $ sudo apt update

        $ cd /opt/tomcat/bin

    Step 6: Start the jenkins from the current directory (/opt/tomcat/bin) 

        $ sudo sh startup.sh



Friday, April 17, 2020

Install Grafana in CentOS with YUM/Distribution-method/RPM Methods

Grafana Introduction

  • Grafana is a  multi-platform open source analytics and interactive visualisation software
  • It is available since 2014
  • It provides charts, graphs and alerts for the web when connected to supported data sources.
  • It is expandable through a plug-in system.

Supported operating systems

  • Debian/Ubuntu
  • RPM-Based Linux (CentOS, Fedora, Opensuse, RHEL)
  • MacOS
  • Windows
Installation of Grafana on other operating systems is possible, but not supported.

Hardware Recommendations

  • Grafana does not use a lot of resources and is very lightweight in use of memory and CPU.
  • Minimum recommended memory: 255 MB 
  • Minimum recommended CPU: 1
  • Some features might require more memory or CPUs. Features require more resources include:
               a. Server side rendering of images
               b. Alerting
               c.  Data source proxy

Installation with YUM repo :

Step1 : Updating the server
$ sudo yum update
Step 2: Adding grafana repo for installing grafana
$ sudo vi /etc/yum.repos.d/grafana.repo
[grafana]
name=grafana baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
Step 3: Installing Grafana
$ sudo yum install grafana
Step 4: Start and Enable the grafana service
$ sudo systemctl daemon-reload
$ sudo systemctl start grafana-server
$ sudo systemctl status grafana-server
$ sudo systemctl enable grafana-server

Installation with Distribution Method (Using Binary):
Step 1: Downloading Grafana Zip file
Step 2: Unzip the Grafana zip file
tar -zxvf grafana-6.6.0.linux-amd64.tar.gz
Step 3: Start and enable the grafana server
$ sudo systemctl daemon-reload
$ sudo systemctl start grafana-server
$ sudo systemctl status grafana-server
$ sudo systemctl enable grafana-server

Installation with RPM:

Step 1: Adding Grafana RPM key
Step 2: Install some dependencies to install grafana with RPM
 $ sudo yum install initscripts urw-fonts wget
Step 3: Download the grafana RPM file
 $ sudo rpm -Uvh grafana-6.6.0-1.x86_64.rpm
Step 4: Installing Grafana

$ sudo yum localinstall grafana-6.6.0-1.x86_64.rpm
Step 3: Start and Enable the Grafana Server
 $ sudo systemctl daemon-reload
 $ sudo systemctl start grafana-server
 $ sudo systemctl status grafana-server
 $ sudo systemctl enable grafana-server
Referral Page : https://grafana.com/docs/grafana/latest/installation/



Featured Post

Ansible Tool Introduction

                                                                                                                                    Next ...