ip

Track IP location

http://www.ip-tracker.org

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

CentOS

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

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.

htaccess

Redirect domain to SSL (HTTPS)

Or

Redirect a Page to another

You can also use

Letsencrypt

Install letsencrypt

OR

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

Add

List All SSL

Change Email Associated with account

Search for LetsEncrypt SSL status

https://crt.sh/

certbot certificates
Enable LetsEncrypt SSL in ISPConfig
Nginx Proxy SSL Verification

sed

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

VestaCP Free Hosting Control Panel

VestaCP Free Hosting Control Panel

Reset VestaCP admin password
Change Server Hostname in VestaCP
VestaCP SSL for mail server
VestaCP redirect webmail to HTTPS

VestaCP Free Hosting Control Panel

You can login to VestaCP at

phpMyAdmin available at

http://YOUR-IP-ADDR/phpmyadmin/

You can see phpMyAdmin Nginx config at /etc/nginx/conf.d/phpmyadmin.inc

Web Site DocumentRoot

Web sites are stored in folder

Log Files

/var/log/nginx/domains/ => stores Nginx Access and error logs for hosted web sites.

Configuration Files

php-fpm configurations for each web sites are stored in /etc/php-fpm.d/DOMAIN.conf, each web sites runs php-fpm in its own pool. Here is sample config

Apache/Nginx configuration in folder : /home/admin/conf/web (admin is user, if you have other users, check folder for the user)

VestaCP Installer Compromised

See Hosting Control Panel