Friday, September 30, 2011

TTYtter Notification using LibNotify in Ubuntu Linux

Probably you already read my another blogpost about ttytter. This one is additional information on how to enabling popup notifications (like Growl in Mac OS) . According to my previous blogpost, you can run ttytter by executing this command:
# ./ttytter
And, if in any case, you missed it, then you just need to go to FloodGap website, scroll down a little bit, then under the "Download and change-log" section: right click and save file as 'ttytter' (without extension).



Open terminal, go to the directory where you keep the 'ttytter' file and I'm going to improve that a little bit by moving ttytter file to /usr/local/bin:
# sudo mv ttytter /usr/local/bin


Installing notification system
In order to be able to receive a popup notification, you must installing several package from Ubuntu repositories:
1. Installing git-core and libgtk2-perl-notify package
$ sudo apt-get install git-core libgtk2-notify-perl
2. Make sure you in your home directory by typing:
$ cd
3. Then do these steps:
$ git clone http://github.com/colindean/ttytter-libnotifyperl.git
$ sudo apt-get source libnotify-bin
$ sudo apt-get install gtk-doc-tools
$ sudo apt-get build-dep libnotify
4. Download this patch
5. And do these steps:
$ cd libnotify-0.4.5/ (or whatever version/ directory name you have there, according to version downloaded)
$ patch -p0 < ../notify-send-support_body_from_file.patch
$ ./autogen.sh
$ make
$ sudo make install
After all done, you need to go here to create your own .ttytterrc file and put it in your home directory. That's it. Credit goes to stormsdragon. Enjoy! :)

3 comments:

  1. Great to see people using my ttytter-libnotifyperl extension.

    Note that the patch to libnotify should not be required. I've never had to patch it to it to work on Ubuntu, and this extension has existed since ~Ubuntu 10.04. Other distros may be different.

    If you encounter any bugs, please do let me know.

    ReplyDelete
  2. Also, if you just want the notifications, it might be easier to do this:

    wget https://raw.github.com/colindean/ttytter-libnotifyperl/master/libnotifyperl.pl

    And build your extensions list using stormdragon's tool. There's no need to clone the git repo if you're not making any changes.

    ReplyDelete
  3. Hi,

    Thanks for stopping by at my blog. It's an honour that the creator of ttytter-libnotifyperl is visiting and leave a comment :) works great so far.

    Yours is way much easier. Thank you for the tips.

    ReplyDelete

Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)