Robert's blog

Robots and Brownies

I'm currently doing the new Digital Maker badge with my Cubs and last night I found myself at my friend's Brownie pack doing some of the activities I did (or will be doing) with my Cubs. With only an hour I had to reduce what I was planning but most importantly the girls had fun (rule 0 of Guiding)!


Using SSH agent for sudo authentication on Ubuntu

Thanks to a post at I got a starting point, however a few things didn't quite work out (I had to install checkinstall as a prerequisite and edit the client machine user's ssh config) so here's the adjusted instructions (updated Feb 2015).


Logwatch a Custom Log File

So I own a VPS (if you can ever really own a VPS) which does a number of things for me. It's backed up by the hosting company, something which requires root access. Now I always worry when giving someone root access, no matter how much I trust them, so the back ups are performed through a simple script which only allows certain commands to be ran, as well as logging all attempts.


Umask Values

Another post containg stuff I usually have to look for.

umask valuefile chmod valuedirectory chmod value
000666 rw-rw-rw-777 rwxrwxrwx
002664 rw-rw-r--775 rwxrwxr-x
022644 rw-r--r--755 rwxr-xr-x
027640 rw-r-----750 rwxr-x---
077600 rw-------700 rwx------
277400 r--------500 r-x------


Fix Grub (Again)

So thanks to Windows going screwy again I had to fix grub on my machine. So I can find these instructions again here they are:

  1. sudo mount /dev/sda4 /mnt
  2. sudo mount -o bind /dev /mnt/dev
  3. sudo mount -o bind /proc /mnt/proc
  4. sudo chroot /dev /bin/bash
  5. grub-install /dev/sda
  6. exit
  7. reboot

These instructions allow you to run grub-install in a chrooted environment.


Now I Git it

I've been playing around with git for a short while now and now I think I've finally got it, or rather the point of it. Ignore those places that discuss it as you commit to your local repository and then commit that the the main repository etc. No it's about letting everyone have a complete copy - in fact you don't even need a central repository to get the benefit of version control - it sits there in a folder on your own PC.
Anyway so here's some sourcves which may help:



Subscribe to RSS - Robert's blog