Linux: use a file as an encrypted partition with losetup

Categories: Linux, Slackware

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: […]

Join two clips into one with mencoder

Categories: Linux

If you’ve two video clips to join and you’ve mencoder, simply type: mencoder -ovc copy -oac copy -noodml -o fullmovie.avi part1.avi part2.avi

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

Categories: BSD, Interwebz, Linux

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 ; ;date.timezone = decomment it and out your timezone: ; Defines the default timezone used by the date functions ; date.timezone = “Europe/Rome”

Crontab: avoid mail for one cron job

Categories: BSD, Linux

If you don’t want the cron mail for one cronjob you’ve to use the /dev/null redirection in the crontab entry:  */10 * * * * /sbin/yourcommand -options > /dev/null 2>&1

rsyncd missing secret for user

Categories: Linux

If rsync tells you rsyncd[6430]: auth failed on module blablablabla: missing secret for user “user” Try to chmod 700 your .secret files.