Sunday, December 7, 2008

wget configuration on Ubuntu

Wget is one of the command in Ubuntu to download such file from http or ftp. By default, wget not configured yet to download such file. Configuration of wget almost the same with configuring apt.conf. Here is the step:


1. Open file /etc/wgetrc
2. Find this line :
# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
http_proxy = http://proxy.yoyodyne.com:18023/
ftp_proxy = http://proxy.yoyodyne.com:18023/
# If you do not want to use proxy at all, set this to off.
#use_proxy = on


3. Change the line with:
http_proxy = http://(username_proxy_anda):(password)@(nama_proxy_anda):8080/
ftp_proxy = http://(username_proxy_anda):(password)@(nama_proxy_anda):8080/

Uncomment this line (status use_proxy must on) :
# If you do not want to use proxy at all, set this to off.
use_proxy = on


4. Now, you can try wget command, for example: wget ftp://...................

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home