Create a openVPN server on Google Cloud Platform to connect to your Google Cloud network using openVPN and/or to route your internet traffic through the VPN (Road Warrior Scenario)
- Create new instance in default network
- Chosse Ubuntu 16.04 LTS
| #!/bin/bash | |
| ################# | |
| # RUNTIME CONFIG: | |
| PORT=8888 | |
| ################# | |
| IMAGE=kempkensteffen/nginx-symfony:7.2-dev | |
| DOCROOT=/var/www/html |
| apt-get update | |
| apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
| apt-get update | |
| apt-get install -y docker-engine | |
| curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" | |
| chmod +x /usr/local/bin/docker-compose |
Create a openVPN server on Google Cloud Platform to connect to your Google Cloud network using openVPN and/or to route your internet traffic through the VPN (Road Warrior Scenario)
First check your current version.
uname -a
Then run the following command:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'
| sudo add-apt-repository ppa:costamagnagianfranco/ettercap-stable-backports | |
| sudo apt-get update | |
| sudo apt-get install curl |
| ufw allow in on eth1 |
| <?php | |
| /* | |
| * Backup script to create full and incremental backups using innobackupex | |
| * | |
| * Creates a full backup once a day and periodically incremental backups using innobackupex by Percona | |
| * | |
| * Install: create backup folder, change mysql username/password and add a crontab calling "php -f /PATH_TO_SCRIPT/backup.php" every hour | |
| * | |
| * --- | |
| * Warning: |
| #!/bin/bash | |
| CONFIG_FILE=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd)/piConfig.cfg; | |
| source $CONFIG_FILE | |
| rm -fR deploy | |
| mkdir deploy | |
| cp * deploy/ |