Bash – Unix – Create Encrypted Disk
NOTE: This script currently only natively will work in a UNIX (Debian, Ubuntu, Red Hat, Rocky, CentOS, Fedora, etc.) operating system and will NOT natively work in a macOS or Windows operating system.
Posts in this category are specific to Fedora and may or may not work on CentOS and Red Hat or other UNIX based systems.
NOTE: This script currently only natively will work in a UNIX (Debian, Ubuntu, Red Hat, Rocky, CentOS, Fedora, etc.) operating system and will NOT natively work in a macOS or Windows operating system.
Sometimes you need a simple log to know when a site is up or down. Create a script like below and then put it in your crontab.
Often there are needs to rename a picture or video to help with organizing the files on a computer or in cloud storage. The code below can help to make some organization easier. For those that are not use to the date format used below, it is specifically chosen to make it easier to organize…
Guide Followed: https://community.splunk.com/t5/Getting-Data-In/Reading-Apache-server-status-output/m-p/48158 First make sure your Apache server-status is setup (assuming you already have Apache/httpd installed) PERL script for scraping the data for SPLUNK Example:
Guides followed: https://machineperson.github.io/monitoring/2016/01/04/exporting-apache-metrics-to-prometheus.html https://www.shellhacks.com/prometheus-apache-exporter-install-config-ubuntu-centos/
Unix Identification is a script that originated with VMWare but I have added some other systems to the script. No Install Option Install Option Basic parameters of the script No parameters passed you will be asked to type a,d,r,or i then press enter/return Parameter a (all details) passed Parameter d (detail) passed Parameter r (release)…
If you run into issues with SSL certificate verification the below should help. NOTE: Even though we backup the original configuration, test this on a development server first.
When you are moving from one server public IP to another you could use some help knowing things are changed. This bash script will do an NSLookup on various DNS servers.
This is my basic setup for a laptop/desktop that I have for my family to use. Debian Based Should work on Debian, Ubuntu (all Ubuntu flavors) Red Hat Based Should work on Red Hat, Rocky, CentOS, and Fedora This first part is only needed for Red Hat Fedora Specific Programs