Simple ways to log user activity

Simple and easily disabled (User can kill the processes) More complex, but user won't be able to stop it Add this line to your pam configuartion for whatever service you'd like to track (All users). Also, the auditd service needs to be running. Or, disable it...

Read more

Useful ffmpeg commands

Fix a file that won't seek on Plex Convert a file to x265 and your default audio codec (libvorbis if it's installed) Convert a file to x265 leaving audio the same codec

Read more

DNS over TLS with TLS auth

Update 2023-06-23 - This works without stunnel if you can get bind 9.19! I was looking to do DNS over TLS for my home environment, but I wanted to run the endpoints on cloud servers that I don't want others to use. My home IP changes very frequently and so I...

Read more

Convert a raw disk to qcow2 from oVirt on NFS

I am migrating my environment from oVirt to Proxmox and wanted to convert my disks to qcow2. First, shut down the VM you are wanting to migrate. In the oVirt Virtualization Manager go to Storage -> Disks and find the disk(s) associated with the VM you want to...

Read more

Delete a stuck namespace in Kubernetes

If you've tried to delete a namespace but it hangs around forever you can delete it with a little work. I've provided a script at the end to do this. A stuck namespace will look like this: First, get the stuck namespace information Open the file with your...

Read more

Working on etcd in kubernetes

In order to run a manual command against etcd running inside the K8S cluster you have to pass a few flags Be very careful with this as you can really mess things up Get the members of the etcd cluster Should get you output like: You can then remove a specific...

Read more

RHVH UEFI boot on UCS

In order to specify the UEFI boot parameters in a UCS boot policy you need to be using one of the following disk types SAN LUN iSCSI LUN Local LUN In this example we will be booting to a RedHat Virtualization Host (RHVH) in UEFI mode with SAN boot Configure a...

Read more

Some useful/nice commands

Do base 10 arithmetic in bash instead of octal Remove leading zeros in bash Find processes & threads for users (useful if running into nproc limits) Show threads per process for user bob Delete files when rm/bash says too many arguments No xargs Using xargs...

Read more

Kickstart LVM to a raw device CentOS

There doesn't seem to be a way to install LVM directly to a raw device in the CentOS/RedHat installer. With a little bit of custom kickstart we can make it do it. This assumes you have two drives connected to your system, one for boot and one for the system...

Read more

Samba 4.1 domain controller on CentOS 6

Pre-requisites Make sure the hostname of the system is set correctly and all firewalls and selinux are disabled (Or configured for the ports specified at the bottom) Install the packages pam-devel is necessary if you want to build libnss_winbind.so.2 and use...

Read more