f
t
G+

Wednesday, August 31, 2016

Installing ElasticSearch On ubuntu 16.04 and 14.04

Installing ElasticSearch On ubuntu 16.04 and 14.04



Updated On DEC 2016: Installation Script In Method 2 updated for installation of elastic search 5.x

Elasticsearch is a highly scalable open-source full-text search and analytics engine build on top of Apache Lucene(A free and open-source information retrieval software library). It allows you to store, search, and analyze big volumes of data quickly and in near real time. It is generally used as the underlying engine/technology that powers applications that have complex search features and requirements.

Here we are going to see, How to install and setup elasticsearch on Ubuntu Linux 16.04 and 14.04..
Here I am going to show you two ways to install elasticsearch on Ubuntu Linux..

The first one is manual installation of elasticsearch.. You have to follow instructions one by one ..
The second one is an easy way, there we use shell-script to install the elasticsearch as it would take care of all things.. The script will install and setup elasticsearch for you..

Installation :

Method 1 :

First things first, Before we start to install elasticsearch, we need to install Java Runtime Environment (JRE).. because Elasticsearch itself written in the Java. (Elasticsearch requires Java 7 or higher).
This step shows you how to install OpenJDK-8.
First, update the list of available packages by running apt-get update.

sudo apt-get update

Then, install OpenJDK with the command:

For Ubuntu 16.04 :

sudo apt-get -y install openjdk-8-jdk openjdk-8-jre

For Ubuntu 14.04 :

sudo add-apt-repository -y ppa:openjdk-r/ppa && sudo apt-get update && sudo apt-get -y install openjdk-8-jdk openjdk-8-jre

To verify your JRE is installed and can be used, run the command: java -version

The result should look like this:

openjdk version "1.8.0_91" OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14) OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
If You Have Already Installed Version of JAVA in Your System.. Please Set OpenJDK 8 as Default Version.. Otherwise you may encounter problems while starting elasticsearch.. You can configure multiple versions of java by running following command.. sudo update-alternatives --config java Now, select apropriate version of JAVA..
to verify the java version run.. java -version

Download and Install Elasticsearch :

Elasticsearch can be downloaded directly from official site as zip, tar.gz and deb

I will recommend.. Installing from zip or tar archive.. Because as far as I knew it is the best way to get Elasticsearch on Ubuntu ... from my experience the another way (installing from .deb) is very worst... has many nasty issues(tried on Ubuntu 16.04)..

Download the archive

cd && wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/zip/elasticsearch/2.3.5/elasticsearch-2.3.5.zip

The above command downloads the zip archive, make sure that you have unzip installed in your system... if don't have installed unzip in your system.. run the following command.. to install unzip

sudo apt-get install unzip

Now unzip/decompress the downloaded archive.. you can do this with command given below..

unzip elasticsearch-2.3.5.zip

Move Extracted/unzipped directory to /opt :

We don't want to pollute our home folder and make it ugly with too many folders apart from default one.. and moving elasticsearch to /opt directory will also make it available to other users in your system too..

If you already have directory named elasticsearch-* in your /opt directory you will/may encounter problems while trying to move our newly extracted folder into /opt . so better remove them before you move our new elasticsearch folder into /opt. to do this run following command.... sudo rm -r /opt/elasticsearch-2*

Now move newly extracted elasticsearch directory to /opt with following command..

sudo mv elasticsearch-2.3.5/ /opt/

Now your elasticsearch is ready to use, You can run it with following command..

/opt/elasticsearch-2.3.5/bin/elasticsearch

But it's so convenient, if we can able to start it from commandline.. by simply typing 'elasticsearch' .. just like normal system commands.. to do so.. we have to create a symbolic link for elasticsearch in /bin folder.. Run following commands....

First remove symbolic link if one already exists..

sudo rm /bin/elasticsearch

now.. create new symbolic link ...

sudo ln -s /opt/elasticsearch-2.3.5/bin/elasticsearch /bin/

That's it .. now you can start elasticsearch just by typing "elasticsearch" in your terminal window..

Now the other method (method 2) show you the easiest way of getting elasticsearch up and running on your Ubuntu installation..

Method 2 :

In this method ... You just need to run the following code ... the script will take care of remaining things..

