Today I'm at work solved an interesting problem. I needed to install and update Debian server. This would not be anything complicated, but the problem was that the server is a network where there is no internet access and safety reasons or may not be an Internet connection.
I once saw a program that can update the server to slow Internet connection. It worked on the principle that I have a PC which is not or is very slow internet connection run the program that created the list of packages to be updated. Subsequently, this list should be transferred to a PC with an Internet connection. There is a list of downloaded packages in the selected area. Then it was necessary to pass these packets back to the PC without connecting a complete update. The solution is particularly appropriate where there really is not an Internet connection. This program is called apt-imagen .
This was not my case. Although the networks do not have internet access, I have at least a network connection to another server that already has an Internet connection. Although the proxy server, but that's enough. I found the program to me in my case quite like. This is the apt-cacher .
If the network operates more than a Debian or Ubuntu server, you can speed up downloading the update using a local mirror of packages. Packages are downloaded from the Internet and only 1 will be available locally for other clients on the network.
Apt-cacher simplifies setup a local mirror. All that is needed is to install the program the normal way
sudo apt-get install apt-cacher
then configure the other Debian or Ubuntu clients to use it instead of the remote repository. Apt-cacher creates complete Debian mirror - it would require about 30 Gigabytes of disk space for one architecture, and about 100 Gigabytes for a complete mirror. I'm not saying that this amount of reflection needs a very fast connection and a lot of time.
apt-cacher is kešujúce proxy (proxy caching), so whenever one of the local PC to install a new package, apt-cacher nakešuje it to a local PC. It's very clever and effective. Configuration is in / etc / apt-cacher / apt-cacher.conf and is very well annotated. After adapting to its environment can import existing content cache for fast start command
sudo /usr/share/apt-cacher/apt-cacher-import.pl /var/cache/apt/archives
Automatically archive retains the current and deleted the old waste. It runs on port 3142 (can be changed in the configuration).
Clients need to edit your / etc / apt / sources.list for example. as follows:
deb http://[local-server]:3142/debian stable main contrib non-free
deb-src http://[local-server]:3142/debian stable main contrib non-free
deb http://[local-server]:3142/security stable/updates main contrib non-free
apt-cacher is completely configurable to use different repositories and updates at specified intervals. It is also possible to limit the busy routes. Simple instructions on how to configure apt-cacher and clients are here: http://www.debuntu.org/how-to-set-up-a-repository-cache-with-apt-cacher











































Related Articles
No user responded in this post
Sign the Guestbook
Please Note: Comment moderation maybe active with there is no need to resubmit your comments