Categories
bash scripting

Bash Conditionals with RegEx and other Comparisons

There are many times when using regular expressions for comparisons is the best option. In this case a bash script being written for a cron job required date format comparison. Using a regular expression makes it easy and easily adjustable if needed in the future to handle other formats. The quick comparison of a variable […]

Categories
system administration

Schedule Backup of Archiving Files

This was written initially to backup raspberry pi machines in order to backups of photos of birds. On several Raspberry Pi machines (zero, 3B+, 4B+) there are ever increasing files captured by various services and processes. These eventually fill up the drives, particularly quickly on the smaller SD Cards. This post simply reminds me of […]

Categories
networking

Disable IPv6 on Ubuntu 20.04

IPv6 for the normal desktop user of Ubuntu is a bit much and frankly, I desired to know the requirements to accomplish disabling it. The following is a brief description of the necessary steps. If you know of other ways or flaws in the following please let me know. This is an experiment so do […]

Categories
system administration

OpenVPN on Boot – Debian/Ubuntu Based Systems

Install OpenVPN. Create OpenVPN client configuration file for your VPN provider. Usually these come in the form of the URI name with an .ovpn extension (i.e. us-nyc.provider-udp.ovpn). General OpenVPN information may be found at https://openvpn.net/community-resources if you require further documentation on configurations. If you purchased a VPN service there should most certainly be files provided, […]

Categories
identity

Create OpenVPN credentials File

In order to take a password from the shell and append to a file (e.g. OpenVPN). So the default credentials file is named ‘authcreds’ unless the first argument provided is the desired filename. The user is prompted for their username and password which are added to the file. Username on first line, password on the […]