easy steps to install elasticsearch 6 with images in centos 7

elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation, elasticsearch cluster health, check elasticsearch 6 cluster, check elasticsearch status, create elasticsearch index, delete elasticsearch index, check elasticsearch indicces


OS     -    CentOS 7
IP     -    172.17.20.100
Host  -   linuxtopic.com
Elasticsearch default port    -    9200

Step 1:

Update system
yum update
update system, yum update, elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,

Install Java & curl
yum install java curl
java, install java, install curl, curl command, elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,
   
Check Java Version
java -version
check java verison, how to check java verison, java, openjdk

               
Step 2:

Downloading and Installing Elasticsearch
               
Method 1 : Download & Install RPM Manually
cd /opt/

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.1.rpm


rpm -ivh elasticsearch-6.1.1.rpm
install elasticsearch, elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,

Method 2 : Install using YUM Repo
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
Create repository file
echo “[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md” > /etc/yum.repos.d/elasticsearch.repo
elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,


Verify
cat /etc/yum.repos.d/elasticsearch.repo
elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,

Install Elasticsearch
yum install elasticsearch
elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,

Enable  Elasticsearch service
systemctl daemon-reload

systemctl enable elasticsearch.service

Directory layout of RPM

The RPM places config files, logs, and the data directory in the appropriate locations for an RPM-based system:

Configure network host  
sed -i 's/#network.host: 192.168.0.1/network.host: 172.17.20.100/g' /etc/elasticsearch/elasticsearch.yml

start elasticsearch
systemctl restart elasticsearch.service
Check Elasticsearch Status
curl -XGET 'http://172.17.20.100:9200'
elasticsearch status, check elasticsearch, elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,

Check Health of Cluster
curl -XGET 'http://172.17.20.100:9200/_cluster/health?pretty=true'
check elasticsearch health, elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,

Get Indica details
curl -XGET '172.17.20.100:9200/_cat/indices?v'
elasticsearch indices, elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,

create an index named "linuxtopic" and then list all the indexes again:
curl -XPUT '172.17.20.100:9200/linuxtopic?pretty'

curl '172.17.20.100:9200/_cat/indices?v'
create elasticsearch index, create index, elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,


Delete an index named "linuxtopic"
curl -XDELETE '172.17.20.100:9200/linuxtopic?pretty'
    delete elasticsearch index, elasticsearch 6,  elasticsearch 6.x installation configuration on centos 7, elasticsearch 6.0, elasticsearch 6.1, elasticsearch configuration, elasticsearch installation,


Part 1 - Elasticsearch Installation


what does dd command do in linux


Definition: dd stand for copy and convert, it's a utility of Unix and Unix-like operating system that used for convert or copying files and folder.

Function: Copy a file, converting and formatting according to the operands
dd command, create backup using dd command,  Copy a file, converting and formatting according to the operands, dd command in linux, generate file using dd

4 easy steps of kvm installation in Ubuntu 16.4



Kvm,  virtualisation,  kvm installation, kvm virtualization, kvm hypervisor, hypervisor, Kernel Based Virtual Machine, ubuntu 16.04 kvm install, ubuntu kvm gui, ubuntu 14.04 kvm, install kvm ubuntu, linux, ubuntu, centos, linuxtopic, linux topic
KVM stands for Kernel Based Virtual Machine. It's a virtualisation software. kvm provides ability to run a multiple guest operating systems with the help of hardware virtualization extensions.

KVM managed by Virt-Manager (Virtual Machine Manager) it supports creating, editing, starting, and stopping KVM-based virtual machines.

Step 1:

Pre-installation checklist

Check that your CPU supports hardware virtualization

egrep -c '(vmx|svm)' /proc/cpuinfo

kvm.png

If 0 it means that your CPU doesn't support hardware virtualization.
If 1 or more it does - but you still need to make sure that virtualization is enabled in the BIOS.

OR-->
kvm-ok
which may provide an output like this:

INFO: /dev/kvm exists
KVM acceleration can be used

kvn1.png

If you see :

INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used

To see if your processor is 64-bit Or 32-bit, you can run this command:
egrep -c ' lm ' /proc/cpuinfo
 kvm2.png

If 0 is printed, it means that your CPU is not 64-bit.
If 1 or higher, it is. Note: lm stands for Long Mode which equates to a 64-bit CPU.

Now see if your running kernel is 64-bit, just issue the following command:

uname -m

kvm3.png

x86_64 indicates a running 64-bit kernel. If you use see i386, i486, i586 or i686, you're running a 32-bit kernel.

Note: x86_64 is synonymous with amd64.

Step 2

Installation KVM

Install Necessary Packages

apt-get install qemu-kvm qemu bridge-utils virtinst libvirt-bin virt-manager virt-viewer cpu-checker  

Step 3

Configure bridged networking

backup interface file :

cp /etc/network/interfaces /etc/network/interfaces.backup
vi /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
        address 172.17.20.110
        netmask 255.255.0.0
          gateway 172.17.25.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0
kvm4.png

Restart the networking service, OR reboot system to take effact enter:

systemctl restart networking

   Or
reboot

Check bridge

brctl show

kvm5.png

bridge name    bridge id       STP enabled    interfaces
br0       8000.0800279ac61a    no       enp0s3

Step 4

Create Virtual Machine

In this tutorial i install  centos 7 minimal, you can download from “https://mirrors.kernel.org/centos/7.3.1611/isos/x86_64/

mkdir /iso

wget https://mirrors.kernel.org/centos/7.3.1611/isos/x86_64/CentOS-7-x86_64-Minimal-1611.iso

CREATE CENTOS 7 VM

Method - 1 : Terminal Mode:

In this example, I’m creating CentOS 7 VM with 1GB RAM, 1 CPU core, 1 nics and 16 GB disk space, enter:
virt-install --name=CentOS7 --ram=1024 --vcpus=1 --cdrom=/iso/CentOS-7-x86_64-Minimal-1611.iso --os-type=linux --os-variant=rhel7 --network bridge=br0 --graphics=spice --disk path=/var/lib/libvirt/images/centos7-minimal.qcow2,size=16

kvm6.png

--name        –  Name of the Virtual machine
--ram        –  Memory size in MB
--vcpus    –  Virtual cpu’s in numbers
--cdrom    –  Location of the ISO image
--os-type    –  OS type like Linux, Windows and Unix
--os-variant    –  OS variant like rhel 6, solaris, windows
--network    –  networking
--graphics    –  display settings
--disk path    –  image store location of the disk with size of 16 GB

A new virt-viewer window will be open,Now you can install your centos

kvm7.png

Method -2 : Graphical Mode:

Type the following command in terminal in GUI mode.

virt-manager
Kvm,  virtualisation,  kvm installation, kvm virtualization, kvm hypervisor, hypervisor, Kernel Based Virtual Machine, ubuntu 16.04 kvm install, ubuntu kvm gui, ubuntu 14.04 kvm, install kvm ubuntu, linux, ubuntu, centos, linuxtopic, linux topic

1. Press “Create a new virtual machine”  kk.png icon - new window will open

   Here i choose "Local Install Media ( ISO image or CD-ROM ).  & Press  “Forward”

Kvm,  virtualisation,  kvm installation, kvm virtualization, kvm hypervisor, hypervisor, Kernel Based Virtual Machine, ubuntu 16.04 kvm install, ubuntu kvm gui, ubuntu 14.04 kvm, install kvm ubuntu, linux, ubuntu, centos, linuxtopic, linux topic

2. Locate your install media :

kvm03.png
  
Press Browse Button → Browse Local → Select path of  ISO file
kvm05.png

Press “Forward”

3. Choose memory & cpu

kvm07.png
 
here i set 1GB ram and 1 Core  & Press “Forward”

4. Create disk image/volume for virtual machine

kvm08.png


Here i set 16GB  disk Space for VM & Press “Forward”

5. Ready to be install

kvm09.png

Type os name - < any name > & Press  “Finish”

6. a new window will open for installation of os

kvm010.png

Enjoy !



steps to compile wpa_supplicant ubuntu 16


wpa_supplicant is IEEE 802.1X/WPA component that is used in the client,  Step by Step wpa_suplicant 2.6 compile in Ubuntu 16.4, How to compile wpa_supplicant 2.6 in Ubuntu, wpa_supplicant, wpa_supplicant2.6, wireless, WiFi, wireless networking
Q . Step by Step wpa_suplicant 2.6 compile in Ubuntu 16.4


Q. How to compile wpa_supplicant 2.6 in Ubuntu 

wpa_supplicant is IEEE 802.1X/WPA component that is used in the client stations. It is a cross-platform supplicant with support for WPA2 , WPA and WEP  (IEEE 802.11i / RSN (Robust Secure Network)). It is work on desktops, laptops and embedded systems. wpa_supplicant is the.

OS - Ubuntu 16.4 Xenial

lsb_release -a

01wpa_lsb.png

Step 1

Install Requirement Packages

apt install libssl-dev build-essential checkinstall  pkg-config

01wpa_req.png

apt install dbus libdbus-1-dev libdbus-glib-1-2 libdbus-glib-1-dev libreadline-dev libncurses5-dev

01wpa_req2.png

apt install libnl-genl-3-dev libnl-3-dev

01wpa_reg2.png

Step 2 

Download wap_supplicant source package & Extract

cd /tmp

https://w1.fi/wpa_supplicant

OR

wget https://w1.fi/releases/wpa_supplicant-2.6.tar.gz wpa_supplicant2.6.tar.gz
01wpa_down.png


Extract  wpa_supplicant2.6.tar.gz

tar xvf  wpa_supplicant2.6.tar.gz

Step 3

Create a build configuration file that should work for standard WiFi setups by running the following command.

cd wpa_supplicant2.6

cat > wpa_supplicant/.config << "EOF"
CONFIG_BACKEND=file
CONFIG_CTRL_IFACE=y
CONFIG_DEBUG_FILE=y
CONFIG_DEBUG_SYSLOG=y
CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
CONFIG_DRIVER_NL80211=y
CONFIG_DRIVER_WEXT=y
CONFIG_DRIVER_WIRED=y
CONFIG_EAP_GTC=y
CONFIG_EAP_LEAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_OTP=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TLS=y
CONFIG_EAP_TTLS=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_IPV6=y
CONFIG_LIBNL32=y
CONFIG_PEERKEY=y
CONFIG_PKCS12=y
CONFIG_READLINE=y
CONFIG_SMARTCARD=y
CONFIG_WPS=y
CFLAGS += -I/usr/include/libnl3
EOF

wpa_supplicant is IEEE 802.1X/WPA component that is used in the client,  Step by Step wpa_suplicant 2.6 compile in Ubuntu 16.4, How to compile wpa_supplicant 2.6 in Ubuntu, wpa_supplicant, wpa_supplicant2.6, wireless, WiFi, wireless networking

If you use WPA Supplicant with NetworkManager 1.8.0, add the following options to the WPA Supplicant build configuration 

cat >> wpa_supplicant/.config << "EOF"
CONFIG_CTRL_IFACE_DBUS=y
CONFIG_CTRL_IFACE_DBUS_NEW=y
CONFIG_CTRL_IFACE_DBUS_INTRO=y
EOF

01wpa_conf2.png

Step 4

Compile & create package

cd wpa_supplicant

make

01_wpa_compile.png

Install Wpa_supplicant & create wpa_supplicant 2.6 package

checkinstall

wpa_supplicant is IEEE 802.1X/WPA component that is used in the client,  Step by Step wpa_suplicant 2.6 compile in Ubuntu 16.4, How to compile wpa_supplicant 2.6 in Ubuntu, wpa_supplicant, wpa_supplicant2.6, wireless, WiFi, wireless networking

Press Enter  

01wpa_check2.png

Step 5

Package created check on same directory 

ls wpa-supplicant*

01wpa_package.png


Step 6

Check wpa_supplicant version
wpa_supplicant -v

wpa_supplicant is IEEE 802.1X/WPA component that is used in the client,  Step by Step wpa_suplicant 2.6 compile in Ubuntu 16.4, How to compile wpa_supplicant 2.6 in Ubuntu, wpa_supplicant, wpa_supplicant2.6, wireless, WiFi, wireless networking