Masquerading or replacing outgoing SMTP email address with Postfix

Postfix can replace an outgoing email address by another one. To do so, you must perform these steps: Add in /etc/postfix/main.cf the following line smtp_generic_maps = hash:/etc/postfix/generic_maps Add in hash:/etc/postfix/generic_maps a

Read More

Create an ext3 or an ext4 partition without a journal

Most of the time, having a journal for ext3 and ext4 partitions is pretty useful. Nevertheless, you can prevent creating a journal by adding the option ^has_journal. For example: mkfs

Read More

Initializing a brand new disk with “parted”

“parted” is a replacement for “fdisk” of Linux.  It can handle disks larger than 2 TB.  Issue this command to launch “parted” where /dev/sdL is the disk you want to

Read More

How to unmount an encrypted partition?

Unmount the partition umount /mnt Unmap the partition cryptsetup luksClose securebackup

Read More

How to mount an encrypted partition?

Map the partition cryptsetup luksOpen /dev/sdXN securebackup Mount the partition mount /dev/mapper/securebackup /mnt

Read More

How to setup partition encryption?

To setup partition encryption on Ubuntu, perform the following steps: Install the required software apt-get install cryptsetup For more security, erase the partition you want to encrypt with one of

Read More

How to use the loop device on Unix?

The loop device on Unix lets access a file as a block device.  Disks are block devices.  So, it is possible to use a file as a disk.  The first

Read More

SSH login without password

It is possible to securely connect to a SSH server without a password. To do so, you must perform the following steps. It assumes that both machine are running a

Read More

How to create a SSH tunnel

You can connect to a remote host [remote-host] using another machine [proxy-host]. This can be accomplished if the [proxy-host] as an SSH server running. To do so, logon to the

Read More

Unix History

I can bet that you have no idea what the Unix timeline looks like. Curious? Download this PDF file from www.levenez.com.

Read More