DNScrypt with Ubuntu 14.04 on RPi 2

Got this working on a Raspberry Pi 2 by using several sets of instructions… All commands are done on the command line in a terminal instance.

  1. These instructions got the actual software onto my machine. Since there is no build for ubuntu, the code must be compiled on the local machine – starting with the dependent encryption suite ‘libsodium’ first .
    • From the linked instructions “I also recommend installing the build-essential packages in case you’re missing compilers.”
      apt-get install build-essential
    • Download the libsodium to a useable directory, I used /media/libsodium which I created first using
      sudo mkdir /media/libsodium
      cd /media/libsodium

      Continue reading “DNScrypt with Ubuntu 14.04 on RPi 2”

Installing an FTP server on RPi 2 running ubuntu

My RPi 2 is running Ubuntu-trusty from here, and I needed to add an FTP server. The FTP server will host a folder on a ntfs USB drive. Initially I tried vsftpd, but the vsftpd FTP server sucks and I ended up using a different FTP, proftpd. What I did was loosely based around these instructions.

  1. install proftpd from a terminal window:
    sudo apt-get update
    sudo apt-get install proftpd

    (when a window popped up, I (eventually) I installed as a service since the other option requires more stuff I haven’t installed)

  2. Modify config file using nano text editor:
    sudo nano /etc/proftpd/proftpd.conf

    Continue reading “Installing an FTP server on RPi 2 running ubuntu”

Raspberry PI 2 as a NAS device with torrenting

Update: Installing Ubuntu 14.04 is here (Supported through early 2019).
Note: The RPi2 with officially supported Ubuntu is proving problematic, I want to move to something more reliable.

GOAL:

Use a Raspberry PI as a NAS Seed Box (Network Attached Storage running torrent software). RPi 2 is perfect for this due to running at very low electrical low power and being faster than a Fast Ethernet bottleneck. I initially bought a RPi version 1B which I returned as it couldn’t send files over a wired LAN at 10MB per second (basically the bottleneck for Fast Ethernet (100mbps)). Also I can use a thin client for torrenting on my PC with Deluge rather than just a webUI.

Setup:

  • RPi version 2B running Ubuntu (yay linux).
  • USB Drive formatted in NTFS.
  • Install Samba (windows file sharing).
  • Install Deluge torrent software with a web interface (deluge also supports a remote thin client πŸ™‚ ).

Instructions:

Using a HDMI monitor and keyboard:

  1. Install Ubuntu.
    Continue reading “Raspberry PI 2 as a NAS device with torrenting”

Syncing TrueCrypt Volumes (across a windows network)

I have been looking for a way to synchronise an encrypted TruecryptΒ  volume. This is a tricky problem, as a truecrypt volume is simply a large (possibly several GB) file, which appears as a disk drive when mounted with truecrypt. I have been looking into this technology lately as a method to have a safe location to store documents which which can’t be accessed by anyone else. Truecrypt is perfect for this, and as I have been listening on security now lately, it is still pretty much a very impressive solution for encryption on windows – and it’s free. I have heard bad things about dropbox being able to access your whole computer and similar things so truecrypt seems a perfect solution. So I’m very satisfied using the various simple to use options truecrypt has, the next problem is backup. I want to be able to backup my encrypted volume. The encrypted truecrypt volume is simply a large file sitting on my computer, each time I modify the contents of the volume, the encrypted volume changes. Herein lies the problem, I need to be able to backup only the part of the volume that has changed – otherwise for example if I change the name of a file in the truecrypt volume, the whole volume would need to be resynchronised with the backup location. This is called Block level synchronisation, where only modified parts of a file are synchronised. Dropbox does Block level synchronisation, so it is possible to use dropbox with a truecrypt volume – but that still has the problem of using dropbox… The best source of various solutions I found is here. The one I have got to work is Syncovery, there are others on GitHub which were free, but Syncovery seems the best option – even if it does cost ~$35.

This allows me to have a remote backup of a truecrypt volume – where the remote location doesn’t need access to the contents of the volume. With this solution only encrypted noise is sent out of my computer to the backup πŸ™‚

To get this to work:

  1. Create Truecrypt volume (needs to be a volume not a partition so the sync software can access the encrypted data).
  2. Set truecrypt to change modification date when modifications are made. (Settings>Preferences>Windows>Uncheck Preserve modification…)
  3. Create Syncovery Profile (with block level mode).
    – Select Advanced Mode from the start screen
    – Create New profile with Standard Copying mode
    – Select Partial File Updating (in the Special tab sheet)
  4. Since my backup drive is portable, I attached it and synchronised it locally.
  5. After the first synchronisation, it will create a database of the files, so the second time should be much faster. I tested this by putting the backup on a remote machine over wifi and making a small change to the contents of the source truecrypt volume. It ran through the whole 12GB volume in no time at all πŸ˜€