From f253ec84873310ce48caa1bc0f5ce7f52fbe05ea Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Thu, 22 Dec 2016 00:01:00 +0000 Subject: [PATCH] added trick about increasing the swap size on raspberry --- src/tricks/docinfo.html | 1 + src/tricks/index.adoc | 8 +++ src/tricks/raspberry_pi3_increase_swap_size.adoc | 24 +++++++++ www-update.sh | 5 ++ www/nav.js | 1 + www/tricks/index.html | 39 ++++++++++++++ www/tricks/raspberry_pi3_increase_swap_size.html | 69 ++++++++++++++++++++++++ 7 files changed, 147 insertions(+) create mode 120000 src/tricks/docinfo.html create mode 100644 src/tricks/index.adoc create mode 100644 src/tricks/raspberry_pi3_increase_swap_size.adoc create mode 100644 www/tricks/index.html create mode 100644 www/tricks/raspberry_pi3_increase_swap_size.html diff --git a/src/tricks/docinfo.html b/src/tricks/docinfo.html new file mode 120000 index 0000000..e71e368 --- /dev/null +++ b/src/tricks/docinfo.html @@ -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 index 0000000..0659f6e --- /dev/null +++ b/src/tricks/index.adoc @@ -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 index 0000000..7bc4851 --- /dev/null +++ b/src/tricks/raspberry_pi3_increase_swap_size.adoc @@ -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 diff --git a/www-update.sh b/www-update.sh index 41a186e..0639cb1 100755 --- a/www-update.sh +++ b/www-update.sh @@ -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 diff --git a/www/nav.js b/www/nav.js index 9f692eb..bbac458 100644 --- a/www/nav.js +++ b/www/nav.js @@ -5,6 +5,7 @@ $(document).ready(function() { + "
  • PPAstats
  • " + "
  • psensor
  • " + "
  • ptask
  • " + + "
  • tricks
  • " + "
  • " + ""; diff --git a/www/tricks/index.html b/www/tricks/index.html new file mode 100644 index 0000000..dc3d27b --- /dev/null +++ b/www/tricks/index.html @@ -0,0 +1,39 @@ + + + + + + +Tricks + + + + + + + +
    +
    +
    +
    +

    Raspberry PI:

    +
    +
    + +
    +
    +
    +
    + + + \ 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 index 0000000..e140845 --- /dev/null +++ b/www/tricks/raspberry_pi3_increase_swap_size.html @@ -0,0 +1,69 @@ + + + + + + +Raspberry PI increase swap size + + + + + + + +
    +
    +
    +
    +
      +
    1. +

      Stop the swap

      +
    2. +
    +
    +
    +
    +
    dphys-swapfile swapoff
    +
    +
    +
    +
      +
    1. +

      Modify the size of the swap

      +
    2. +
    +
    +
    +

    As root, edit the file /etc/dphys-swapfile and modify +the variable dphys-swapfile:

    +
    +
    +
    +
    CONF_SWAPSIZE=1024
    +
    +
    +
    +
      +
    1. +

      Start the swap

      +
    2. +
    +
    +
    +
    +
    dphys-swapfile swapon
    +
    +
    +
    +
    +
    + + + \ No newline at end of file -- 2.7.4