Skip to content

Category Archives: Unix and Linux

Linux/Unix based computers, including NAS servers, VPN servers, cron-running machines, and desktop workstations.

Allow LAN-only password login to sshd

17-Jan-12

See here and then add this to : This allows clients on the local network to login using password authentication while limiting the Internet in general to key-based authentication. Be the first to like. Like Unlike

Samba FreeBSD 8.2 benchmarks (pre-upgrade to FreeBSD 9.0)

13-Jan-12

I’m about to upgrade to FreeBSD. While I csup the latest RELENG-9.0 branch, I’m looking at my Samba performance on 8.2. I’m measuring a copy of to the Samba server using the following batch file (taken from here): That’s a 1751164811 byte file, so that’s 21.59 MiB/s. To receive: This is a 2,388,531,200 byte file, […]

Set up vimage/vnet jail on FreeBSD 8.2

08-Jan-12

With epair, there are two interfaces created and that are direct connections between each other (like an Ethernet cable). When used with jails using an command, one side ( for example) sgoes inside the jail. Since the other side of this virtual direct-connection stays on the outside of the jail, the pairs act as an […]

ZFS performance metrics with iozone

26-Dec-11

I ran iozone on many different ZFS pool configurations, to get an idea of which drives are best for L2ARC (cache) and the ZIL. I also wanted to get an idea of whether using gpart affects performance. The configurations shown in the tables below have the formation [cache]_[gpart/gnop]_[zil]. Where [cache] is the L2ARC type. [gpart/gnop] […]

Creating static adaX mappings for FreeBSD drives

17-Dec-11

I recently had a problem with ZFS. I went back to not using glabel, mainly because I wanted to force 4KB sector alignment on my drives and therefore used a gnop trick. About a month after doing so, I shuffled my drives around. I had ada4 and ada5 set up in a mirror configuration. At […]

Putting current directory in xterm/rxvt title

09-Dec-11

From http://www.ibiblio.org/pub/Linux/docs/HOWTO/Xterm-Title Here’s mine (tcsh): Instead of casing screen, I should probably check for $DISPLAY. Someday. Be the first to like. Like Unlike

DHCP trouble in DD-WRT due to broken dnsmasq

20-Oct-11

I’ve been debugging why my printer won’t receive an IP from my dd-wrt router. (This is a beta version of Buffalo’s branded dd-wrt firmware: DD-WRT v24SP2-EU-US (05/25/11) std – build 17135.) I actually “upgraded” to the beta version while debugging this problem. Originally, I had the release version of Buffalo’s DD-WRT. Anyway, to summarize, it […]

HP L7600/L7650 and Samba/FreeBSD

02-Oct-11

This all-in-one printer can scan to a Windows share. I have a Windows share hosted by Samba on FreeBSD. Unfortunately, the printer/scanner intermittently (and pretty often) says it can’t find my FreeBSD machine when I–or more importantly my wife tries to scan a document. I went pretty deep on this and took a packet capture: […]

Samba and ZFS (NFSv4) ACL settings for FreeBSD

27-Apr-11

My latest security schemees that I’ve mapped the Samba guest user to a new user “samba_guest”. I’ve made nobody the owner of public shares. I’ve removed the allow settings for the “nobody” user. I then enable everyone to read: Note that I’ve set up Samba with the ZFS ACL module. For each share, I’ve added […]

Crashplan running on FreeBSD

07-Apr-11

Just gathering bits of information on how to get this done: The first set of instructions (for FreeBSD 7.x) was here:CrashPlan on FreeBSD HOWTO This didn’t work that well on FreeBSD 8.x. There was some problem with epoll. The breakthrough came from Aaron here: Add -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider to the bin/run.conf for the engine. Finally, here’s an […]