issue54:tuto_apt-catcher-ng
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue54:tuto_apt-catcher-ng [2011/11/03 15:25] – créée auntiee | issue54:tuto_apt-catcher-ng [2011/12/22 21:37] (Version actuelle) – pluriel à "bonnes fondations" amstram | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | I've only ever had two computers running Ubuntu, I somehow tolerated the need to download the same packages twice. But, now I'm planning to add one or two more. And it seems such a waste of time and traffic. So, I started looking for a solution, and found the aptcacher program. I have installed it and was rather satisfied with the results... till I upgraded my server machine to Ubuntu 11.04. While apt-cacher was enabled, all my updates were returning errors. So, I started again looking for a solution, and have encountered another deb-package proxy – aptcacher-ng. I have replaced my old | + | **I've only ever had two computers running Ubuntu, I somehow tolerated the need to download the same packages twice. But, now I'm planning to add one or two more. And it seems such a waste of time and traffic. So, I started looking for a solution, and found the aptcacher program. I have installed it and was rather satisfied with the results... till I upgraded my server machine to Ubuntu 11.04. While apt-cacher was enabled, all my updates were returning errors. So, I started again looking for a solution, and have encountered another deb-package proxy – aptcacher-ng. I have replaced my old package proxy with the new one, and now updates on my second machine take no time at all. |
- | package proxy with the new one, and now updates on my second machine take no time at all. | + | |
- | So, what is apt-cacher-ng, | + | So, what is apt-cacher-ng, |
- | Below, I will describe the stepby-step procedure I followed to install and configure it in my network. | + | Je n'ai jamais eu que deux ordinateurs sous Ubuntu et, d'une manière ou d'une autre, j' |
+ | |||
+ | Bien. Qu' | ||
+ | |||
+ | **Below, I will describe the stepby-step procedure I followed to install and configure it in my network. | ||
As a source for the procedure, the tips from the following discussion were used: | As a source for the procedure, the tips from the following discussion were used: | ||
Ligne 15: | Ligne 18: | ||
If you do not have apt-cacher installed, you'll just skip these two steps as not relevant. | If you do not have apt-cacher installed, you'll just skip these two steps as not relevant. | ||
- | Next, install the apt-cacher-ng package on your server using your preferred package install method. | + | Next, install the apt-cacher-ng package on your server using your preferred package install method.** |
- | Start the program. In terminal mode, run the command: | + | Je vais décrire ci-dessous ce que j'ai fait, étape par étape, pour l' |
+ | |||
+ | Comme source de la procédure, j'ai utilisé les suggestions de la discussion suivante : | ||
+ | http:// | ||
+ | |||
+ | Apt-cacher était déjà installé ; j'ai donc : | ||
+ | * copié tous les fichiers deb stockés dans le cache d' | ||
+ | * désinstallé apt-cacher complètement. | ||
+ | |||
+ | Si vous n'avez pas installé apt-cacher, vous pouvez sauter ces deux étapes, car vous n' | ||
+ | |||
+ | Puis installez le paquet apt-cacher-ng sur votre serveur avec la méthode qui vous convient le mieux. | ||
+ | |||
+ | **Start the program. In terminal mode, run the command: | ||
sudo / | sudo / | ||
Configure the package routines on your other computers to use apt-cacher-ng as a proxy. There are several approaches to do this. The one that worked for me, and seems to be the simplest, uses the / | Configure the package routines on your other computers to use apt-cacher-ng as a proxy. There are several approaches to do this. The one that worked for me, and seems to be the simplest, uses the / | ||
+ | sudo nano / | ||
+ | |||
+ | Lancez le programme. Dans un terminal, exécutez la commande : | ||
+ | sudo / | ||
+ | |||
+ | Configurez les routines paquet sur les autres ordinateurs pour qu' | ||
sudo nano / | sudo nano / | ||
- | You can replace nano with the name of your favorite text editor, for example, gedit. Add the following line to the file: | + | **You can replace nano with the name of your favorite text editor, for example, gedit. Add the following line to the file: |
Acquire:: | Acquire:: | ||
" | " | ||
Ligne 32: | Ligne 54: | ||
Next, run the “update” using your package management software. For example, in terminal mode, you can use the following command | Next, run the “update” using your package management software. For example, in terminal mode, you can use the following command | ||
sudo aptget update | sudo aptget update | ||
- | This ensures that the aptcacher-ng builds the package index. Now it will know which packages it should store in the cache. | + | This ensures that the aptcacher-ng builds the package index. Now it will know which packages it should store in the cache.** |
+ | |||
+ | Vous pouvez remplacer nano par le nom de votre éditeur de texte préféré, par exemple gedit. Ajoutez la ligne suivante au fichier : | ||
+ | Acquire:: | ||
+ | " | ||
+ | }; | ||
+ | |||
+ | Remplacez le 192.168.2.11 par l' | ||
+ | |||
+ | Ensuite, exécutez « update » avec le gestionnaire de paquets. Par exemple, dans un terminal, vous pouvez utiliser la commande suivante : | ||
+ | sudo apt-get update | ||
+ | Ceci permet d' | ||
- | Actually, at this point the proxy is ready to work, but the cache is empty, and it will take time to populate it with packages. But wait – I have already stored some debfiles just for this moment. So now is a good time to make use of all the deb-files I have saved: | + | **Actually, at this point the proxy is ready to work, but the cache is empty, and it will take time to populate it with packages. But wait – I have already stored some debfiles just for this moment. So now is a good time to make use of all the deb-files I have saved: |
• Go to the / | • Go to the / | ||
• Copy all deb-files stored in your temp home folder to / | • Copy all deb-files stored in your temp home folder to / | ||
Ligne 41: | Ligne 74: | ||
Now it is time to actually run the import process. The program is controlled through a web page. So open http://< | Now it is time to actually run the import process. The program is controlled through a web page. So open http://< | ||
section. Clicking on the link will bring you to: | section. Clicking on the link will bring you to: | ||
+ | http://< | ||
+ | |||
+ | En fait, à ce stade, le proxy est prêt à fonctionner, | ||
+ | * Allez au dossier / | ||
+ | * Copiez tous les fichiers deb stockés dans le dossier temp de votre partition home vers / | ||
+ | * J'ai également des paquets dans les apt caches locaux sur mes deux ordinateurs sous Ubuntu. J'ai donc copié tous les fichiers deb sur les deux ordinateurs à partir de / | ||
+ | |||
+ | C'est maintenant le moment de lancer le processus d' | ||
http://< | http://< | ||
- | Scroll down and click the “Start Import” button. This will open another page detailing the package import process as it goes. It will take some time depending on the number of packages you want to import. | + | **Scroll down and click the “Start Import” button. This will open another page detailing the package import process as it goes. It will take some time depending on the number of packages you want to import. |
From now on there will be no need to download the same packet several times for different computers. For further reading, you can open the documentation installed with apt-cacher-ng and available through http:// | From now on there will be no need to download the same packet several times for different computers. For further reading, you can open the documentation installed with apt-cacher-ng and available through http:// | ||
Ligne 51: | Ligne 92: | ||
10.1.0.0/ | 10.1.0.0/ | ||
- | I hope this guide will help you set your home network for more efficient use. | + | I hope this guide will help you set your home network for more efficient use.** |
+ | |||
+ | Faites défiler la page vers le bas et cliquez sur le bouton « Start Import » (Commencer l' | ||
+ | |||
+ | Et maintenant, vous n' | ||
+ | * Ouvrez le fichier http:// | ||
+ | * Trouvez la section commençant par Alias /doc/ Modifier l' | ||
+ | |||
+ | J' | ||
**** | **** | ||
- | Book Review | + | |
+ | **Book Review | ||
Barefoot into Cyberspace by Becky Hogge | Barefoot into Cyberspace by Becky Hogge | ||
Written by Robin Catling | Written by Robin Catling | ||
- | Can we keep the Internet an open, democratic and free tool for the betterment of mankind? Barefoot into Cyberspace tackles this question. Written by a recent guest of ours on the Full Circle Podcast, Becky Hogge is a journalist and former director of the Open Rights Group. In it, Hogge seeks out the radical hackers opposing the old institutions gathering to control the Internet. | + | Can we keep the Internet an open, democratic and free tool for the betterment of mankind? Barefoot into Cyberspace tackles this question. Written by a recent guest of ours on the Full Circle Podcast, Becky Hogge is a journalist and former director of the Open Rights Group. In it, Hogge seeks out the radical hackers opposing the old institutions gathering to control the Internet.** |
- | Documenting a personal journey | + | Critique de livre |
+ | « Barefoot | ||
+ | Écrite par Robin Catling | ||
- | Touching the issues of copyright versus copyleft, personal privacy, the surveillance society, freedom of information, censorship and the commercial takeover of the Internet, this is a study of individualists against institutions, | + | Sera-t-il possible que l' |
- | You also get the slightly anti-climactic story of how Hogge declined to join Wiki-leaks, albeit in recognition of the commitment it takes to be that kind of activist. This running series of encounters highlights the one weakness of a book that never quite ties together all its themes into one coherent narrative, but you could argue that's how life is, amplified by the disjointing effect of rechnology and the rapid pace of change. | + | **Documenting a personal journey into ' |
+ | |||
+ | Touching the issues of copyright versus copyleft, personal privacy, the surveillance society, freedom of information, | ||
+ | |||
+ | Afin de décrire son voyage personnel dans le milieu de l'« hacktivism », Hogge commence et termine aux conférences annuelles du « Chaos Computer Club » en 2009 et 2010, accompagnée de quatre guides récurrents ; Stewart Brand, Cory Doctorow (auteur, bloggeur et militant pour le « copyleft »), Phil Booth de No2ID et Rop Gonggrijp, co-fondateur du ISP XS4ALL hollandais. Sur son chemin, Hogge interviewe Julian Assange de Wikileaks et Ethen Zuckerman, fondateur de Global Voices. | ||
+ | |||
+ | Abordant les questions de « copyright » contre « copy left », la vie privée, la société de surveillance, | ||
+ | |||
+ | **You also get the slightly anti-climactic story of how Hogge declined to join Wiki-leaks, albeit in recognition of the commitment it takes to be that kind of activist. This running series of encounters highlights the one weakness of a book that never quite ties together all its themes into one coherent narrative, but you could argue that's how life is, amplified by the disjointing effect of rechnology and the rapid pace of change. | ||
CONT ON PAGE 26... | CONT ON PAGE 26... | ||
- | If you want a grand 60 Minutes-style expose of dark deeds, conspiracy theory and armed insurrection - this won't be the book for you. It's altogether gentler than that. Enjoy the retrospective of the “hacker” movement and origins of the 1970's counter-culture; | + | If you want a grand 60 Minutes-style expose of dark deeds, conspiracy theory and armed insurrection - this won't be the book for you. It's altogether gentler than that. Enjoy the retrospective of the “hacker” movement and origins of the 1970's counter-culture; |
+ | |||
+ | Vous avez droit aussi à l' | ||
+ | |||
+ | Suite page 26 | ||
+ | |||
+ | Si vous voulez un grand exposé de sombres activités, de la théorie des conspirations et de l' | ||
- | Rop Gonggrijp gets all the best lines - well, they are his lines: | + | **Rop Gonggrijp gets all the best lines - well, they are his lines: |
“I think most of what we're fighting still today in the world is incompetence. Most of what we’re fighting is stupidity, and maybe a little bit of opportunism. There is also the ominous, control-seeking large corporate interests." | “I think most of what we're fighting still today in the world is incompetence. Most of what we’re fighting is stupidity, and maybe a little bit of opportunism. There is also the ominous, control-seeking large corporate interests." | ||
Ligne 79: | Ligne 146: | ||
Barefoot into Cyberspace: Adventures in search of techno-Utopia by BeckyHogge illustrated by Christopher Scally ISBN | Barefoot into Cyberspace: Adventures in search of techno-Utopia by BeckyHogge illustrated by Christopher Scally ISBN | ||
978-1-906110-50-5 (print) | 978-1-906110-51-2 (Kindle) | 978-1-906110-50-5 (print) | 978-1-906110-51-2 (Kindle) | ||
- | Becky Hogge is interviewed in Full Circle Side-Pod Episode Ten: Dancing in Bare Feet | + | Becky Hogge is interviewed in Full Circle Side-Pod Episode Ten: Dancing in Bare Feet** |
+ | |||
+ | Rop Gonggrijp bénéficie des meilleures phrases - en fait, c'est bien lui qui les a dites : | ||
+ | « Je pense que nous nous battons encore aujourd' | ||
+ | |||
+ | L' | ||
+ | « Nous venons en paix. On ne nous appelle pas le "Chaos Computer Club" parce que nous créons le chaos. En fait, une grande partie de notre travail collectif a évité le chaos en faisant remarquer qu'il faudrait peut-être poser de bonnes fondations virtuelles avant de construire davantage de tours virtuelles. » | ||
+ | Barefoot into Cyberspace est disponible sur Amazon, au téléchargement ou en livre de poche. | ||
+ | |||
+ | Barefoot into Cyberspace: Adventures in search of techno-Utopia by BeckyHogge illustrated by Christopher Scally ISBN | ||
+ | 978-1-906110-50-5 (print) | 978-1-906110-51-2 (Kindle) | ||
+ | Il y a un entretien avec Becky Hogge dans l' |
issue54/tuto_apt-catcher-ng.1320330359.txt.gz · Dernière modification : 2011/11/03 15:25 de auntiee