maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   APT mirror N900 (https://talk.maemo.org/showthread.php?t=51649)

adalal 2010-05-02 15:10

APT mirror N900
 
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.

adalal 2010-05-03 12:12

Re: APT mirror N900
 
bump... if anyone's still aware on how to solve this, please help?

cpm 2010-05-03 14:57

Re: APT mirror N900
 
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.

adalal 2010-05-03 15:41

Re: APT mirror N900
 
thanks, now, one more thing, how would you set your phone to use the apt-mirror or proxy?

cpm 2010-05-03 17:40

Re: APT mirror N900
 
Quote:

Originally Posted by adalal (Post 640548)
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.

adalal 2010-05-04 08:24

Re: APT mirror N900
 
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...

pali 2011-09-06 15:58

Re: APT mirror N900
 
Config file for apt-mirror is in this post:
http://talk.maemo.org/showpost.php?p...3&postcount=75

momcilo 2011-09-06 16:53

Re: APT mirror N900
 
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


All times are GMT. The time now is 10:52.

vBulletin® Version 3.8.8