From Kicksecure
Jump to navigation Jump to search



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/Kicksecure/swap-file-creator


Install swap-file-creator. To accomplish that, the following steps A. to D. need to be done.

A. Update the package lists.

sudo apt update

B. Upgrade the system.

sudo apt full-upgrade

C. Install the swap-file-creator package.

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

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

D. Done.

The procedure of installing swap-file-creator is complete.

Functionality Test[edit]

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[edit]

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


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

Unfinished: This wiki is a work in progress. Please do not report broken links until this notice is removed, use Search Engines First and contribute improving this wiki.