[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apt / proxy



RUBI Julien wrote:

Apt est t'il capable de outre-passer un proxy Micro$oft avec 1 compte user / mot de pass ?
Si oui, comment faire ? quel fichier(s) modifier ?

Apt est capable de passer par un serveur mandataire tant qu'il supporte FTP ou HTTP. Il suffit pour cela de modifier en conséquence (ou de créer) /etc/apt/apt.conf
Exemple:
[surcouf@pyaray 10:31:25 ~]$ more /etc/apt/apt.conf
Acquire
{
       Queue-Mode "host";       // host|access
       Retries "0";
       Source-Symlinks "true";

       // HTTP method configuration
     http
     {
             Proxy "http://w.x.y.z:xxx";;
             Timeout "120";
             Pipeline-Depth "5";
             // Cache Control. Note these do not work with Squid 2.0.2
             No-Cache "false";
             Max-Age "86400";     // 1 Day age on index files
No-Store "false"; // Prevent the cache from storing archives
       };
};
---

J'espère que ça t'aidera.
--
Raphaël Bordet
surcouf@linuxfr.net




Reply to: