dashboard elasticsearch elk install kibana ubuntu

Install Kibana In Simple Steps

Kibana is a great tool which provides power of dashboard to elasticsearch data. You can visualize and analyze your data using it. Installation of kibana is not that big deal until you get stuck. I got though. Here I present you the process to install kibana in simple steps.

Following process has been tested on Ubuntu 14.04.

1 – Download kibana of compatible version with your elasticsearch version from here.

Check the compatibility from below image.
install kibana

2 – Open terminal. Move in to a directory wherever you want to install kibana(/var/www here).
cd /var/www

3 – Extract the downloaded file, follow below command if downloaded file is the tar file.
tar -xvzf ~/Downloads/kibana-4.x.x -C ./ (downloaded file kibana-4.x.x is kept in Downloads folder)

4 – Move into the extracted kibana folder,
cd kibana-4.x.x

5 – Open the configuration file of kibana, which is kibana.yml.
sudo nano config/kibana.yml

6 – Now, modify it for your elasticsearch host, by default it is listening on the same host at port no. 9200. Make sure the elasticsearch host is already started.

7 – Now start kibana.
sudo bash bin/kibana (to run it in the background, put an `&` at the end, run sudo bash bin/kibana &)

8 – If everything went fine, you can check the kibana dashboard in your browser at http://localhost:5601
If something went wrong, the message for the same can be found at the terminal itself.
If in case it says port is already occupied, you need to kill the already running kibana process.
Find the process id (pid) by, ps aux | grep "kibana" and then kill that process, kill -9 respective_pid. Now try again to start kibana process using step 7.

That is all, for the steps to install kibana.

For any other query, reach me -> [email protected]

If you found the above blog interesting, check the installation of ELK(Elasticsearch, Logstash, Kibana) as well.

configuration install modules nginx source ubuntu

Install Nginx from Source in Ubuntu

Hello Everyone, the very handy command to ubuntu users installing nginx, sudo apt-get install nginx, that’s it. It does install nginx on your machine, with almost all the modules usually needed by the users, super awesome. The shortcoming of this method of installing nginx is that if you want to add more modules to the nginx, you just can’t do it. Currently, nginx installed from apt-get do not support adding custom modules to it. Now when you look over internet about how to add module in nginx, it suggests you to install nginx from source. Some times it gets so much confusing, there is something, which always holds developer back to install it this way(As they already had an easy way).

So here I will show you that installing nginx from source is as easy as the apt-get(almost) and interesting as well. Lets do it,

1. Find the stable version of Nginx (, current stable version) compatible with your custom module you need to add(if the module doesn’t support all versions of nginx) from its download page. (tar file used here)

2. open terminal

3. sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev (install the tools required to compile nginx from source)

4. sudo su (get the super user privilege).

5. mkdir nginx (create a directory named nginx{not necessarily}, all the work will be done into this directory)

6. cd nginx (get into nginx directory)

7. wget (download your compatible version of nginx)

8. tar -xzvf nginx-1.10.2.tar.gz(extract the downloaded content)

9. cd nginx-1.10.2 (get into nginx directory)

10. ./configure (run the configure file)

11. make & make install (google to know about them at your will, I got to work for that or just run them)

12. sudo /usr/local/nginx/sbin/nginx -s stop (stop the nginx server if already running)

13. sudo /usr/local/nginx/sbin/nginx (start the nginx server)

14. enter the ip of your server, and you must be able to see the default nginx page.

So, that’s it. You have now installed your nginx from source.
Now, the commands for starting and stopping and the locations of the config files are different than /etc/nginx. The nginx files are kept in /usr/local/nginx.

Configuration file: /usr/local/nginx/conf/nginx.conf
Start server : /usr/local/nginx/sbin/nginx
Stop server: /usr/local/nginx/sbin/nginx -s stop
Reload server : /usr/local/nginx/sbin/nginx -s reload
Other commands you can find by tabbing after -s or reading the /usr/local/nginx/sbin/nginx file.

Now you can add any module to your nginx, by compiling nginx with the module. Go ahead and learn and test different great available modules of nginx. One with which I’m currently fascinated with is rtmp module.

1. Each time you are adding a module, make sure you add all other modules(which you earlier had compiled with and still need them) as well.

2. Each time after the module is added, restart the nginx i.e., stop and start, rather than reload.

boost facebook free promotions hack promote promotion trick

How to trick facebook for free promotions?

Disclaimer : Use it with full caution and at your own risk. This article is meant only for education purpose. This is not any hack but just a wild trick, to fool facebook and do free promotions.

free promotions

Facebook promotions are a great way to reach millions of users of chosen type. But that comes at some cost which varies depending on the users you are targeting. If you are thinking of targeting a lot of users, you must be willing to invest a lot of dollars into for the same.

You can easily setup your facebook account for free promotions.
I will briefly summarize the steps to create an ad promotion, if you know this, you can safely skip,

1 – create a facebook account.
2 – create a facebook page.
3 – click on promote page, or on any post for boost post.
4 – set up targeted audience, put in time interval for the promotion and money to be invested.
5 – add payment method, possibly your credit card details.
6 – click on boost, or promote.

Now, in some minutes, your ad will get approved, and promotions will be started.

Now, suppose you heavily want to promote your website, or post, and you don’t have a big pocket. You must be wondering, how does above save you from paying for your promotions. Well the trick is little off the track.

So, the facebook charges for your promotions at the end of the month. It sends you the monthly bill and deducts the same from your credit card(remember step 5). The trick is you get your credit card get blocked(call upon your bank operator and ask them to get your card blocked). Now since your credit card is not in service anymore, you will not be charged with that.

Are you insane? The facebook is gonna block me, destroy my page, and what else. That must be stupid.

I would say don’t get overhyped, yes there are risks of all that. And below is how to overcome them, or in short the steps to get free promotions without risking your identity.

1 – create a fake facebook account.
2 – create a fake facebook page.
3 – post a link of your website on your page.
4 – create a heavy promotion to boost that link.
5 – click on boost.
6 – get your credit card blocked before the end of the month.
7 – get a new credit card issued. (just like that)

Now, let facebook do whatever it wants with that facebook account or page, you need not worry about that.

You might worry for renewing your credit card though.

Happy free promotions. 🙂