Home
David's tidbits
Cancel

RHEL 8/9 and AlmaLinux - Enabling the EPEL Repository

This script will install the appropriate EPEL repository for your version of RHEL. #!/bin/bash MAJOR_VERSION=$(cat /etc/os-release | grep "VERSION_ID" | \ cut -f 2 -d "=" | cut -f 2 -d '"' | cut...

Writing multi-line text to a file in BASH

In writing bash scripts, you often need to write multi-line configuration files. Here are some ways to do this. source: https://stackoverflow.com/questions/11162406/open-and-write-data-to-text-fil...

Performing a PrintScreen

When diagnosing a problem on a Windows computer, one of the most valuable bits of information you can provide is a copy of the exact error message on the screen. Using the PrtScn button The PrintS...

Installing NGINX, PHP and MySQL

Install NGINX and PHP #!/bin/bash set -e set -u set -o pipefail FILE="" banner() { echo "+------------------------------------------+" printf "| %-40s |\n" "`date`" echo "| ...

Setting a Static IP for TrueNAS SCALE

When TrueNAS SCALE is first installed, it uses a dynamic or DHCP address. In almost all situations you will want to use a static IP address. Normally you would go to the interface configuration, di...

Creating a Windows VM in Proxmox

Creating a Windows VM in Proxmox is a little convoluted because the Windows ISOs do not include the virtio drivers like Linux does. Rather than duplicate this information, the Proxmox wiki has thi...

Creating a Syslog server in Linux

Logging is a critical aspect of Linux server management. Log messages are useful for root cause analysis and avoiding potential error occurrences in the future. Analyzing and debugging server er...

Hypervisor Storage for Virtual Machines

The current thought is that hypervisors like VMware, Proxmox and XCP-NG should be a separate device from the storage. There are many good reasons to do this. You can grow your hypervisor farm witho...

Joining TrueNAS to a Windows Active Directory Domain

Joining a TrueNAS server to a Windows Active Directory (AD) allows you to use AD user and group accounts in TrueNAS permissions. Requirements What you will need: A Windows AD domain controller ...

Installing Windows Server

Microsoft makes available to anyone with a browser to download the ISOs for a 180 day evaluation copy of Windows Server. Windows Server 2016 https://www.microsoft.com/en-us/evalcenter/download-win...