MozillaZine

[Solved] Sharing the Address Book and Lightning Calendar

User Help for Mozilla Thunderbird
Gotit
 
Posts: 14
Joined: November 26th, 2007, 9:51 am
Location: Groton, CT USA

Post Posted November 26th, 2007, 10:10 am

Hi
I have two installs of Thunderbird (2.0.0.6) on a dual boot machine. My original install was on Windows XP years ago and recently on my Linux (Ubuntu - Gutsy). I have been able to configure my Linux install of Thunderbird to point to the email directory on the XP side, so regardless of which side I boot into (XP or Linux) I can manage all my emails (which is really nice =D> ). However, I can't seem to find out how to get the address book from the XP side to show when I boot into the Linux side.

I don't really want to maintain 2 address books any would like to use the same address book regardless of which side of my system I boot into.

I have the same need/desire to get my Lightning calendar (v0.7) events and tasks to show on my Linux side too. But I should probably post that request under the Lightning section of the forum.

Any suggestion on how I can do this would be appreciated.

Thanks.
Last edited by Gotit on January 15th, 2008, 9:41 am, edited 2 times in total.

Gotit
 
Posts: 14
Joined: November 26th, 2007, 9:51 am
Location: Groton, CT USA

Post Posted December 21st, 2007, 5:13 pm

Here is how I found to share the Thunderbird Address Book and Lightning Calendar in a dual boot (Windows XP – Ubuntu Gutsy 7.10) machine. There is a mozillaZaine item that says you can simply change your config file to point to an address book location, but there seems to be a bug in TB for that.

The instructions below assume your have been running TB with Lightning on Windows and on Ubuntu so it's installed in both locations. As always, back up the files you will be working with before starting.

Please let me know if this helped and/or worked for you.

First, sharing the Address Book: (overview – using a symlink in Ubuntu to point to the TB Address Book in Windows)

On Ubuntu
1.Open a file browser and browse to the TB address book (abook.mab) in Windows. Typically this will be found under ~Documents and Settings/user/Application Data/Thunderbird/profiles/”number”.default
2.Right click on abook.mab and select “Make Link”. This will create a symlink in that directory to the address book.
3.Open another file browser window and browse to the TB address book location on Ubuntu. This is a hidden file so you may want to show hidden files by View>Show Hidden Files. Typically the TB address book on Ubuntu this will be found under Home/user/.mozilla-thunderbird/”number'.default
4.Re-name the abook.mab to abook.old
5.Drag the symlink from the first first browser window into this browser window's location.
6.Re-name the symlink to abook.mab
7.Open TB and click the address book, you should see your entries from your Windows instance.



Now, sharing the Lightning Calendar: (Overview – creating a new ics calendar that both TB instances can use).

UPDATE: you may want to use vijay's suggestion of a symlink (see below) for sharing the calendar vs. setting up an ICS calendar as outlined below. I have subsequently tried it and it works great and is much easier!!

Windows Portion
1.In TB on Windows make a new calendar File>New>Calendar and select the “On the Network” option. Note: you don't need to be on a “network” to do this. The calendar will be stored where you select, and this just sets it up so it can be shared. Next.
2.Select the “iCalendar (ICS)” selection
3.Fill in the location where the calendar will be stored. This needs to be a location both OS's can access. Use the format “File:///c:\directory\path\to\calendar-name.ics” without the quotes and note the ///. This will create the location and calendar. Next.
4.Give the new calendar a nick name. Next
5.Finish and you should have a new calendar in TB.
6.Select the new calendar, create a new event and save it. This ensures you can write to your new calendar without errors, i.e. it was created correctly :)
7.If you have been running TB in Windows for a while you may want to move your old calendar entries into your new calendar. Now's a good time to do that.
8.In TB Calendar view select Calendar>import>select old calendar (the one you will be copying from) as ICS file type.
9.A pop-up will ask which calendar to import to, select your new calendar.
10.Your old calendar entries will be copied to your new calendar.

Ubuntu Portion
1.Open a file browser window and browse to the new calendar location on the Windows drive/partition.
2.Open TB and go to calendar view and follow steps above starting with step 1.
3.When you get to step 3, the location again begins with “file:///” you can copy/paste the location from your file browser window you opened in step 1 and end with the calendar-name.ics
4.You should be able to skip step 4 and Finish (step 5).
5.You should now have a new calendar in TB. Select it and you should see the entries from the calendar in your Windows instance of TB.
6.Be sure to select this calendar in both instances (Windows and Ubuntu) to share entries back and forth.
Joy!!!
Last edited by Gotit on March 21st, 2008, 6:40 am, edited 3 times in total.

Gotit
 
Posts: 14
Joined: November 26th, 2007, 9:51 am
Location: Groton, CT USA

Post Posted December 22nd, 2007, 8:10 am

Oh, one more thing, the above processes assume your XP drive will always mount to the same name/path in Ubuntu. If the path changes you will have to re-do the Ubuntu steps again to get everything pointed to the correct location.

Gotit
 
Posts: 14
Joined: November 26th, 2007, 9:51 am
Location: Groton, CT USA

Post Posted January 3rd, 2008, 8:20 am

Oops, looks like I got the step reference numbers a little wrong in the Ubuntu Portion for Sharing the Lightning Calendar. :oops:
I have since edited the steps above and they now read correctly. I just wanted to make a note of the post correction in case someone printed a copy of these steps prior to my adjustments
Last edited by Gotit on January 21st, 2008, 7:02 am, edited 2 times in total.

MikeInMarseille
 
Posts: 4
Joined: June 10th, 2007, 10:37 am

Post Posted January 14th, 2008, 12:29 pm

Thanks for the useful tip. It seems that there are lots of people out there with an XP/Ubuntu double boot setup.

vijay
 
Posts: 3
Joined: September 14th, 2005, 3:32 am
Location: South Africa

Post Posted March 18th, 2008, 8:03 am

the above advice is good.
But this is what I did as it did not seem to work totally for me.

I have a laptop with vista and ubuntu - recently set up to dual. Mainly as many of my clients use windows compatible hardware and it was a pain to do a whole lot of fiddling to make my ubuntu talk to data projectors etc.

so my work has been with ubuntu for a long time - all data, addressbooks and calendar stuff

My machine - windows side is using NTFS which I used something to make visible and writable from Ubuntu. If I remember I will forward that link. But there are a range of others.
It means that I can see, modify any file on the windows partition.

Anyway..
Addressbook

In Ubuntu I opened the ./mozilla-thunderbird directory and found abook.mab, then copied this to the windows partition with thunderbird - (on my system it is /media/sda1/Users/vijay/AppData/Roaming/Thunderbird/Profiles/o3le1wxe.default.

renamed the ubuntu version to abook.old

then opened the windows partition and created a link - sym link - and dragged this to the ubuntu ./mozilla-thunderbird directory.
renamed the link to abook.mab.

I tried it the other way and for some reason it did not work.

Calendar
did much the same thing.
Found the file storage.sdb on ./mozilla-thunderbird
Copied this to the windows partition
created a link from the file in windows partition to the ./mozilla-thunderbird directory
renamed storage.sdb to storage.old
renamed the link file to storage.sdb

this worked. It seems a bit clunky but after trying a whole range of things this seems to have worked very well for me.

Oh yes, I also installed the file which seems to be a unified type of lightning. It is called lightning-0.7-tb.linux-and-win.xpi. First i removed the linux and windows specific extensions from each installation.

Good luck

Gotit
 
Posts: 14
Joined: November 26th, 2007, 9:51 am
Location: Groton, CT USA

Post Posted March 18th, 2008, 9:01 am

Happy to hear you got it all working. The location of your TB install on Windows looks to be on a VISTA machine, maybe even laptop? What you described for sharing the address book looks to be the same as my instructions, just more to the point :) .

I like the idea of a sym link to share the calendar and will give that a try too. When I originally wrote this post I didn’t know where Mozilla “hid” the calendar (storage.sdb) and couldn’t make a sym link to it, so I simply made an ics both OS’s could get to.
If great minds thought alike, there would only be one kind of everything!

