…and syncing photos with PhotoSync.
I’ve used the excellent PhotoSync app on my iPhone and iPad to backup photos to my iMac. This works well, but requires me powering the iMac on to run the sync. As my Pogoplug is always on, and has a bunch of storage connected to it, I thought it would be great to be able to sync from my iDevices to the Pogoplug whenever I’m in range of my wireless network. PhotoSync supports syncing to FTP servers, so I decided to experiment with installing and setting up an FTP server on the Pogoplug.
Here’s how to install an FTP server on the Pogoplug:
As a prerequisite of this article, please complete the steps described in my previous post here in order to prepare your Pogoplug so you can install packages using the IPKG package management system.
2. INSTALLING AN FTP SERVER
# Install the FTP server /opt/bin/ipkg install bftpd # Create the log folder mkdir /opt/log # Create the log file touch /opt/log/bftpd.log
3. CONFIGURING THE FTP SERVER
cd /opt/etc # Download my config file wget http://aaronrandall.com/wordpress/wp-content/uploads/2013/06/bftpd.txt && mv bftpd.txt bftpd.conf
Now to find the hard drive you would like to share via FTP; run:
And look for a disk mounted to the /tmp/ folder. In this example, I’ll be sharing “/tmp/.cemnt/mnt_sda1” via FTP (the last row in the output below):
Filesystem Size Used Available Use% Mounted on /dev/mtdblock2 32.0M 15.7M 16.3M 49% / none 125.0M 20.0k 125.0M 0% /tmp /dev/mtdblock3 91.0M 26.1M 64.9M 29% /opt /tmp/.cemnt/sda1 916.9G 514.3G 393.3G 57% /tmp/.cemnt/mnt_sda1
Open the config file for editing using your favourite text editor:
Search for the line containing:
and replace the value in quotes with the /tmp/ path for your hard drive, save and close the file.
Note: My setup allows for anonymous access to the FTP server, this is not secure. I’ve completed the minimum amount of configuration to get the FTP server up-and-running in order to experiment with how well it performs with PhotoSync. If you intend to use this setup long-term, I would highly recommend checking out and updating the security settings in the bftpd config file.
4. RUNNING THE FTP SERVER
5. (Optional) Setting up PhotoSync
If you have an iPhone/iPad and would like to sync to your Pogoplug via FTP, here’s how you can setup the app:
• Launch PhotoSync
• Tap the settings button in the bottom-right corner of the app (small “i”)
• Tap “Configure” > “FTP/SFTP” > “Configure FTP/SFTP-Account”
• Enter your FTP details as shown below (replacing the “Server” setting with your Pogoplug IP address, and the “Directory” setting with the folder path where you would like to sync photos to – leave this blank to upload to the root of the hard drive):