Aeroo Reports Linux server

This article covers installation process for Aeroo reporting engine on Linux servers. If you find this article useful or want to add some information related to this topic, please feel free to express your opinion on Aeroo Reports & OpenOffice.org Reporting Engine dedicated forum.

Development project pages are located on Launchpad.

  • For Aeroo Reports - OpenERP modules:

https://launchpad.net/aeroo

  • For Aeroo Reports Library - Python module:

https://launchpad.net/aeroolib

Environment dependencies

1.Open ERP server v. 6.x

2.OS: any Linux 32bit or 64bit. (tested on Ubuntu 10.04 server and Centos5.6 64bit)

Note: Clients can work on all OS systems that support OpenERP.

Note: This module is tested on Windows, and works on this operating system as well with custom compiled OpenERP server. Installation manual yet to be written.

Download: Sources available from launchpad via Bazaar.

Source online: https://launchpad.net/aeroo

Download: Packaged module available from https://launchpad.net/aeroo/+download

How to get module

1.Download Aeroo module through launchpad via Bazaar ( A distributed revision control system ).

# cd /usr/src
# bzr branch https://launchpad.net/aeroo
# bzr branch https://launchpad.net/aeroolib

Installation (Dependencies and Base system setup)

System Requirements:

  1. Python 2.4.x or higher (http://www.python.org/doc/)
  2. Aeroolib (bzr branch lp:aeroolib)
  3. Genshi (http://genshi.edgewall.org/)
  4. OpenOffice Python
  5. OpenOffice.org-pyuno
  6. python-lxml

Note: Server does not require “x” windows to be running, in order to run this module.

System Dependencies:

Names of dependencies may differ regarding your Linux distribution.

  1. Aeroolib: A templating library able to output odt files
  2. python-genshi: Toolkit for stream-based generation of output for the web
  3. pycairo: Python bindings for the cairo library
  4. python-openoffice: Python libraries for interacting with OpenOffice.org
  5. openoffice.org-pyuno : Python bindings for OpenOffice.org
  6. OpenOffice.org v.2.3.x or above.
  7. python-lxml - pythonic binding for the libxml2 and libxslt libraries

Aeroo Reports Installation

1.Install Aeroo Reports Library - Python module:

# bzr branch lp:aeroolib
# cd aeroolib/
# sudo python ./setup.py install

2.Restart openerp-server

3.Install Aeroo - OpenERP module via Administration-> Modules Management

a)Manually: Copy Aeroo modules to $serverpath/openerp-server/addons/..

b)Through OpenERP interface: Administration/Modules/Update Modules List

c)Install necessary modules via OpenERP standard module installation interface:

  • OpenERP module - report_aeroo

Description of module: This is base Aeroo Report Engine module. It can be installed alone and does only basic .odt/.ods output for reports. No need for OpenOffice/LibreOffice UNO environment setup if you use this module only.

  • OpenERP module - report_aeroo_ooo

(Do not install at this point! Installation is described in section report_aeroo_ooo installation)

Description of module: This is module for adding additional reports outputs such as .pdf, .doc, .xls. As it depends on OpenOffice/LibreOffice conversion capabilities, an OpenOffice/LibreOffice UNO environment setup is necessary.

  • OpenERP module - report_aeroo_printscreen

Description of module: This is module for printing any GTK client interface object to desired output. Note: It doesn‘t work from web client, cause it has no Print Screen capabilities.

  • OpenERP module - report_aeroo_sample

Description of module: This is module for adding sample reports for easier understanding basic reporting templates.

4.Restart OpenERP server.

If everything went well, system is ready for reports printing basic .odt reports.

OpenERP module - report_aeroo_ooo - module installation.

This module depends on correct OpenOffice/LibreOffice UNO runtime setup on installation server machine and local or remote running OpenOffice/LibreOffice service in headless mode, if you plan to do conversion via TCP/IP network on dedicated reporting server.

