2718.us blog » bsd http://2718.us/blog Miscellaneous Technological Geekery Tue, 18 May 2010 02:42:55 +0000 en hourly 1 http://wordpress.org/?v=3.0.4 Changing from BSD to MIT License http://2718.us/blog/2010/03/29/changing-from-bsd-to-mit-license/ http://2718.us/blog/2010/03/29/changing-from-bsd-to-mit-license/#comments Mon, 29 Mar 2010 13:56:43 +0000 2718.us http://2718.us/blog/?p=246 I’m changing the license on most (maybe all) of my active open-source projects, largely because the MIT license does not have as many blanks that have to be filled in as the New BSD license and the language is a bit simpler.  To the best of my knowledge, any rights granted under the New BSD license are also granted under the MIT license, so this is really more of a housekeeping/paperwork issue than a conceptual or substantive change.

If this is of concern for some reason, for the things that were under BSD license and no longer are, the version-controlled repositories still have older versions that are BSD-licensed.

]]>
http://2718.us/blog/2010/03/29/changing-from-bsd-to-mit-license/feed/ 0
Open Source (BSD/MIT License) http://2718.us/blog/2009/09/06/open-source-bsd-license/ http://2718.us/blog/2009/09/06/open-source-bsd-license/#comments Sun, 06 Sep 2009 10:24:58 +0000 2718.us http://2718.us/blog/?p=170 I’ve released a few things as open source recently, under BSD or MIT license, hosted at Google Code.

  • asLJCore is the primary component of the LiveJournal client asLJ, managing all communication with the server.
  • YDDecode is a Cocoa class wrapped around some public-domain C code for decoding data encoded with YEnc.
  • NCIDStatusBarMenu is a utility to help pull NCID-based callerID notifications and display them as Growl notifications (among other things).  I’d been meaning to update it for nearly 2 years with no success and the future isn’t looking much better, so I’m releasing the source instead.

(My musings on licensing below the cut.)Permissive BSD/MIT licenses because in writing asLJ among other things, I’ve had to work to find libraries, frameworks, components, classes, etc., that weren’t GPL-licensed so that I could continue to choose how I wanted to release my software.  I am also heavily influenced by the simplicity of the BSD and MIT licenses compared to the lengthy GPL (and while the LGPL ought to be workable for many libraries, I couldn’t quite wrap my head around the language of it–the LGPL is several paragraphs of modification to the GPL).

(The song lyrics and commentary for OpenBSD4.3 have a lot to do with how I feel about GPL versus BSD/MIT.)

]]>
http://2718.us/blog/2009/09/06/open-source-bsd-license/feed/ 0
flashdist/OpenBSD “oh, duh” moment http://2718.us/blog/2008/05/22/flashdistopenbsd-oh-duh-moment/ http://2718.us/blog/2008/05/22/flashdistopenbsd-oh-duh-moment/#comments Fri, 23 May 2008 01:08:25 +0000 2718.us http://2718.us/blog/?p=39 My biggest problem with flashdist is just how little is included.  This is, of course, necessary for the primary goal of flashdist (working on really constrained machines) and since its goals generally align with my goals in using flashdist and since flashdist has those nice, simple, pre-built images, the fact that very little is included in the base distribution is worth trying to work around.

The “Oh, DUH!” moment came today when I realized (after much mucking about with pulling various programs I needed from other OpenBSD boxes with more complete installs and running into various issues with version differences) that I could just download base43.tgz from an OpenBSD ftp mirror onto my Mac, unzip it, and sftp what I needed over to the flashdist machine, no other OpenBSD box needed.  Once I’d copied ldd over to the flashdist machine, I could even find out what libs I needed to copy over, too.

This means, of course, that I now have dhcpd and BIND running on my Alix.

]]>
http://2718.us/blog/2008/05/22/flashdistopenbsd-oh-duh-moment/feed/ 0
Trying for more than Just a Home Network http://2718.us/blog/2008/05/17/trying-for-more-than-just-a-home-network/ http://2718.us/blog/2008/05/17/trying-for-more-than-just-a-home-network/#comments Sat, 17 May 2008 20:50:59 +0000 2718.us http://2718.us/blog/?p=35 The OpenBSD router machines I installed at my place and my parents’ have been failing and I’ve been doing band-aid fixes of little things as they break, but it’s annoying.  My new idea is to use hardware routers, but to install one or more “slug” NSLU2 devices, unslung, inside each network to provide DNS and DHCP (more than one should easily give redundancy).  At $50-60 on eBay and potentially running some variant of Linux from a small USB flash drive, it should be reasonable to set up two identically-configured “slugs” so that if one goes bad, the other can handle the load until the bad one can be replaced.  My first NSLU2 for testing should arrive in the middle of this coming week.  Details on the previous setup and history after the cut.

Since the point where both my parents and I had DSL, I’ve been fiddling with ideas of how to make it easier to share files across our two networks, easier for me to debug issues on their computers, and, well, just more technologically cool.  About a year and a half ago, I replaced the D-Link routers at both sites with a matched pair of used Dell business machines I’d bought on eBay, outfitted with OpenBSD (by far the best OS for trying to run a secure gateway).  This seemed to fit the bill, as it enabled me to more easily connect to my home network from elsewhere without opening up any of my internal machines directly to the outside world, it allowed me to similarly access my parents’ network without exposing any of their internal machines, and (at the peak of its working-ness) we had an encrypted VPN unifying the two sites so I could connect to shared drives on their machines and print to their color laser printer as if all those devices were on my own network.

But somewhere along the way, things started to go south.  A few months ago, the gateway router Dell box on my end died–just wouldn’t power up anymore.  I swapped in an old D-Link hardware router to keep my internet access up and I’ve been working on an Alix unit to replace it, but getting OpenBSD properly tweaked to run off a compact flash card took some time and I still haven’t quite gotten that install happy with PPPoE DSL connections, so it’s still not in place.

Now, making things worse, the machine at my parents’ place isn’t working quite right.  After an extended power failure that wore through the UPS, the machine appears to start up (even sounds right when I stood there and watched it “boot”), but it never shows up on the network, much less makes the DSL connection and joins the network to the DSL.  This led to a similar swap-in of a spare hardware router unit at their place.  Unfortunately, things got messier for them.

These OpenBSD machines I’d been using as routers on both ends had also been running DHCP and DNS for the internal networks and while my internal network had a second OpenBSD box that was able to step in and take over the DNS (it was already serving as a secondary DNS server) and the DHCP (it had been doing DHCP before I got the other machines), my parents’ network had no such machine.  Suddenly, lots of things stopped working correctly.  Printing over the network didn’t work because the IP printing port in Windows was trying to use the (former) FQDN of the printer, or maybe even its old IP address.  This is what got me looking at the slug.

]]>
http://2718.us/blog/2008/05/17/trying-for-more-than-just-a-home-network/feed/ 0
The Argument for a Mac http://2718.us/blog/2008/04/10/the-argument-for-a-mac/ http://2718.us/blog/2008/04/10/the-argument-for-a-mac/#comments Fri, 11 Apr 2008 02:16:53 +0000 2718.us http://2718.us/blog/?p=13 I have about as many WinXP machines as OS X machines around here (and a few OpenBSD boxes, but that’s beside the point), and yet I find it’s rare that I touch anything other than the Macs anymore.  Why?  Well, I suspect it’s the same reason I keep seeing little things here and there that suggest developers are increasingly working on Macs–if I want a Mac program, well, duh, I’m on a Mac; if I want a PC program, I’ve got Parallels, so I don’t even have to deal with dual-booting; if I want a ‘nix machine, I just look under the Mac GUI and there’s a BSD-type ‘nix (oh, and OS X can run a standard X11 server, too).  I can use virtually any tool out there and work in all three worlds with one machine.  I no longer need to have two or three machines on my desk at home, just my Mac desktop.  I probably won’t be taking more than one laptop on the road with me anymore (I have travelled with two on several occasions in the past), just my Mac laptop.

Why do I want all these different facets?  Well, much as I hate to use it, damn near everyone in “the business world” uses Microsoft Office, and the Mac versions suck (I don’t know about 2008, but I’m not optimistic) and I’d rather use the PC version (2003, since 2007 is a disaster best described as MS openly giving the finger to all its customers).  Graphics work and page layout are in various Adobe Creative Suite products under OS X (I suppose that there exist PC versions, but really, who does graphics work on a PC?).  I also prefer web and email on the Mac side.  Then, when I have to deal with network/server/etc. stuff, I dive into terminal and I’m off.  For actual programming, while I love using WinSCP + TextPad under Windows, LOVE it, I tend more toward Transmit + Komodo Edit nowadays (this is largely a side effect of having a huge project hosted on a server that only supports FTP, not SFTP, and for whatever reason, WinSCP can’t seem to maintain a stable FTP connection with that server, so editing led to all sorts of nasty corruption and whatnot when the connection would drop mid-edit).

Oh, and it doesn’t hurt that my day job is in an all-Mac office.

]]>
http://2718.us/blog/2008/04/10/the-argument-for-a-mac/feed/ 0