How to Add Swap Space on Ubuntu 20.04

Swap is a space on a disk that is used when the amount of physical RAM memory is full. When a Linux system runs out of RAM, inactive pages are moved from the RAM to the swap space.

Swap space can take the form of either a dedicated swap partition or a swap file. Typically, when running Ubuntu on a virtual machine, a swap partition is not present, and the only option is to create a swap file.

This tutorial explains how to add a swap file on Ubuntu 20.04.

Before You Begin

Swap should not be seen as a replacement to physical memory. Since swap space is a section of the hard drive, it has a slower access time than physical memory. If your system constantly runs out of memory, you should add more RAM.

Generally, the size of the swap file depends on how much RAM your system has:

  • Systems with less than 2 GB RAM – 2 times the amount of RAM.
  • Systems with 2 to 8 GB RAM – the same size as the amount of RAM.
  • Systems with more than 8 GB RAM – at least 4 GB of Swap.

Only root or user with sudo privileges can activate the swap file.

Continue reading

Create an EncFS volume compatible with BoxCryptor Classic

If you are planning to share an encrypted volume between Linux/OSX and Windows (I will assume you are sharing it on Dropbox, but you could use any similar service) and you are using EncFS under Linux/OSX and BoxCryptor under Windows, there are some specifig settings to use when you create the EncFS volume. Infact even if BoxCryptor claims to be “encfs compatible”, it’s not 100%.

If you are planning to share an encrypted volume between Linux/OSX and Windows (I will assume you are sharing it on Dropbox, but you could use any similar service) and you are using EncFS under Linux/OSX and BoxCryptor under Windows, there are some specifig settings to use when you create the EncFS volume. Infact even if BoxCryptor claims to be “encfs compatible”, it’s not 100%.

Suppose you want to create an encrypted volume located at \$HOME/.TestTmpEncrypted and mounted at \$HOME/TestTmp you need the following command:

$ encfs ~/.TestTmpEncrypted ~/TestTmp

answer “Y” when you are asked if you want to create the folders:

The directory "/home/xxx/.TestTmpEncrypted/" does not exist. Should it be created? (y,n) y
The directory "/home/xxx/TestTmp" does not exist. Should it be created? (y,n) y

Continue reading

accedere a gtalk con pidgin e google apps

Per accerede senza errori a gtalk per un account google apps tramite pidgin bastano queste semplici impostazioni:

esempio di indirizzo mail mionome@miodominio.org

Basic Tab:
Protocol: XMPP
Username: mionome
Domain: miodominio.org
Resource: gmail.com
Advanced Tab:
Connect port: 5222
Connect server: talk.google.com
File transfer proxies: proxy.jabber.org

Ora potete collegarvi senza problemi

Per accerede senza errori a gtalk per un account google apps tramite pidgin bastano queste semplici impostazioni:

esempio di indirizzo mail mionome@miodominio.org

  1. Continue reading