Linux: use a file as an encrypted partition with losetup

On my notebook i’ve decided to have a / partition and a cripted home for my user, automagically mounted at boot.
That’s what you need to do, after a fresh Slackware 13.1 installation:

Create the user:

adduser username

then the file to mount as home partition:

dd if=/dev/zero of=/cryptedfile bs=1k count=5000

load the cryptoloop module:

modprobe cryptoloop

Continue reading “Linux: use a file as an encrypted partition with losetup”

PHP: Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings

If you see this in one of your php page, find this line in your php.ini file:


; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =

decomment it and out your timezone:


; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/Rome"