Configure Ubuntu w/ Static IP

Ubuntu Enterprise 6 seems to install as DHCP out-of-the-box. To change to a static ip, open the file /etc/network/interfaces. It should contain some lines like : auto eth0 iface eth0 inet dhcp Change this to something like : ...

March 8, 2007 · 1 min · Dave Perrett

Installing Trac

Before you do anything, Install Subversion . Install Python : ...

February 19, 2007 · 3 min · Dave Perrett

Svn server w/ Apache

Make sure you have a newish version of libtool $ wget http://ftp.gnu.org/gnu/libtool/libtool-1.5.22.tar.gz $ tar xvzf libtool-1.5.22.tar.gz $ cd libtool-1.5.22 $ ./configure $ make $ make install ...

February 18, 2007 · 3 min · Dave Perrett

Cake actions from the terminal

Edit app/webroot/index.php and change the lines that read like : if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') { } else { $Dispatcher=new Dispatcher(); $Dispatcher->dispatch($url); } to something like : ...

February 7, 2007 · 1 min · Dave Perrett

Rails NameError

If you’re getting NameError (uninitialized constant UnknownAction) using UnknownAction in the ‘rescue_action_in_public’ method, try to use the full reference (::ActionController::UnknownAction) instead of ActionController::UnknownAction. For example : ...

August 20, 2006 · 1 min · Dave Perrett