Compile LibTorrent on OSX

Before you do anything, install darwinports , and then use it to install boost : ...

April 2, 2007 · 1 min · Dave Perrett

Installing MySql/PDO for PHP

I was getting something like this trying to run an application built on the Zend Framework : ...

April 2, 2007 · 1 min · Dave Perrett

Change the SSH login message

To change the message displayed before login, edit /etc/ssh/sshd_config : $ sudo vi /etc/ssh/sshd_config and add (or uncomment) the line Banner /etc/banner ...

March 27, 2007 · 1 min · Dave Perrett

Stop cron emails

Dreamhost sends you an email by default every time you run a cron job. To turn this off, run $ crontab -e and add this line to the top of your cron file: MAILTO=""

March 22, 2007 · 1 min · Dave Perrett

Vi as default crontab editor

Dreamhost sets your default editor to pico. To change it to Vi, add the following line to the .bashrc file in your home directory : export VISUAL="vi"

March 22, 2007 · 1 min · Dave Perrett

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

Install Ubuntu SSH server

Ubuntu Enterprise 6 doesn’t seem to install sshd out-of-the-box. To install : $ sudo apt-get install openssh-server

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