-
Using RAID in OpenBSD
Well anyone who is worth their oats is running raid right?
I guess that depends on your definition of anyone, what a bunch of nub sauces. Ok so it’s my first real attempt at doing it, I only have two disks and most of my media however much I may not think so right now is disposable.
Compile a new kernel since Theo leaves raid out by default:
$ cd /usr/src/sys/arch/amd64/conf/ $ cat /usr/src/sys/arch/amd64/conf/GENERIC.MP.RAID # $OpenBSD: GENERIC.MP,v 1.8 2007/01/27 22:48:01 kettenis Exp $ include "arch/amd64/conf/GENERIC.MP" option RAID_AUTOCONFIG # Automatically configure RAID at boot pseudo-device raid 4 # RAIDframe disk driver $ config GENERIC.MP.RAID $ cd ../compile/GENERIC.MP.RAID Don't forget to run "make depend" $ make clean && make depend && make .... magic .... $ su - Password: # make install rm -f /obsd ln /bsd /obsd cp bsd /nbsd mv /nbsd /bsdHere is the exceprt from the OpenBSD 4.2 manpage, that brings it home:
toot-toot! _default/list.html -
Bash hates people who use spaces
Ok so I have lots of files… I can’t be responsible for keeping weird characters and spaces out of all of them can I?
So what is a space using loser like me to do, well after penance, jump through hoops to make it work.
So naively expecting this to work, instead I get this crap.
sgw@terd /store/ebooks/pdfs $ for i in `ls ../*.rar`; do echo "$i"; done ../PDF Ebook Guide BSD Hacks 100 ...So contorting my leg behind my head I type this, and voila.
toot-toot! _default/list.html -
Installing OpenBSD 4.8 on a Soekris 5501
I tried to do the install via a direct install to the CF via a USB media reader on my laptop, that gave me the runaround for a bit, turns out most USB style CF card readers work but I managed to find one that does not.
toot-toot! _default/list.html -
Quick Unix helper for updating Jazz profile*.ini files
When you are deploying to WebSphere there are a number of paths that need to be configured as fully qualified or absolute paths, since the JVM is now running from the WebSphere directory instead of the local Tomcat install.
toot-toot! _default/list.html -
Minimizing writes by using mfs in OpenBSD
Just some notes/links around setting up an OpenBSD machine on a solid state drive and how to minimize writes.
toot-toot! _default/list.html -
Cleaning up your calibre library
Just found an interesting thing, evidently Calibre does not cleanup old directories when you rename authors. So I used some pretty standard *nix commands to help save the day here. First find your empty directories > find calibre-library -type d -empty If you are on Mac, like me, you will…
toot-toot! _default/list.html