From the "wasting hours with computer problems" department: Today I updated a few packages on my Ubuntu based home server as I had done countless times before. One of the packages was openssh-server, again a package that I had updated countless times before without any problems. But today is a special day. The server rebooted … Continue reading troubleshooting a ssh.socket problem
Category: Linux
Using Grok to create a shell script
I just needed a small shell (bash) script to synchronize the zfs snapshots of the dataset pool1/gesichert on two different PCs (PC1 and PC2) to be run on PC2. I asked Grok (MechaHitler), here is what it came up with: [bash] #!/bin/bash # Get latest snapshot on PC2 PC2_LATEST=$(zfs list -t snapshot -o name -s … Continue reading Using Grok to create a shell script
RDP session using Remmina
In preparation to the end of support for Window 10 we are looking into replacing Windows on some older computers with Linux, in particular Kubuntu. We don't want to throw away perfectly good hardware just because Microsoft decided that Windows 11 should not support it. And we also don't want to pay Microsoft for extended … Continue reading RDP session using Remmina
Destroying multiple ZFS snapshots
Note to self: Sometimes it is necessary to destroy not just a single but multiple ZFS snapshots. This can be done with some command line magic, but the zfs destroy subcommand has built in functionality too. Given a dataset pool1/dataset1 with 5 snapshots: snapshot1 snapshot2 snapshot3 snapshot4 snapshot5 [bash]zfs destroy pool1/dataset1@snapshot1,snapshot2,snapshot4[/bash] will destroy snapshot1, snapshot2 … Continue reading Destroying multiple ZFS snapshots
ZFS Snapshots und Samba Shadow Copy [German only]
Ich bin seit einiger Zeit ein großer Fan von ZFS und sammle immer wieder mal Links zu dem Thema. Es gibt einen Blog-Post ZFS Snapshots und Samba Shadow Copy (auf Deutsch) von Manfred Larcher, den ich gerade gefunden habe, und den ich hiermit erwähnen will, so dass ich ihn später auch wieder finde.
Get Samba connection information
Note to self: The command to get connection information for a (Linux based) Samba server is smbstatus. It needs root privileges. e.g. [bash] sudo smbstatus -v | less [/bash]
Configure a svn repository on SourceForge to allow changing a log message
I tend to make typos in the log messages to SubVersion commits and it is always embarrassing when I later come across these typos. Svn can be configured to allow changing log messages by adding a server hook, but that's not the default. The now defunct OSDN, which was based on an old version of … Continue reading Configure a svn repository on SourceForge to allow changing a log message
Prevent the Proxmox Terminal UI installer to switch to graphics mode
I wanted to try Proxmox VE on one of the BMAX B6 mini PCs we recently bought - the ones which turned out to not meet the Windows 11 minimum requirements - and ran into an unexpected problem: Regardless whether I selected the graphical or Terminal UI installer, after a few seconds the display went … Continue reading Prevent the Proxmox Terminal UI installer to switch to graphics mode
When setting sshd PasswordAuthentication to no has no effect
After setting up ssh authentication via public/private key for my user account on my Ubuntu 22.04 server, I wanted to disable authentication via password for security reasons. So in /etc/ssh/sshd_conf I changed the entry PasswordAuthentication from yes (the default) to no: [plain] # To disable tunneled clear text passwords, change to no here! PasswordAuthentication no … Continue reading When setting sshd PasswordAuthentication to no has no effect
Using two factor authentication for ssh with Ubuntu 22.04
Since many of the instructions I found on the internet seem to be flawed or at least outdated, here is how I managed to enable two factor authentication (2fa) with (time based) OTP in Ubuntu 22.04 using the Google Authenticator PAM plugin. Note: When using ssh private/public key based authentication, no OTP prompt will be … Continue reading Using two factor authentication for ssh with Ubuntu 22.04