Setting Up Office Linux
From eyeOS Wiki
| It has been noted that this page needs improvement by expanding it, to conform to a higher standard of quality. This message is to help us administrate our eyeOS wiki. If you would like to help by editing this article please do so. HowTo's Edit This is open for discussion on the article's talk page. |
Contents |
By default, this feature is not enabled, because it needs some configurations at the server where eyeOS is installed. If you don't configure it, your eyeOS will not be able to open Office files.
To get office support, follow these simple steps (on the server; clients don't need any special configuration) If you see your Linux distribution to your lift you may want to skip to it for a better HowTo
What to Install ![]() | What to Install |
- Below is a few thing that is needed. How you install them will vary from distribution to distribution. You should look at our Examples below to see if we have your distro listed, if not please search your distro website for more information.
- Install OpenOffice (eyeOS uses OpenOffice to convert formats).
- Install xvfb (OpenOffice needs a X server to be executed in).
configure ![]() | configure |
- Make sure that the owner of the home directory of the apache user (www-data or nobody in some installations) is the apache user. For example, in Debian installations the apache user is www-data and the home for the user is /var/www but this directory is owned by root. You can change the home for apache user to /tmp if you don't want to change the owner or create a new directory.
- Copy
youreyeOSDir/eyeOSxxxxxx/extras/OpenOffice/eyeOS.xba
- from the eyeOS installation directory to
/usr/lib/openoffice/share/basic/Tools/
- Edit
/usr/lib/openoffice/share/basic/Tools/script.xlb
- and add
<library:element library:name="eyeOS"/>
- under
<library:element library:name="Debug"/>
- should look like this
<library:element library:name="Debug"/> <library:element library:name="eyeOS"/>
After that you may open a terminal and type in
Xvfb :1 -ac -screen 0 800x600x16 -fbdir /tmp &
- type as shown xvfb will not work must be Xvfb
Problems & Solutions ![]() | Problems & Solutions |
- OpenOffice 3.0 does not work. You need to use OpenOffice 2.x!
- Some OpenOffice installations come with "oosplash", which need to be disabled. To do so open a terminal and type in
sudo chmod -x /usr/lib/openoffice/program/oosplash.bin
- in order to get eyeOS to work with Office support.
- You may get the following error message: "Could not open default font 'fixed' xvfb". This means that you need some fonts in order to get xvfb working. To fix this problem, install the package xfonts-base (in Debian-based systems).
- The path /usr/lib/openoffice/share/basic/Tools/ may not exist. This is because this path is OpenOffice's default lib path in Debian-based systems. You have to use the correct path for your system.
Tips & Tricks ![]() | Tips & Tricks |
- If you want to execute Xvfb in each boot of your system, you can add a simple script in /etc/init.d/ called xvfb, with the following content:
Xvfb :1 -ac -screen 0 800x600x16 -fbdir /tmp &
- and chmod it as executable.
Examples
openSUSE
I installed suse 11.0 from dvd 10/08 kde 3.5, openoffice 2.4.0.14, on a 64b ark with the 32b lib (I do not think it matters but there) eyeOS 1.7 Lars
from command line
> su > password: # yast2 -i xorg-x11-server-extra
if we already have it installed it will kick you back out no worrys. When done installing
# exit
I am using the 64b ark i am not sure if the folder is the same if i used the 32b ark so lets try this path
> ls /usr/lib64/ooo-2.0/share/basic/Tools/
if you see some files after that then move on if it comes back like "No such file or directory" then try "lib" in place of "lib64". now when open ooo-2.0 now that we know were this folder containing our script.xlb we need to copy eyeOS.xba to the folder and dont forget to change eyeOS/eyeOSxxxxxxxxxxx for your eyeOS web directory
> sudo cp /srv/www/htdocs/eyeOS/eyeOSxxxxxxxxxx/extras/OpenOffice/eyeOS.xba /usr/lib64/ooo-2.0/share/basic/Tools/
using the same path we found above (for me /usr/lib64/ooo-2.0/share/basic/Tools/) we need to edit a line so..
> su > password: # kate /usr/lib64/ooo-2.0/share/basic/Tools/
you will see the line
<library:element library:name="Debug"/>
under this line add the new line from below:
<library:element library:name="eyeOS"/>
save
# exit > Xvfb :1 -ac -screen 0 800x600x16 -fbdir /tmp &
now open your eyeOS in a web browser ex. firefox and open a document
Ubuntu / Kbuntu
1. install the following packages:
sudo apt-get install openoffice.org xvfb xfonts-base x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x-ttcidfont-conf xfs
2. Set Apache as owner in a new temporary directory:
sudo mkdir /var/www/tmp_eyeos sudo chown -R www-data:www-data /var/www/tmp_eyeos
3. Copy the eyeOS plugin to OpenOffice (change eyeOS/eyeOS1ea3d52090 for your eyeOS web directory):
sudo cp /var/www/eyeOS/eyeOS1ea3d52090/extras/OpenOffice/eyeOS.xba /usr/lib/openoffice/share/basic/Tools/
4. Edit /usr/lib/openoffice/share/basic/Tools/script.xlb and under the existing line:
<library:element library:name="Debug"/>
- add a new line:
<library:element library:name="eyeOS"/>
5. Create a text file for xvfb start, as /etc/init.d/xvfb.sh and with this content:
# !/bin/sh echo "Starting Virtual Framebuffer 'fake' X server for OpenOffice in eyeOS..." Xvfb :1 -ac -screen 0 800x600x16 -fbdir /var/www/tmp_eyeos
6. Give the file execution permissions, then run the new script:
sudo chmod +x /etc/init.d/xvfb.sh /etc/init.d/xvfb.sh
- and test eyeOS for OOffice text documents or SpreadSheets.
7. If all is right, link the xvfb starter to be run on each boot:
sudo ln -s /etc/init.d/xvfb.sh /etc/rc2.d/S99xvfb sudo ln -s /etc/init.d/xvfb.sh /etc/rc3.d/S99xvfb sudo ln -s /etc/init.d/xvfb.sh /etc/rc4.d/S99xvfb sudo ln -s /etc/init.d/xvfb.sh /etc/rc5.d/S99xvfb
This procedure may be good for any Debian or Ubuntu system with LAMP ib64/ooo-2.0/share/basic/Tools/
if you see some files after that then move on if it comes back like "No such file or directory" then try "lib" in place of "lib64". now when open ooo-2.0 now that we know were this folder containing our script.xlb we need to copy eyeOS.xba to the folder and dont forget to change eyeOS/eyeOSxxxxxxxxxxx for your eyeOS web directory
> sudo cp /var/www/eyeOS/eyeOSxxxxxxxxxx/extras/OpenOffice/eyeOS.xba /usr/lib64/ooo-2.0/share/basic/Tools/
using the same path we found above (for me /usr/lib64/ooo-2.0/share/basic/Tools/) we need to edit a line so..
> su > password: # kate /usr/lib64/ooo-2.0/share/basic/Tools/
you will see the line
<library:element library:name="Debug"/>
under this line add the new line from below:
<library:element library:name="eyeOS"/>
save
# exit > Xvfb :1 -ac -screen 0 800x600x16 -fbdir /tmp &
now open your eyeOS in a web browser ex. firefox and open a document\

