Category: Linux
-
Xeon D with all the networking
This is an impressive little motherboard. I can think of a few tasks for it…
-
ZFS Rebuild Script
I’ve rebuilt my zfs modules often enough that I’ve written a script to do a clean build that should avoid old kernel modules and old libraries. #!/bin/bash sudo find /lib/modules -depth -type d -iname “spl” -exec rm -rf {} \; sudo find /lib/modules -depth -type d -iname “zfs” -exec rm -rf {} \; sudo find…
-
lsblk trick
Here’s a fun trick to list the serial numbers and sizes of your hard drives: $ lsblk –nodeps -o name,serial,size NAME SERIAL SIZE sda 50026B77640B3E09 223.6G sdb 50026B77640B4B39 223.6G sdc YGGU3EZD 1.8T sdd W1E15D5G 1.8T sde W1E16ACY 1.8T sdf W1E16BJB 1.8T sdg W1E5W99Y 1.8T sdh YFGR1V3A 1.8T
-
Recent Samba Tips
I’ve been having some difficulty with old systems brought up to recent patch levels sharing directories. Some of these settings in smb.cnf have helped me out: security = user ntlm auth = yes debug level = 8 min protocol = SMB2
-
File System Thots
A brief experiment in calculating a histogram of file sizes: $ find -type f -size -128000c -printf “%k\n” \ | sort -n \ | perl -ne ‘BEGIN{ %h=(); } {chomp $_; $h{$_}++;} END { foreach my $k (sort {$h{$a} <=> $h{$b}} keys(%h)) { print “$k $h{$k}\n”; }}’ 137 3 145 3 121 3 129 5…
-
Ubuntu 14.04 Bonding is Bonkers
It took reading through this launchpad bug to find ideas on how to get a bonding interface working on Ubuntu. This is dumb and why people hate computers: could they at least have provided a more useful syntax or better warning messages? auto eth7 allow-bond0 eth7 iface eth7 inet manual bond-master bond0 mtu 9000 auto…
-
Challenge of Two Cases
Small and portable PCs are an attractive computing option. Unfortunately, they are at odds with much of the technical networking world. If you merely need one large graphics card or one beefy 10GbE networking card, you can get away with your MiniITX form factor system. Contrast that with doing WiFi and wired network testing: often…