Saturday, September 25, 2010

Creating a Desktop Launcher for Intelij IDEA

If we use windows operating system, it's really easy to startup Intelij IDEA by just double clicking the shortcut appears on the desktop. But when we are using Linux environment it is not that much easier. We have to open a terminal and change directory to Intelij IDEA location and run the shell script. This process is time wasting and boring. But we can create a Desktop Launcher and open the Intelij IDEA by just double clicking it like we are doing in the windows.

It is really easy to create a Launchers in Ububtu. Follow the steps to create a launcher for start intelij idea.

1. Right click anywhere on the desktop backgroun and click on "Create Launcher..." in the drop down menu.
It will give you the following window,

2. In Name text field give name for the launcher. Then you need to give the command to execute the For that browse to your intelij idea folder and select the file. To make it as executing command type "sh" to the beginning of the command text.

3. Click ok button. It will create a desktop launcher for intelij idea. You just need to double click on that icon to open the idea.

You can read more about the Launchers from following url.

Wednesday, September 22, 2010

How to configure Huwawei E1550 USB modem on Ubuntu 10.04 ?

You need to add following rules file to configure the E1550 USB modem on Ubuntu 10.04.

$vi /etc/udev/rules.d/15-huwawei-155x.rules

ATTRS{idVendor}=="12d1" ,
RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"
Then save the file. That's it.

Brief look into above rules file. For that you need to know what udev means.

The udev provides a dynamic device directory containing only the files for actually presented devices.
Usually udev runs and receives events directly from the kernel if a device is added or removed from the system.
If a udev receives a device event, it matches its configured rules against the available device attributes provided in sysfs to identify the device.
The udev rules are read from the files located in the following locations,
  • default rules directory - /lib/udev/rules.d/
  • custom rules directory - /dev/udev/rules.d/
  • temporary rules directory - /dev/.udev/rules.d/

The rules files are stored and process in lexical order. Files with the same name in /etc/udev/rules.d have higher precedence than the files in /lib/udev/rules.d. This feature can be used to ignore a default rules file if needed.

You can find more information about udev from its man page.
man udev 
Also you can find more information about writing udev rules from here,

Wednesday, September 15, 2010

University Life @ pera

It was 31st August 2010,
It's exactly 4 years and 3 months gone from I have entering to the University.....
I left the loving pera....
It's really hard to imagine we are no more belongs to Uni life...
But those memories will last forever...!!!