19.04.2014, 20:07 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]
Letzte Änderung am 2006-08-20 03:46:13 von Richard proofing

Erweiterungen:

Making an apt-proxy-server



If you like to play and install many times, or if you just have several computers with Debian, you should think about an apt-proxy.

It is easy to install, if you know how...and it spares lots of time, even with only two computers. If you send many megabytes in a network its pretty fast.

The server is a script, the newest version written in python. It makes a cache to store the debs. After a while it would delete them, if you dont want that it wount.

Choose one computer in your network and install apt-proxy. The newest version is in Sid now. Download it with apt-get apt-proxy

Now you edit the /etc/apt-proxy.config. Its nearly nothing to do. (and I dont know, if that described little mistake in the config is fixed, as I use my old config)

All you really need is: (if you see lying eights they dont belong to the text!)
[debian] 
backends = http://ftp.de.debian.org/debian
                
[debian-non-US]
backends = http://ftp.de.debian.org/debian-non-US


The rest is interesting, but you only have to change one thing: Where it says [debian-non-US] there was [non-US] and that did not work.

After having edited the proxy-server don't forget a: /etc/init.d/apt-proxy restart

So, if the apt-proxy.config is finished, edit the /etc/apt/sources.list on another computer like this:
deb http://192.168.x.xxx:9999/debian/ unstable main contrib non-free 
deb http://192.168.2.xxx:9999/debian-non-US/ unstable/non-US main contrib non-free 
deb-src http://192.168.x.xxx:9999/debian/ unstable main contrib non-free 
deb-src http://192.168.x.xxx:9999/debian-non-US/ unstable/non-US main contrib non-free 
deb http://192.168.x.xxx:9999/debian/ testing main contrib non-free
deb http://192.168.x.xxx:9999/debian-non-US/ testing/non-US main contrib non-free 
deb-src http://192.168.x.xxx:9999/debian/ testing main contrib non-free 
deb-src http://192.168.x.xxx:9999/debian-non-US/ testing/non-US main contrib non-free 

# deb http://ftp.de.debian.org/debian/ unstable main contrib non-free 
# deb http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free 
# deb-src http://ftp.de.debian.org/debian/ testing main contrib non-free  
# deb-src http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free


I have just commented out the original.
The IP you have to change to the one of the computer that has the proxy.

So, now do an apt-get update with this computer (not the one with the proxy). The proxy will be asked for the sources, downloads them and gives them to the computer that did the apt-get update. It keeps a copy for other computers or for itself. The Proxy has nothing to do with the apt and the package management on every single computer.
You can give a copy of /etc/apt/sources.list to all of your computers, to the one with the proxy too.

And if you have many sources in your computer, import them now (you cannot do that earlier) to the proxy-cache like this:
# apt-proxy-import -i /var/cache/apt/archives 


Hmm, I think that was it, like always pretty simple, after you did it the first time.

Now you dont need to care about the proxy, do your updates as usual.
Only if you would need new sources, do just the same things in the apt-proxy.conf and the sources.lists like you did now.

Have fun with apt-proxy


Löschungen:

Making an apt-proxy-server



If you like to play and install many times, or if you just have several computers with debian, you should think about an apt-proxy.

It is easy to install, if you know how...and it spares lots of time, even with only two computers. If you send many megabytes in a network its pretty fast.

The server is a script, the newest version written in python. It makes a cache to store the debs. After a while it would delete them, if you dont want that it wount.

Choose one computer in your network and install apt-proxy. The newest version is in Sid now. Download it with apt-get apt-proxy

Now you edit the /etc/apt-proxy.config. Its nearly nothing to do. (and I dont know, if that described little mistake in the config is fixed, as I use my old config)

All you really need is:(if you see lying eights they dont belong to the text!)

:code:[debian]
backends = http://ftp.de.debian.org/debian
[debian-non-US]
backends = ::

The rest is interesting, but you only have to change one thing: Where it says [debian-non-US] there was [non-US] and that did not work.

After having edited the proxy-server dont forget a /etc/init.d/apt-proxy restart

So, if the apt-proxy.config is finished, edit the /etc/apt/sources.list on another computer like this:

