Denny’s OpenBSD Newbies blog

April 3, 2010

The Last Four Months

Filed under: openbsd — Tags: , , , , , , — denny @ 9:03 pm

Four months come and gone. Sick a lot. Not much accomplished
during that time other than upgrading WordPress on the blog and
installing snapshots on my laptop extra hard drive and also on my
old Pentium 4 desktop. I did manage, also, to test a patch on Nut
(Network UPS Tools) for Stuart Henderson of OpenBSD. Got it
built okay, just never really got it running right. Going to install a new
snapshot, update everything on the box and see if I can get it running
correctly.
If you add a user to aliases as root and intend to get root’s mail, be
sure not to leave it commented out. :-) Ran into all sorts of problems
with the email on the P4 until I found my omission and fixed it. Tried to
use qtool.pl to clean /var/spool/clientmqueue but no dice.
Also tried sendmail and mailq but in the end I had to fall back on
good old rm to get rid of the trash.
Learned that wget doesn’t like wildcards, so when downloading
multiple files all on one line, I can do something like:

wget http://somewhere.com/{01.jpg,02.jpg,03.jpg}

Also started doing my rsync backups over ssh like so:

rsync -e ’ssh -ax -p xxx’ -agrtv /adir/ user@somebox:/adir

After installing a snapshot on my laptop I started adding packages
and finally got around to java. I don’t like installing it, I think it’s just
another security risk too, but I need it for some things I do so I don’t
really have a choice. When I installed the snapshot I tried out the new
auto-partitioning. I don’t necessarily like the way it turned out, since it
seems like a lot of drive space got wasted in places in isn’t needed,
like in /var and /tmp. /usr was only given 2G, so when I started
building java I ran out of space pretty quickly. Got around that by
adding some directories on a second hard drive and adding some
settings to /etc/mk.conf:

ACCEPT_JRL_LICENSE=Yes
USE_SYSTRACE=Yes
WRKOBJDIR=/data/mktemp/obj
DISTDIR=/data/mktemp/distfiles
PACKAGE_REPOSITORY=/data/mktemp/packages

The first line lets java know you agree to the JRL licensing.
The second line is to detect misbehaving Makefiles, scripts, etc.
The next three lines simply save space on the /usr partition
by using the directories on the second hard drive instead of the
standard ones underneath /usr.

That’s about it. Hope to get some more work done shortly. Waiting
on my new OpenBSD 4.7 cds to arrive soon. Then there will be
a whole lot of work to be done.

Cheers!

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress

Rss Feed Tweeter button Facebook button Technorati button Reddit button Myspace button Linkedin button Webonews button Delicious button Digg button Stumbleupon button Newsvine button Youtube button