OpenOffice/LibreOffice UNO environment setup.

Setup an OpenOffice/LibreOffice UNO environment, it is done by simply installing of OpenOffice and python-openoffice packages.

Note: These dependencies are required only for support of additional report output formats like PDF:

  • openoffice.org-base
  • openoffice.org-calc (required)
  • openoffice.org-core (required)
  • openoffice.org-draw
  • openoffice.org-graphicfilter
  • openoffice.org-headless (required)
  • openoffice.org-impress
  • openoffice.org-sdk
  • openoffice.org-testtools
  • openoffice.org-ure
  • openoffice.org-writer (required)

Note: To avoid problems of dependencies we recommend to installation full OpenOffice/LibreOffice meta package on both- target system and remote system if necessary.

Note: Headless OpenOffice below version 3.x. requires package – OpenOffice Headless. Package permits OpenOffice to launch in service mode. If you have OpenOffice 3.x or above, then you don‘t need to install this package, because in versions 3.x or above OpenOffice Headless is already implemented.

If you get an error message like this:

/usr/lib64/openoffice.org/program/soffice.bin X11 error: Can‘t open display:
   Set DISPLAY environment variable, use -display option
   or check permissions of your X-Server
   (See "man X" resp. "man xhost" for details)

...when starting OpenOffice in shell with "-headless" switch - it means that package openoffice-headless is not installed.

Testing OpenOffice headless mode.

To test if OpenOffice is correctly set up, go to OpenOffice installation directory and launch it in headless mode.

# ./soffice -nologo -nofirststartwizard -headless -norestore -invisible "-accept=socket,host=localhost,port=8100,tcpNoDelay=1;urp;" &
Then test with telnet:
# telnet localhost 8100

