Thursday, November 27, 2008

Easy auto mounting NTFS partitions in ubuntu

If you have a dual boot system with Linux and Windows, in all probability you would want your NTFS drives to appear in Linux as well.
You can always edit your /etc/fstab to auto-mount your NTFS drives in Linux..
If you go through the file, you will notice that is is fairly simple to understand the structure and do what this post will describe further (you will need ntfs-3g installed before you can do this too).
It is as simple as adding this line :

/dev/sdax /media/disk1 ntfs-3g defaults,locale=[your locale] 0 0


Here,
/dev/sdax - is the partition to be mounted
/media/disk1 - is the mount point. You can access the files in the partition through this directory
'ntfs-3g' - describes the filesystem
defaults - Uses the default options that are rw, suid, dev, exec, auto, nouser, and async. ( A google serach for the other options might help :) )
locale - the default locale of your system. Can be found by executing 'locale' at the terminal.
The last two numbers stand for 'dump' and 'fsck'.
A 0 in the 'dump' column means the partition will not be backed up.
0 in the 'fsck' column tells the fsck to ignore checking the filesystem, else the number in this column would indicate the order in which the filesystems are checked.

You can do this for each of your NTFS partitions...
However, there is always a possibility of non-geeks ( euphemism :P ... no offence :) ) messing up their fstab...

There is however a clever tool available which will mount your NTFS drives for you at startup, without you having to manually mount them ( a double-click isn't that hard, but then again, you wouldn't even need to do that :) )

In ubuntu,
go to Application | Add/Remove...
Search for 'ntfs configuration tool'
and install it...
unmount any ntfs drives that you may have mounted at this point...
Then, go to Applications | Sytems Tools | NTFS Configuration Tools

At this point you should be presented with a screen asking you to assign mountpoints... just key in the name of the directory where you want the drive mounted. The directory need not exist, it will be created later in the /media directory
Then, after you are done here, make sure you have both the options ticked on the next screen and you are done!

Keeping this post small as there is really nothing much to write...
Will try to make a better one tomorrow...till then...
Cheers! :)

Monday, August 25, 2008

Grub Error 17: Cannot mount selected partition ! --> The Solution!

I recently had the misfortune of having to re-install Windows XP on my dual-boot PC. After the Windows installation I repaired GRUB and tried booting into my Ubuntu Installation but had this error pop on to the screen :

Error 17: Cannot mount selected partition
Press any key to continue ...


This happens because sometimes Windows can do funny things with your computer without you knowing!!

Here's a way to make everything normal -

First, at the GRUB screen, press 'c' to get into the GRUB CLI.
At the CLI, type
find /vmlinuz

You will get an output similar to
(hdx,y)

Note x and y

Next, insert your LiveCD and boot from the CD

Open a terminal, mount your "root" ( / ) of your Linux installation somewhere
and open the file :
/boot/grub/menu.lst

with admin privileges (" sudo" if you are working with Ubuntu )

Go to the section where u see something similar to :

## ## End Default Options ##

title Ubuntu 8.04.1, kernel 2.6.24-21-generic
root (hdx1,y1)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=ef9d3ff9-0f14-4eab-879b-11c517ab26c1 ro splash quiet
initrd /boot/initrd.img-2.6.24-21-generic
quiet


Replace the x1,y1 with the x,y pair we just found above, save the file and you are done! :)

(Note : "title" can be different and depends on your distro. That is not the important part, the "root" part is! :) )

Now you can reboot your system and happily boot into your Linux installation :)

Friday, August 22, 2008

Invisible Status in Gtalk using Desktop clients

It's been a long time since Google added an "invisible" status option in their Gmail chat box. However, no invisibility option is available through the desktop client Gtalk.

Read on ;)

Since, most of my blog is dedicated to Linux, let's start with Linux clients...

Pidgin, which is currently the default IM program in Gnome, supports this tweak.
First, through -->Tools|Plugins enable the XMPP console.
Next, access the console through Tools|XMPP console.
and paste the following code


{{{
<presence>
<priority>5</priority>
</presence>
<presence type="unavailable">
<priority>5</priority>
</presence>
}}}

Voila! You are now invisible through a desktop client!
You can change back to other statuses the usual way...

XMPP protocol is basically XML code , which you can easily make out.

The only problem is that every time you need to go invisible, you have to go through the process of pasting the XML code again. I don't know if this feature will be integrated in future versions of Pidgin, I sure wish they do!

Now coming to Windows, Pidgin for windows doesn't come with the XMPP console. You need to build pidgin from source for it to appear. The same procedure for invisibility can then be followed.

