Setting up a Subversion (SVN) server on Ubuntu

January 2nd, 2014

I recently set up a SVN server to manage the eGiveIt codebase. Here are some details and links that helped.

Using find to delete files more than x days old

July 8th, 2013

find . -name "server.log*" -mtime +30 -exec rm -f {} \;

Chaining SSH sessions / Reverse SSH Port Forwarding

June 20th, 2013

I have a fair amount of music that I want to be able to access both at home and at work (I also like to have an offsite backup).  Since I now have a gateway both at work and at home, I'm not able to directly connect the machines to use rsync to keep the music stores up to date.  I've put this together and set up a cron job to automatically manage it all:

ssh -R 2201:localhost:22 filesync@shell2.strav.net "ssh -R 2201:localhost:2201 user@mp3server" \"rsync -e 'ssh -p 2201' --stats --progress -a 'path_on_mp3server' root@localhost:'path_on_localhost'\""

I have also used this to set up a background session

ssh -f -N -T -R 1443:localhost:443 user@hostname

The -f switch tells ssh to background itself after authentication. The -N switch creates the tunnel without running any remote commands and the -T switch disables pseudo-tty allocation

Enabling ping in Windows 7

February 27th, 2013

For some reason, Microsoft decided to prevent ICMP packets by default in their firewall.  Here's a command to reenable them.

netsh advfirewall firewall add rule protocol=icmpv4:8,any dir=in action=allow name="Core Networking – Answer an echo request [ping] (ICMPv4-In)" description="Allows this computer to answer IPv4 ICMP echo requests (ping). This rule was added by the sysadmin." profile=any interfacetype=any

Xbox 360 CR3 install

February 15th, 2013