Using mod_spamhaus to block TOR in Apache

Some web spammers use the Tor Project to hide their wrongdoings. Because of this, I want to block Tor exit nodes from submitting forms on my web sites. However, there are many legitmate uses of the Tor Project, so I don’t want to block GET requests but primarily POST requests. Run sudo apt-get install libapache2-mod-spamhaus Open /etc/apache2/mods-enabled/mod-spamhaus.conf for editing (as… Continue reading Using mod_spamhaus to block TOR in Apache

Setup a new headless Ubuntu VM in VirtualBox on FreeBSD

Download from //virtualboxes.org/images/ubuntu-server/ VBoxManage register “/storage2/virtualboxes/Ubuntu server 11.10/Ubuntu server 11.10.vbox” VBoxManage list vms “Ubuntu server 11.10” {231c28f0-19bb-48d7-9db4-ba29de37e5fd} VBoxManage modifyvm “Ubuntu server 11.10” –usbehci off VBoxManage modifyvm “Ubuntu server 11.10” –pae on VBoxManage modifyvm “Ubuntu server 11.10” –nic1 bridged –bridgeadapter1 em0 VBoxManage sharedfolder add “Ubuntu server 11.10” –name backup –hostpath /backup nohup VBoxHeadless –startvm “Ubuntu server 11.10”… Continue reading Setup a new headless Ubuntu VM in VirtualBox on FreeBSD

Published
Categorized as Ubuntu

Moving a DokuWiki site to a new server

I have customized my DokuWiki installation to allow multiple wikis, similar to running multiple WordPress blogs on different domains. My /etc/dokuwiki/local.php looks like this: This means that I have multiple DokuWiki sites in my /var/lib/dokuwiki/ directory. To copy only one of them: Copy the /etc/dokuwiki/hostname directory and symbolic links Copy the /var/lib/dokuwiki/hostname directory and symbolic links Copy… Continue reading Moving a DokuWiki site to a new server

Published
Categorized as Ubuntu

Installing tarsnap on a vanilla Ubuntu server

cd /var/tmp/ curl -O //www.tarsnap.com/download/tarsnap-autoconf-1.0.31.tgz  (or actually the latest version from //www.tarsnap.com/download.html) sudo apt-get install gcc e2fslibs-dev zlib1g-dev libssl-dev make cd tarsnap-autoconf-1.0.31 (directory name corresponding to the downloaded tarball) ./configure && make && sudo make install sudo tarsnap-keygen –keyfile /root/tarsnap.key –user username –machine machinename (note that my blog converts two dashes to a single long dash so you need to… Continue reading Installing tarsnap on a vanilla Ubuntu server

Published
Categorized as Ubuntu

Gmail as Mail Reader in GNOME

Simply install GNOME Gmail in your Linux distro and change the Mail Reader in System -> Preferences -> Preferred Applications: If you use Ubuntu Maverick Meerkat (10.10) or earlier you need to download the GNOME Gmail .deb but in Natty Narwhal (11.04) you can install it directly from the unsupported universe repository.

Published
Categorized as Ubuntu

Maverick Meerkat joys

In retrospect, I really don’t understand why I didn’t upgrade my primary laptop (Thinpad T60p with ATI graphics) earlier, as the Spotify issue was resolved a long time ago. Maverick feels a bit faster than Lucid, so I’m really happy.

Published
Categorized as Ubuntu

Maverick Meerkat disappointments

Ubuntu 10.10, with codename Maverick Meerkat, was released on 10 October 2010. So far it has only made me disappointed. First of all, when I have the USB cable for my LG L1510SF touch screen, X crashes in xf86findOption. I have submitted bug reports via Apport, see Launchpad bug #657895. Second, Spotify crashes on certain… Continue reading Maverick Meerkat disappointments

Published
Categorized as Ubuntu

Spotify 0.4 in WINE: “File is an unsupported format”

I bought Serengeti‘s album Standing Steady on MP3 from Bengans and wanted to play it in Spotify as “Local Files”. It worked perfectly in MS Windows, but on Ubuntu I got “File is an unsupported format”. WTF? Spotify acknowledges this: Spotify uses the system-supplied MP3 decoder on all platforms, and during our limited testing we… Continue reading Spotify 0.4 in WINE: “File is an unsupported format”