wget -O - https://raw.githubusercontent.com/shivarajnaidu/UV-Shell-Scripts/master/ElasticSearch-Installation-Scripts/elasticsearch-installation-script-for-ubuntu.sh | bash -s

Update :

The installation script is updated to support installation of elasticsearch v5.x. If you want to install elasticsearch 5.x, just run above command with argument '5' (with out quotes).

wget -O - https://raw.githubusercontent.com/shivarajnaidu/UV-Shell-Scripts/master/ElasticSearch-Installation-Scripts/elasticsearch-installation-script-for-ubuntu.sh | bash -s 5

Test your Elasticsearch installation

Start elasticsearch by typing "elasticsearch" on your command-line..
Let's ensure that everything is working well... open terminal and Run following..

elasticsearch
Elasticsearch should now be running on port 9200. Do note that Elasticsearch takes some time to fully start, so running the curl command below or checking from browser immediately might fail. It shouldn't take longer than ten seconds to start responding, so if the below command fails, something else is likely wrong. Ensure the server is started by running

To test elasticsearch run following command in terminal..

curl -X GET 'http://localhost:9200'

or even you can check from your web browser by visiting http://localhost:9200

if elasticsearch works well.. You should see the following response..

shivaraj@shivaraj-A14RM0E:~$ curl -X GET 'http://localhost:9200' { "name" : "Suicide", "cluster_name" : "elasticsearch", "version" : { "number" : "2.3.5", "build_hash" : "90f439ff60a3c0f497f91663701e64ccd01edbb4", "build_timestamp" : "2016-07-27T10:36:52Z", "build_snapshot" : false, "lucene_version" : "5.5.0" }, "tagline" : "You Know, for Search" } shivaraj@shivaraj-A14RM0E:~$
Hi friends, If you found any issue or typo error, please feel free to report it.. You can either open an issue on github or you can also report it on our Facebook Page via message (www.fb.com/opensourceinside) .

Saturday, August 6, 2016

ZeXtras Suit For Your Zimbra Collaboration Suite (ZCS)

ZEXTRAS


We are in 21st century... Today, there is nothing that we couldn't done through Internet... Since the creation of opensource softwares like Linux, Git and Richard Stallman's GNU Foundation.. Collaboration software becomes a backbone of each and every open software and now the backbone of the whole IT infrastructure ...
In early days there was only propitiatory solutions for collaboration such as MS Exchange ,Sharepoint etc... But as the opensource software gains momentum, as it enters into every part of IT software products..
Around the year 2000, however, the Open Source community (and of course OSS-minded companies) entered the corporate-level collaboration software development world and several projects for collaboration software were started: one of those projects, thanks to its clever design choices and cutting edge user experience took and still holds the lead as the most used Email and Collaboration software worldwide: Zimbra Collaboration.
In its 15-year history, Zimbra has taken the collaboration world by storm, quickly becoming a well known powerhouse serving more than 500million mailboxes worldwide and attracting the interest of companies like Yahoo, VMWare, Telligent and finally Synacor, which acquired the Zimbra Inc. company and assets in 2015.

The software consists of both client and server components, and a desktop client. Two versions of Zimbra are available: an open-source version, and a commercially supported version ("Network Edition") with closed-source components such as a proprietary Messaging Application Programming Interface connector to Outlook for calendar and contact synchronization.

The ZCS Web Client is a full-featured collaboration suite that supports email, group calendars, and document sharing using an Ajax web interface that enables tool tips, drag-and-drop items, and right-click menus in the UI. Also included are advanced searching capabilities and date relations, online document authoring, "Zimlet" mashups, and a full administration UI. It is written using the Zimbra Ajax Toolkit.

ZCS can synchronize mail, contacts, and calendar items with open-source mail clients such as Evolution and also with proprietary clients such as Microsoft Outlook and Apple Mail, either through proprietary connectors or using the ActiveSync protocol, both available exclusively in the commercially supported version. Zimbra also provides native two-way sync to many mobile devices (Windows Mobile, iPhone, Android).

However, as the world evolves fast.. the requirements of business environment has been changing fast, Zimbra alone can't fit to satisfy all needs of corporate world.. That's where ZeXtras Suite comes in.. It is made to expand the capabilities of your Zimbra Open Source Edition.

ZeXtras Suite :

ZeXtras Suite is a modular extension for Zimbra that aims to cater high-level corporate features to Zimbra Open Source Edition. Each module adds a new feature, giving you the power to do things you thought impossible with Zimbra Open Source Edition. It's entirely developed by ZeXtras, and sold online through the Zextras Store at https://store.zextras.com as well as worldwide by ZeXtras' network of resellers and partners. It doesn't include any code owned by Zimbra and is neither a fork nor a reverse engineered version of Zimbra Network Edition.

ZeXtras is packaged as a modular solution allowing you to pay only what you actually need. You buy what you need, for the time you need it, and in the way you prefer. Create your own license! Our online store is so flexible that you can reconfigure your license almost real-time.
Migrate ANY flavour of Zimbra Comunication Server to your Zimbra Open Source Edition with ZeXtras using ZxMig, included FREE with the Suite, in just a few clicks.
Manage all your Modules via the ZeXtras Administration Zimlet.
Decrease the Time Consumption Overhead of your mail system while making it better... extraordinary, isn't it?

What is ZeXtras Is and What ZeXtras is Not ?

What ZeXtras Suite is NOT What ZeXtras Suite is
ZeXtras Suite is not a Modification of Zimbra Collaboration Server. ZeXtras Suite is an Add-On for Zimbra Collaboration Server (Open Source Edition).
ZeXtras Suite is not a fork nor a derivative work of Zimbra Collaboration Server. ZeXtras Suite is developed from scratch by an independent company named ZeXtras.
ZeXtras Suite is not a Hack, nor a Cracked version of Zimbra Communication Server. ZeXtras Suite is an Extension to Zimbra Collaboration Server (Open Source Edition).
ZeXtras Suite is not a reverse engineered version of the Zimbra Network Edition modules. ZeXtras Suite is designed, developed and maintained by ZeXtras accordingly to it's own original ideas.
ZeXtras Suite is not supported nor endorsed nor related in any way to Zimbra inc., Yahoo inc., VMWare inc. ZeXtras Suite is developed and supported only by ZeXtras and sold only by ZeXtras and its partners worldwide.
ZeXtras Suite is not distributed with any binary file or piece of source code copyrighted by Zimbra. ZeXtras Suite is distributed as a package of its own. Said package includes the ZeXtras Core, the ZeXtras Zimlets, the ZeXtras Migration Tool and the ZeXtras Installers.

ZeXtras Suite Modules :

ZxBackup :

Data is the most important aspect of your computer. The operating system can be reinstalled and so can applications, but it may be difficult or impossible to recreate your original data. It is essential that you always back up your important information and have a plan for recovering from a system failure. Data may be corrupted or wiped out by a hardware problem.. You should back up your personal/critical work data on a regular basis. This means copying your files over to a protected system that you can access when those files are needed.

ZeXtras Backup (ZxBackup) provides excellent way to safeguard your data through an ever-consistent realtime backup engine and avoid any data loss...
It’s specifically designed to avoid any data loss by using atomic and ever-consistent algorithms, while still saving disk space thanks to an intelligent deduplication and compression system.

ZeXtras Suit provides complete backup solution for your Zimbra email system. All modes are 100% independent of OS, Architecture and Version independent, meaning that you can restore data on any supported Zimbra version regardless of the version of the source server. Zextras Backup also allows you to take a complete snapshot of the mail system and store it anywhere.

Following are some of the salient features of ZeXtras Suit..

  • Real Time Backup :

    Backup any change in the system as soon as it happens. No more lost data caused by backup scheduling issues..

  • Different Restore Modes :

    Five different restore options to always be able to recover what you need, from a single item to an entire domain.

  • Save all, restore all :

    We can store everything.. from configurations to whole system ...

  • Easy To Use :

    The main beauty of ZeXtras is its User Interface looks very simple but still very powerful.

  • Environment Independent :

    ZeXtras Backup is 100% environment independent, that means, no matter what OS, Architecture, Version Of Software using.. ZeXtras works anywhere regardless of your working environment.

  • Quick Disaster Response :

    Zextras Backup is designed to get you back online ASAP after a disaster. Both a live backup folder or an "external backup" can be used to restore, and all accounts are available within minutes while the restore of the data is still being executed

  • Self-consistent Snapshots :

    Over and above the Real Time backup engine, Zextras Backup includes an “External Backup” feature that allows you to save self-consistent snapshots of the data in the Zimbra server to be stored on a remote location or tape drive for additional safety.

  • Compressed Backup Store :

    ZeXtras will compress data in smart way.. without losing anything.. The average backup store will be 70% of the size of the current data contained in the server.

  • Intelligent Storaging :

    By using atomic write algorithms, all data saved in the backup store will always remain 100% consistent and can be moved onto storage media, like tape devices and optical disks even when the backup system is running

