MakeOOOListening

Fuente: http://www.dokeos.com/wiki/index.php/MakeOOOListening

In Dokeos 1.8, a new feature permits to turn PowerPoint documents into learning path. To enable this feature, you have to install OpenOffice.org 2.x on the web server.

Contents

  • 1 Ubunty Jaunty
  • 2 Debian
  • 3 Windows
  • 4 Start OOo once with the appropriate user
  • 5 On the Dokeos platform

Ubunty Jaunty

How to get oogie to work:
Using Dokeos 1.8.6, edit main/admin/configure_extensions.php and uncomment line 349 and 404

start on a shell the following command:

/usr/lib/openoffice/program/soffice -accept="socket,host=127.0.0.1,port=2002;urp;" -headless -norestore -invisible

This will start OpenOffice 3.0 in the background. Now go to the “On the Dokeos platform” section and do that too.

Enjoy!

Debian

  • To do this in console mode on a Debian (or any Debian-derived distributions such as Ubuntu) installation, you have to enter the following commands :
sudo apt-get install xvfb openoffice.org
  • Once the latest version of OpenOffice.org is installed, edit the configuration file (on Debian : /usr/lib/openoffice/share/registry/data/org/openoffice/Setup.xcu) and add the following property :
<prop oor:name="ooSetupConnectionURL">
<value>
socket,host=localhost,port=2002;urp;StarOffice.ServiceManager
</value>
</prop>

The previous step might not be necessary in OpenOffice.org 3+

  • If xvfb-run is available :
xvfb-run --server-args='-screen 0 800x600x16' -a /usr/lib/openoffice/program/soffice -headless -nologo -norestore

If you are not a champion at system administration and want to ensure the program runs in the background, you can install and use “screen” under Linux, which will let you start a virtual terminal. Once in there, launch the command, then CTRL+a, CTRL+d to exit by leaving it running. You can retrieve the “screen” later on by issuing “screen -r” as the same user.

  • Else, launch Xvfb manually :
Xvfb :99 -screen scrn0 800x600x16 &
  • And then launch OpenOffice.org on this fake display :
ooffice -headless -display :99

No matter the errors displayed, OpenOffice.org is started.

The following initscript will start it all as a regular user (currently “dlc”), using xvfb-run. It has already been tested successfully on Debian Etch and Ubuntu Dapper & Edgy. Just copy it to /etc/init.d and create a link to it in /etc/rc2.d. OOoServerInitscript

  • Quick hint: If you get fixed font not found error, please use this command on Debian based systems, saves life really:

apt-get –reinstall install xfonts-base

Windows

  • Once the latest version of OpenOffice.org is installed, edit the configuration file (Program Files\OpenOffice.org x.x\share\registry\data\org\openoffice\setup.xcu) and add the following property :
<prop oor:name="ooSetupConnectionURL">
<value>
socket,host=localhost,port=2002;urp;StarOffice.ServiceManager
</value>
</prop>
  • Start OpenOffice.org.

Start OOo once with the appropriate user

OOo creates its configuration directory at successful first start. It is recommended then to start OOo first once as the user to get it created fine.

On the Dokeos platform

-> Administration -> PowerPoint2LearningPath -> Host : localhost, User : leave empty, password, leave empty (useful for remote service only).

For Voice Recorder and Player to work, also configure the -> Path to LZX files: /lps-latest/dokeos/videoconference/ppt2lprecorder.lzx
It should work !