Month: January 2012
-
Encrypt Dropbox content easily on Linux/BSD/OSX using encfs
Install encfs do $mkdir ~/Dropbox/Secure ; mkdir ~/DropboxSecure do $ encfs ~/Dropbox/Secure ~/DropboxSecure I chose paranoia mode. This will use the settings below. Enter a secure password and there you go. You now have a folder ‘DropboxSecure’, in which you can store your sensitive data. It will save this in ~/Dropbox/Secure/ . You can unmount…
-
Sleep better by installing one simple program
Redshift adjusts the color temperature according to the position of the sun. A different color temperature is set during night and daytime. During twilight and early morning, the color temperature transitions smoothly from night to daytime temperature to allow your eyes to slowly adapt. At night the color temperature should be set to match the…
-
Easily setting up a ThePirateBay.org mirror (wordpress plugin)
Easier than my previous post, use this plugin for wordpress.
-
Easily setting up a ThePirateBay.org mirror (nph-tpb.cgi)
If you want to set up a simple pirate-bay mirror, download this script. This is theย nph-tpb.cgi – file various sites talk about. Setting up is easy. It is just a CGI script. So place it in your CHI-folder (or create one) and ย set the directory-settings so it will allow CGI scripts. Sample config is in…
-
Example postfix + dovecot SSL configuration
I generated SSL certs using this guide. Then I set up dovecot and postfix. View my dovecot conf here and my psotfix main.cf here. You can use this to configure your own working SSL mail. Remember to install: dovecot, dovecot-imap and postfix. On your devices, use ports 143/993 (incomping) and 587 (outgoing). Please note my…
-
[Solution] Can’t use /usr/lib/dovecot/imap: No such file or directory
Getting this? $ sudo service dovecot restart * Restarting IMAP/POP3 mail server dovecot Error: mail_executable: Can’t use /usr/lib/dovecot/imap: No such file or directory Fatal: Invalid configuration in /etc/dovecot/dovecot.conf …fail! install dovecot-imap ;)
-
Update wordpress without needing FTP
Give your wordpress dir the right permissions: sudo chmod -R 775 wp-dir ; sudo chown -R username:www-data Add this in wp-config.php:ย define(‘FS_METHOD’,’direct’); You can now update via ‘update now’.
-
Test SMTP block (sshguard, fail2ban)
I used the following script to test brute-force protection: #!/usr/bin/php <?php for( $i=0; $i<99; $i++ ){ echo “Will try [$i] now. \n”; $mbox = imap_open(“{mail.mailserver.com:143/imap/novalidate-cert}INBOX”,”user_test_$i”,”foobar”,0,0); } ?> Edit: You will need php-cli and php-imap