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@

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.

No comments:

Post a Comment