Catatanw

December 12, 2012

APT behind proxy

Filed under: Linux,Ngoprek,Tips n' Trik — catatanpinguin @ 17:54

To the point🙂 , berikut langkah-langkah menggunakan manajemen paket apt dibalik proxy server:

1. Edit berkas /etc/apt/apt.conf, menggunakan editor text kesukaan anda

$sudo vim /etc/apt/apt.conf

2. Lalu tambahkan perintah berikut ini:

Acquire::http::proxy “http://<proxyserver&gt;:<port>/”;
Acquire::ftp::proxy “ftp://<proxyserver>:<port>/”;
Acquire::https::proxy “https://<proxyserver&gt;:<port>/”;

Apabila proxy server memerlukan login, cukup tambahkan username dan password:

Acquire::http::proxy “http://username:password@<proxyserver&gt;:<port>/”;
Acquire::ftp::proxy “ftp://username:password@<proxyserver>:<port>/”;
Acquire::https::proxy “https://username:password@<proxyserver&gt;:<port>/”;

3. Kemudian tes dengan menjalankan sudo apt-get update

Selamat mencoba….:)

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

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

Create a free website or blog at WordPress.com.

%d bloggers like this: