![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Quad Shot of Ubuntu
![]() Join Date: Mar 2005
Beans: 495
Ubuntu 7.04 Feisty Fawn
|
HOW-TO: Set up a Remote Calendar using WebDAV for use with Mozilla Sunbird
This tutorial works on Ubuntu and should work on Kubuntu as well as Xubuntu. However, we'll do all the text editing in nano (a console-based text editor) since it should be installed on all *buntus. For nano, after editing a file, to close it push CNTRL+X and it will ask you if you want to save and just respond accordingly.
Getting Sunbird: Mozilla Sunbird is still in development so it may contains bugs, crash, or lost calendar data. You can download the latest version here: http://www.mozilla.org/projects/cale.../download.html The nice thing about it is that there is NO compiling needed. Just put the folder wherever you want and run the 'sunbird' file inside the folder... or better yet make a nice icon pointing to the 'sunbird' file on your desktop or panel. Getting a way to access the server: If one of the following apply to you, skip this section: Quote:
http://ubuntuguide.org/wiki/Dapper#H...DynDNS_service If you are going to be only sharing your calendars/files over your local network, you need an IP assigned to you that is not always changing. To do this, log into the router on your LAN and tell it to assign the server you will be using the same IP (called assigning a Static IP). Installing the Apache Server: To install the Apache Server, open up a Terminal (Applications > Accessories > Terminal) or whatever way works for your desktop: Code:
sudo apt-get install apache2 Code:
sudo nano /etc/apache2/ports.conf Code:
Listen port Enabling the WebDAV modules: To enable the WebDAV modules, open up a Terminal (Applications > Accessories > Terminal) or whatever way works for your desktop: Code:
sudo a2enmod dav (enter) sudo a2enmod dav_fs (enter) Setting up the WebDAV folder and the user: This will make a WebDAV folder at: /var/www/davhome To create the folder, open up a Terminal (Applications > Accessories > Terminal) or whatever way works for your desktop: Code:
mkdir /var/www/davhome chgrp www-data /var/www/davhome chmod 775 /var/www/davhome Code:
htpasswd -c /var/www/davhome/.DAVlogin username Tell Apache where the folder is and to use it: To tell Apache to use WebDAV, open up a Terminal (Applications > Accessories > Terminal) or whatever way works for your desktop: Code:
sudo nano /etc/apache2/mods-enabled/dav_fs.conf Thanks to henriquemaia for the suggesting to edit this file instead of /etc/apache2/httpd.confPaste the following into the file (make sure the Terminal window is selected and use the Paste command in the Edit menu (not CNTRL+V - nano won't recognize it): Change "username" (two instances) to the username you created above. Also, the DAVMinTimeout is optional... it just sets the how long Apache should lock the file after it is accessed... I don't use it and haven't had a problem, but then again I only have one computer accessing the calendar at any time. Code:
DAVLockDB /tmp/DAVLock
#DAVMinTimeout 600
<Location /davhome/>
Dav On
AuthType Basic
AuthName username
AuthUserFile /var/www/davhome/.DAVlogin
<LimitExcept OPTIONS>
Require user username
</LimitExcept>
</Location>
If you don't want to be asked a password when you read a file change the first LimitExcept line to: Code:
<LimitExcept GET OPTIONS> Code:
<LimitExcept PUT OPTIONS> Code:
<LimitExcept GET PUT OPTIONS> Restart Apache This step is very important so that Apache recognizes the changes you made! Open up a Terminal (Applications > Accessories > Terminal) or whatever way works for your desktop: Code:
sudo /etc/init.d/apache2 restart The address to the server: Now you can either create a new calendar in Sunbird and tell it to put it on your server or publish an existing local calendar to the WebDAV folder. Just go to the calendar tab in Sunbird and right-click in the list of calendars or right-click on an existing calendar in the list. The address format you would enter for the remote calendar is as follows: Code:
http://server_ip_or_hostname:port_if_not_80/davhome/filename_for_calendar.ics Other Items to Note: If you place an exisiting calendar file directly in /var/www/davhome, you should change the group and the rights on this file as follows:
If Sunbird does NOT create a new .ics file, do the following and point Sunbird to that file as if it is an existing calendar:
If I left anything out let me know and I'll add it, but that should be it.
__________________
(\ /)
(O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination. Last edited by audax321; September 2nd, 2006 at 08:24 PM.. |
|
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Feb 2006
Location: Switzerland
Beans: 15
Ubuntu 8.10 Intrepid Ibex
|
Re: HOW-TO: Set up a Remote Calendar using WebDAV for use with Mozilla Sunbird
That is great! Thank you a hundred times for this tutorial. I followed it step by step and now I am happy.
Two additions:
Last edited by bnj; March 30th, 2006 at 11:02 AM.. |
|
|
|
|
|
#3 |
|
Just Give Me the Beans!
![]() Join Date: Mar 2005
Beans: 59
|
Re: HOW-TO: Set up a Remote Calendar using WebDAV for use with Mozilla Sunbird
Thanks for the step-by-step tutorial. I'd done this long ago with debian, but hadn't tried again with ubuntu.
I'm using Lightning and when I try to publish my calendar, I get "405 Method not allowed". It never asks for a username or password. My apache access log shows the "PUT" request from thunderbird, and the error log doesn't show anything unusual. What could I be doing wrong? |
|
|
|
|
|
#4 | |
|
Quad Shot of Ubuntu
![]() Join Date: Mar 2005
Beans: 495
Ubuntu 7.04 Feisty Fawn
|
Re: HOW-TO: Set up a Remote Calendar using WebDAV for use with Mozilla Sunbird
Quote:
1. When you go to File > New > Calendar and create a new remote calendar, are you using the WebDAV protocol. I know the CalDAV protocal, for one won't work with the above how-to, and additionally has a bug that prevents it from displaying a username/password dialog. 2. Is your URL formatted correctly (maybe it's accessing the Apache server, but not the davhome folder): http://<IP or hostname> I just tried it after downloading a fresh copy of thunderbird and installing the Lightning extension and didn't experience any of those problems. Double-check the file/folder permissions and make sure they have the correct owners and permissions. EDIT: Okay I reread your post and started thinking maybe it you were trying to publish an existing calendar to the server. But, again, when I tried it that way it worked fine.
__________________
(\ /)
(O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination. Last edited by audax321; April 1st, 2006 at 07:34 AM.. |
|
|
|
|
|
|
#5 | |
|
Fresh Brewed Ubuntu
![]() |
Re: HOW-TO: Set up a Remote Calendar using WebDAV for use with Mozilla Sunbird
Quote:
Just a note: when Tell Apache where the folder is and to use it you should use the file /etc/apache2/mods-enabled/dav_fs.conf to do that. It works both ways, but this makes it easier to clear out modifications when you disable the module. |
|
|
|
|
|
|
#6 |
|
A Carafe of Ubuntu
![]() Join Date: Feb 2006
Location: USA
Beans: 98
|
Re: HOW-TO: Set up a Remote Calendar using WebDAV for use with Mozilla Sunbird
I used the Mozilla Sunbird client, but it didn't like the fact that no .ics file existed yet. So I did this:
Code:
sudo touch /var/www/davhome/calendar.ics sudo chmod 666 /var/www/davhome/calendar.ics And BIG thanks to audax321 for helping me get this going!!! |
|
|
|
|
|
#7 |
|
A Carafe of Ubuntu
![]() Join Date: Nov 2005
Beans: 90
|
Re: HOW-TO: Set up a Remote Calendar using WebDAV for use with Mozilla Sunbird
Does anyone know of some software that could run server-side and send out announcements via email, whether anything is running client-side or not?
|
|
|
|
|
|
#8 |
|
Way Too Much Ubuntu
![]() Join Date: Feb 2006
Beans: 238
Ubuntu 6.10 Edgy
|
Re: HOW-TO: Set up a Remote Calendar using WebDAV for use with Mozilla Sunbird
I followed this thread and got the calendar to work. The only thing I had to differently was to chmod things 777. This is because my folder with the webserver on it is formatted as vfat. You can't chgrp vfat.
|
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2006
Beans: 12
|
Re: HOW-TO: Set up a Remote Calendar using WebDAV for use with Mozilla Sunbird
This instructions didn't work for me. My webdav is running fine (at least I can save documents in the folder using OpenOffice), but not lighting neither sunbird can create calendars. I created one myself following the "touch" way, but It didn't work. Any hint of how to search for a solution?
UPDATE: I discovered that if I put just de url with no file when creating the calendar (http://192.0.0.97/davhome) it creates files ICS automatically for evey event; but when I restart the lighting all the events are gone from calendar (but the files are there) Last edited by enboig; February 20th, 2007 at 06:15 AM.. |
|
|
|
|
|
#10 |
|
5 Cups of Ubuntu
![]() |
Re: HOW-TO: Set up a Remote Calendar using WebDAV for use with Mozilla Sunbird
Howdy all,
I am implementing a solution at my workplace that involves me setting up a webdav server. I found this tutorial, and I thought that I had found the jackpot Any ideas appreciated. Cheers, Sprinker ![]()
__________________
I think Windows Vista will become the punch line of a joke!
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|