Active Topics

 



Notices


Reply
Thread Tools
Posts: 100 | Thanked: 19 times | Joined on Jan 2010
#1
Hey,

I was wondering on how to create and maintain an apt-cache repository on the network for these apt-packages. I have one setup for apt-get already, so that all desktop computers on the network can just pull from the cache instead of wasting bandwidth. However, I'd like to find a way to do the same with the fremantle repository if possible.

Thanks.
 
Posts: 100 | Thanked: 19 times | Joined on Jan 2010
#2
bump... if anyone's still aware on how to solve this, please help?
 
Posts: 51 | Thanked: 17 times | Joined on Jun 2009
#3
I've used apt-mirror - http://apt-mirror.sourceforge.net/ - specifically the version included with Debian in my case.

Specifiy the repositories you want in /etc/apt/mirror.list config file

Note that by default it downloads packages for the architecture it's running on (e.g. i386 or amd64 on a desktop machine) so as you'll want armel packages, start the line "deb-armel" rather than just "deb". For example, to mirror the fremantle sdk use:

deb-armel http://repository.maemo.org/ fremantle sdk/free sdk/non-free tools/free tools/non-free

[Addendum]: I'd also change "set nthreads 20" to "set nthreads 1" in the config file so it only downloads one file at a time - more considerate.

Last edited by cpm; 2010-05-03 at 15:18.
 

The Following 2 Users Say Thank You to cpm For This Useful Post:
Posts: 100 | Thanked: 19 times | Joined on Jan 2010
#4
thanks, now, one more thing, how would you set your phone to use the apt-mirror or proxy?
 
Posts: 51 | Thanked: 17 times | Joined on Jun 2009
#5
Originally Posted by adalal View Post
thanks, now, one more thing, how would you set your phone to use the apt-mirror or proxy?
Not done this myself, but it'd be along the lines of:

Set up a web server (e.g. apache) on the machine with apt mirror installed, make the apt mirror directory structure (/var/spool/apt-mirror) available through it and then add a repository through App Manager on your N900 (App manager titlebar menu > Application Catalogues > New) to point to your mirror.
 
Posts: 100 | Thanked: 19 times | Joined on Jan 2010
#6
cool, i was wondering a simple file settings like on debian-based distributions, all you have to put into the apt conf is:

Acquire {Proxy :: http://xxx.xxx.xxx.xxx:3124; };

I suppose i should try and see if that works, but i'll need to put it in each time i come into the network and go out...
 
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#7
Config file for apt-mirror is in this post:
http://talk.maemo.org/showpost.php?p...3&postcount=75
 
Posts: 673 | Thanked: 856 times | Joined on Mar 2006
#8
if you wish to conserve bandwidth, use apt-cache. N900 can be configured to use it as a (intelegent) proxy.

If you wish to mirror whole repositories, do what pali suggests
 

The Following User Says Thank You to momcilo For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 11:58.