21
Aug
08

Setting proxy di Linux

Karena koneksi internet di kantor membutuhkan proxy, ya jelas…buat download paket atau update-nya harus disesuaikan…yang jadi masalah, setting proxy di folder /etc/apt tidak ada.
Untuk menyelesaikan masalah ini, ada beberapa hal yang harus kita lakukan :

1. copy file “/usr/share/doc/apt/examples/apt.conf” ke folder “/etc/apt/”

command-nya :

cp /usr/share/doc/apt/examples/apt.conf /etc/apt/apt.conf

2. Rubah isi file /etc/apt/apt.conf menjadi sbb:

#########################################################

// $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://put your proxy name or ip here:port”;;
};

// 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”;}
}

#######################################################

setelah itu, semua program yang membutuhkan proxy untuk koneksi internet-nya bisa digunakan.

CMIIW


1 Response to “Setting proxy di Linux”


  1. 1 vade
    February 12, 2009 at 11:54 am

    tambahan, tutorial diatas untuk repo keluarga debian, untuk centos :

    [main]
    cachedir=/var/cache/yum
    keepcache=1
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    obsoletes=1
    gpgcheck=1
    plugins=1
    metadata_expire=1800
    proxy=”http://192.168.3.1:8080″ <<<<< ditambahkan ini<<<<<
    #export http_proxy
    # PUT YOUR REPOS HERE OR IN separate files named file.repo
    # in /etc/yum.repos.d


Leave a Reply




 

August 2008
M T W T F S S
« Jul   Sep »
 123
45678910
11121314151617
18192021222324
25262728293031

Quote

"I am a traveler seeking the truth, a human searching for the meaning of humanity and a citizen seeking dignity, freedom, stability and welfare under the shade of Islam. I am a free man who is aware of the purpose of his existence and who proclaims: “Truly, my prayer and my sacrifice, my living and my dying are all for Allah, the Lord of the worlds; no partner has He. This, am I commanded and I am of those who submit to His Will.” This is who I am. Who are you?" (Hassan al-Banna)

Online

tracker

Your IP Address

Kalender Hijriyah

Blog Stats

  • 21,204 hits

Qur’an Flash

Powered by