If you are working in dual boot mode on Ubuntu with Windows, it might be quite tempting to use Windows drive as the shared drive to work on the same thing so that you can switch between OS based on your convenience. If you are working on a source code, you definitely would like to do that. However it creates some undesirable situations which are sometimes very hard to debug.
[Read more…] about Working with Ubuntu: Infinitely Recursive Directory Structure on Windows
Ubuntu 9.10: Installing RabbitVCS as Subversion Client
As I am migrating towards Ubuntu, I felt the need of having TortoiseSVN like SVN client here also. Out of the options I searched for, RabbitVCS was the closest towards what I was looking for. However while installing it, I faced some issues. This post consolidates them along with solutions. Some of them had to do with minimal requirements of the installation but the one bugged me the most was an issue in RabbitVCS itself. When I had to restart nautilus (nautilus -q) after RabbitVCS installation , it just didn’t work. After some search I found out the same issue at here. If you apply patch mentioned in yet another related issue, it resolves the problem. After installing, I could use similar features as of TortoiseSVN in Ubuntu too and that was quite cool.
QuickTip: Springsource Tool Suite 2.2.1 on Ubuntu 9.10 – Import doesn’t work
Today while working with latest STS on Ubuntu 9.10 I observed that it simply doesn’t work properly. While importing projects, nothing happened. Later I found out that it has to do with a bug on Eclipse 3.5 for which a workaround is available on Ubuntu and it works fine.
Set the following environment variable before you run STS.
export GDK_NATIVE_WINDOWS=1
Details of the bug are available here.
QuickTip: Postgresql DB Creation on Ubuntu
Recently I resumed working on Ubuntu. While setting up the working environment, I had to setup Postgressql followed by creating a new database and stuff like that. In between I encountered certain problems and correspondingly found solutions also. Through this blog I thought things should be at one place for a newcomer.
From initial installation point of view https://help.ubuntu.com/community/PostgreSQL is a good resource. Though instead of using pgadmin3 I like to use SQuirreL SQL Client.
I had to create a new user which could be used to create a new database. Everything worked except postgres didn’t allow new user to enter into new database. I found a solution at http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user and it worked like a charm.
QuickTip: Running Java with Classpath in Cygwin
If you are running a Java program and your classpath is in UNIX separator style (‘/’ instead of ”), you may be in trouble as java.exe is Windows specific executable which understands Windows separator and not UNIX style separator. To circumvent this issue in your shell script you can use the following:
java -cp `cygpath -wp $CLASSPATH`
instead of
java -cp $CLASSPATH