jump to navigation

Eclipse Europa is Comming June 23, 2007

Posted by sandakith in Eclipse.
add a comment

The Next Total Eclipse


Presentation on API Design by Joshua Bloch June 15, 2007

Posted by sandakith in Open Source.
add a comment

I was fascinated by the examples given in the presentation mostly on JAVA APIs


Ubuntu.. Startup being slow with fsck on vfat June 5, 2007

Posted by sandakith in linux, Open Source.

My Ubuntu bootup is really really slow, some reasons are clearly visible.. fsck might be one of the causes.

dosfsck which is called via fsck everytime you boot takes quite a bit of time and slows down the boot process dramatically.

Searching the web I found that you can disable the fsck check by changing the entry “1” (checks file system everytime) to “0”

So, your fstab entry for vfat partitions would look something like this,

UUID=301C-1A1D /media/hda1 vfat defaults,utf8,umask=007,gid=46 0 0

Ubuntu.. More Control June 5, 2007

Posted by sandakith in linux, Open Source.
add a comment

Here’s a good one for people who’ve been using Ubuntu for a while and now want to take more control over their system in terms of executing their own scripts at the startup ( Ex : JDK debug speeding patch script)

To make a script startup on boot: First copy the script to /etc/init.d/
`sudo cp MYSCRIPT /etc/init.d/`

Then enable it sudo update-rc.d MYSCRIPT defaults`
…and that’s it.

Simple and very useful Utility also to enable/disable startup scripts:
`sudo apt-get install sysv-rc-conf`
`sudo sysv-rc-conf`
And then you can select/unselect services for each runlevel.

Have Fun.. with more control..

Rebooting Solaris Box June 5, 2007

Posted by sandakith in linux.
add a comment

On solaris box, don’t just type reboot.

That will make the machine hang in init 1 mostly (single user mode)

instead, type the following:

$ shutdown -y -g0 -i6

Birds eye view folder used space, June 2, 2007

Posted by sandakith in linux.
add a comment

Here’s a handy command sequence which you can run anywhere, anytime, so see which directories contain the most amount of data. It’s a really useful way to focus your attention on the biggest users of disk space.

$ du -k . | sort -rn | less

* ‘du -kh .’ means “Show disk usage (in human redable format)  for all directories in current directory”
* ‘sort -rn’ means “Sort in reverse numeric order (largest first)”
* ‘less’ is a handy favourite pager (When overflows output page).

This will give you a list of directory sizes followed by the directory name. The top ones are where you should focus your attention.

New user login with new gnome session June 1, 2007

Posted by sandakith in linux.
add a comment

su –
adduser robocop
passwd robocop

login :robocop
passwd : robocop

export DISPLAY=:1
X :1 &
gnome-session &

the new session will be available on next virtual login

for example on ctl+alt+F9 (X:1)