Report Class for LaTeX: Highly modified

Finally, posting it here. Went through lot troubles to get the stuff in place. As I really did not understand what each clause in the class file meant, most of the time was spend messing up the page layout and features. Thankful to Department of Communication Technology, Aalborg University, for sharing the IES report class, which I obtained from here.

Download the modified report class from here and the TeX file from here.

The TeX file contains references to a bibliography too. You could easily try and hack.

Setting up Subversion Repository

Took some time to sneak into the labs and tried hacking around to setup subversion locally. The entire lab runs on RHEL 4. In a few minutes, we got the repository ready and transactions possible over different clients.

* Download the SVN Package from here
* If you are on a Redhat derivative run rpm -ivh package_name.rpm as root
* This should have installed svnadmin and the required client packages.
* To setup a repository you need to run

svnadmin create full_path_to_repository

* Now, you need to configure the EDITOR environment variable so that svn tools can create the log files.

Edit /etc/bashrc and add the following to the end of the file EDITOR = /usr/bin/vim for setting the EDITOR environment variable for all users on the server.

* Save and run the following in a terminal source /etc/bashrc to effect the change in the current terminal session. From the next login onwards (or in a new tab/ window of the terminal emulator like konsole or gnome-terminal) the value of EDITOR will be set automatically (no need to explicitly source it).
* Before you start to create files in the project, you need to get a working copy by:

svn co full_path_to_repository

Above step would create a working copy in the present working directory. cd to the checked out directory.

Now you can create files using your favorite editor or by other means.

* Use svn ci file_name to commit the changes.

These following steps would help you to configure the SVN server so that the clients can checkout and update the repository.

* cd to the repository directory.

* Inside the conf directory, edit the file svnserve.conf and add the following:

[general]
anon-access = read
auth-access = write
password-db = passwd
realm = My First Repository

* Now create a file name passwd in the same directory (conf) and add the following into it:

[users]
USERNAME = PASSWORD

* Now run svnserve -d from inside the repository directory.

* This runs svnserve as a standalone daemon.
* There is another option -i to run it through the inetd super-server (or its variants like xinetd) .

You are good to go!

svn Client Installation

* Install the same package you downloaded in the client machines.

* Connect and list the files in the svn serve using svn ls svn://[ip of the server]/[full path to the repository].

* Check out the code using svn co –username [username] –password [password] svn://[ip of the server]/[full path to the repository].

You are done!

You may still want the manual to understand how things are done.  Download it here.

HP LaserJet P1505 on Ubuntu Karmic

We recently bought a HP LaserJet P1505 printer and I was eager to try it out in my Ubuntu Machine. When I plugged in, a simple pop-up came in asking for my permission to download the hp plugin for the printer. I hit the yes button and, there you go the printer is ready. But neither of the prints came out. I was confused and ran a google search. After some hacks I got it working.

Follow these steps :

  1. Remove the currently installed foo2xqx driver from your ubuntu synaptic manager
  2. Do:  wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
  3. Unpack:  tar zxf foo2zjs.tar.gz
  4. cd foo2zjs
  5. Compile: run make
  6. Get extra device dependent driver ./getweb P1505
  7. Install: sudo make install
  8. Restart cups: sudo make cups
  9. Plugin the printer to USB and turn it ON.
  10. You are now good to go.

Getting Pidgin voice video working on Karmic

Recently, I upgraded to the much awaited Karmic Koala from Jaunty. Experience with Jaunty was not so sweet. Anyways, thought to give a hand on Koala. Upgrade went successful. The only problem remaining was that I could not start voice or video chat using Pidgin. Koala comes with Empathy as the default client. But I never wanted to use that.
When ever I tried to start a voice chat I got the following error:

Error creating session: Could not create the rtp muxer element
Error adding stream.

This is just a trouble due to permissions to gstreamer and Farsight2. Follow the steps to get it right.

  1. Fire a terminal.
  2. Change directory to your home folder.
  3. Now type “mv .gstreamer .gstreamer.bak
  4. and “mv .farsight2 .farsight2.bak

We are moving the folders in order to be safe rather than deleting them, in case we need to restore them.