Sunday, March 8, 2009

Export Proxy setting to your shell.

Some times you may need to connect your laptop Internet through proxy server. You can give proxy server settings to your browser but if you want use “wget” to download some files through command prompt it will be difficult. Just give the following command to you shell you can able to access Internet through command prompt

export http_proxy=http://smn:password@192.168.1.100:8080/

Where smn is the Username and password is the password for the user smn. You may have to change the server ipaddress/servername and the port number.

If your server don't have any username and password use as follows.

export http_proxy = myproxy:3128
export ftp_proxy = myproxy:3128


After this you may use application like yum to install/update any package.

Ofline Web browser

Most of you heard about offline web browsers or may used in Windows. For new people, ofline browser is an application used to mirror (make a copy) of your desired web sites so that you can access the sites when you are not able to access Internet. Normally i use this program to mirror sites that provide good and detail documentation but will not provide a download option in any format so that i can keep it for future. Using this type application you can save an url and it's sub-urls.

HTTrack is a free (GPL, libre/free software) and easy-to-use offline browser utility.

You can get the latest version from the httrack site http://www.httrack.com .You can download both windows and Linux Packages from the site.


If you are using yum then the installation is very simple just try

# yum install httrack

I am recommending to use the source Package. Just read the INSTALL file for installation procedure.


After installation try the “man httrack”

To download an url you have to use something as follows.

httrack abcd.com/url


The site will be mirrored on you current directory and try to open index.html in any web browser to access the data. You can use you proxy settings to download the sites the man page will give you more information.

reg

SMN