I’m such a nerd. I spent my morning updating my documentation:
Category Archives: Sys Admin
Setting Konsole title to $USER@$HOSTNAME
First: Settings -> Configure Konsole -> General -> Show window title on the titlebar (checked)
Then: System -> Configure Konsole -> Profiles -> [Default] -> Edit… -> Tabs:
- Tab title format: %w
- Remote table title format: %w
Then you need this config and these two shell functions in your .bashrc:
# 2023-12-29 jj5 - if not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# 2023-12-29 jj5 - set the Konsole window title
echo -ne "\033]2;$USER@$HOSTNAME\007" >&2
# 2023-12-29 jj5 - intercept ssh and sudo commands to reset window title on exit:
ssh() {
/usr/bin/ssh "$@"
echo -ne "\033]2;$USER@$HOSTNAME\007" >&2
}
sudo() {
/usr/bin/sudo "$@"
echo -ne "\033]2;$USER@$HOSTNAME\007" >&2
}
Transferring large files with Salt file.managed
Well, this took me a few hours to figure out.
If you’re going to be transferring large files using file.managed in your salt state, make sure you specify show_changes: False, otherwise salt will start trying to boil the ocean and calculate the unified diff of your enormous files.
The clue that this is the problem you're having is if one of your CPU cores pegs at 100% and your state doesn't apply in a reasonable amount of time (minutes, I guess).
Also you probably want to make sure you're not trying to use your large file as any sort of template. By default file.managed will assume no template, which is what you want for large files that aren't templates. I've never used large files which are templates, but I suspect if you tried that you'd have a bad time.
Final round of Silicon Chip books
My good friend Dubz shouted me another round of Silicon Chip books as can be seen here. I now own all the books which have been marked and I’ve pretty much purchased everything that was left.
Chromium bug fixed!
For the past month or so I’ve had this intermittent problem where chromium would start crashing and would keep crashing every time I tried to start it until I rebooted.
Today I ran chromium under strace and straightaway discovered that it was trying to use shared memory in /dev/shm and it couldn’t because there was no space left.
There was no space left because I had PHP’s xdebug writing dump files there. I’ve just disabled xdebug while I’m not using it and after clearing out its old files I can now run chromium again.
I added a note about this to my debugging notes for in case this or something like it happens to me again.
Humble Bundles
There are a couple of decent looking ebook bundles available via Humble Bundle at the moment:
New computer ‘verve’ installed
My new computer ‘verve‘ has been installed. You can see it driving its two monitors. So far so good. Up next: I install OBS Studio and see which of my cameras work. Fingers crossed!
Network upgrade
Added capacity for an extra six hosts on my LAN and now most of my network infrastructure supports 2.5Gbps ethernet speeds. And my janky rack is obsolete now.
The equipment is four TP-Link TL-SG108-M2 ethernet switches which I got from Amazon.
Oh, and I should probably mention that the TP-Link switches come with piddly little adhesive feet, but I didn’t use them, I got some of these big honkin’ ones instead: 25x Rubber Feet Pads Self Adhesive Isolation Feet Speakers Foot Shock Absorption. My logic is that more space between switches equals better cooling.
Gonna try ‘restic’ instead of ‘borg’
Extra Content #2: Motherboard upgrade from ASUS PRIME B550M-A to ASUS ProArt B550-CREATOR
This post is part of my video blog: In The Lab With Jay Jay.
You can support this channel on Patreon: patreon.com/JohnElliotV
This is a long and unedited video of me upgrading my computer from ‘longing’ https://www.jj5.net/sixsigma/Longing to ‘lore’ https://www.jj5.net/sixsigma/Lore
As I said today was computer upgrade day. I made a video of me doing the upgrade, it runs for about two hours: Motherboard upgrade from ASUS PRIME B550M-A to ASUS ProArt B550-CREATOR. It was pretty uneventful and so far it seems to have been successful too. Yay.
Thanks very much for watching! And please remember to hit like and subscribe! :)
Following is a product I use picked at random from my collection which may appear in my videos. Clicking through on this to find and click on the green affiliate links before purchasing from eBay or AliExpress is a great way to support the channel at no cost to you. Thanks!
aToolTour Black Hexagon Deburring Drill Bit notes |
Let’s go shopping!
