My Firefox now completely looks like Chrome browser

"Firefox Theme just looks as Chrome Browser"

 

 

 

 

 

 

 

 

 

Yah, that’s my Firefox looking just like Google Chrome Browser! Running on Ubuntu 9.10 Karmic.

Simple – I used, Chromixfox, Total ReChrome to customize my Firefox to look like Chrome browser.

And also, changed the tabMaxWidth value in about:config to 175

Checkout my Firefox Addon Collection – Firefox Addons that I use –

https://addons.mozilla.org/en-US/firefox/collection/e2a5c8ad-c048-eb04-05de-586ce207f773

^ Must have Firefox Add-ons according to me ;)

Posted in Uncategorized | Tagged , , , , , , ,

Repair / Fix Mac HFS+ partition using Ubuntu CD

This post will tell you how to repair / fix Mac HFS+ partition using Ubuntu CD (Live CD or Install CD).

What do you need to do this?
Ubuntu CD (I used Ubuntu 8.10 Desktop Edition Install/Live CD)
Mac
Internet Connection (Wired)

Few days back I had installed Debian 5.0 lenny on my MacBook. Because, I don’t have much hard disk capacity (only 80 GB), I had to delete the Linux partition (waiting for Ubuntu 9.04).  I used BootCamp Utility (in Mac) to delete the Linux partition. It wipes off all the linux data & restores Mac partition (ex: I had 60GB Mac + 20GB Linux, After restore 80GB* Mac).
I was happy that it was restored. But, the partition had errors after restores. I was not able to copy/store the any data if it exceeds 60GB on Mac, it says the Mac startup disk is full. Then I realized that the Mac file system (i.e., HFS+) had errors. Yes, the Ubuntu CD is there to rescue me. Enough story… follow this to proceed…

1. Disable journaling on Mac parition before booting into Ubuntu CD
Use this command on your Mac terminal

  • sudo diskutil disableJournal /dev/disk0s2

where disk0s2 is your Mac partition (use ‘df’ command to find out the root disk name, it should be mounted on ‘/’)

2. Boot from Ubuntu CD
Insert the Ubuntu CD, press ‘C’ on startup to boot from CD.

