Friday, November 27, 2009

Google Chrome released for Linux [Unstable]

The Google Chrome Browser is finally out for the Linux distributions.Presently Google have marked it as unstable.
Process of installing chrome on the Fedora 11 box went as below :

1. As root, added a file called google.repo in /etc/yum.repos.d/ for a new repository information.

name=Google - i386

2. Searched for chrome in the available repositories.
[root@mybox yum.repos.d]# yum search chrome
Loaded plugins: presto, refresh-packagekit
=========================================================================== Matched: chrome ===========================================================================
links.i586 : Web browser running in both graphics and text mode
bleachbit.noarch : Remove unnecessary files, free space, and maintain privacy
google-chrome-unstable.i386 : Google Chrome
qfaxreader.i586 : A multipage monochrome/color TIFF/FAX viewer
wordpress-mu-plugin-add-to-any.noarch : Add to Any: Share/Bookmark/Email Button plugin for WordPress MU
wordpress-plugin-add-to-any.noarch : Add to Any: Share/Bookmark/Email Button plugin for WordPress
xloadimage.i586 : Image viewer and processor
xorg-x11-drv-openchrome.i586 : Xorg X11 openchrome video driver
xorg-x11-drv-openchrome-devel.i586 : Xorg X11 openchrome video driver XvMC development package

3. Queried about the available package of Google Chrome.
[root@mybox yum.repos.d]# yum info google-chrome-unstable.i386
Loaded plugins: presto, refresh-packagekit
Available Packages
Name : google-chrome-unstable
Arch : i386
Version :
Release : 32790
Size : 18 M
Repo : google
Summary : Google Chrome
License : Multiple, see
Description: The web browser from Google
: Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier.

4. Finally fired the command for installation.
[root@mybox yum.repos.d]# yum install google-chrome-unstable.i386

5. Located the Google Chrome in the Applications > Internet > Google Chrome

6. And it was running.

Configuration for other distributions can be found at Google Application Repositories for Linux based OS

Saturday, November 21, 2009

Getting website Offline though CLI

Mirroring a site was never that easy. No software required just a single line command all is done.Let me explain how i did that.
1. Found a site had good AWK manual.
2. Went through the AWK manual and located two good options to the command that worked just well, though i had few wrong attempts earlier.
- m : Mirrors the web site
[man] Turn on options suitable for mirroring. This option turns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings. It is currently equivalent to -r -N -l inf --no-remove-listing.[/man]

-k : Makes the local copy of site browsable, by making all of the links relative to the local location.
[man]After the download is complete, convert the links in the document to make them suitable for local viewing. This affects not only the visible hyperlinks, but any part of the document that links to external content, such as embedded images, links to style sheets, hyperlinks to non-HTML content, etc.[/man]

-w : Introduces a delay of x secs between each hit to the server and hence, prevents our IP identified as a crawler.
[man]Wait the specified number of seconds between the retrievals. Use of this option is recommended, as it lightens the server load by making the requests less frequent. Instead of in seconds, the time can be specified in minutes using the "m" suffix, in hours using "h" suffix, or in days using "d" suffix.[/man]

So finally the command for mirroring the whole website looks like this.
#wget -mk -w 5

The '5' mentioned here along with -w means the number of seconds to wait.

Wednesday, November 4, 2009

Celebrating 5yrs of Firefox [9 Nov, 2009]