Monday, July 17, 2017


Graylog 2.3 installation with Elasticsearch5.5.X

  • Monday, July 17, 2017
  • I am going to install Graylog server 2.3  in Ubuntu 14.
    For graylog setup we need to install following Mongo DB and ElasticSearch.Image result for graylog2
    First install oracle jdk 8

    sudo apt-get install python-software-properties
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update

    Oracle JDK 8:

    sudo apt-get install oracle-java8-installer

    To check : $ java -version

    Next Elasticsearch :

    From graylog 2.3 it is supporting elasticsearch 5.X

    Download and install the Debian package

    $sha1sum elasticsearch-5.5.0.deb
    $sudo dpkg -i elasticsearch-5.5.0.deb
    $sudo update-rc.d elasticsearch defaults 95 10

    Elasticsearch can be started and stopped using the service command:

    $sudo -i service elasticsearch start
    $sudo -i service elasticsearch stop

    Install MongoDB
    Import the public key used by the package management system
    $sudo apt-key adv --keyserver hkp:// --recv 0C49F3730359A14518585931BC711F9BA15703C6

    Create a /etc/apt/sources.list.d/mongodb-enterprise.list file for MongoDB
    $echo "deb [ arch=amd64 ] trusty/mongodb-enterprise/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
    $sudo apt-get update
    $sudo apt-get install -y mongodb-enterprise

    $dpkg -i graylog-2.3-repository_latest.deb
    $sudo apt-get update && sudo apt-get install graylog-server

    For  Graylog authentication  to set username password by below steps: 
    $cd /etc/graylog/server/
    $vi server.conf
    $apt-get install pwgen
     $pwgen -N 1 -s 96

    You ll get like below ..past in server.conf

    For password try below steps here admin is my password
     $echo -n admin | sha256sum

    Then save the above changes and start graylog server
     service graylog-server start
    http://localhost:9000  you will get below page give login credentials which you given in graylog server.conf file
    Image result for graylog login page


    Tuesday, May 24, 2016


    R packages installation error solved

  • Tuesday, May 24, 2016
  • Most of the common error we are getting below  in R at the time of installing in R packages like(rJava,ggplot2...)

    Warning message:
    package ‘rJava’ is not available (for R version 3.0.2)

    In this post we ll see how to resolve this error.

    First login as root user 
    and type R and you ll get r prompt

    then type 
    it ll ask package mirror location give any one it ll installed without any issue.

    To confirm the package installation 
    try below line
    It won't throw any message so its installed .


    Thursday, April 28, 2016


    Install R in Redhat 7.2

  • Thursday, April 28, 2016
  • Installation of R in redhat is simple.
    First download the below file


    open the downloaded file and change enabled property into 1
    vi public-yum-ol7.repo

    enabled = 1

     sudo yum install R.x86_64

    Now R is installed.. 
    typr R you ll get 


    If you are getting below error 
    Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle"

    Try the below command to download oracle gpg file
    wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    sudo yum install R.x86_64
    issue has resolved..