Azioni

Differenze tra le versioni di "Cached LinuxMint Updates"

Da MontelLUG WIKI.

m (Commenti)
(minor updates)
Riga 33: Riga 33:
 
* [2]: http://www.linuxjournal.com/content/presenting-squid-deb-proxy-speed-your-update-downloads
 
* [2]: http://www.linuxjournal.com/content/presenting-squid-deb-proxy-speed-your-update-downloads
 
* [3]: http://forums.linuxmint.com/viewtopic.php?f=157&t=102292
 
* [3]: http://forums.linuxmint.com/viewtopic.php?f=157&t=102292
 +
 +
== The Limitations of Positive Thinking ==
 +
 +
Positive thinking is so firmly enshrined in our culture that knocking it is a little like attacking motherhood or apple pie. Many persons swear by positive thinking and quite a few have been helped by it. Nevertheless, it is not a very effective tool and can be downright harmful in some cases. There are much better ways to get the benefits that positive thinking allegedly provides.
 +
 +
[[http://goodvillenews.com/The-Limitations-of-Positive-Thinking-m3ZrTe.html The Limitations of Positive Thinking]]
 +
 +
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 +
 +
== 2500 Years Old Wisdom ==
 +
 +
I really dont know how I have encountered this book which is said to be the second most translated book in the world after the Bible, but what I can tell you is that I was speechless after reading it. The Tao Te Ching is comprised from 81 verses and it was written by Lao Tzu. Nothing certain is known about this amazing men whose name means The Ancient Master.
 +
 +
[[http://goodvillenews.com/2500-Years-Old-Wisdom-7EuLTz.html 2500 Years Old Wisdom]]
 +
 +
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 +
 +
== 12 Lessons To Learn From Highly Successful People ==
 +
 +
The only work that will ultimately bring any good to any of us is the work of contributing to the healing of the world. Marianne WilliamsonSuccess can mean different things to different people, and I noticed that many of us have some kind of resistance to the word success, even though deep down inside, that is exactly what we all want, to live a successful and meaningful life.
 +
 +
[[http://goodvillenews.com/12-Lessons-To-Learn-From-Highly-Successful-People-sn25rw.html 12 Lessons To Learn From Highly Successful People]]
 +
 +
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 +
 +
== The Little Guide To Contentedness ==
 +
 +
"Lets take a look at my life before contentedness: I was addicted to junk food and fast food, and overweight and unhealthy. I bought too many things on impulse, owned too much clutter, and was deeply in debt and struggling to make it to the next payday. I was unhappy with who I was, wanted desperately to change, tried a thousand different programs and books. I was always changing the way I did things, because it seemed everyone else had a better system or tools. I strove to meet goals, because they would get me to a better life. And as I learned to be content, here was what changed..." Leo Babauta of Zen Habits shares more.
 +
 +
[[http://goodvillenews.com/The-Little-Guide-To-Contentedness-kUOUcL.html The Little Guide To Contentedness]]
 +
 +
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 +
 +
== Sharing A Laughter Break ==
 +
 +
It was a rainy day and I noticed that the lady coming into the senior center had holes in both shoes. Her toes were sticking through the shoes!
 +
 +
[[http://goodvillenews.com/Sharing-A-Laughter-Break-mSRSw5.html Sharing A Laughter Break]]
 +
 +
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]

Versione delle 01:53, 3 ott 2012

Ci siamo trovati di fronte al problema di effettuare gli aggiornamenti di un'aula informatica con 11 pc Linux Mint MATE 13 usando il software apt[1].

Per evitare di scaricare 11 volte tutti i pacchetti aggiornati da Internet, abbiamo adottato questo sistema per far si che solo un pc scarichi i file da Internet e gli altri vadano a recuperarli attraverso la rete locale grazie ad un pc-server che in questo caso funge da Caching Proxy.

È ovvio che questo sistema si estende automaticamente per qualsiasi pacchetto che venga scaricato, non necessariamente solo gli aggiornamenti.

Come funziona (a grandi linee)

Quando un client vuole scaricare un pacchetto, sia esso aggiornamento o meno, invece di scaricarlo direttamente da Internet, interroga il server. Il server, se possiede già quel pacchetto lo invia al client attravero la rete locale, altrimenti provvede a scaricarlo da Internet e a salvarselo nel suo disco fisso. Una volta scaricato (in realtà contemporaneamente) lo invia al client che ne ha fatto richiesta. Successivamente, se qualcun altro richie lo stesso pacchetto, il file è già presente sul server e viene scambiato attraverso la rete LAN, senza la necessita di doverlo riscaricare.

Configurazione

Server

  • installare il pacchetto apt-cacher-ng
  • editare il file (se non esiste, crearlo) /etc/apt/apt.conf.d/30autoproxy inserendo la seguente stringa:
* Acquire::http { Proxy "http://localhost:3142"; };

Client

  • editare il file di ogni client (se non esiste, crearlo) /etc/apt/apt.conf.d/30autoproxy inserendo la seguente stringa:
* Acquire::http { Proxy "http://serverip:3142"; };

Commenti

  • è possibilie che nelle precedenti versioni di apt, il file da configurare sia /etc/apt/apt.conf

Pro

  • una volta che almeno un pc (non necessariamente il server) ha scaricato il/i pacchetto/i, su rete da 100Mb si vedono gli aggiornamenti sugli altri pc filare sull'ordine dei MB/s

Contro

  • se il pc-server è spento non va una cippa, nemmeno quindi l'install di un singolo pacchetto per un unico pc.

Alternative

  • su Ubuntu[2], installando i pacchetti squid-deb-proxy squid-deb-proxy-client avahi-tools su tutti i pc, si riesce a distribuire il carico eliminando il punto "contro" del sistema sopra descritto. Nel senso che ogni pc fa sia da server che da client, quindi quando un pc deve scaricare un pacchetto, prima provvede ad consultare tutti gli altri pc della rete locale, se nessuno ha il pacchetto, allora scarica. Da quello che ho letto[3] però, apparentemente funziona solo con i repo *.archives.ubuntu.com. Personalmente devo ancora testarlo.

Fonti

The Limitations of Positive Thinking

Positive thinking is so firmly enshrined in our culture that knocking it is a little like attacking motherhood or apple pie. Many persons swear by positive thinking and quite a few have been helped by it. Nevertheless, it is not a very effective tool and can be downright harmful in some cases. There are much better ways to get the benefits that positive thinking allegedly provides.

[The Limitations of Positive Thinking]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

2500 Years Old Wisdom

I really dont know how I have encountered this book which is said to be the second most translated book in the world after the Bible, but what I can tell you is that I was speechless after reading it. The Tao Te Ching is comprised from 81 verses and it was written by Lao Tzu. Nothing certain is known about this amazing men whose name means The Ancient Master.

[2500 Years Old Wisdom]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

12 Lessons To Learn From Highly Successful People

The only work that will ultimately bring any good to any of us is the work of contributing to the healing of the world. Marianne WilliamsonSuccess can mean different things to different people, and I noticed that many of us have some kind of resistance to the word success, even though deep down inside, that is exactly what we all want, to live a successful and meaningful life.

[12 Lessons To Learn From Highly Successful People]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

The Little Guide To Contentedness

"Lets take a look at my life before contentedness: I was addicted to junk food and fast food, and overweight and unhealthy. I bought too many things on impulse, owned too much clutter, and was deeply in debt and struggling to make it to the next payday. I was unhappy with who I was, wanted desperately to change, tried a thousand different programs and books. I was always changing the way I did things, because it seemed everyone else had a better system or tools. I strove to meet goals, because they would get me to a better life. And as I learned to be content, here was what changed..." Leo Babauta of Zen Habits shares more.

[The Little Guide To Contentedness]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

Sharing A Laughter Break

It was a rainy day and I noticed that the lady coming into the senior center had holes in both shoes. Her toes were sticking through the shoes!

[Sharing A Laughter Break]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]