Mail

Open Source Mail Suits

Complete Mail Server

These software once installed will provide complete mail server including web mail.

Business Email

Free Email Forwarding

Webmail

To install mail command.

on Debian, run

on CentOS

To send a test email, run

To specify sender address, use -r option

Amazon EFS

Amazon EFS can be used to mount same drive on multiple EC2 instances allowing you to make web site scale on multiple web servers.

To mount EFS drive on Ubuntu, you need to install

To mount a EFS drive, run

Here is fstab entry for to auto mount efs on boot. Here it is mounted /var/www/html, all web site files resides in EFS.

Create Dummy Data in Amazon EFS

WordPress Cron

To disable wordpress cronjob, add

to end of wp-config.php

Now you can set a cronjob with following code

Nginx Configuration for phpMyAdmin

On Debian 9 server with nginx, i installed phpmyadmin with

For some reason, ip-address/phpmyadmin did not work. On Ubuntu, it normally ask for for web server you have installed, then configure it during install.

I got this working by adding following code

Inside default nginx virtual host

Restart nginx with

Now you will be able to access phpmyadmin with url

vnstat

vnstat command shows bandwidth usage on your system.

Bandwidth usage by day

ip

Track IP location

http://www.ip-tracker.org

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

google-cloud-vpc-external-ip

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.

RancherOS

rancher

Rancher is an open source container management platform.

https://rancher.com

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

http://your-server-ip:80

or

http://your-server-ip:8080

RancherOS

docker

Configure Munin Node

To install munin node on Ubuntu/Debian, run

To configure, edit file

Find

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 88.212.32.35, 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.

netdata

To install netdata, run

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

http://your-ip:19999

Stop/start/restart netdata