vijay
 
Posts: 3
Joined: September 14th, 2005, 3:32 am
Location: South Africa

Post Posted March 20th, 2008, 12:43 am

yes a laptop with vista... now if i can get scanning to work on the network to a xp linked hp multi g85 from ubuntu or vista it would be great. print works fine but no scanning yet.

I found out this files (.sbd) via one of the lightning help or FAQ pages which lists the file format of the data - your appointments etc. It seems they were using ics but moved to the .sdb format as it works with sql-lite or something like that.

it still works. sym links seem to have worked properly for me .

tanstaafl
Moderator

User avatar
 
Posts: 43454
Joined: July 30th, 2003, 5:06 pm

Post Posted March 20th, 2008, 3:58 am

Gotit:

"There is a mozillaZaine item that says you can simply change your config file to point to an address book location, but there seems to be a bug in TB for that."

Could you post the URL for that article? One reason I ask is I wrote http://kb.mozillazine.org/Sharing_address_books and want to make certain that its text about the setting to specify a address book location outside of the profile no longer working is not misunderstood.

http://kb.mozillazine.org/Sharing_a_pro ... _and_Linux talks about using a symlink in the Linux profile to access the address books stored in the Windows profile, though it doesn't mention Lightning. Is creating a symlink to storage.sdb sufficient, or do you also need a special version of the extension like vijay used?

Gotit
 
Posts: 14
Joined: November 26th, 2007, 9:51 am
Location: Groton, CT USA

Post Posted March 20th, 2008, 2:48 pm

tanstaafl:

It's been a while since I was researching the topic, but it's both links in your post I was referencing and I believe it's Mozilla bug 80706 that applies to it.
https://bugzilla.mozilla.org/show_bug.cgi?id=80706

Specifically it was getting a relative pathname:
user_pref("ldap_2.servers.pab.filename", "test\\abook.mab");
to work for me.

For me the symlink worked great for sharing the address book and it is all I need. I haven't attempted sharing the calendar with a symlink yet, but I suspect it will work fine (now that I know where it's located :))

Let me know if I can be of further assistance.
Last edited by Gotit on March 21st, 2008, 7:43 am, edited 2 times in total.
If great minds thought alike, there would only be one kind of everything!

Gotit
 
Posts: 14
Joined: November 26th, 2007, 9:51 am
Location: Groton, CT USA

Post Posted March 21st, 2008, 6:36 am

Update: I tried sharing my calendar with vijay's recommended symlink procedure above and it worked great!
I simply:
made a symlink to storage.sdb in my Windows partition
drag and dropped it in ./mozilla-thunderbird in my Ubuntu partition
renamed storage.sdb to storage.old in ./mozilla-thunderbird in my Ubuntu partition
renamed the dropped symlink to storage.sdb in ./mozilla-thunderbird in my Ubuntu partition
If great minds thought alike, there would only be one kind of everything!

vijay
 
Posts: 3
Joined: September 14th, 2005, 3:32 am
Location: South Africa

Post Posted March 26th, 2008, 7:37 am

I found that the lighting extension I used worked best. The other specific ones for my ubuntu thunderbird version and my vista thunderbird version did not seem to want to talk nicely to thunderbird. y'know the tiny lines that some people have mentioned.

Gotit:
I am glad that the solution worked for you. It certainly took me many attempts to get this working. Now any changes made to one OS addressbook or calender reflects in the other. also all my mail is the same.

s1974lee
Guest
 

Post Posted September 15th, 2009, 12:45 am

I have set up 2 computers linking my email through Thunderbird on a Network with both PC's Syncing to the Network folder. However I am having trouble editing where the lightning calendar is stored so that I am able to see the same calendar on both PC's. The above info is useful when creating a new calendar but not when linking an existing calendar, can anyone help please.

Return to Thunderbird Support


Who is online

Users browsing this forum: biking_cool-dude, Bing [Bot] and 2 guests