Archive for June, 2010

How To: Install KDE 4.5 beta on kubuntu 10.04

Open up a terminal session and type the following:

 sudo apt-add-repository ppa:kubuntu-ppa/beta
 sudo apt-get update
 sudo apt-get dist-upgrade

Remember this is KDE 4.5 BETA. Do NOT do this on a production system.

Check Gmail From the Command Line

Gmail provides the ability to view your new/unread email as an ATOM feed via https://mail.google.com/mail/feed/atom.  With cURL and some Perl we can check gmail from the Linux command line.

Just change the email address to your email address and when your hit enter you will be prompted for your gmail password.

#!/bin/bash
curl -u motersho@gmail.com --silent "https://mail.google.com/mail/feed/atom" |
 perl -ne \
  '
    print "SUBJECT: $1 \n" if /<title>(.+?)<\/title>/;
    print "RECEIVED $1 \n" if /<issued>(.+?)<\/issued>/;
    print "FROM: $1 " if /<name>(.+?)<\/name>/;
    print "($1)\n\n" if /<email>(.+?)<\/email>/;
  '