New article, template, slightly narrower
This commit is contained in:
23
2016-04-02-apt-caching-for-debootstrap.html
Normal file
23
2016-04-02-apt-caching-for-debootstrap.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!--# set var="title" value="apt caching for debootstrap" -->
|
||||
<!--# set var="date" value="April 2, 2016" -->
|
||||
|
||||
<!--# include file="include/top.html" -->
|
||||
|
||||
<p>If you’re building system images, you’re going to do a lot of debootstrap, which is going to fetch a lot of packages. On a fast system, that’ll be the slowest part of the process. Here’s how to cache.</p>
|
||||
|
||||
<h3>Install apt-cacher-ng</h3>
|
||||
|
||||
<code>sudo apt-get install squid-deb-proxy</code>
|
||||
|
||||
<h3>Tell programs to use the proxy</h3>
|
||||
|
||||
<code>export http_proxy=http://127.0.0.1:8000
|
||||
# Note that you'll need to re-export this before any use of debootstrap</code>
|
||||
|
||||
<h3>Tell sudo to pass through http_proxy</h3>
|
||||
|
||||
<code>sudo visudo
|
||||
# Add the line after the env_reset line:
|
||||
Defaults env_keep += "http_proxy"</code>
|
||||
|
||||
<!--# include file="include/bottom.html" -->
|
||||
@@ -1,5 +1,5 @@
|
||||
<!--# set var="title" value="WiFi bridging redux" -->
|
||||
<!--# set var="date" value="May 17, 2019" -->
|
||||
<!--# set var="date" value="May 17, 2016" -->
|
||||
|
||||
<!--# include file="include/top.html" -->
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ body {
|
||||
font-family: Monospace, Courier;
|
||||
font-size: 16px;
|
||||
|
||||
max-width: 900px;
|
||||
max-width: 800px;
|
||||
|
||||
padding-left: 2ch;
|
||||
padding-right: 3ch;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<ol>
|
||||
<li>2019-Apr-14: <a href="2019-04-14-reboot.html">Reboot</a></li>
|
||||
<li>2016-May-17: <a href="2016-05-17-wifi-bridging-redux.html">WiFi bridging redux</a></li>
|
||||
<li>2016-Apr-02: <a href="2016-04-02-apt-caching-for-debootstrap.html">apt caching for debootstrap</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
|
||||
8
template.html
Normal file
8
template.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<!--# set var="title" value="" -->
|
||||
<!--# set var="date" value="" -->
|
||||
|
||||
<!--# include file="include/top.html" -->
|
||||
|
||||
<p></p>
|
||||
|
||||
<!--# include file="include/bottom.html" -->
|
||||
Reference in New Issue
Block a user