munin client denied by server configuration

after issuing a

ln -s /var/cache/munin/www

i was still getting a 403 error when attempting to access the stats page of munin and apache’s logs were showing ‘client denied by server configuration’. in debian add the following to apache.conf in /etc/apache2

<Directory /var/cache/munin/www>
Order allow,deny
Require all granted
</Directory>

service apache2 restart

permanently ban an IP with fail2ban

it’s easy to permanently ban an IP with fail2ban though it might not seem that way at first. the jail you’re configuring (often SSH) should contain lines a bit like this:

bantime = 600
findtime = 600
maxretry = 3

the trick is to put a minus sign before the bantime seconds. so if you want to ban an IP permanently you should change it to look like this:

bantime = -600
findtime = 600
maxretry = 3

then you’ll need to restart the service with

service restart fail2ban

or whatever.

liking the fibre broadband

when i stayed at my last place i was quite happy with the 16Mb down. new property has access to fibre broadband…suffice to say that i’m rather liking it

plusnet_speedlook at that upload rate…crikey. good service from plusnet. oh and welcome to 2015.

disruption

though you shouldn’t see any issues on the pages this site isn’t well…i may ditch wordpress for something else…but with over 500 posts that doesn’t sound like fun.

there’s something wrong with fcgi after i upgraded to wp’s latest version… 4.1. 500 internal server errors. a plugin is probably the culprit…i’m guessing w3 total cache.

–UPDATE 2/1/15–

yup…w3 total cache was to blame which is rather disappointing as i found it rather useful. i spent far too much time getting the site back end up again. will probably just continue to use cloudflare’s caching.

still showing default apache page after virtualhost has been added

apache is still showing the default install page after a new virtualhost has been added. why? because 000-default.conf is still set as the default. to remedy this issue a

a2dissite 000-default.conf

as root (or sudo if you must) then

service apache2 restart

that should, hopefully, be that.

subscribe!

you can now subscribe to cloudplasma.co.uk for instant activity updates! hello…? anyone…? no…? aww…

how to start and stop motion at a certain time

so here’s how to start the motion software controlling your webcam at a certain time and then have it stop at a certain time. this stops it recording when you know you’ll be in a place that’s monitored and you don’t want your drives getting filled with images of your activity.
do a crontab -e and then enter something like the following

40 5 * * * root /usr/bin/lwp-request http://localhost:8080/0/detection/start > /dev/null
30 19 * * * root /usr/bin/lwp-request http://localhost:8080/0/detection/pause > /dev/null

this will start the camera at 5:40 am and stop it again at 7:30 pm. n.b that this info was taken from the motion site…it’s a great resource but i’ve found it, sometimes, difficult to find what i need.

Bear