3. Connect to Internet & Install HFSprogs
After Boot connect to Internet, Yeah! I know the wireless won’t work now. I suggest you to connect from Wired.
I assume that you are connected to Internet now.
Then enable Universe packages using ‘Software Sources’.
Then, Install hfsprogs package

  • sudo apt-get install hfsprogs

    This will enable you to check & repair the HFS+ paritions.

    4. Check & Repair

    You need to do fsck check on your Mac partition. Use fdisk command to find the Mac device.

    abhinay@ubuntu:~$ fdisk -l
    WARNING: GPT (GUID Partition Table) detected on ‘/dev/sda’! The util fdisk doesn’t support GPT. Use GNU Parted.

    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    Device Boot Start End Blocks Id System
    /dev/sda1 1 9730 78150743+ ee GPT

    using fdisk didn’t show the Main Partition of mac, It shows only one partition. The above partition sda1 is the EFI partition (boot partition).
    That means, /dev/sda2 is your Mac partition.

    Perform fsck on sda2

    abhinay@ubuntu:~$ sudo fsck.hfsplus /dev/sda2
    ** /dev/sda2
    ** Checking HFS Plus volume.
    ** Checking Extents Overflow file.
    ** Checking Catalog file.
    ** Checking multi-linked files.
    ** Checking Catalog hierarchy.
    ** Checking Extended Attributes file.
    ** Checking volume bitmap.
    Volume Bit Map needs minor repair
    ** Checking volume information.
    ** Repairing volume.
    ** Rechecking volume.
    ** Checking HFS Plus volume.
    ** Checking Extents Overflow file.
    ** Checking Catalog file.
    ** Checking multi-linked files.
    ** Checking Catalog hierarchy.
    ** Checking Extended Attributes file.
    ** Checking volume bitmap.
    ** Checking volume information.
    ** The volume Macintosh HD was repaired successfully.

    Hurray! It is repaired now…!

    One more last thing you ‘ll have to do.

    5. Enable the journaling on Mac Partition
    use this command on Mac to enable the journal back.

    sudo diskutil enableJournal /dev/disk0s2

    You are done! :)

    **This worked for me!

    Comment me if you have any troubles or suggestions. Thanks for reading my blog!

    Posted in Uncategorized | Tagged , , , , , , , , , , , , , | 18 Comments

    Scrolling in Gmail is slow?

    scrolling up-down in Gmail is so choppy and slow in Linux (Ubuntu?) with Firefox. Looks like this is because of excessive use of Javascript in Gmail. The only alternative that I know is changing the Gmail to Older Version, you can do that so by clicking on the <link> (you can also find this link in your Gmail, at the very bottom line, you’ll find the link to Older Version). I know this is some crappy Idea! :P

    But, I hope that this helps!

    Posted in gmail, Uncategorized | Tagged , , , , , ,

    Convention on “Freedom & Software” – September 21st, 2008

    Dear All,

    We are cordially inviting you to attend the convention on “Freedom & Software”. The convention will be attended by IT Professionals, Academicians, Researchers, Entrepreneurs and Engineering Students.

    Venue:
    Russian Cultural Center
    27, Kasthuri Ranga Road
    Landmark: Near Cathedral Road
    Chennai 600018

    Time: 21st of September at 1600 hours

    Register yourself at http://freedomandsoftware.info

    Posted in convention | Tagged , , , , , , , , , ,

    Deja Vu Sans Condensed is working in Firefox

    It was too annoying that i was not getting Deja Vu Sans Condensed font for firefox itself, whereas this font is working with other applications in Gnome. I was getting Sans font instead in Firefox. After gooooogling (too long) i got a workaround for this.

    Just add this lines to userChrome.css (create a new file if it is not there), create this file in ~/.mozilla/firefox/(profile)/chrome folder.

    * {

    font-family: “Deja Vu Sans Condensed”;

    }

    Before:

    firefox sans screenshot

    Firefox with Sans Font - Looks Ugly

    After:

    firefox deja vu font bug fixed

    Firefox with Deja Vu Font Working - Looks Good

    I love this font :)

    For storyline please read this : http://www.jasonlefkowitz.net/blog1archive/2007/02/howto_pretty_up.html

    Posted in firefox, GNOME, linux, ubuntu, Uncategorized | Tagged , , , , , | 4 Comments

    GNOME with openbox window manager

    Openbox is lightweight window manager. I installed it on my gentoo, i really liked it. Openbox starts in blink of an eye my gentoo.Openbox just takes seconds to install in any distro. It comes around 500 Kb download size. I have been using GNOME environment in Ubuntu. I feel like GNOME is too slow in my system. I installed openbox and used with gnome session. It is really faster than complete GNOME session. You can change the session from the GDM option menu. Select, Openbox with GNOME session. You’ll get gnome panel, nautilus and other gnome apps with faster openbox window manager without losing the most of the gnome look & features. Openbox rocks !!!

    I did,
    sudo aptitude install openbox

    and here is the screenshot for you ;)

    Openbox in Gnome Screenshot - Openbox Rox

    Openbox in Gnome Screenshot - Openbox Rox | Running Urxvt, Scrot, Gnome-panel, Conky, Nautilus, Xcompmgr and some applets

    Posted in gentoo, GNOME, linux, ubuntu | Tagged , , , , , , , , , , | 2 Comments

    you can install gentoo when ubuntu/linux running

    I’m gonna walkthrough the process of installing gentoo on other destro.

    It requires, patients, little bit knowledge about Linux.

    Prepare a partition for Gentoo

    Make a separate partition for gentoo, you can do partition with gnu parted.

    $ sudo parted

    Lets say you have following partition table before you install gentoo,

    (parted) p

    Disk /dev/sda: 80.0GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

    Number  Start   End     Size    File system  Name                  Flags
    1      20.5kB  210MB   210MB   fat32        EFI system partition  boot
    2      2048MB  57.0GB  55.0GB  hfs+         Customer
    3      67.4GB  67.9GB  500MB   linux-swap
    4      67.9GB  80.0GB  12.1GB  ext3

    use print free to print free space also,

    (parted) print free

    Disk /dev/sda: 80.0GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

    Number  Start   End     Size    File system  Name                  Flags
    17.4kB  20.5kB  3.07kB  Free Space
    1      20.5kB  210MB   210MB   fat32        EFI system partition  boot
    210MB   2048MB  1838MB  Free Space
    2      2048MB  57.0GB  55.0GB  hfs+         Customer
    57.0GB  67.4GB  10.4GB  Free Space
    3      67.4GB  67.9GB  500MB   linux-swap
    4      67.9GB  80.0GB  12.1GB  ext3
    80.0GB  80.0GB  950kB   Free Space

    In the my partition table you can observe that i have 10.4GB Free Space starting from 57.0GB to 67.GB.
    (parted) mkpart gentoo 57.0GB 67.4GB

    Where, gentoo is just a parition name, followed by start location and end location of the new partition.

    Now, again have a look at new parition table here,

    (parted) p

    Disk /dev/sda: 80.0GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

    Number  Start   End     Size    File system  Name                  Flags
    1      20.5kB  210MB   210MB   fat32        EFI system partition  boot
    2      2048MB  57.0GB  55.0GB  hfs+         Customer
    5      57.0GB  67.4GB  10.4GB               gentoo
    3      67.4GB  67.9GB  500MB   linux-swap
    4      67.9GB  80.0GB  12.1GB  ext3

    heh, gentoo parition is set.

    Now make a file system (ext3),

    $ sudo mke2fs -j /dev/sda5
    mke2fs 1.40.8 (13-Mar-2008)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    636480 inodes, 2536261 blocks
    126813 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=2600468480
    78 block groups
    32768 blocks per group, 32768 fragments per group
    8160 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

    Writing inode tables: done
    Creating journal (32768 blocks): done
    Writing superblocks and filesystem accounting information: done

    This filesystem will be automatically checked every 35 mounts or
    180 days, whichever comes first.  Use tune2fs -c or -i to override.

    Lets, check with parted if the file system is successfully created.

    $ sudo parted
    GNU Parted 1.7.1
    Using /dev/sda
    Welcome to GNU Parted! Type ‘help’ to view a list of commands.
    (parted) p

    Disk /dev/sda: 80.0GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

    Number  Start   End     Size    File system  Name                  Flags
    1      20.5kB  210MB   210MB   fat32        EFI system partition  boot
    2      2048MB  57.0GB  55.0GB  hfs+         Customer
    5      57.0GB  67.4GB  10.4GB  ext3         gentoo
    3      67.4GB  67.9GB  500MB   linux-swap
    4      67.9GB  80.0GB  12.1GB  ext3

    All set go, my gentoo parition is ready. By the way, you can use Ubuntu’s Swap parition for the same.

    Mount the new gentoo parition,

    $ sudo mkdir /mnt/gentoo

    $ sudo mount /dev/sda5 /mnt/gentoo

    Get Gentoo Stage3 tarball : Using a Stage from the Internet

    $ cd /mnt/gentoo

    You can get Stage3 tarball from here
    
    http://www.gentoo.org/main/en/mirrors.xml
    
    Select nearest server from you. I feel Netherlands is nearest to India. So, i got from here http://mirror.muntinternet.net/pub/gentoo/releases/x86/2008.0_beta2/stages/ (i strongly recommend you not to use this link, get the latest release Stage3 tarball)
    Directory structure for Stage3 tarball : releases > x86 > latest_version (Ex: 2008.0_beta2) > stages > Download file which has this format - stage3-x86-GENTOO_VERSION.tar.bz2 (Ex: stage3-x86-2008.0_beta2.tar.bz2)

    Here is the Direct link : http://mirror.muntinternet.net/pub/gentoo/releases/x86/2008.0_beta2/stages/stage3-x86-2008.0_beta2.tar.bz2 ( as i said it is always recommended you not to use this link, get the latest version of stage3 tarball ).

    Make sure, you download stage3 tarball to /mnt/gentoo directory. Then extract tarball,

    # tar xvjpf stage3-*.tar.bz2

    It’ll take a few seconds to extract. Read the tar manual page for tar options, Make sure you don’t miss any options from above.

    Gentoo Portage

    Also download gentoo portage snapshot from the mirrors,You can find it in the snapshot folder (http://mirror.muntinternet.net/pub/gentoo/snapshots/)

    Download portage-latest.tar.bz2 file to /mnt/gentoo.

    Extract the Portage to /mnt/gentoo/usr ,

    tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr
    
    make.conf
    
    Set CFLAGS, CXXFLAGS
    
    CFLAGS="-O2 -march=nocona -pipe"
    CXXFLAGS="${CFLAGS}"
    
    also add these lines to make.conf
    MAKEOPTS="-j3"
    
    VIDEO_CARDS="i810 vesa"
    
    INPUT_DEVICES="keyboard mouse synaptics evdev"
    
    Chrooting
    
    Before Chrooting into gentoo,
    Copy DNS info
    # cp -L /etc/resolv.conf /mnt/gentoo/etc/
    
    Mount proc
    # mount -t proc none /mnt/gentoo/proc
    
    Mount All Devices to gentoo
    # mount -o bind /dev /mnt/gentoo/dev
    
    Also, add these lines to make.conf file
    
    GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ \
                    http://gentoo.osuosl.org/ \
                    http://gentoo.chem.wisc.edu/gentoo/"
    SYNC="rsync://rsync.gentoo.org/gentoo-portage"
    
    Now enter into the new (Gentoo) Environment.
    
    # chroot /mnt/gentoo /bin/bash
    # env-update
    >> Regenerating /etc/ld.so.cache...
    # source /etc/profile
    # export PS1="(chroot) $PS1"
    
    Update the portage tree...
    # emerge --sync
    
    emerge gentoo-source
    
    Apply mactel patches to the kernel, if you are using MacBook.
    
    And the rest of the things are similar.
    
    Resources:
    gentoo-wiki.org
    gentoo handbook
    forums.gentoo.org
    http://google.com/searchq?=gentoo+macbook
    Posted in gentoo, linux, ubuntu | Tagged , , , | 1 Comment