Tuesday, August 28, 2007

Linux Driver Copyright Violation

digg_url = "http://digg.com/linux_unix/Lnux_Driver_Violated_BSD_License";

Originally posted by me to CapBUG.org:

As reported on The OpenBSD Journal, a Linux kernel developer removed the BSD License text from Reyk Floeter's Atheros wireless driver.

As Theo de Raadt wrote in a comment to The OpenBSD Journal article:

The other files in the driver, written by Reyk, are the replacement for the HAL. This basically is the hidden register access code which Sam (basically employeed by Atheros) refused to release. This code was placed by Reyk under an ISC license, something our project prefers to use since it is so simple that even a grade 5 student cannot misunderstand what it says. It translates to "You can do anything, but not delete the text".
Only Reyk could change that copyright notice, since he is the author.

At this time, Slashdot does not consider this news (even though a story has been submitted). This must be a too negative reflection of their beloved Linux.

Saturday, August 25, 2007

Yaifo Updates for CF (and SSH fix)

OpenBSDAs seen in the comments from a previous post, recent ssh changes caused Yaifo's sshd server to stop working. The fix was very simple: include an /etc/login.conf in the Yaifo image file.

I just bought a Soekris Net5501. I was hoping that Yaifo would provide a convenient method for installing OpenBSD on the CompactFlash card I'll be using in my new Soekris firewall. After a few tweaks, it does!

Thursday, August 16, 2007

Screen for Serial Access

GNU ScreenA friend (hi, dwc) mentioned to me a few weeks (months?) ago that screen can be used as a serial terminal (like minicom or cu(1) or tip(1)). Up until today, I hadn't had a chance to try it -- I'd been using minicom from MacPorts.

Today, using my nifty osx-pl2303 driver for my Tripp-Lite U209-000-R USB-to-serial adapter and screen, I was able to get a serial console to a server in my office. Specifically, I typed:
screen /dev/cu.PL2303-0000101D 38400
When I was done, I typed: ^a^k to kill the terminal session. Since screen(1) is part of the base OS X install.

Sunday, August 12, 2007

Yaifo updated for 4.2 in CVS

OpenBSDFirst things first: Yaifo is now available via CVS. And (obviously) I set up a SourceForge Project, but I haven't done much with it yet.

I also set up a new category on my website for Yaifo so that it has its own page. I haven't decided yet, but I think I'll just have the SourceForge Project Homepage redirect to the page here.

I will still generate tarballs for downloads, but you can get the latest and greatest from CVS:
cvs -d:pserver:anonymous@yaifo.cvs.sourceforge.net:/cvsroot/yaifo login
cvs -z3 -d:pserver:anonymous@yaifo.cvs.sourceforge.net:/cvsroot/yaifo co -P yaifo

Wednesday, August 8, 2007

Quick Upgrade Process

LaptopsYou may not have noticed it yet here, but I love OpenBSD. I keep that pretty close to the vest, I know.

I just finished upgrading my Thinkpad T42 to the latest OpenBSD 4.2-current snapshot and thought I should share my upgrade process. Over the past few releases of OpenBSD, the process has gotten steadily easier. Marc Espie has almost single handedly overhauled the ports system (here, here and here to cite a few examples) into a robust, easy to upgrade system. And I especially like the clear distinction between the system base and add-on packages.

And, at this point, it's only slightly more work to create a port for new software instead of running make install to just install something into /usr/local/foo. The whole system has seen improvements, but I only pick on ports and packages because they'd been traditionally been more difficult to upgrade (you used to have to remove all packages and install the new ones). Even with the new packaging enhancements, though, on a production server it's a good idea to spend time comparing old configuration options to new configuration options to make sure the new versions of your applications do what you expect.

Monday, August 6, 2007

My GNU Screen Config

GNU ScreenGNU Screen is one of the most useful utilities on a *nix system. On OpenBSD, it's an installable package ("sudo pkg_add -i screen") and it's almost always the first package I install.

Scott (whose blog is not as fast as mine) and I played around with our ${HOME}/.screenrc and Scott helped me come up with this:
shell -$SHELL
startup_message off
defscrollback 1000
hardstatus alwayslastline '%{= wk}%?%-Lw%?%{r}(%{k}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%= %m/%d %C%A'
activity ''
termcapinfo xterm* 'hs:ts=\\E]2;:fs=\07:ds=\\E]2;screen\07'

Sunday, August 5, 2007

My X Desktop

OpenBSDI've been using my IBM Thinkpad T42p as a desktop at home a lot more lately (almost exclusively) and it works great! Just about all of the hardware works (dmesg) -- I can't think of any that doesn't. It's a reasonably fast machine, suspend works, audio works, wifi works...

As for my desktop environment, I've started using dwm because it's extremely small, fast and easy to use with just keystrokes. Windows can be assigned tags which are like workspaces in other managers. There are 9 available tags. I usually have a full-screen xterm running screen on my local machine in tag 1, a full screen xterm running ssh to another box running screen in tag 2 (this screen session has mutt and irssi running in it along with other sessions I like to keep active all the time) and a full screen Firefox in tag 3.

MBP Status

Mac Book ProI've been playing with OpenBSD -current on my MacBook Pro.

Not all of the hardware works. Most notably: the ATI Radeon Mobility X1600, wireless, Fn key and acpi/apm.

I can get X working with the VESA driver at 1024x768.

So, I cannot right-click, recording through the azalia sound driver is not working (though deanna@ is making great strides with the Mac audio capabilities), none of the Fn-Fx keys (sound, brightness, ...) are working, I cannot suspend or get any power status. But, it's a fast, fast, fast build machine. :)