Skip to content

Tag Archives: FreeBSD

Subsonic can’t bind to address on FreeBSD dual stack

20-Jan-12

Either build Java without IPv6, or you need the following in /etc/rc.conf: tomcat60_enable="YES" tomcat60_java_opts="-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true" (The java.awt.headless is if you’re running without an X console.) Also, delete everyting in /usr/local/apache-tomcat-6.0/webapps/ except for subsonic and subsonic.war and rename these ROOT and ROOT.war respectively. Make sure www:www is the owner of everything (including your subsonic databases in [...]

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 [...]

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:

Fixing CrashPlan (in the presence of native JDK/JRE)

14-Sep-11

I recently installed subsonic, which has a Java dependency. The www/subsonic port installed Java. Unfortunately, this (or something else I did) broke CrashPlan (which uses the Linux Java in the java/linux-sun-jre16 port). I had to take a few unexpected steps to fix this.

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 [...]

Putting freebsd /tmp and /var on a memory disk (md)

14-Feb-11

I’ve installed a FreeBSD system using gmirror onto a couple of USB drives. I’ve noticed that there’s a considerable lag when I’m doing certain things (running top for example). I’ve narrowed it down to the /tmp and /var file systems. These two file systems get written to often during normal system operation. I’ve recently aleviated [...]

Partitioning for ZFS

31-Jan-11

Have 3 drives: 1.5 TB WD15EARS, 1 TB Fantom Green (eSATA), 2 TB WD20EARS. First, did a: server# gpart add -b 2048 -s 2929865452 -t freebsd-zfs -l WD15EARS ada0 ada0p1 added server# gpart add -b 2048 -s 1953113452 -t freebsd-zfs -l FANTOM1TB ada1 ada1p1 added server# gpart add -b 2048 -s 3906617452 -t freebsd-zfs -l [...]

Installing FreeBSD from USB (created using Windows)

05-Sep-10

Be careful. You’re creating a FreeBSD boot image using Windows. It’s sometimes difficult to see which hard disk you’re writing to. See here: Writing FreeBSD memstick.img to a USB drive in Windows « Koitsu’s Blog Download dd for Windows here: chrysocome.net – download. I chose beta 0.6.3. Unzip it, and take a look at the [...]

Installing php5.2-FPM on FreeBSD

03-May-10

I’d rather run nginx and PHP5-FPM on my FreeBSD machine (to server Ampache). I’m not sure if this is possible, but I figured it’s worth a try. The idea is to use less memory and speed things up. apparently, when you use mod_php in Apache, it means that Apache loads php for every request. It’s [...]

Re-labeling my ZFS devices with glabel

06-Apr-10

As I stated before, I wanted to move the underlying devices in my ZFS pool to glabel-based naming. To do so, I did the following 3 commands: > sudo zpool offline tank da2s1 > sudo glabel label -v fantom_1tb /dev/da2 Metadata value stored on /dev/da2. Done. > sudo zpool replace tank da2s1 /dev/label/fantom_1tb Then, doing [...]