PiDav – WebDav Raspberry Pi Tutorial – Part One

Raspberry Pi WebDav

The quite brilliant Raspberry Pi is a marvelous little computer which can run a version of Debian Linux. With a little bit of tinkering you can configure your Pi to run a web server and therefore WebDav.

Before you get going you will need a Raspberry Pi with Raspian “Wheezy” installed on it. By following this tutorial that should get you going.

http://elinux.org/RPi_Easy_SD_Card_Setup

When you first boot up your Raspberry Pi you are prompted to set up some basic configuration. I suggest that you enable SSH and change the password for the Pi default user account. SSH enables you to remotely configure your Pi over a network headless (i.e. no keyboard, mouse or monitor connected).

Once you’ve finished configuring your Pi and finished it’s a good idea to reboot.

sudo shutdown -r -time now

As it boots up try and take note of the IP address that is shown as part of the boot process. If you didn’t spot it don’t worry, you can log into your router and look at the list of connected devices. It should be easy to spot the IP address your Pi has been given. Make a note of it.

Once you’ve rebooted SSH into your Pi. I’m using terminal on a Mac so only have to type

ssh -l pi

The IP address is the one you took note of earlier.

You should now be prompted to input the password you set earlier and then be prompted with the following text:

Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Jan 22 20:21:57 2013 from computer
pi@raspberrypi ~ $

Follow this tutorial to change the automatically generate IP address to a static one you can remember.

http://www.raspberrypi-tutorials.co.uk/raspberry-pi-static-ip-address/

Before we start installing further software it is a good idea to update your already install applications.

sudo apt-get update

Next up install Apache

sudo apt-get install apache2

Now you have a web server set up; in part two we will show you how to configure WebDav and then go onto describe how to access from an iPad.

  • Pingback: MyRaspi List | Creative Geckos()

  • Is this solution greatly different from SSHFS? I mean, can I do something with one technology that I cannot do with the other?

    • The main difference is compatibility. For instance, many iOS apps can use a WebDav store to save data to, but not much else. HTH

  • N.L. Sriram

    While I have yet to try this out, does this support file transfers over port 443? Main reason for this question is that I need to do it over the web, and routers typically don’t allow forwarding for port 80. I would like to use WinSCP, which allows both “no encryption” on port 80, as well as “TLS/SSL Implicit encryption” on port 443. TIA.