Currently Browsing: sysadmin

Ubiquiti Controller software on Raspberry Pi

$89 for a Ubiquiti Cloud Key or $59 for a Raspberry Pi complete kit…  There are plenty of examples, including the ubnt forums, for example:

This post will be updated.

Topics to include:

  • Any steps required to get UniFi controller working on a Rapsberry Pi 3 model B
  • Adopting APs that are joined to an existing controller


lighttpd 1.4 + php 5.4 + drupal clean urls

Here’s what I’m using for drupal powered by lighttpd 1.4 & php-fpm 5.4 :

        ### shorten /files, /themes
        ### 2012-01-30 - randall
        ### %0 = entire hostname
        ### %1 = prefix of *.*
        url.rewrite-once = ( "^/files/(.*)$" => "/sites/%0/files/$1")
                             ###"^/themes/(.*)$" => "/sites/%0/themes/$1")

        ### Deny access to backup_migrate module dumps
        $HTTP["url"] =~ "^(\/sites\/(.*)\/files\/backup_migrate\/)" {
            url.access-deny = ("")

        ### clean urls for >= lighttpd 1.4.24
        ### 2012-01-05 - randall - fix for drupal 7 with image cache
        url.rewrite-if-not-file = (
            "^\/([^\?]*)\?(.*)$" => "/index.php?q=$1&$2",
            "^\/(.*)$" => "/index.php?q=$1"

        ### "Fix" for Drupal SA-2006-006 (but let imagecache work)
        $HTTP["url"] =~ "^(\/sites\/(.*)\/files\/)" {
            $HTTP["url"] !~ "^(\/sites\/(.*)\/files\/imagecache\/)" {
                fastcgi.server = ()



end of snippet.

Updates to the mobile wind graphs

Some updates to the mobile wind graphs:

  • Added current temperature
  • Added more detailed meter description
  • Increased vertical height of daily graph
  • Open-sourcing the code on github


Improve speed and availability of Safari on Snow Leopard

I grew tired of staring at the beach ball every morning so I decided to do something about it. I long thought the culprit to be flash based content; through my research to disable Flash I discovered the ClickToFlash Safari plug-in which gives you the option to view the flash based content on demand rather than having it pre-loaded. Some websites have multiple flash-based elements which can be taxing on memory and CPU cycles, particularly with the multi-tabbed web browsing I do. I did not want to disable all plug-ins as I like some of the Safari 5 extensions, that coupled with the fact that flash-based video is widely used.

fixing “perl: warning: Setting locale failed” error

for ubuntu 8.04LTS through 10.04LTS you can resolve the problem which creates the error message:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = "en_US:en",
 LC_ALL = (unset),
 LANG = "en_US"
 are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

with the following two commands:

% sudo locale-gen fr_FR fr_FR.UTF-8 en_US en_US.UTF-8
% sudo dpkg-reconfigure locales

« Previous Entries

Powered by WordPress | Designed by Elegant Themes