added trick about increasing the swap size on raspberry
authorJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 22 Dec 2016 00:01:00 +0000 (00:01 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 22 Dec 2016 00:01:00 +0000 (00:01 +0000)
src/tricks/docinfo.html [new symlink]
src/tricks/index.adoc [new file with mode: 0644]
src/tricks/raspberry_pi3_increase_swap_size.adoc [new file with mode: 0644]
www-update.sh
www/nav.js
www/tricks/index.html [new file with mode: 0644]
www/tricks/raspberry_pi3_increase_swap_size.html [new file with mode: 0644]

diff --git a/src/tricks/docinfo.html b/src/tricks/docinfo.html
new file mode 120000 (symlink)
index 0000000..e71e368
--- /dev/null
@@ -0,0 +1 @@
+../cooking/docinfo.html
\ No newline at end of file
diff --git a/src/tricks/index.adoc b/src/tricks/index.adoc
new file mode 100644 (file)
index 0000000..0659f6e
--- /dev/null
@@ -0,0 +1,8 @@
+= Tricks
+:docinfo2:
+:icons: font
+
+Raspberry PI:
+
+* link:raspberry_pi3_increase_swap_size.html[Increase swap size]
+
diff --git a/src/tricks/raspberry_pi3_increase_swap_size.adoc b/src/tricks/raspberry_pi3_increase_swap_size.adoc
new file mode 100644 (file)
index 0000000..7bc4851
--- /dev/null
@@ -0,0 +1,24 @@
+= Raspberry PI increase swap size
+:docinfo2:
+:icons: font
+
+1. Stop the swap
+
+----
+dphys-swapfile swapoff
+----
+
+2. Modify the size of the swap
+
+As `root`, edit the file `/etc/dphys-swapfile` and modify
+the variable `dphys-swapfile`:
+
+----
+CONF_SWAPSIZE=1024
+----
+
+3. Start the swap
+
+----
+dphys-swapfile swapon
+----
\ No newline at end of file
index 41a186e..0639cb1 100755 (executable)
@@ -58,3 +58,8 @@ asciidoctor $OPTS src/cooking/index.adoc -D www/cooking/
 asciidoctor $OPTS src/cooking/semoule_au_lait.adoc -D www/cooking/
 asciidoctor $OPTS src/cooking/nems_au_poulet.adoc -D www/cooking/
 asciidoctor $OPTS src/cooking/soupe_choux_vert.adoc -D www/cooking/
+
+for i in src/tricks/*.adoc
+do
+    asciidoctor $OPTS $i -D www/tricks
+done
index 9f692eb..bbac458 100644 (file)
@@ -5,6 +5,7 @@ $(document).ready(function() {
        + "<li><a href='https://wpitchoune.net/ppastats'>PPAstats</a></li>"
        + "<li><a href='https://wpitchoune.net/psensor'>psensor</a></li>"
        + "<li><a href='https://wpitchoune.net/ptask'>ptask</a></li>"
+       + "<li><a href='https://wpitchoune.net/tricks'>tricks</a></li>"
         + "<li><a href='https://wpitchoune.net/news/feed.xml'><i class='fa fa-rss' aria-hidden='true'></i></a></li>"
         + "</ul></nav>";
 
diff --git a/www/tricks/index.html b/www/tricks/index.html
new file mode 100644 (file)
index 0000000..dc3d27b
--- /dev/null
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<meta name="generator" content="Asciidoctor 0.1.4">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>Tricks</title>
+<link rel="stylesheet" href="./../style.css">
+<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css">
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
+<script src="../nav.js"></script>
+</head>
+<body class="article">
+<div id="header">
+<h1>Tricks</h1>
+</div>
+<div id="content">
+<div id="preamble">
+<div class="sectionbody">
+<div class="paragraph">
+<p>Raspberry PI:</p>
+</div>
+<div class="ulist">
+<ul>
+<li>
+<p><a href="raspberry_pi3_increase_swap_size.html">Increase swap size</a></p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+</div>
+<div id="footer">
+<div id="footer-text">
+Last updated 2016-12-21 20:44:44 UTC
+</div>
+</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/tricks/raspberry_pi3_increase_swap_size.html b/www/tricks/raspberry_pi3_increase_swap_size.html
new file mode 100644 (file)
index 0000000..e140845
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<meta name="generator" content="Asciidoctor 0.1.4">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>Raspberry PI increase swap size</title>
+<link rel="stylesheet" href="./../style.css">
+<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css">
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
+<script src="../nav.js"></script>
+</head>
+<body class="article">
+<div id="header">
+<h1>Raspberry PI increase swap size</h1>
+</div>
+<div id="content">
+<div id="preamble">
+<div class="sectionbody">
+<div class="olist arabic">
+<ol class="arabic">
+<li>
+<p>Stop the swap</p>
+</li>
+</ol>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>dphys-swapfile swapoff</pre>
+</div>
+</div>
+<div class="olist arabic">
+<ol class="arabic">
+<li>
+<p>Modify the size of the swap</p>
+</li>
+</ol>
+</div>
+<div class="paragraph">
+<p>As <code>root</code>, edit the file <code>/etc/dphys-swapfile</code> and modify
+the variable <code>dphys-swapfile</code>:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>CONF_SWAPSIZE=1024</pre>
+</div>
+</div>
+<div class="olist arabic">
+<ol class="arabic">
+<li>
+<p>Start the swap</p>
+</li>
+</ol>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>dphys-swapfile swapon</pre>
+</div>
+</div>
+</div>
+</div>
+</div>
+<div id="footer">
+<div id="footer-text">
+Last updated 2016-12-21 23:53:00 UTC
+</div>
+</div>
+</body>
+</html>
\ No newline at end of file