vnstat command shows bandwidth usage on your system.

Bandwidth usage by day


Track IP location

To see network interface cards on your computer, run “ip link”



Enable Static External IP in Google Cloud

By default when you create a Compute Engine virtual machine in Google Cloud, you get public IP address. This IP address changes when you ever shutdown down your instance.

To avoid IP getting changed, you need to reserve the IP address to do this, you need to change type of IP address from Ephemeral to Static.

Go to

Google Cloud Platform > Networking > VPC Network > External IP addresses

You will see list of all IP associated with your instances here.

Under Type column, set type to Static. You will be asked to enter a name and description. Once you do this, IP will not release even if you shutdown a VM.



Rancher is an open source container management platform.

To install rancher, you need to install docker. Once you have docker installed and running, run

If you have port 80 and 443 already in use, run following

Now you will be able to access your Rancher installation at






Configure Munin Node

To install munin node on Ubuntu/Debian, run

To configure, edit file


Below this line, you need to add IP of your Munin Master. You need to convert IP to regular expression format before adding. For example, if your IP is, you need to add

If you want to allow from any IP, add

Now restart Munin node

Add Node to Munin Master

You need to tell your Munin master about the new node you have installed. To do this, edit file

In this file, add

Now you need to wait like 5 minutes for Munin master to fetch the data. Munin master run the command /usr/bin/munin-cron to fetch data from every configured nodes.

If you have any problem with updating data, check the log files for more info.

/var/log/munin/munin-update.log => is the log file for munin master.

/var/log/munin/munin-node.log => is the log file for munin node.

Make sure you can connect to port 4949 of node server from master. If any firewall blocking, you need to open the port for munin to fetch the data.


To install netdata, run

Once installed, you will be able to see servers stats at


Stop/start/restart netdata

Installing kubernetes master on Ubuntu 16.04

To install master on Ubuntu 16.04, lets start by installing docker.

Now install kubeadm

You can create kubernetes master by running kubeadmin init command.


Redirect domain to SSL (HTTPS)


Redirect a Page to another

You can also use


Install letsencrypt


Install SSL certificate on Apache

On Nginx

This will stop web server. Generate SSL, then start web server.

Getting SSL with out web server

Domain should be pointed to the server IP and IP should be public to generate SSL. Run following command.

Auto Renew SSL Certificate

Set following cronjob to auto renew SSL


List All SSL

Change Email Associated with account

Search for LetsEncrypt SSL status

certbot certificates
Enable LetsEncrypt SSL in ISPConfig
Nginx Proxy SSL Verification
LetsEncrypt Windows


sed can be used to replace text in a file.

g = Global, replace everything in a file.
s = substitute text
-i = update the file.

Delete lines matching string

To delete lines having a string and print result.

To update the file, use -i option