Skip to main content

[Programming] XMPP and Office Guru (Part 1)

I heard an idea one day.. They wanted some kind of 'online board' where everyone is duly accounted for. May it be that someone is on a meeting, or went out for coffee or whatever. Another thing they wanted was they wanted to have an in house chat application. I squirmed at the thought of building one just for that sole purpose when there are already gajillions of chat programs out there, open source, free, robust and would most likely work great. I dont see the point in reinventing the wheel if there is already a Michelin tire available up for grabs. Not to mention that it would easily integrate with any existing system.

To those who dont know, Google made a half baked embodiement of their intelligent search engine in a form of a chat bot.. Aka, Google Guru. Feel free to add him (or her) to your GChat ( and ask him (or her) simple things like "temperature manila" .. So why not create something like Google Guru, like Office Guru or something?

Please dont ask it the meaning of life, we already tried. Im wondering, if in the future, this guy would pass the Turing test.
So what Office Guru does is that, you add Office Guru to your chat application and tell it something if ever you plan on leaving your desk. For example "meeting at Coffee Bean" or "went to pee" or "on sick leave" then Office Guru would post that to the 'online board' where everyone could see and know where in the world are you.

So going to the technical side, you would need a server which has and XMPP server application. Google Chat uses the XMPP protocol so which, in theory you could use it to be able to have your Google Chat account communicate with the XMPP server.

I was looking for a quick and dirty solution for me to deploy to my Ubuntu home server, so I started Googling XMPP server and Ubuntu. I found several articles which seems to be a good lead

Well looking at the Google Chat api, it seems to be in beta, and is currently in labs.

Im not quite sure if im doing the right approach. What i actually want is:

My sever (running XMPP client/server or whatever, logged in to my Office Guru account) would accept messages from anyone and parse that message and then save that to a database.. which a webpage would look into that database to see the latest updates/messages from the user.

Apparently, looking a bit further, Google App Engine supports XMPP service.. This is exactly what I want. But unfortunately, Im really not good in speaking Java or Python.. I kinda wish that this setup could be emulated in my local server.

Good read though.

Ok. So I think I need to read more. Im gonna try installing an XMPP server and see the functionality from there.

Will update again for progress.

ps: I was kinda thinking of naming my guru, PogzBot .. Pretty neat huh?

pps: Im thinking of extending this by having an SMS gateway where you could text PogzBot and.. wait.. scratch that thought.. If I have an SMS gateway like Gnokii, it could directly write to the database.. I would just need a proper identifier which could link a certain cellphone number to an email account. No points for being unecessarily creative. Haha.

-- 10:47PM Logs Start --

ok let me try looking for the package if it exists
apt-cache search openfire 
seems like it returned empty. checked openfire website.. well there is a consolation.. it has some deb packages, which is probably compatible with my ubuntu server. well, lets try it.


clicked on linux platform. copy the deb link and issued a
command on the server to fetch the file.

why is it taking so long to resolve the domain? anyway, there it is, downloaded. great. now lets install the package ..
dpkg -i openfire_3.7.0_all.deb
well that was pretty much stupid, it downloaded it as
what? ok let me rename that..
mv download-landing.jsp?file=openfire%2Fopenfire_3.7.0_all.deb openfire_3.7.0_all.deb
lets try the previous command

ok still got an error
root@odin:/home/odin# dpkg -i openfire_3.7.0_all.deb
dpkg-deb: `openfire_3.7.0_all.deb' is not a debian format archive
dpkg: error processing openfire_3.7.0_all.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
not a debian package? are you blind? ok, i think there was a download problem. i tried heading on to the web browser and clicking the link directly.. as suspected, i was thrown into a new page which contained the link 'if the download window does not appear please click here" .. coped the link on the click here hyperlink.. that stuff is more reliable..
now we're talking.

reading through the manual found at

seemed to get me drowsy and sleepy. I was never a fan of reading manuals.

ok as expected, i skipped installing the java part. it threw a dependency error.

root@odin:/home/odin# dpkg -i openfire.deb
Selecting previously deselected package openfire.
dpkg: regarding openfire.deb containing openfire, pre-dependency problem:
 openfire pre-depends on sun-java5-jre | sun-java6-jre
  sun-java5-jre is not installed.
  sun-java6-jre is not installed.
dpkg: error processing openfire.deb (--install):
 pre-dependency problem - not installing openfire
Errors were encountered while processing:
I ran a quick apt

apt-get install sun-java6-jre
but for some reason, it says that its unavailable. what the? seriously. 

ok again, because i was skipping the manual, i skipped editing the repository to enable multiverse.
nano /etc/apt/sources.list
ran an apt-get update and apt-get upgrade after. 

still cant find the packages. oh come on. 

i think ill sleep for a while.

-- 10:47PM Logs End--


Post a Comment

Popular posts from this blog

Moving to a New Linux Web Based Torrent Client

For years, I have been using TorrentFlux (url here) as my primary torrent client situated in my Ubuntu download server. But as time went on, the developers completely abandoned the development of TorrentFlux which led to several forks which I think is still insufficient for my needs. Main GUI of TorrentFlux Ive checked several options which runs on a GUI-less environment. Since my Ubuntu server is just running on command line to save precious memory, I needed something bare, simple and is packed with features. Installing uTorrent Server is pretty straight forward. Download. Uncompress. Run. This is better than the approach of TorrentFlux which you need to setup LAMP server and create a database. More often than not, it happens to me that some of the data in the DB gets corrupted. I normally just reinstall the whole thing again. Main GUI of uTorrent Server To further elaborate on the setup process, I've gotten an excerpt from this thread which, quite simply discusses ho

YouTube Movies

I heard that Google is launching movies through YouTube but I didn't realize that it was already available. Head on to: for your fix on documentaries, bunch of horror flicks, cartoons, Bollywood, Bruce Lee and Jackie Chan movies. Now, don't you think that those media boxes with YouTube support are now worth the investment?

OBS Black/Frozen Screen Issue

Recently I went back to streaming and tried to improve my setup and use Streamlabs OBS  (SLOBS), a variant of the popular Open Broadcaster Software (OBS) which includes a really nice app for iOS and Android which lets you control you broadcast. My only issue about SLOBS (and/or OBS) in general is when you stream some games, its a hit or miss experience. Most of the reported issues include a black screen (but with audio) or in my experience, frozen frames as I transition from one part of a game to another. I had the time to do some trial and error testing yesterday and listed below is the pre-requisites and some quick summary of my setup. Take note of the terminologies used throughout this post. Terminologies SLOBS/OBS - Streaming software, liberally used interchangeably in this post.  Source - This is where an input of OBS is coming from. This can be a webcam, computer screen, full screen application, a webpage, an image, etc. Display Capture - Captures your whole screen re