Rev on the markdown standards

This commit is contained in:
Ian Gulliver
2019-04-14 22:45:25 +00:00
parent 22b83149aa
commit f967a85482
3 changed files with 32 additions and 6 deletions

View File

@@ -7,17 +7,20 @@
<h3>Install apt-cacher-ng</h3>
<code>sudo apt-get install squid-deb-proxy</code>
<pre><code>sudo apt-get install squid-deb-proxy
</code></pre>
<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>
<pre><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></pre>
<h3>Tell sudo to pass through http_proxy</h3>
<code>sudo visudo
<pre><code>sudo visudo
# Add the line after the env_reset line:
Defaults env_keep += "http_proxy"</code>
Defaults env_keep += "http_proxy"
</code></pre>
<!--# include file="include/bottom.html" -->

View 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" -->
If youre building system images, youre going to do a lot of debootstrap, which is going to fetch a lot of packages. On a fast system, thatll be the slowest part of the process. Heres how to cache.
### Install apt-cacher-ng
sudo apt-get install squid-deb-proxy
### Tell programs to use the proxy
export http_proxy=http://127.0.0.1:8000
# Note that you'll need to re-export this before any use of debootstrap
### Tell sudo to pass through http_proxy
sudo visudo
# Add the line after the env_reset line:
Defaults env_keep += "http_proxy"
<!--# include file="include/bottom.html" -->

View File

@@ -6,7 +6,7 @@ for FILE in $BASEDIR/*.md; do
BASENAME=$(basename $FILE)
OUTNAME=${BASENAME%.md}.html
echo "$BASENAME -> $OUTNAME"
TEMP=$(tempfile --dir=$BASEDIR)
TEMP=$(tempfile --dir=$BASEDIR --mode=0644)
markdown $FILE > $TEMP
mv $TEMP $BASEDIR/../$OUTNAME
done