EDIT : Newer versions of Pidgin for Windows now include an XMPP console. Good news for those with Windows :)

Psi is another IM client for Windows which can support "invisibility".
After installing Psi, add an ID, enter any name for account.

Jabber ID : your gtalk ID
Password : your gtalk password

In the Connections tab, tick all options and enter the host as : talk.google.com
You are done now.
To go Invisible, right-click on the name of the account and select the XML console, paste the code and you are invisible!

However, I really wish that Google would add and Invisibility option to their desktop client just like Yahoo!. But, first things first and I think they should really release a Gtalk client for Linux, although Pidgin isn't doing a bad job at all!

Signing Off!
Cheers! And Happy IMing! :)


Wednesday, August 13, 2008

Installing New Experimental Plugins for Compiz

A blog post after quite a few days (months)...Ouch!! I'm stiff :P

Three new experimental plugins for compiz-fusion have recently been released...

  • Atlantis2: Adds an aquarium to the dekstop with customizable fish.
  • Freewins: Lets you rotate and resize windows in 3D.
  • Screensaver: Let's you rotate the cube or make the windows fly as a screensaver.
The Atlantis2 Plugin running on my desktop:



Here's a screenshot for screensaver with the "flying windows" animation. Although, somehow the animation isn't clean and there are a few graphic glitches.


And my personal favourite - screensaver with "rotating cube" animation ... very smooth, very clean, I can go idle just to watch this thing rotate away in it's full glory ;)


I will post a screenshot for the Freewins plugin as soon as I figure out how it works :) I'm kinda "bizzy" watching the cube rotate :D.

All three are available through a "git" download

To install these plugins make sure you have the following packages installed:
  • compiz-bcop
  • compiz-dev
  • build-essential
  • libtool
  • libglu1-mesa-dev
  • libxss-dev
  • libcairo2-dev
  • git-core

In Ubuntu, you can do this using the following command :
sudo apt-get install compiz-bcop compiz-dev build-essential libtool libglu1-mesa-dev libxss-dev libcairo2-dev git-core


Download the plugins from the terminal using the following commands, make a new directory to download these if you want to keep everything neat and clean :)


git clone git://anongit.compiz-fusion.org/users/metastability/atlantis2
git clone git://anongit.compiz-fusion.org/users/warlock/freewins
git clone git://anongit.compiz-fusion.org/users/pafy/screensaver



Each plugin will be downloaded to its individual directory...
go to each directory through the terminal and do
make && make install


Now, you can access the new plugins through System->Preferences->Compiz Config Settings Manager..

Cheers! :)

Friday, May 30, 2008

Spread Firefox! The Firefox Download Day 2008

Pledge to get Firefox 3 during Download Day to set the Guinness World Record for Most Software Downloaded in 24 Hours.

HELP FIREFOX SET A RECORD - http://www.spreadfirefox.com/en-US/worldrecord/

Think Free...Think FOSS....

Monday, March 31, 2008

Mac, Vista Pwned !! Linux Lives On !!

The PWN to OWN contest at the CanSecWest security conference in Vancouver has showed why Linux is more reliable .. read on ...

Famed iPhone hacker Charlie Miller showed the MacBook Air on display who its father really was. Apparently, Mr. Miller visited a website which contained his exploit code (presumably via a crossover cable connected to a nearby MacBook), which then allowed him to seize control of the computer. Thus, the MacBook Air was compromised within 2 minutes flat of the conference commencing !! It was Safari that fell victim to the hack !!
Mac Pwned !!

Shane Macauley of Security Objectives will be receiving a Fujitsu U810 with Vista Ultimate SP1. He managed to compromise the computer after he installed the latest version of Adobe Flash. He received assistance from his friends Derek Callaway and Alexander Sotirov. The zero-day vulnerability in Adobe Flash that Shane exploited has not been made public, but rather reported to Adobe. No other information will be provided until the flaw has been remedied.
Windows Vista with SP1 Pwned !!


The only notebook to remain unhacked at the end of the competition was the Sony VAIO running on Ubuntu 7.10 Gutsy Gibbon.
Linux remains untouched !!

Linux again shows why it is more famed as a more reliable OS than its contemporaries ( read Mac and Windows ) !!

Cheers !!

Monday, March 24, 2008

Setting up graphics on DevC++

Basically u can use the BGI library only with Turbo C/C++

Find out HERE on Amod's blog how to use the BGI libraries with DevC ++
You may also try out Quincy 2005 which comes with built in equivalent of the BGI libraries !

Cheers !!