Monday, June 11, 2012

ThinkUp on Raspberry Pi

Tonight I installed the cool social networking monitoring tool ThikUp on my new Raspberry Pi with the lastest debian code drop.


  1. Downloaded the new (11-Jun-2012) test Debian/Wheezy image as announced on http://www.raspberrypi.org/phpBB3/viewtopic.php?f=50&t=8071

  2. Since I'm using a new 4GB MMC card and the image was built for 2GB, ran "sudo rasp_config" to resize the disk and bias memory toward SoC instead of the video card. Rebooted. Realized it didn't reboot, pull power and boot




  3. 3) I run a a local apt-proxy to save bandwidth, so created /etc/apt/apt.conf that contains:

    Acquire::http::Proxy "http://192.168.2.109:3142";




  4. 4) Update the apt-cache:

    sudo apt-get update



  5. Install useful bits:

    sudo apt-get install emacs screen mysql-server php5 php5-curl php5-gd php5-mysql

    This installs ~61M of new packages and pulls in a suitable apache server.


  6. Now time to install thinkup:

    sudo -i
    cd /var/www/
    unzip ~pi/thinkup_1.0.7.zip
    chown -R www-data /var/www/thinkup/data/
    sudo touch /var/www/thinkup/config.inc.php
    sudo chown www-data /var/www/thinkup/config.inc.php




  7. point a browser to http://192.168.2.120/thinkup/install


  8. Since I didn't bother to setup outbound email, need to manually
    update the thinkup table. See
    http://thinkupapp.com/docs/troubleshoot/common/advanced/directdb.html

    mysql -u root -p
    mysql> use thinkup;
    mysql> select id,full_name, is_activated from tu_owners;
    +----+-------------+--------------+
    | id | full_name | is_activated |
    +----+-------------+--------------+
    | 1 | Marc Nozell | 0 |
    +----+-------------+--------------+

    1 row in set (0.00 sec)

    mysql> update tu_owners set is_activated=1 where id=1;
    mysql> commit;
    mysql> exit;




  9. Point a browser to http://192.168.2.120/thinkup and setup
    connections to your favorite social media sites.