Skip to content

Instantly share code, notes, and snippets.

@luw2007
Created January 16, 2015 09:07
Show Gist options
  • Save luw2007/d5ce9b5e5a27be77054a to your computer and use it in GitHub Desktop.
Save luw2007/d5ce9b5e5a27be77054a to your computer and use it in GitHub Desktop.
Python 2.7 with pyuno in ubuntu

##ubuntu 13.10 and later , you need to install openoffice 4.1.1

###1. uninstall libreoffice and openoffice

sudo apt-get remove libreoffice* openoffice*
sudo apt-get autoremove

###2. install Apache OpenOffice 4.1.1 on 64 bit Ubuntu

wget sourceforge.net/projects/openofficeorg.mirror/files/4.1.1/binaries/en-GB/Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_en-GB.tar.gz
tar -xzvf Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_en-GB.tar.gz
cd en-GB/DEBS
sudo dpkg -i *.deb
cd desktop-integration
sudo dpkg -i *.deb

###3. install Apache OpenOffice 4.1.1 on 32 bit Ubuntu

wget sourceforge.net/projects/openofficeorg.mirror/files/4.1.1/binaries/en-GB/Apache_OpenOffice_4.1.1_Linux_x86_install-deb_en-GB.tar.gz
tar -xzvf Apache_OpenOffice_4.1.1_Linux_x86_install-deb_en-GB.tar.gz
cd en-GB/DEBS
sudo dpkg -i *.deb
cd desktop-integration
sudo dpkg -i *.deb

###4. 安装uno echo /opt/openoffice4/program |sudo tee /usr/lib/python2.7/dist-packages/uno.pth ###5. 运行 sudo ./tools/openoffice.bash start

##ubuntu 13.04 and previous, install libreoffice install libreoffice sudo apt-get install libreoffice libreoffice-script-provider-python python-uno

@simkimsia
Copy link

How to uninstall if I use dpkg *.deb to install in the first place?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment