Archive for the ‘Linux’ Category

Root Nexus One 2.3.6

December 17, 2011

Used this “DooMLoRD Easy Rooting Toolkit v3.0 (using zergRush exploit)” (Windows) and rooted my phone in less than 3 minutes. Also downloaded this  ROM Toolbox .

In the future if I find more time and energy, I may play around with some custom ROMs like CyanogenMod. I would probably be most interested in  getting them running on an emulator; It would be nice if someone put the compiled system.img files somewhere so that I don’t need to build from the source;).

Setting Windows XP as default boot entry on Ubuntu

January 18, 2010

Scenario: I installed Ubuntu (9.04) under Windows XP Professional and found out the default boot entry was Ubuntu and I wanted it to be WinXP instead.


  1. Boot to Ubuntu.
  2. cd /boot/grub
  3. sudo pico menu.1st
  4. If Windows XP had the following entry: “…savedefault…”, then add the following line to menu.1st:
    default saved
  5. Save menu.1st and reboot.

See: info grub or GNU GRUB Manual 0.97

Uninstall Adobe AIR application in Linux/Ubuntu

September 11, 2009

I am talking about AIR 1.5.2 installer and Ubuntu 9.04 (cat /etc/lsb-release to find out your Ubuntu version).

Simple run the installation package file (*.air, which is basically an zip file) again. If you don’t know where it is (and presumably still in your machine), go to “Applications->Accessories->Adobe AIR Application Installer”, which opens the most recently installed AIR package (*.air), then click “Uninstall”.

Recursively chmod directories only

July 25, 2009


find . -type d -exec chmod 755 {} \;

This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only.

Similarly, the following will chmod all files only (and ignore the directories):

find . -type f -exec chmod 644 {} \;

apt-get through proxy

July 21, 2009

$ export http_proxy=http://myuname:mypass@myproxy:myport

$ sudo apt-get update

Understanding Linux file permissions

July 17, 2009

Here. By Mayank Sarup.

What do “read”/”write”/”execute” mean?

r – Read permission. Whether the file may be read. In the case of a
directory, this would mean the ability to list the contents of the

w – Write permission. Whether the file may be written to or modified. For
a directory, this defines whether you can make any changes to the contents
of the directory. If write permission is not set then you will not be able
to delete, rename or create a file.

x – Execute permission. Whether the file may be executed. In the case of a
directory, this attribute decides whether you have permission to enter,
run a search through that directory or execute some program from that

Examples of and related commands

chmod u-x,g+w,o+rw somefile

chmod xyz filename

(r = 4; w = 2; x = 1)

chown new-owner somefile

chgrp new-grp somefile