NSLU2-Linux
view · edit · print · history

HowTo.CalendarUsingWebdav History

Hide minor edits - Show changes to markup

May 06, 2009, at 02:45 AM by Chris_C --
Changed line 78 from:

now we have webdav sorted its easy to get a calendar application client working here I'm using lightning for thunderbird.\\

to:

now we have webdav sorted its easy to get a calendar application client working. Here I'm using the lightning add on for thunderbird.\\

May 06, 2009, at 02:44 AM by Chris_C --
Changed line 61 from:

In the webdav folder create a simple test file and add some simple content

to:

In the webdav folder create a test file and add some simple content

May 06, 2009, at 02:43 AM by Chris_C --
Changed lines 35-36 from:

their hosts file you can use the static ip address here...

to:

their hosts file you can use a static ip address here...

May 06, 2009, at 02:43 AM by Chris_C --
Added line 32:

\\

Changed lines 34-35 from:


Both my client and server have the address of the alias "store" specified in

to:

NB both my client and server have the address of the alias "store" specified in

May 06, 2009, at 02:42 AM by Chris_C --
Changed lines 33-34 from:

Both my client and server both have the address store specified in

to:


Both my client and server have the address of the alias "store" specified in

May 06, 2009, at 02:40 AM by Chris_C --
Changed lines 31-33 from:

near the top ensure mod_alias and mod_webdav are both uncommented Then at the bottom of the config add this both my client and server both have the address store specified in

to:

near the top ensure mod_alias and mod_webdav are both uncommented
Then at the bottom of the config add this
Both my client and server both have the address store specified in

Changed line 57 from:

and password allows you to browse the directory

to:

and password allows you to browse the directory\\

Changed line 59 from:

to check that webdav is working correctly

to:

to check that webdav is working correctly\\

Changed line 77 from:

now we have webdav sorted its easy to get a calendar application client working here I'm using lightning for thunderbird.

to:

now we have webdav sorted its easy to get a calendar application client working here I'm using lightning for thunderbird.\\

May 05, 2009, at 11:41 PM by Chris_C --
Deleted line 0:
Changed lines 5-6 from:

here together in instructions specific to the NSLU2

to:

here together with instructions specific to the NSLU2

May 05, 2009, at 11:37 PM by Chris_C --
Changed lines 1-2 from:

currently editing please wait to edit!

to:
May 05, 2009, at 11:36 PM by Chris_C --
Changed line 94 from:

