Setting wgetrc untuk Download Melalui Proxy

sekedar catatan supaya tidak lupa 😀

untuk download yang melalui autentikasi proxy, apalagi proxy dengan username dan password, dapat di edit di wgetrc

>sudo gedit /etc/wgetrc

lalu ganti dengan

https_proxy = http://proxy.domain.com:8080/
http_proxy = http://proxy.domain.com:8080/
ftp_proxy = http://proxy.domain.com:8080/

use_proxy = on
proxy-user = [username proxy anda]
proxy-password = [password proxy anda]

so far jalan 🙂

lalu biasanya ada masalah pula untuk

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install update

ketik

sudo nano .bashrc

tambahkan 2 baris berikut pada line terakhir file .bashrc

export http_proxy=http://username:Password@alamat_proxy:Port/
export ftp_proxy=http://username:Password@alamat_proxy:Port/


contoh:

export http_proxy=http://abas:123456@172.16.0.1:8080/
export ftp_proxy=http://abas:123456@172.16.0.1:8080/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: