--- layout: post status: publish published: true title: Installing Zotero on Ubuntu Natty (11.04/Beta) wordpress_id: 924 wordpress_url: https://www.martineve.com/?p=924 date: !binary |- MjAxMS0wNC0wMyAxMzo1NjozNCArMDIwMA== date_gmt: !binary |- MjAxMS0wNC0wMyAxMzo1NjozNCArMDIwMA== categories: - Technology - Linux tags: - zotero - Linux - Ubuntu - Natty comments: - id: 6273 author: Leigh Honeywell author_email: leigh@hypatia.ca author_url: http://hypatia.ca date: !binary |- MjAxMS0wNC0wNSAwNzowODo0NCArMDIwMA== date_gmt: !binary |- MjAxMS0wNC0wNSAwNzowODo0NCArMDIwMA== content: ! "Hey, thanks for posting this - I was struggling with all sorts of bizarro errors in Ubuntu 10.10 and OO 3.2 and rolling back the Zotero extension totally fixed it. My grades and sleep schedule thank you :)\r\n\r\n-Leigh" - id: 6287 author: chris author_email: christiankroy@gmail.com author_url: '' date: !binary |- MjAxMS0wNC0yOCAxNjo1NDoxMiArMDIwMA== date_gmt: !binary |- MjAxMS0wNC0yOCAxNjo1NDoxMiArMDIwMA== content: ! "Struggled all morning with getting Zotero|Firefox|LibreWriter working.\r\n\r\nThis worked for me. \r\nThank you so much!" - id: 6292 author: Martijn author_email: martijn@monomania.nl author_url: '' date: !binary |- MjAxMS0wNS0xMSAyMDo0MjoyNiArMDIwMA== date_gmt: !binary |- MjAxMS0wNS0xMSAyMDo0MjoyNiArMDIwMA== content: Thanks. I already wondered why Zotero left me. This one worked just fine for me. - id: 6295 author: friso author_email: mailfriso@yahoo.com author_url: '' date: !binary |- MjAxMS0wNS0xNSAxOTo0MTowOSArMDIwMA== date_gmt: !binary |- MjAxMS0wNS0xNSAxOTo0MTowOSArMDIwMA== content: ! "i changed\r\n\r\nsudo update-alternatives –config java\r\n\r\nto\r\n\r\nsudo update-alternatives --config java" - id: 6296 author: friso author_email: mailfriso@yahoo.com author_url: '' date: !binary |- MjAxMS0wNS0xNiAwNDo0MzoyMSArMDIwMA== date_gmt: !binary |- MjAxMS0wNS0xNiAwNDo0MzoyMSArMDIwMA== content: yep, Zotero's up and running again! - id: 6537 author: roney author_email: roneyfraga@gmail.com author_url: '' date: !binary |- MjAxMS0wOS0xOSAxNDozOTowMCArMDIwMA== date_gmt: !binary |- MjAxMS0wOS0xOSAxNDozOTowMCArMDIwMA== content: Muito obrigado! - id: 6687 author: PN author_email: tem_nao@hotmail.com author_url: '' date: !binary |- MjAxMi0wNC0xMiAyMjowODowNCArMDIwMA== date_gmt: !binary |- MjAxMi0wNC0xMiAyMjowODowNCArMDIwMA== content: merci !!!! ---
I've been playing with the new setup of Unity on Ubuntu Natty 11.04 beta, which now comes preloaded with the forked LibreOffice. This has caused some problems for installation of Zotero, so I want to here give the walkthrough instructions that I used in a LiveCD environment to get everything working.

Ubuntu NattyFeatured image by Wyatt Kirby with unspecified copyright or licensing provisions. Used here in good faith and for no commercial gain to demonstrate the operating system referred to. If you own the copyright to this image and would like it removed, please contact me and I will remove it ASAP.


1.) Add the Maverick partner repository:

Software Center -> Edit Menu -> Software Sources -> Other sources -> Add:

deb http://archive.canonical.com/ubuntu maverick partner

2.) Drop to a command prompt:

sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo update-alternatives --config java

If the last option prompts you to set a specific java configuration, ensure you select the Sun variant.

3.) Install Zotero plugin from http://www.zotero.org/

4.) Install the outdated OpenOffice plugin, not the most recent one: http://www.zotero.org/download/integration/Zotero-OpenOffice-Plugin-3.1b1.xpi

5.) After Firefox has restarted go to Zotero -> Preferences -> Cite tab.

In here, change the OpenOffice parameters to the following:

UNO: file:///usr/lib/libreoffice/basis-link/ure-link/share/java/
soffice binary: file:///usr/lib/libreoffice/program/

6.) Click "install plugin".

If this fails, go into LibreOffice, Tools menu -> Extension manager -> Add

Navigate to your firefox profile directory which will look like:

/home/yourusername/.mozilla/firefox/ALONGSTRINGOFLETTERS/extensions/zoteroOpenOfficeIntegration@zotero.org/install/

and manually add the .oxt file from within.

With any luck, you should be set. Worth also checking in LibreOffice -> Edit menu -> Preferences -> Java that you are using the Sun interpreter in LibreOffice.