Category: OS

Fedora 29 on my Lenovo 6th gen X1 (X1C6)

Pro’s: Very Powerful Ultra Light Small form factor Good build quality Looks nice Almost* everything works out of the box Con’s: CPU Throttling (which we can fix) only one USB-C port which you must use for charging… A Vendor Specific Dongle port where you could have an extra USB-C port. Fingerprint magnet Fingerprint Sensor does

“GPT PMBR size mismatch” when growing LogicalDrive

What I did.. I sequentally hot-swapped two drives that are in a mirror on my HP P420 raid controller. Now to actually use that space you need to grow the logicaldrive. I typed “y” because this was going trough my mind: I’m on Linux.. this will just work, right…. Wrong.. Even after rescanning nothing made

Enable watchdog on Raspberry PI

I’m using Raspbian Linux on 2 Pi’s and I was successful in enabling the hardware watchdog after a lot of failed attempts because of wrong manuals on the net. Edit the Raspbian boot config file to enable the watchdog Add the following somewhere at the end: Reboot your Pi After the reboot install the watchdog

udev rules for ASM disks

Make sure you have sg3 utils installed. # yum install -y sg3_utils After the LUNs were added to the server run: # This will generate a lot of output and will tell you if it found new disks. If you’ve received the wwid’s from you SAN administrator you can skip this next stept, if

Syncing a RPM repo for offline use

For example we want to sync the epel repo for offline use If you are on CENTOS 7 you can just type: # yum install epel-release If you are on Red Hat Enterprise Linux 7 add the EPEL repo this way: # wget # rpm -ivh epel-release-latest-7.noarch.rpm Install the reposync utility which is included

Split large file in smaller files

Split # split -b300M # ls -al total 3110156 drwxr-xr-x 2 root root 4096 Sep 6 21:02 . drwx------ 19 root root 4096 Sep 6 21:01 .. -rw-r--r-- 1 root root 1592381288 Sep 6 21:01 -rw-r--r-- 1 root root 314572800 Sep 6 21:01 -rw-r--r-- 1 root root 314572800 Sep 6 21:01

Encrypt or Decrypt files #!/bin/bash infile=$1 outfile=${infile}.enc if [ -f ${infile} ]; then if [ -f ${outfile} ]; then echo "target file ${outfile} already exists" exit 1 fi printf "Enter encryption password: " read pass if [ -z ${pass} ]; then echo "No password provided, using default: biscuit" pass=biscuit fi cat ${infile} |openssl enc -base64 -e -aes-256-cbc -nosalt