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.
- 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)
- Modify config file using nano text editor:
sudo nano /etc/proftpd/proftpd.conf
Continue reading “Installing an FTP server on RPi 2 running ubuntu”
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.
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.
- 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 🙂 ).
Using a HDMI monitor and keyboard:
- Install Ubuntu.
Continue reading “Raspberry PI 2 as a NAS device with torrenting”
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:
- Create Truecrypt volume (needs to be a volume not a partition so the sync software can access the encrypted data).
- Set truecrypt to change modification date when modifications are made. (Settings>Preferences>Windows>Uncheck Preserve modification…)
- 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)
- Since my backup drive is portable, I attached it and synchronised it locally.
- 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 😀