[glux] Oscilloscopio Live

Carlo Stemberger carlo.stemberger@gmail.com
Ven 13 Feb 2009 12:06:27 CET


Il 13/02/2009 08:19, gigiv ha scritto:
> bello!
>
> ma cosi'0 si puo' fare la live anche di "pinguino bambino"?
Sì, è proprio quello che sto facendo, ma è leggermente più complicato 
perché non è sufficiente installare dei pacchetti ma bisogna andare ad 
inserire anche alcuni file di configurazione nel filesystem. Niente di 
impossibile, è tutto previsto da live-helper e mi mancano forse 2 ore di 
lavoro, però non le ho ancora trovate...

Alcune opzioni che avete inserito sono inutili, in quanto sono già 
previste di default. Comunque bravissimi, in una sola serata mi avete 
sorpassato :-)

La cosa che mi ha un po' bloccato è che mi sono creato una cache locale 
dei pacchetti con apt-proxy, in modo da non dover scaricare da internet 
tutti i pacchetti ogni volta che si lancia live-helper: con un buon 
processore e poca banda, che è il mio caso, il download dei pacchetti è 
decisamente la parte più lunga. È un trucchetto che ho trovato in rete, 
ma che purtroppo non è quasi per niente documentato, e quindi devo fare 
ancora un po' di prove. Al limite volete provarci anche voi? Mi dareste 
davvero una bella spinta. :-)


Estratto del mio sources.list:
-------------------
### Lenny ###
deb http://localhost:9999/debian/ lenny main contrib non-free
#deb http://ftp.fr.debian.org/debian/ lenny main contrib non-free
#deb-src http://ftp.it.debian.org/debian/ lenny main contrib non-free

### Security ###
deb http://security.debian.org/ lenny/updates main contrib
#deb-src http://security.debian.org/ lenny/updates main contrib
#deb http://localhost:9999/security lenny/updates main contrib
-------------------
Come vedete non sono riuscito a mettere in cache anche i pacchetti che 
arrivano dal repository security, ma non è grave, al limite si tratta di 
pochissimi pacchetti da scaricare al momento.


Per quanto riguarda apt-proxy:
-------------------
$ cat /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.0.254

;; Server port to listen on
port = 9999

;; Control files (Packages/Sources/Contents) refresh rate
;;
;; Minimum age of a file before it is refreshed
min_refresh_delay = 1h

;; 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:4 db:0

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

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

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

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

;; Use HTTP proxy?
;http_proxy = [username:password@]host:port

;; Limit download rate from backend servers (http and rsync only), in 
bytes/sec
;bandwidth_limit = 100000

;;--------------------------------------------------------------
;; 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 = 1d

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

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

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

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

[debian]
;; The main Debian archive
;; You can override the default timeout like this:
;timeout = 30

;; Backend servers, in order of preference
backends =
    http://ftp.fr.debian.org/debian
    http://ftp.it.debian.org/debian
    http://ftp.us.debian.org/debian
    http://ftp.de.debian.org/debian
    http://ftp2.de.debian.org/debian
    ftp://ftp.uk.debian.org/debian
min_refresh_delay = 1d

[security]
;; Debian security archive
;backends =
;    http://security.debian.org/
;    ;http://security.debian.org/debian-security
;    ;http://ftp2.de.debian.org/debian-security
;min_refresh_delay = 1m

;[ubuntu]
;; Ubuntu archive
;backends = http://archive.ubuntu.com/ubuntu
;min_refresh_delay = 15m

;[ubuntu-security]
;; Ubuntu security updates
;backends = http://security.ubuntu.com/ubuntu
;min_refresh_delay = 1m

;[backports.org]
;; backports.org
;backends = http://backports.org/debian
;min_refresh_delay = 1d

;[blackdown]
;; Blackdown Java
;backends = http://ftp.gwdg.de/pub/languages/java/linux/debian
;min_refresh_delay = 1d

;[debian-people]
;; people.debian.org
;backends = http://people.debian.org

;[emdebian]
;; The Emdebian project
;backends = http://emdebian.sourceforge.net/emdebian

;[rsync]
;; An example using an rsync server.  This is not recommended
;; unless http is not available, becuause rsync is only more
;; efficient for transferring uncompressed files and puts much
;; more overhead on the server.
;backends = rsync://ftp.uk.debian.org/debian

;[gnuab]
;; Debian GNU/Hurd-related tools
;backends = http://ftp.gnuab.org/debian
-------------------


Proprio adesso mi sono accorto che sul wiki di debian-live c'è una 
miniguida per fare più o meno quello che avevo in mente, ma usando 
apt-cacher[1].

In estrema sintesi: avete ben capito a cosa servono le seguenti pozioni 
di lh_config?
 --mirror-bootstrap
 --mirror-binary
 --mirror-binary-security
 --mirror-chroot
 --mirror-chroot-security
Una volta che ho ben chiaro questo, sono a cavallo.


Il resto è tutto documentato sul wiki[2].


Oggi è in pratica il mio ultimo giorno, domani devo preparare il rientro 
e domenica sono in viaggio tutto il giorno. Ci risentiamo ad inizio 
settimana prossima, quando spero di rendervi disponibile l'immagine da 
provare.

A prestissimo!

Buon weekend

Carlo


[1] http://wiki.debian.org/DebianLive/Howto/Cache_Packages
[2] http://www.lecco.linux.it/Un_pinguino_per_ogni_bambino

-- 
 .'  `.   | Registered Linux User #443882
 |a_a  |  | http://counter.li.org/                      .''`.
 \<_)__/  +---                                         : :'  :
 /(   )\                                          ---+ `. `'`
|\`> < /\                  Registered Debian User #9 |   `-
\_|=='|_/       http://debiancounter.altervista.org/ |



Maggiori informazioni sulla lista glux