news
today's howtos
-
Terence Eden ☛ A simple “copy this code” button in JavaScript
Next to all the code samples on this blog is a little "copy" button. That makes it easier to grab any of the code I've shared.
-
Sophie Koonin ☛ Turning my sad gaming PC into a media server
The first job was to downsize so it could sit nicely in the spare room without taking up too much space. I could have left it as-is, and saved several days of my life, but I didn’t do that. I bought a smaller case - a second-hand Lian Li A3-mATX - which fit my motherboard but only had room for one HDD. (And it’s PRETTY.) So I backed up what I needed to, took the machine apart, and carefully reassembled it in the new case, sans one hard drive. PCPartPicker was helpful here, as I still had the old list from when I built the PC in the first place, and swapping out the case in the list told me what header adaptors I needed to buy for the USB connectors.
-
University of Toronto ☛ Blocking SSH logins with PAM (at least on Linux)
The problem with blocking SSH logins using the PAM 'auth' stack is that OpenSSH's public key authentication is done outside of PAM. If a connection is authenticated through public key stuff, sshd never invokes the PAM auth stack and so your 'auth' based block never has a chance to take effect (this also limits some combination of authentication). However, there is an alternative in the 'account' PAM stack, which is specifically documented in pam.conf(5) as being useful for this sort of access control.
-
Maury ☛ Technical note: transfer files over an ethernet patch cable
It's possible to just connect two computers together with Ethernet and do a bit of IP configuration: [...]
-
FOSSLinux ☛ How to Update and Upgrade Linux: apt, dnf and pacman Explained
Learn the difference between update and upgrade on Linux. This beginner guide covers the exact commands for Ubuntu (apt), Fedora (dnf), and Arch (pacman) to keep your system patched and secure.