Posted by Brian @ 10:29 am on February 12th 2017
This morning I noticed a SASL attack in my mail logs, and fail2ban wasn’t stopping. I tested the regex and it was working fine, but… no ban. So here’s what worked for me: changing the backend for fail2ban to polling from auto. Problem solved.
in /etc/fail2ban/jail.local replace
backend = auto
backend = polling
Posted by Brian @ 7:35 am on June 13th 2014
It appears that the slow food movement has yet to reach Yogyakarta.
Posted by Brian @ 8:30 am on September 28th 2013
Ok not exactly. But I just visited the old
Roman cistern in Istanbul and wonder is this was the inspiration. It was beautiful and eerie. I kept an eye out for Orcs just to be sure. What would have (maybe) been cooler would have been how they used to do it – by boat!
Posted by Brian @ 11:20 pm on December 21st 2012
openssl req -new -x509 -days 365 -nodes -out stunnel.pem -keyout stunnel.pem
Copy the file to /etc/ssl/certs
Add or uncomment the following line in /etc/stunnel/stunnel4.conf:
cert = /etc/ssl/certs/stunnel.pem
Posted by Brian @ 4:22 pm on March 27th 2012
My last visit to ruins on the trip turned out to be the best. Beng Melea is a semi-destroyed fortress from the early 11th century, about 65km from Angkor Wat. I scored a guide that took me inside, around, and on top of this magnificent site, to places that most tourists never take the time to explore.
Posted by Brian @ 4:22 pm on March 27th 2012
Today I visited the royal city of Koh Ker, abandoned in 944 A.D. It’s about 130km or more from Angkor Wat. I was the only one here at Prasat Pram. This was my favorite place there, where the trees seem to explode out of the top of these thousand year old temples.
Posted by Brian @ 7:03 am on March 18th 2012
I have an HP dv7-6b78us laptop, which is fairly decent. Here’s a list of the things I had to do in order to get it to work properly in Ubuntu 11.10 64bit:
add to rc.local:
modprobe -r psmouse
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
The first line in the above turns off the touchpad, which I never use. If I needed to use it I could:
sudo modprobe psmouse
The second line loads the open source ATI Radeon driver, the third line turns off the ATI card so it doesn’t suck power. The Intel graphics card is plenty powerful for my needs.
echo 2000 | sudo tee /sys/class/backlight/intel_backlight/brightness
The brightness keys don’t work. I haven’t yet assigned a command to the right keys but I’ll update this when I do. Replace 2000 with a value you want; look at /sys/class/backlight/intel_backlight/max_brightness for the max value.
# fix mic on dv7
options snd-hda-intel model=dell-s14 power_save=0 power_save_controller=N
(enable subwoofer but break mic:options snd-hda-intel model=ref)
#Fix dropping networking on resume from suspend
options iwlagn bt_coex_active=0
Make sure proprietary radeon drivers are blocked
Optimize SSD (if you have an SSD that is):
add noatime,discard to main drive
tmpfs /tmp tmpfs defaults,nosuid,size=1g,mode=1777 0 0
echo deadline > /sys/block/sda/queue/scheduler
echo 1 > /sys/block/sda/queue/iosched/fifo_batch
Fix video mode error on boot:
sudo chmod a-x /etc/grub.d/05_debian_theme
also https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/699802 #24
Posted by Brian @ 8:48 am on September 13th 2011
I was setting up a new subversion repo recently in Ubuntu. I was able to check out files but when I tried a commit I hit this error:
svn: Can't open file '/var/svn/foo/db/txn-current-lock': Permission denied
So it was obviously a permissions issue, and here’s what the permissions looked like on that file:
-rwxr----- 1 root svn 0 Aug 12 18:00 txn-current-lock
Oops – I could only read but not write that file. Looking further it turns out the entire repo only had root write permissions, even though it was owned by the ‘svn’ group – I’m not sure how that happened, possibly a stupid mistake on my part. I had already set up a ‘svn’ group and added the users I wanted to have access to the repo to the ‘svn’ group, so I just had to make the repo writable by the group.
The fix was simple:
sudo chmod -R g+w /var/svn/foo/*
(where foo is the name of the repo)
Posted by Brian @ 9:22 am on September 9th 2011
I was wandering near my hotel in Edinburgh the other day, and being somewhat esurient, was on the lookout for vittles. I chanced across this appallingly bad name for a restaurant. I wasn’t able to determine if this was a local delicacy. Unfortunately they were closed or I’d have gotten a better picture.