Setelah unnes memekai proxy server maka perlu adanya setting apt agar kita tetep bisa update sistem saat terkoneksi dengan internet. Here we come :
1. Copykan apt.conf ke directory /etc/apt
sudo cp /usr/share/doc/apt/examples/apt.conf /etc/apt/
2. Edit apt.conf
sudo vi /etc/apt/apt.conf
3. Tambahkan satu baris code,
http::Proxy “http://username:password@118.97.9.17:3129″;;
Script lengkapnya menjadi :
// $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://username:password@118.97.9.17:3129″;;
};
// 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”;}
}
4. Simpan selesai sudah. maka selamat ber apt ria :D