If you get something like this:

Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is ‘^]‘.
`ø‘com.sun.star.bridge.XProtocolPropertiesUrpProtocolPropertiesÜZī?kÎ@ëÚøBE^[[?6c

...then OpenOffice is up and listening to port 8100.

Note: In order to use uno module included in OpenOffice, your OpenOffice distribution must be compiled for the same version of python than you use for Open ERP server!

Installing and configuring report_aeroo_ooo module

Install report_aeroo_ooo module via OpenERP standard module installation interface.

Restart OpenERP server.

Note: Make sure you made correct UNO environment setup, if you get an error - “importError: No module named pyuno, when installing report_aeroo_ooo module or restarting server.

Configure connection parameters to OpenOffice.org service

Administration->Customization->Aeroo Reports->Configure OpenOffice.org connection

  1. Open wizard;
  2. Fill in your custom values;
  3. Save;

On success you should receive message:"Connection to the OpenOffice.org instance was successfully established and PDF convertion is working."

If it fails with error :

Connection to OpenOffice.org instance was not established or convertion to PDF unsuccessful!

It was unable to connect to OpenOffice.org or OpenOffice.org was unable to perform PDF conversion.

Your setup of Aeroo Reporting in OpenERP is complete.

时间: 2024-09-29 08:52:29

Aeroo Reports Linux server的相关文章

oracle 11gR2 client安装(Red Hat Enterprise Linux Server release 5.5 (Tikanga) 安装ORACLE客户端)

安装DBD::ORALCE模块时报错: Running Mkbootstrap for DBD::Oracle () chmod 644 Oracle.bs rm -f blib/arch/auto/DBD/Oracle/Oracle.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=gener

笔记本电脑玩linux server 笔记--优盘安装centos

手上有空闲的笔记本电脑,刚好想学习linux,于是便开始折腾之路.从自己的需求出发,希望可以达成目标:使用笔记本+有线网络搭建linux服务器,提供以下服务: 1.使用无线提供热点提供路由器的服务(在宿舍里充当无线路由器) 2.提供vpn服务(可以在校外访问只能在校内访问的资源) 3.搭建一个网站,供其他人浏览(没有域名,但是学校提供静态的个人主页,因此希望是通过个人主页的链接跳转到个人网站) 4.网站可以注册,可以玩ACM Online Judge,可以申请vpn服务等 5.没想好 自己毕竟新

在Azure上实现Linux Server故障转移

要充分利用公有云的弹性扩展和高可用, 首先要在应用系统层面支持横向扩展(scale out),这个说起来很容易,或者说对新开发的应用系统而言已经成为标配.但是对已有的.老旧的应用系统来说,这就比较困难了,不是每个应用系统都能实现/支持横向扩展的.从客户的角度来说,基本上很难接受为了把应用系统迁移到公有云上而去额外投入修改应用系统代码.虽然我们都心知肚明,本质上这是在“偿还技术债”,修改应用系统代码也是为了更好地利用公有云的优势... 对于应用系统的横向扩展而言,“状态”是最大的拦路虎,要支持横向

在虚拟机安装 Linux Server (ubuntu-14.04-server)

在虚拟机安装 Linux Server (ubuntu-14.04-server) 过程  从下载开始到安装成功历时约1小时 还算快的啦 可能国庆假期间网速快点吧 1. 下载安装文件 2. 创建虚拟机 3. 选择安装文件 4. 设置新账号 (root之外的) 6.虚拟机名称 文件位置 7 自动开始安装linux 8. 安装好后自动启动系统 9. 安装好的界面  可以登录 10. 修改 root 密码  可以 使用 sudo passwd 输入当前用户密码后修改root密码,再用su roo命令t

Red Hat Enterprise Linux Server release 7.0双系统安装

Red Hat Enterprise Linux Server release 7.0双系统安装 1.RedHat 公司的企业版7.0已经发布了.下面介绍一下在7.0下装双系统的步骤. 安装前系统:WIN7 要安装的第二个系统:RedHat Enterprise 7.0 @请注意:WIN8系统和企业版7.0不兼容.安装完7.0后,WIN8系统会起不来. @首先BOIS已经确定调好.[注意启用笔记本的高速运转模式],我是用PXE网络来安装的,所以还得设置从PXE网络启动. @接着以PXE启动. @

Red Hat Enterprise Linux Server 6.0官方多国语言版光盘镜像下载

来源:http://www.linuxidc.com/Linux/2011-09/43704.htm 电驴下载: rhel-server-6.0-i386-dvd.iso ed2k://|file|rhel-server-6.0-i386-dvd.iso|2931056640|503184dff4dd37542eee6e57f4a85341|h=azsa3gqbngp23ujbqeyc3ghd4wwtdley|/ ed2k://|file|HashTab_Setup.exe|799610|886

查看linux server网络I/0流量的shell脚本

查看linux server网络流量的shell脚本 上传下载大量文件的时候,可以使用这个脚本来实现监控! #!/bin/sh   ###统计5s内的平均流量,以Mb为单位 if [ "$1" = "" ];then    echo -e "\n      use interface_name after the script,like \"$0 eth0\"...\n"    exit -1 fi   echo -e &qu

两个局域网(办公网-IDC)安全互通方案2:by GRE and linux server&深入理解GRE

[第一.需求描述]     办公网和IDC两个局域网(or,任意两个不同局域网),相互隔离.但是在日常运维.研发过程中,需要在办公网访问IDC网络.如果都通过公网ip绕,既不方便,也不安全.如果拉专线,是最稳定可靠的办法.但是作为技术屌丝,想为公司省点钱(这也可以看作是技术价值的一部分),所以打算使用其他方案(当然是免费的方案,或者这样说,使用已有资源的方案.服务器当然也需要花钱的,但是你可以使用已有服务器来完成这个方案)解决这个需求. [第二.背景介绍]     办公网有lan192.168.

install and config bind9(named) on linux server

This article shows my process of installing and configuring bind9 DNS server on a linux server. I didn't touch every aspects of bind9, but following the process, a DNS server is configured with A/AAAA, NAPTR and SRV resource record types. The DNS ser