Sunday, October 05, 2008

Setting Up Laconica, an Open Source Twitter

I’ve had a twitter account for more than a year now, I think it would be highly useful to have in the corporate world. The problem with twitter, is that it’s public, and if I wanted to share something about what I’m working on within my company, sometimes I don’t want to share it with people outside the company.

A colleague pointed out Identi.ca as a possible implementation for such a thing.

Setting Up a Laconica Server in 7 Easy Steps

  1. Download an Ubuntu Server VM from Chrysaor.info.
    This is the easiest way to get started. We use vmware at work, and I’ve installed the recently released VM Ware Server 2.0 on my laptop.
  2. Get AMP’d on Linux. The VM referenced above is a minimal install of Ubuntu server. We’ll need to install Apache, MySQL and PHP to finish building out the environment. Here’s a detailed post on how to do it. It basically boils down to running the following: 

    sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin php-pear 
  3. Add WebMin for easy server administration.  A
    Technorati Tags: ,,
  4. gain, this post has the details, although version 1.430 is the latest version of WebMin at this time.

    sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl php5-cgi php5-gd 

    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.340_all.deb

    sudo dpkg -i webmin_1.430_all.deb

    Test WebMin by navigating to https://yourServerIPAddress:10000/
    WebMin
    Test out PHPMyAdmin by navigating to http://YourServerIPAddress/PHPMyAdmin/
    PHPAdmin
  5. Install  Laconica.
    According to the documentation found on the website, you need to download the following tarball, uncompress it, and move it under the apache webserver directory.

    laconica-0.6.0.tar.gz 

    tar -xvzf laconica-0.6.0.tar.gz
    sudo mv laconica-0.6.0 /var/www/laconica
    chgrp www-data /var/www/mublog/avatar
    mysqladmin -u "username" --password="password" create laconica
    mysql -u "username" --password="password" laconica < /var/www/mublog/db/laconica.sql
  6. Copy the config.php.sample in the Laconica directory to config.php.
  7. Edit config.php to set the basic configuration for your system. Also, don’t forget to copy the stoica.ini file to laconica.ini in the classes folder.
  8. Navigate to http://yourServerIPAddress/laconica/ and bask in your glory.
    image

Next Steps

Now that I have a sample server up and running on my laptop, it’s time to see about moving this over to a virtual machine on our test farm.