debuntu-toolkit/README.md

23 lines
1.0 KiB
Markdown
Raw Normal View History

2015-10-22 08:35:51 -04:00
# debuntu-toolkit
2015-10-22 08:58:10 -04:00
######Miscellaneous scripts for system admin
2015-10-22 08:38:14 -04:00
2015-10-22 09:02:45 -04:00
### - cfddnsv6.sh
2015-10-22 08:58:49 -04:00
Update CloudFlare IPv6 DNS records IP address from desired interface.
###### Quick Install:
2015-10-22 08:38:14 -04:00
```
2015-10-22 08:58:10 -04:00
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
2015-10-22 08:38:14 -04:00
```
2015-10-22 08:58:49 -04:00
###### Settings
2015-10-22 08:58:10 -04:00
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.
2015-10-22 08:53:12 -04:00
```
2015-10-22 08:58:10 -04:00
@reboot /usr/local/bin/cfddnsv6.sh >/dev/null 2>&1
*/30 * * * * /usr/local/bin/cfddnsv6.sh >/dev/null 2>&1
2015-10-22 08:53:12 -04:00
```
2015-10-22 08:58:10 -04:00
2015-10-22 09:02:45 -04:00
### - cleanup.sh
2015-10-22 08:58:49 -04:00
Quick and dirty script to clear disk space (log files, apt cache, etc etc) - useful if creating a machine template.
###### Quick Install:
2015-10-22 08:55:05 -04:00
```
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
```