:code:deb http://192.168.x.xxx:9999/debian/ unstable main contrib non-free
deb http://192.168.2.xxx:9999/debian-non-US/ unstable/non-US main contrib non-free
deb-src http://192.168.x.xxx:9999/debian/ unstable main contrib non-free
deb-src http://192.168.x.xxx:9999/debian-non-US/ unstable/non-US main contrib non-free
deb http://192.168.x.xxx:9999/debian/ testing main contrib non-free
deb http://192.168.x.xxx:9999/debian-non-US/ testing/non-US main contrib non-free
deb-src http://192.168.x.xxx:9999/debian/ testing main contrib non-free
deb-src http://192.168.x.xxx:9999/debian-non-US/ testing/non-US main contrib non-free


# deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
# deb http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free
# deb-src http://ftp.de.debian.org/debian/ testing main contrib non-free
# deb-src http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free:code:

I have just commented out the original. The IP you have to change to the one of the computer that has the proxy.

So, now do an apt-get update with this computer (not the one with the proxy). The proxy will be asked for the sources, downloades them and gives them to the computer that did the apt-get update. It keeps a copy for other computers or for itself. The Proxy has nothing to do with the apt and the package management on every single computer.
You can give a copy of /etc/apt/sources.list to all of your computers, to the one with the proxy too.


And if you have many sources in your computer, import them now ( you cannot do that earlier) to the proxy-cache like this:

:code:# apt-proxy-import -i /var/cache/apt/archives:code:

Hmm, I think that was it, like always pretty simple, after you did it the first time.

Now you dont need to care about the proxy, do your updates as usual.
Only if you would need new sources, do just the same things in the apt-proxy.conf and the sources.lists like you did now.

Have fun with apt-proxy



älteste bekannte Version dieser Seite wurde bearbeitet am 2004-07-10 16:27:52 von DerEinzigWahreMipooh [ ]

Making an apt-proxy-server



If you like to play and install many times, or if you just have several computers with debian, you should think about an apt-proxy.

It is easy to install, if you know how...and it spares lots of time, even with only two computers. If you send many megabytes in a network its pretty fast.

The server is a script, the newest version written in python. It makes a cache to store the debs. After a while it would delete them, if you dont want that it wount.

Choose one computer in your network and install apt-proxy. The newest version is in Sid now. Download it with apt-get apt-proxy

Now you edit the /etc/apt-proxy.config. Its nearly nothing to do. (and I dont know, if that described little mistake in the config is fixed, as I use my old config)

All you really need is:(if you see lying eights they dont belong to the text!)

:code:[debian]
backends = http://ftp.de.debian.org/debian
[debian-non-US]
backends = ::

The rest is interesting, but you only have to change one thing: Where it says [debian-non-US] there was [non-US] and that did not work.

After having edited the proxy-server dont forget a /etc/init.d/apt-proxy restart

So, if the apt-proxy.config is finished, edit the /etc/apt/sources.list on another computer like this:

:code:deb http://192.168.x.xxx:9999/debian/ unstable main contrib non-free
deb http://192.168.2.xxx:9999/debian-non-US/ unstable/non-US main contrib non-free
deb-src http://192.168.x.xxx:9999/debian/ unstable main contrib non-free
deb-src http://192.168.x.xxx:9999/debian-non-US/ unstable/non-US main contrib non-free
deb http://192.168.x.xxx:9999/debian/ testing main contrib non-free
deb http://192.168.x.xxx:9999/debian-non-US/ testing/non-US main contrib non-free
deb-src http://192.168.x.xxx:9999/debian/ testing main contrib non-free
deb-src http://192.168.x.xxx:9999/debian-non-US/ testing/non-US main contrib non-free


# deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
# deb http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free
# deb-src http://ftp.de.debian.org/debian/ testing main contrib non-free
# deb-src http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free:code:

I have just commented out the original. The IP you have to change to the one of the computer that has the proxy.

So, now do an apt-get update with this computer (not the one with the proxy). The proxy will be asked for the sources, downloades them and gives them to the computer that did the apt-get update. It keeps a copy for other computers or for itself. The Proxy has nothing to do with the apt and the package management on every single computer.
You can give a copy of /etc/apt/sources.list to all of your computers, to the one with the proxy too.


And if you have many sources in your computer, import them now ( you cannot do that earlier) to the proxy-cache like this:

:code:# apt-proxy-import -i /var/cache/apt/archives:code:

Hmm, I think that was it, like always pretty simple, after you did it the first time.

Now you dont need to care about the proxy, do your updates as usual.
Only if you would need new sources, do just the same things in the apt-proxy.conf and the sources.lists like you did now.

Have fun with apt-proxy

:de: AptProxyServer
Letzte Revision :
Letzter Editor :
Eigentümer :
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.