swap-file-creator

From Kicksecure
Revision as of 05:33, 27 January 2022 by Nurmagoz (talk | contribs)
Jump to navigation Jump to search

Introduction

swap-file-creator adds an encrypted swap file to the system. On every boot, it creates a new encrypted swapfile with a random password.

This is useful for systems with low RAM such as those inside virtual machines. It has an ENOUGH_RAM setting which defaults to 1950 MB. If there is more than enough RAM, no swap file will be created.

An option also exists to shred the swapfile on shutdown. For further information, see: https://github.com/Whonix/swap-file-creatorarchive.org iconarchive.today icon

Installation

Install package(s) swap-file-creator following these instructions

1 Platform specific notice.

2 Update the package lists and upgrade the systemOnion Logo.

sudo apt update && sudo apt full-upgrade

3 Install the swap-file-creator package(s).

Using apt command line --no-install-recommends optionOnion Logo is in most cases optional.

sudo apt install --no-install-recommends swap-file-creator

4 Platform specific notice.

  • Kicksecure: No special notice.
  • Kicksecure-Qubes: Shut down Template and restart App Qubes based on it as per Qubes Template ModificationOnion Logo.

5 Done.

The procedure of installing package(s) swap-file-creator is complete.

Functionality Test

To check it is working correctly, check the amount of free and used memory in the system.

free -m

Next, enable swapping and display the swap usage summary.

sudo swapon -s

For troubleshooting purposes, Check Daemon Log and search for unit-name: swap-file-creator.

Live Mode

swap-file-creator does not run if live mode is detected. [1]

Footnotes

  1. Live mode is detected if file /proc/cmdline contains string boot=live.

We believe security software like Kicksecure needs to remain Open Source and independent. Would you help sustain and grow the project? Learn more about our 12 year success story and maybe DONATE!