Interlock is a non-profit organization that provides space for its members and the local community to develop and share their interests in science, technology, art, and culture.

Raspberry Pi Backup Server

Last week I presented on How Do I Make a backup server with a raspberrypi. I covered going from a fresh pi to working network drive in probably about 30 minutes of actual work along with 30 minutes of talking about options for other things to do. There were 6 or so people that came and for those people, and others that could not make it, here are my notes on how to do this. It is not a recipe file with step by step with commands that can be cut and pasted. This is because there are lots of options and the values I use are going to be different that what you will need on your network. These instructions will guide you through this and tell you where to get things.

Buy raspi 2 or 3, hard drive(s), case(s), sd card
Download Raspian –
Write image to sd card –
connect keyboard and network to raspi

Boot raspi
login: pi password: raspberry

edit /etc/default/keyboard, change gb to us, save and reboot

apt-get update
apt-get upgrade

useradd to create the network backup owner
ssh-keygen to make .ssh and some keys
edit ~netback/.ssh/authorized_keys to add your keys

apt-get install samba samba-common-bin nfs-common nfs-server rsync

parted to check partitions on USB disks
mkfs to create the file systems
edit /etc/fstab to mount the USB drives

edit /etc/samba/smb.conf
start nmbd and smbd
smbpasswd -a netback
edit /etc/exports
update the nfs-kernel-server files
start service
Use rsync from linux or mac to backup to the raspi

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

if [ “X$1” == “X” ]; then
echo “Missing argument”
echo “Usage: $0 {1|2}”
exit 1

DAY=`date +%d`

if [ -d $BACKDIR ]; then
rm -rf $BACKDIR

mkdir $BACKDIR

time rsync -avHb –backup-dir=$BACKDIR –delete$SRCDIR . > $LOGFILE 2>&1

tail -30 $LOGFILE | Mail -s “rasp01 nightly sync $1 of colossus”

exit 0

from on September 20th, 2016Comments0 Comments

GPG Stuff

On April 12 at the Interlock there was a “How do I …” class on generating GPG keys and what to do with them when preparing to go to a key signing event. Then at BSides Rochester on April 23 there was such an event. Following the key signing event at BSides there was a repeat of the class on generating your GPG keys.

Now for a follow up to the follow up, Interlock is hosting a Crypto Party on Friday, May 5 at 7PM as a prelude to the regular 2600 meeting. So come out on Friday to get your keys signed!

If you missed both classes but are still interested in having a secret decoder ring of your very own the slides are now available here.


from on May 3rd, 2016Comments0 Comments

Arduino Day Schedule

Arduino Day, Saturday, Apr 2
1PM to 7PM at Interlock

1-2 will be a socializing time when people can come in, meet others, have some lunch and discuss electronics projects.
At 2PM we will have a “Getting Started with Arduino” if you want to know what this is all about and how to get started.
At 3PM we will open the floor to anyone that wants to show off the cool projects they have done with Arduinos.
At any time people are welcome to work on their own Arduino projects or help others designing their latest project.

from on March 21st, 2016Comments0 Comments