Step 5: Combining Resilio Sync and Owncloudįirst we need to clear up a few file permissions. It is very important that you click on “advanced” and set your data folder to /media/SYNC before finishing setup. When it is done, you can navigate to /owncloud to set everything up. Git clone git:///petrockblog/OwncloudPie.git He created a shell script for installing and updating Owncloud. Thankfully, Github user Petrockblog has made it very simple. Setting up Owncloud on linux is a mess of various terminal commands. If you are interested in Owncloud, then keep reading. If you aren’t interested in Owncloud, then you can stop here and simply set up Sync to point to /media/SYNC. Format your hard drive by doing the following ( replace sda1 with the name of your drive): sudo umount /dev/sda1 Mine was at the bottom and was called /dev/sda1. Open up terminal and type in: df -hįind your thumb drive. (if you are short on usb ports, I would suggest setting up remote desktop). Plug the thumb drive in to the Raspberry Pi. For this blog post however, I’m just using a micro-sd thumb drive. If you want to, you can plug in an external hard drive and go crazy. Step 3: Adding a thumb driveĪs mentioned, you have plenty of options for adding hard drive space to your Raspberry Pi. If your SD card is big enough, you can set up Sync and have your always-on Sync device….but why stop there? Lets add a thumb drive so that we can have more space. You can find the IP address for your RasPi by opening terminal and typing in: ifconfigĪt this point, you can stop right here. You can access the web GUI by opening a browser and typing in :8888/gui. Sync is now up and running on your tiny Raspberry Pi. Save this file in the newly created ~/.config/autostart as: sktop The contents of the text document need to be as follows: Įxec=/home/pi/rslsync -webui.listen 0.0.0.0:8888 You can use the leafpad program that comes pre-installed. In terminal, change your directory to the config folder: cd ~/.config/Ĭreate a new folder called “autostart” mkdir autostart Now, we want to make sure Sync will run at startup. Then download and unpack the binary archive wget Īnd finally, run the program. To do this, change the download directory: cd /home/pi We’ll need to download the binary for Sync. Make sure you have an ethernet cable plugged in to your RasPi, and fire up lxterminal (there is a shortcut on the desktop). Exit the configuration screen and you’ll eventually be presented with the Wheezy desktop. For the initial configuration screen that appears I recommend setting your username and password, expanding the root partition, setting your boot_behavior to start desktop on boot and enabling SSH. When that is done, plug the SD card into your RasPi and fire it up. If you are on a Mac, check out this link. If you are using Windows, check out this link. There are plenty of resources available for that. I won’t go in to full detail on how to write the images to the SD card. I just used HDMI out to my TV.įire up your favorite torrent client and download the Raspbian “jessie” image. You can also use a self powered external hard drive, or just the space available on the SD card. A thumb drive (I like using this for its low profile). If you have a DIY attitude and aren’t afraid of a few terminal commands, then read on to learn about how I did it. Just for kicks, I’m also using Owncloud (open source) to provide me with a web interface for accessing my files from any computer, including my mobile phone. To solve this problem, I’m using a Raspberry Pi as a low power, always-on device with Sync installed. There is the occasional scenario however, where I’ve wanted to grab a few files, but my other machine is turned off. I’ve been using it for syncing several gigabytes of RAW photos and video across my various machines. In a nutshell, it allows you to sync folders between machines using P2P. If you don’t know about it, you can read all about it in this cloud server tutorial. When Resilio released Resilio Sync, I decided to see what kind of options I had for using the program with my Raspberry Pi. Every once in a while I’ll take it out and tinker around with it. I’ve had a Raspberry Pi lying around the house for a few months now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |