Setting Proxy pada Linux Ubuntu untuk APT-GET


Setting Proxy pada Linux Ubuntu untuk APT-GET

Ketika laptop saya bawa ke kantor yang memiliki koneksi internet, maka kesempatan bagi saya untuk melakukan update, OS yang telah terpasang dengan Linux Ubuntu tidak mengalami kesulitan untuk konek dengan internet, pas mau menggunakan apt-get maka kendala muncul, setting proxy blom dilakukan, wah gawat nih, ilmu ini saya blom punya, langsung saja saya buka browser untuk mencari literatur.

Langkah pertama untuk mensetting proxy, kita harus punya file apt.conf. eh
pas dicari file ini juga gak ada, maka kita harus copy dulu dari “/usr/share/doc/apt/examples/apt.conf” ke “/etc/apt.conf”

Nah setelah itu baru buka deh file nya untuk setting proxy, contoh di bawah
ini :

// $Id: apt.conf,v 1.43 1999/12/06 02:19:38 jgg Exp $
/* This file is a sample configuration file with a few harmless sample options.
*/

APT
{
// Options for apt-get
Get
{
Download-Only “false”;
};

};

// Options for the downloading routines
Acquire
{
Retries “0″;
http::Proxy “http://ipproxykamu:8080″;;

};

// Things that effect the APT dselect method
DSelect
{
Clean “auto”; // always|auto|prompt|never
};

DPkg
{
// Probably don’t want to use force-downgrade..
Options {“–force-overwrite”;}
}

Buka browser anda dan coba lagi

By Karaiaceh

Category: Linux  Tags: , , , ,
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>