Category Archives: Linux

Checking SUSE bootability on POWER

This little script checks the GRUB boot image for the VG/LV/file string pointing to the correct place, e.g. /boot/grub/grub.cfg. This works on SUSE / SLES on POWER. # SLES bootability monitor## Henrik Morsing 1.0 24-FEB-2023 Initial ver=1.0 [[ “${1}” == … Continue reading

Posted in IBM POWER, Linux | Tagged , , , , , | Leave a comment

Starting tactic script for CPU allocation calculations on POWER9/10

Based on Earl Jew’s presentation on the 6th of October 2022, “Simplest starting tactic for Power10 AIX exploitation V1.2″. Excellent IBM POWER VUG materials can be found here: https://ibm.ent.box.com/s/6hn2orvig4r2peu6e39owmp07ewyyf4x And the meeting presentation replay here: https://ibm.ent.box.com/s/5atsp26sxup1ob04c3urbkiovj8epbax This is an analytic … Continue reading

Posted in AIX, IBM POWER, Linux, Performance tuning, Scripting | Tagged , , , , , , , | 1 Comment

Growing SAN LUN on Linux

This procedure works on SLES 15, should work on RHEL, but not yet tested. This script is for growing SAN LUNs running via multipath on Linux. Makes it look like AIX and just as easy! Growing SAN LUNs in Linux … Continue reading

Posted in Linux, Scripting | Tagged , , , , | Leave a comment

Adding applications to Gnome’s favourites

Having pushed out an application to a stack of workstations, I was looking for an easy command line way to programmatically add it to the favourite / side-bar in Gnome. Annoyingly, the only method I found (the one Google finds … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

Roundcube php7.4 after Debian Bullseye upgrade

I upgraded Debian Buster to Bullseye carefully following the procedure. Part of the procedure includes removing old or no longer used packages, which I think deleted something that was actually needed. Not to worry, I managed to fix it. I … Continue reading

Posted in Linux, Software | Tagged , , , , , | Leave a comment

NDB – Network Block Device setup

I have been trying to setup NBD to present a shared storage device for me to play around with Xen live mobility. NBD is not tricky, but the documentation, both official and Google, is flawed and confusing. To get a … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

VI changing to lowercase

I don’t know why I can never remember this one, but here it is for reference: :%s/.*/\L& .* = Match line& = What was matched No need for /g as .* already matches the line, and .* if faster than … Continue reading

Posted in AIX, Linux | Tagged , | 1 Comment

Finding SQL query in TCP stream

Just a little one to remember, as I use this occasionally, with this tcpdump you can read SQL queries, rsh commands etc: tcpdump -i en0 -s 0 -l -w – dst port 3306 | strings  

Posted in AIX, Linux | Tagged , , , , | Leave a comment

DHCPv6 and finding DUID

As you probably know if you are using IPv6 at home, Privacy Extentions are a pain, Apple devices are a pain, “smart” phones are a pain, etc. The problem is that privacy extentions makes it impossible to set-up as firewall … Continue reading

Posted in Linux | Tagged , , , , | Leave a comment