Now fire up thunderbird (or whatever calendar app you're using)

to:

Now fire up thunderbird (or whatever calendar app you're using)\\

Changed lines 96-97 from:

could be a local or network calendar the next dialog will ask you what type - select icalendar (ICS)

to:

should be a local or network calendar
the next dialog will ask you what type - select icalendar (ICS)\\

May 05, 2009, at 11:35 PM by Chris_C --
Added line 91:

\\

May 05, 2009, at 11:35 PM by Chris_C --
Changed line 90 from:

file ownership needs changing

to:

file ownership needs changing\\

May 05, 2009, at 11:35 PM by Chris_C --
Added lines 89-90:

file ownership needs changing

May 05, 2009, at 11:33 PM by Chris_C --
Changed line 78 from:

Make sure everything is working faultlessly here before continuing

to:

Make sure everything is working faultlessly here before continuing\\\\

May 05, 2009, at 11:33 PM by Chris_C --
Changed line 38 from:

[code]$HTTP["host"] == "store" {

to:

[@$HTTP["host"] == "store" {

Changed lines 51-52 from:

}[/code]

to:

}@]

Changed lines 55-56 from:

[code]/etc/init.d/lighttpd restart[/code]

to:

/etc/init.d/lighttpd restart

Changed lines 65-66 from:

[code]sudo apt-get install cadaver[/code]

to:

sudo apt-get install cadaver

Changed lines 69-70 from:

[code]cadaver http://store/webdav[/code]

to:

cadaver http://store/webdav

Changed line 74 from:

[code]cp testfile.txt testfile2.txt

to:

[@cp testfile.txt testfile2.txt

Changed lines 76-77 from:

rm testfile*[/code]

to:

rm testfile*@]

Changed line 82 from:

[code]BEGIN:VCALENDAR

to:

[@BEGIN:VCALENDAR

Changed lines 87-90 from:

END:VCALENDAR[/code]

[code]chown www-data:www-data /var/www/webdav/cal.ics[/code]

to:

END:VCALENDAR@]

chown www-data:www-data /var/www/webdav/cal.ics

Changed lines 97-98 from:

[code]http://chris:xxxxxxxx@store/webdav/cal.ics[/code]

to:

http://chris:xxxxxxxx@store/webdav/cal.ics

May 05, 2009, at 11:30 PM by Chris_C --
Changed lines 18-19 from:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils \\\\

to:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils

Changed lines 22-23 from:

lighty-enable-mod auth \\\\

to:

lighty-enable-mod auth

Changed lines 26-27 from:
 mkdir /var/www/webdav  
[@ chown www-data:www-data /var/www/webdav 
to:

[@mkdir /var/www/webdav chown www-data:www-data /var/www/webdav

Changed line 31 from:

\\\\

to:
May 05, 2009, at 11:29 PM by Chris_C --
Changed line 26 from:

mkdir /var/www/webdav

to:

[@ mkdir /var/www/webdav

May 05, 2009, at 11:29 PM by Chris_C --
Changed lines 26-27 from:

[@ mkdir /var/www/webdav
chown www-data:www-data /var/www/webdav

to:

mkdir /var/www/webdav chown www-data:www-data /var/www/webdav

May 05, 2009, at 11:28 PM by Chris_C --
Changed line 26 from:

[@ mkdir /var/www/webdav\\

to:

[@ mkdir /var/www/webdav \\

May 05, 2009, at 11:27 PM by Chris_C --
Changed lines 26-27 from:

[@mkdir //var//www//webdav chown www-data:www-data //var//www//webdav

to:

[@ mkdir /var/www/webdav
chown www-data:www-data /var/www/webdav

May 05, 2009, at 11:27 PM by Chris_C --
Changed line 26 from:

[@mkdir //var//www//webdav

to:

[@mkdir //var//www//webdav

May 05, 2009, at 11:26 PM by Chris_C --
Changed lines 26-28 from:

[@ mkdir /var/www/webdav chown www-data:www-data /var/www/webdav

to:

[@mkdir //var//www//webdav chown www-data:www-data //var//www//webdav

May 05, 2009, at 11:26 PM by Chris_C --
Changed lines 26-27 from:

[@mkdir /var/www/webdav

to:

[@ mkdir /var/www/webdav

May 05, 2009, at 11:25 PM by Chris_C --
Changed line 19 from:

\\

to:

\\\\

Changed line 22 from:

lighty-enable-mod auth

to:

lighty-enable-mod auth

Changed line 26 from:

[@mkdir /var/www/webdav

to:

[@mkdir /var/www/webdav

Changed lines 30-31 from:

chmod 640 /var/www/webdav/passwd.dav[/code]

to:

chmod 640 /var/www/webdav/passwd.dav@] \\\\

May 05, 2009, at 11:25 PM by Chris_C --
Changed lines 18-19 from:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils\\

to:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils \\

May 05, 2009, at 11:24 PM by Chris_C --
Changed line 18 from:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils

to:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils\\

May 05, 2009, at 11:24 PM by Chris_C --
Changed lines 18-19 from:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils \\\\

to:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils

Changed line 25 from:

[code]mkdir /var/www/webdav

to:

[@mkdir /var/www/webdav

May 05, 2009, at 11:23 PM by Chris_C --
Added lines 1-2:

currently editing please wait to edit!

May 05, 2009, at 11:23 PM by Chris_C --
Changed line 17 from:

\\

to:

\\\\

Changed lines 20-21 from:

[code]lighty-enable-mod auth[/code]

to:

lighty-enable-mod auth \\\\

May 05, 2009, at 11:22 PM by Chris_C --
Changed line 17 from:

\\\\

to:

\\

May 05, 2009, at 11:22 PM by Chris_C --
Deleted line 16:
Deleted line 17:
May 05, 2009, at 11:22 PM by Chris_C --
Changed lines 16-17 from:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils


to:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils




May 05, 2009, at 11:21 PM by Chris_C --
Changed lines 16-18 from:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils

to:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils


May 05, 2009, at 11:21 PM by Chris_C --
Changed lines 16-17 from:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils

to:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils

May 05, 2009, at 11:21 PM by Chris_C --
Deleted line 0:
Changed lines 16-17 from:

[code]apt-get install lighttpd lighttpd-mod-webdav apache2-utils[/code]

to:

apt-get install lighttpd lighttpd-mod-webdav apache2-utils

May 05, 2009, at 11:19 PM by Chris_C --
Changed lines 1-3 from:

%define=box block bgcolor=#ddddff border="2px dotted blue"%

to:
Changed lines 17-18 from:

[code]apt-get install lighttpd lighttpd-mod-webdav apache2-utils[/code]

to:

[code]apt-get install lighttpd lighttpd-mod-webdav apache2-utils[/code]

May 05, 2009, at 11:17 PM by Chris_C --
Added lines 1-3:

%define=box block bgcolor=#ddddff border="2px dotted blue"%

Changed lines 19-20 from:

[code]apt-get install lighttpd lighttpd-mod-webdav apache2-utils[/code]

to:

[code]apt-get install lighttpd lighttpd-mod-webdav apache2-utils[/code]

May 05, 2009, at 11:15 PM by Chris_C --
Changed lines 16-17 from:
border=1apt-get install lighttpd lighttpd-mod-webdav apache2-utils
to:

[code]apt-get install lighttpd lighttpd-mod-webdav apache2-utils[/code]

May 05, 2009, at 11:15 PM by Chris_C --
Changed lines 16-17 from:
apt-get install lighttpd lighttpd-mod-webdav apache2-utils
to:
border=1apt-get install lighttpd lighttpd-mod-webdav apache2-utils
May 05, 2009, at 11:14 PM by Chris_C --
Changed lines 16-17 from:

[code]apt-get install lighttpd lighttpd-mod-webdav apache2-utils[/code]

to:
apt-get install lighttpd lighttpd-mod-webdav apache2-utils
May 05, 2009, at 11:11 PM by Chris_C --
Changed lines 16-17 from:
apt-get install lighttpd lighttpd-mod-webdav apache2-utils
to:

[code]apt-get install lighttpd lighttpd-mod-webdav apache2-utils[/code]

May 05, 2009, at 11:09 PM by Chris_C --
Changed lines 16-17 from:

[code]apt-get install lighttpd lighttpd-mod-webdav apache2-utils[/code]

to:
apt-get install lighttpd lighttpd-mod-webdav apache2-utils
May 05, 2009, at 11:06 PM by Chris_C --
Added line 17:
Added line 19:
Added line 21:
Added line 23:
Added line 29:
Added line 35:
Added line 50:
Added line 52:
Added line 54:
Added line 62:
Added line 64:
Added line 66:
Added line 68:
Added line 71:
Added line 75:
Added line 79:
Added line 86:
Added line 88:
Added line 94:
Added line 96:
May 05, 2009, at 11:05 PM by Chris_C -- How to set up a calendar using webdav
Added lines 1-84:

This quick howto assumes you have Debian installed on your NSLU2 and no webserver installed (or lighttpd installed)

I followed a number of none specific howto's and I have collected the info here together in instructions specific to the NSLU2

This will work with apache or any other webdav capable server but lighttpd is the lightest simplest server I could find that preformed well with my setup.

Most of the command following need root access either use sudo su or prefix each command with sudo or login as root...

First we need to install lighttpd and some utils

[code]apt-get install lighttpd lighttpd-mod-webdav apache2-utils[/code] you'll need to enable mod auth [code]lighty-enable-mod auth[/code] We also want to password protect our webdav folder [code]mkdir /var/www/webdav chown www-data:www-data /var/www/webdav htpasswd -c /var/www/webdav/passwd.dav chris chown root:www-data /var/www/webdav/passwd.dav chmod 640 /var/www/webdav/passwd.dav[/code] The next task is to edit the lighttpd config near the top ensure mod_alias and mod_webdav are both uncommented Then at the bottom of the config add this both my client and server both have the address store specified in their hosts file you can use the static ip address here... [code]$HTTP["host"] == "store" {

  server.document-root = "/var/www/"
  alias.url= ("/webdav" => "/var/www/webdav")
  $HTTP["url"] =~ "^/webdav($|/)" {
    webdav.activate = "enable"
    webdav.is-readonly = "disable"
    webdav.sqlite-db-name = "/var/run/lighttpd/lighttpd.webdav_lock.db"
    auth.backend = "htpasswd"
    auth.backend.htpasswd.userfile = "/var/www/webdav/passwd.dav"
    auth.require = ( "" => ( "method" => "basic",
                             "realm" => "webdav",
                             "require" => "valid-user" ) )
  }

}[/code] at this point you can now restart the web server [code]/etc/init.d/lighttpd restart[/code] make sure that you can access the default index page with a browser and also that the webdav url is password protected and entering user name and password allows you to browse the directory Assuming the web server is up and working as expected we can move on to check that webdav is working correctly In the webdav folder create a simple test file and add some simple content on your client machine install cadaver a (simple webdav client) [code]sudo apt-get install cadaver[/code] Then test the webdav server [code]cadaver http://store/webdav[/code] after logging in you should be able to use commands very similar to a shell to copy the test file [code]cp testfile.txt testfile2.txt cat testfile2.txt rm testfile*[/code] Make sure everything is working faultlessly here before continuing now we have webdav sorted its easy to get a calendar application client working here I'm using lightning for thunderbird. First we'll make an empty calendar file (cal.ics) with this content [code]BEGIN:VCALENDAR VERSION

 :2.0

PRODID

 :-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN

END:VCALENDAR[/code] [code]chown www-data:www-data /var/www/webdav/cal.ics[/code] Now fire up thunderbird (or whatever calendar app you're using) create a new calendar and select "on network" when it asks if it could be a local or network calendar the next dialog will ask you what type - select icalendar (ICS) and enter a url something like this... [code]http://chris:xxxxxxxx@store/webdav/cal.ics[/code] where xxxx is the password and store is your NSLU2's web address

You should now be able to add new events to your calendar (and also delete them!)

There's a bunch of other stuff that's probably a good idea to implement like SSL etc but this breaks the back of the job and gets things working

view · edit · print · history · Last edited by Chris_C.
Originally by Chris_C.
Page last modified on May 06, 2009, at 02:45 AM