Friday, December 29, 2006

Webdav server with lighttpd

MacOS and Windows clients can mount fileservers using WebDAV. This runs over port 80 so it will probably work anywhere on the interweb. It seems really efficient too.

I couldn't find simple instructions on how to set this up so here's my mini howto for Linux. (Sorry for the rather technical content on this one, it's really just a note to myself).
  • Get lighttpd
  • ./configure --with-webdav-props --with-webdav-locks
  • make install (as root)
  • mkdir /var/run/lighttpd
  • mkdir /var/log/lighttpd
  • /usr/local/sbin/lighttpd -f lighttpd.conf
Here is a minimal lighttpd.conf that will share your docroot for read & write.

# lighttpd configuration file for a webdav server
#
# in MacOSX you can mount this with http://host/
#
# See:http://trac.lighttpd.net/trac/wiki/Docs%3AModWebDAV

server.modules = (
"mod_access",
"mod_webdav",
"mod_accesslog" )

server.document-root = "/var/www/"

server.errorlog = "/var/log/lighttpd/error.log"
accesslog.filename = "/var/log/lighttpd/access.log"

webdav.activate = "enable"
webdav.is-readonly = "disable"
webdav.sqlite-db-name = "/var/run/lighttpd/lighttpd.webdav_lock.db"

server.pid-file = "/var/run/lighttpd.pid"

# at least server html pages
mimetype.assign = (
".html" => "text/html",
".htm" => "text/html"
)
----
Update: After using this as a server for a few days, I have to report that there are two issues:

  • Re-naming folders takes ages, reports an error, but does work
  • You can't cancel a file copy

Thursday, December 21, 2006

Cheap Chinese VHF/UHF radios via ebay


A recent meetup with my old ham buddies introduced me to a range of cheap two way radios I hadn't seen before. Costing around AU$90 including delivery, these high tech radios are almost a disposable item. The bit I most like is the specs which look like they've been simply run through translator software.

Item Description :
  • 99 memory channels, adoption of phrase-lock loop frequency
  • synthesis, micro-computer controller, forthrigh menu, expedient operation.
  • LCD apheliotropic lights of showing screen, facile operation in dark.
  • Multi-function, excess value, fashion outline, pettiness, portability,
  • sturdiness, durability, stable property, high quality original battery,
  • long-time using, original sound, relaxed A.
  • Electricity sparing functions, prolong using time.
  • Earphone/Microphone/Auto-charger rabbet, expedient for talking and charging
  • CTCSS
  • English Sound Reminding Function

Features :

  • Rated Voltage : DC7.2V
  • Memory channel : 99 channels
  • Antenna disposition : inductively loaded antenna
  • Antenna impedancd : 50 Ω
  • Working manner : same frequency single operation or different
  • frequency single operation
  • Ground method : negative pole
  • Size : 80X50X28 mm
  • Output power : ≤5W
  • Modulation mode : frequency modulation
  • Maximun frequency deviation : ≤±5KHz
  • Remanent radiation : <-60dB
  • Preemphasis character : per fold frequency patch 6dB
  • Emission current : ≤1600mA

By all accounts, these radios are pretty decent, certainly for the price. I've ordered one and will report more when it arrives.

----
Update: it arrived. It's a Quangsheng TG-25AT (the VHF model).

You get what you pay for. It does work as advertised but:
  • I haven't figured out how to adjust the squelch. It's too tight.
  • The manual is rather cryptic, the same translator as the feature list above.
  • The drop in charger station came for 110V (I need 240V)
  • Scanning is very slow
Anyhow nice new toy for the summer break. I've put my interpretation of the manual here.