ZxMobile :

We are in Mobile age.. We are using Mobile for everything ..The ZeXtras Mobile module provides an ActiveSync, cool and simple interface to any Zimbra Open Source Edition server, allowing your users to synchronize their mobile phones to the mail server giving access to both Email and advanced features like Calendars, Address Books and Notes.

Some Features of ZeXtras Mobile..

  • Push emails, calendars and address books.
  • Fully featured Calendar synchronization including Calendar Attachments and Recurring Appointments.
  • Fully featured Address Book synchronization including Contact Photos, Custom Fields and Multiple Entries.
  • Shared folder synchronization
  • Advanced search - perform mailbox-wide searches even on not synchronized items.
  • Attachment Management.
  • Send, accept, decline or reschedule meetings directly from your mobile
  • No configuration needed - enable the ZeXtras Mobile Module and manage your devices via the ZeXtras Adminsitration Zimlet!
  • Manage multiple accounts on the same device.
  • You can find more at ZeXtras wiki..

ZxPowerStore

Storage Management is a total pain in the assignments of a system administrator. Moving large chunks of data from this or that storage media, find the most performing solution, calculate dates and predictions on storage sizes.. ZeXtras PowerStore Module helps you to organize your data by automatically managing all your data management policies according to a ruleset you define, showing you statistics and giving you a bird-eye view on all of your storage media.

These are the Some salient features of ZxPowerStore ..

  • HSM support for Zimbra Open Source Edition
  • Type-level policy management
  • Advanced Volume Management
  • Volume Compression and Item Deduplication for major storage space saving
  • Complete integration with the Zimbra Administration Console
  • ZeXtras Backup integration
  • See more at ZeXtras wiki..

ZxChat

ZeXtras Chat is one of the modules of ZeXtras Suite. It provides an integrated IM server and client to Zimbra, allowing your users to communicate through text chat directly from their Zimbra Web Client. Both the chat server and client have been developed by ZeXtras to guarantee the highest integration possible with your Zimbra server.
The ZeXtras Chat module is available 100% free of charge!

Some Important Features of ZxChat :

  • Add an IM contact from the ZeXtras Chat panel.
  • Assign a nickname to your buddies.
  • Start an IM chat by clicking on a buddy in your list.
  • New in ZeXtras Suite 2.0: Video-Chat
  • Remove/Rename IM contacts.
  • 4 IM statuses (online, do not disturb, away, invisible).
  • "Away" status automatically set after some minutes of inactivity.
  • Hundreds of Emoji.
  • 2 UI modes: DockView and Sidebar.
  • Chat History.
  • Send chat conversations by email.
  • Built-in User Preferences.
  • Desktop Notifications (Unity UI or Google Chrome).
  • XMPP compatible: you can connect to ZeXtras Chat with any XMPP Client.
  • Supported browsers: Firefox and Chrome.
  • Also works with: Internet Explorer 8/9/10.
  • Contact group management.
  • See More at ZeXtras Wiki..

Planned Features For ZxChat :

  • Group chat
  • Video conferencing

ZxAdmin

ZeXtras Admin Module provides a highly configurable 'Junior Admin' set of ACLs to the Zimbra's Administration Console. Give Junior Admin permission to any of your users and have full control of what they get to see and change, allowing them to act as an Administrator for their own domain(s). Happier customers and less stressed system administrators: kill two birds with a stone!

Major features of ZeXtras Admin Module are:

  • Delegated Admin management.
  • Choose which Delegated Admins can use the "View Mail" button.
  • No external Administration Consoles.
  • Set the maximum quota that a Domain Admin can assign to any user.
  • Set an account limit for each domain in your Zimbra server.
  • Per-domain Class of Service management.
  • Per-domain mailbox quota management.
  • Monthly reports.
  • Admin Log Browsing.
  • See More at ZeXtras wiki..