How to install Adobe Air and TweetDeck on Ubuntu 10.10 64Bit

Short tutorial on how to install Adobe Air 2.x and TweetDeck on a 64bit Ubuntu Linux.

  1. Go to http://get.adobe.com/de/air/ and grab the latest 32bit version of Adobe Air, which is 2.5.1 when writing this. Select the .bin version in the dropdown below.
  2. Grab a copy of getlibs from here. (local copy)
  3. Use GDebi to install the .deb or type in a terminal

    sudo dpkg -i getlibs-all.deb

  4. Run getlibs and download the required libraries

    sudo getlibs -l libnss3.so.1d libnssutil3.so.1d libsmime3.so.1d libssl3.so.1d \
    libnspr4.so.0d  libplc4.so.0d  libplds4.so.0d libgnome-keyring.so libgnome-keyring.so.0 \
    libgnome-keyring.so.0.1.1

  5. Run ldconfig to update the necessary links to the shared libraries

    sudo ldconfig

  6. Make the downloaded Adobe Air Installer executable and install Adobe Air

    sudo chmod +x AdobeAIRInstaller.bin
    sudo ./AdobeAIRInstaller.bin

Now the installation of TweetDeck. The default installation path for TweetDeck is in /opt, which suits my preferences. Since the installer needs the right to write to the installation directory (really! :) ), I create a new subfolder and change the ownership of it my user.

  1. Create directory and change ownership

    sudo mkdir /opt/TweetDeck
    sudo chown $USER /opt/TweetDeck

  2. Go to http://www.tweetdeck.com/desktop/, click the “Install TweetDeck” Button and change the installation path to /opt/TweetDeck. If you don’t have flash installed/enabled, download the .air file from here.
  3. If you’re not running Gnome or KDE, take a look at this small script to make TweetDeck start without error. When you followed this tutorial, you have to make a small change to the script. Replace the line

    DIRNAME=”/opt/TweetDeck/bin”

    with

    DIRNAME=”/opt/TweetDeck/TweetDeck/bin”

  4. Follow me in your fresh installed TweetDeck on 64Bit Ubuntu. :)

Ubuntu 10.10 + Pidgin (libpurple) + ICQ (Oscar) = Fail!

Auch wenn ich der Meinung bin, man sollte lieber das Jabber Protokoll für Instant Messenger nutzen, wie beispielsweise Google es bei Google Talk macht, ist ICQ wohl immer noch in Deutschland am weitesten verbreitet. Gründe für den Wechsel findet man z.B. bei Wikipedia.

Gelegentlich kommt es vor, dass Änderungen am ICQ Protokoll oder an der Infrastruktur vorgenommen werden und sich alternative Clients kurzzeitig nicht anmelden können. Genau das ist wohl dieses Wochenende passiert. Da laut offizieller Pidgin homepage nur Sicherheitsupdates außerhalb des Releasezyklus von Ubuntu angeboten werden, gibt es wohl erstmal keine automatisierte Lösung des Problems. In diversen Foren gibt es mittlerweile verschiedene Lösungen, wobei das Deaktivieren von SSL die einfachste, allerdings auch “unschönste” Lösung ist, da somit eure Logindaten unverschlüsselt übertragen werden. Am sinnvollsten erscheint mir da die Installation des pidgin ppa und Aktualisierung auf das neuste Release.

Vorgehensweise:

  • Installer paket herunterladen: Pidgin PPA Package
  • Rechtsklick auf die Datei und “Mit GDebi Paket-Installationsprogramm öffnen” auswählen
  • Rechts auf den Button “Paket installieren” klicken
  • Nach der Installation die Aktualisierungsverwaltung öffnen (Unter xfce: Startmenü -> System)
  • Auf Aktualisierungen überprüfen und anschließend installieren
  • Pidgin neustarten und die Einstellungen für das ICQ Konto öffnen (Konten -> ICQ -> Konto bearbeiten)
  • Auf dem Reiter Erweitert den Server auf slogin.icq.com ändern und ein Häkchen bei “Benutze SSL” und “clientLogin benutzen” setzen

Danach sollte die Anmeldung am ICQ Server auch über SSL wieder funktionieren. Außerdem bekommt ihr durch die PPA Installation jetzt immer die neuste Version von Pidgin bequem über die Aktualisierungsverwaltung.

How to use the Twitter API with PHP and OAuth (single user)

Since a few months, applications have to use OAuth to authenticate a Twitter account using the REST API. If you want to write a php application for just one account (like your own small webclient), you don’t have to go the “ping-pong” way of authentication. You only need this to authenticate different users and as we only need access for one single user, it is possible to simplify the oauth authentication step. Nevertheless I find it much more comfortable to you a finished library. In this example we will use Abraham Williams’ awesome TwitterOAuth library for PHP, which requires a minimum PHP version of 5.2.x, cURL and OpenSSL.

First you have to visit http://dev.twitter.com/apps an register a new application. Choose “Browser” as application type and set the default access level to “Read & Write”. You will need the printed “Consumer key” and “Consumer secret” in the next step. Also you will need the “Access Token (oauth_token)” and “Access Token Secret (oauth_token_secret)”, which can be found under “My Access Token” in the right menu.

Include the library in your PHP script. Change the path accordingly.

require_once(‘twitteroauth/twitteroauth.php’);

Open your config file and define the 4 needed keys like:

define(‘CONSUMER_KEY’, ‘aAaAaAaAaAaAaAaAaAaA’);
define(‘CONSUMER_SECRET’, ‘bBbBbBbBbBbBbBbBbBbB’);
define(‘OAUTH_TOKEN’, ‘cCcCcCcCcCcCcCcCcCcC’);
define(‘OAUTH_TOKEN_SECRET’, ‘dDdDdDdDdDdDdDdDdDdD’);

To connect to Twitter, add in your PHP script:

$twitter = new TwitterOAuth (CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET);

You can now use the $twitter object to interact with the Twitter API. For example fetch your user information or post an update.

$twitter->get(‘account/verify_credentials’);
$twitter->post(“statuses/update”, array(“status’”=> “First tweet using my own Twitter app!”));

Check out the TwitterOAuth documentation for more options and the Twitter documentation for available ressources.

I hope this small guide helps you getting started and I would love to see some of your results. Questions? Comments!