Update README.md

This commit is contained in:
Josh North 2015-10-22 08:58:10 -04:00
parent c5112b85f1
commit 759fc378fc

View File

@ -1,20 +1,22 @@
# debuntu-toolkit
Miscellaneous scripts for system admin
######Miscellaneous scripts for system admin
#### cfddnsv6.sh
This script updates CloudFlare IPv6 DNS records with your current IP address, as pulled from the interface directly. Best use case is having an ISP who arbitrarily changes your prefix. For safety, we do not create records, we only update records that match the hostname in the zone, so you must log in to CloudFlare and create your records first!
Right now we run this from cron--- at reboot and every so often after. This example runs it at reboot and every half hour, adjust to taste.
### cfddnsv6.sh
###### Update CloudFlare IPv6 DNS records IP address from desired interface.
#### Quick Install:
```
sudo wget -O /usr/local/bin/cfddnsv6.sh https://raw.githubusercontent.com/Point808/debuntu-toolkit/master/cfddnsv6.sh; sudo chmod +x /usr/local/bin/cfddnsv6.sh
```
#### Settings
Right now we run this from cron--- at reboot and every so often after. This example runs it at reboot and every half hour, adjust to taste. You also need to edit the top portion of the file to match your environment, and add the record to CloudFlare.
```
@reboot /usr/local/bin/cfddnsv6.sh >/dev/null 2>&1
*/30 * * * * /usr/local/bin/cfddnsv6.sh >/dev/null 2>&1
```
###### Quick Install:
```
sudo wget -O /usr/local/bin/cfddnsv6.sh https://raw.githubusercontent.com/Point808/debuntu-toolkit/master/cfddnsv6.sh; sudo chmod +x /usr/local/bin/cfddnsv6.sh
```
#### cleanup.sh
Quick and dirty script to clear disk space (log files, apt cache, etc etc) - useful if creating a machine template.
###### Quick Install:
### cleanup.sh
######Quick and dirty script to clear disk space (log files, apt cache, etc etc) - useful if creating a machine template.
#### Quick Install:
```
sudo wget -O /usr/local/bin/cleanup.sh https://raw.githubusercontent.com/Point808/debuntu-toolkit/master/cleanup.sh; sudo chmod +x /usr/local/bin/cleanup.sh
```