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

Re: Proxy



Am Mittwoch, 6. Juli 2005 18:02 schrieb Hgofi@web.de:
> Hi Leute!
> Ich habe ein Problem:
> Ich habe hier im Netzwerk einen Debian Server.

> ich habe per "export http_proxy="http://proxy:port/""; den Proxy eingestellt.
Reicht nicht.
Entweder machst Du das mit der apt.conf (siehe man Seite) oder Du editierst Dir
/etc/wgetrc hierzu. Suche nach proxy... dann klappt das.

> Wenn ich nun "wget google.de" mache saugt er die index.html
> Will ich über "apt-setup" eine Quelle hinzufügen bricht diese mit den Errors:
> gzip: stdin not in gzip format
> Konnte http://ftp2.de.debian.org/debian/dists/stable/main/binary-i386/Packages.gz nicht holen Untzerprozess gzip ist mit einem Fehler zurückgekehrt ab.
> Hab keine Ahnung was ich noch machen soll... ich hoffe ihr könnt mir helfen.

Allerdings halte ich es für besser, sich einen Spezial Proxy aufzusetzen. 
Damit hat Du ein inkrementell on demand wachsenden Debian Mirror in
cache_dir = /var/cache/aptproxy. Diesen kann man auch zum jigido DVD Image
bauen verwenden ...


hier schon mal Grüße, Jojo
PS1: besser nicht in html posten
PS2: apt-proxy V2 Config, dunktionierend hier, sammt sources.list, muß aber anpassen....


Das get so:
apt-get install apt-proxy
edit /etc/apt-proxy/apt-proxy-v2.conf
----
[DEFAULT]
;; All times are in seconds, but you can add a suffix
;; for minutes(m), hours(h) or days(d)

;; Server IP to listen on
address = 192.168.11.1

;; Server port to listen on
port = 9998

;; Control files (Packages/Sources/Contents) refresh rate
;;
;; Minimum time between attempts to refresh a file
min_refresh_delay = 60

;; Minimum age of a file before attempting an update (NOT YET IMPLEMENTED)
;min_age = 23h

;; Uncomment to make apt-proxy continue downloading even if all
;; clients disconnect.  This is probably not a good idea on a
;; dial up line.
complete_clientless_downloads = 1

;; Debugging settings.
;; for all debug information use this:
;; debug = all:9
debug = all:1

;; Debugging remote python console
;; Do not enable in an untrusted environment
;telnet_port = 9997
;telnet_user = apt-proxy
;telnet_password = secret

;; Network timeout when retrieving from backend servers
timeout = 30

;; Cache directory for apt-proxy
cache_dir = /var/cache/aptproxy

;; Use passive FTP? (default=on)
;; passive_ftp = 1

;; Use HTTP proxy?
;http_proxy = host:port

;; Disable HTTP pipelining within apt-proxy (for test purposes)
;; disable_pipelining=1

;;--------------------------------------------------------------
;; Cache housekeeping

;; Time to perform periodic housekeeping:
;;  - delete files that have not been accessed in max_age
;;  - scan cache directories and update internal tables
cleanup_freq = off

;; Maximum age of files before deletion from the cache (seconds)
max_age = 90d

;; Maximum number of versions of a .deb to keep per distribution
max_versions = 6

;; Add HTTP backends dynamicaly if not already defined? (default=on)
dynamic_backends = on

;;---------------------------------------------------------------
;;---------------------------------------------------------------
;; Backend servers
;;
;; Place each server in its own [section]

[debian]
backends =
 http://ftp2.de.debian.org/debian
 http://ftp.de.debian.org/debian
 ftp://ftp.uk.debian.org/debian
 http://ftp.us.debian.org/debian

[non-US]
backends =
 http://ftp2.de.debian.org/debian-non-US
 http://non-us.debian.org
[security]
backends =
 http://security.debian.org

[marillat]
backends =
 ftp://ftp.nerim.net/debian-marillat/


[dahb]
backends =
 http://www.openoffice.de/debian

;; rsyncpackages = rsync://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages
;; rsync://ftp.join.uni-muenster.de/pub/mirrors/ftp.ubuntu.com/ubuntu
;; rsync://ftp.inf.tu-dresden.de/ubuntu
;;  ftp://ftp.stw-bonn.de/pub/mirror/ubuntu
;; rsync://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages
;;  rsync://ftp.join.uni-muenster.de/pub/mirrors/ftp.ubuntu.com/ubuntu
;;  rsync://ftp.inf.tu-dresden.de/ubuntu
;;  http://ftp.join.uni-muenster.de/pub/mirrors/ftp.ubuntu.com/ubuntu
;;  http://www.artfiles.org/ubuntu.com
;;  ftp://ftp.join.uni-muenster.de/pub/mirrors/ftp.ubuntu.com/ubuntu
;;  ftp://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages


[ubuntu]
backends =
  http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu
  http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages
  http://archive.ubuntu.com/ubuntu

[kubuntu]
backends = 
 http://ftp.gwdg.de/pub/x11/kde/stable/3.4.1/kubuntu/
 ftp://ftp.kde.org/pub/kde/stable/3.4.1/kubuntu/

[koffice]
backends = 
 http://ftp.gwdg.de/pub/x11/kde/stable/koffice-1.4/kubuntu/
 ftp://ftp.kde.org/pub/kde/stable/koffice-1.4/kubuntu/
-------------------------------------------------------------------
Die sources.list hierzu sieh dann so aus:
# Ubuntu
deb  http://server.s.automatix.de:9998/ubuntu/ hoary main multiverse universe restricted
deb  http://server.s.automatix.de:9998/ubuntu/ hoary-updates main
deb  http://server.s.automatix.de:9998/ubuntu/ hoary-security main

deb  http://server.s.automatix.de:9998/kubuntu hoary-updates main
deb  http://server.s.automatix.de:9998/koffice hoary-updates main


# deb-src  http://server.s.automatix.de:9998/ubuntu/ hoary main multiverse universe restricted
# deb-src  http://server.s.automatix.de:9998/ubuntu/ hoary-updates main
# deb-src  http://server.s.automatix.de:9998/ubuntu/ hoary-security main

# deb  http://server.s.automatix.de:9998/marillat/ stable main
# deb  http://server.s.automatix.de:9998/marillat/ testing main
# deb  http://server.s.automatix.de:9998/marillat/ unstable main
# deb-src http://server.s.automatix.de:9998/marillat/ unstable main

# deb ftp://ftp.nerim.net/debian-marillat/ stable main
# deb ftp://ftp.nerim.net/debian-marillat/ testing main
# deb ftp://ftp.nerim.net/debian-marillat/ unstable main
# deb-src ftp://ftp.nerim.net/debian-marillat/ unstable main



-- 
Jürgen Sauer - AutomatiX GmbH, +49-4209-4699, jojo@automatix.de
Das Linux Systemhaus - Service - Support - Server - Lösungen
http://www.automatix.de OpenOffice erhalten Sie hier kostenfrei http://de.openoffice.org/

Attachment: pgpPkWwMGBeCC.pgp
Description: PGP signature


Reply to: