HowTo: Install Onlineoffice on Ubuntu/Debian (No Docker No Limitation)

Thanks for your work on this.

I wish I’d known that CODE was essentially shareware for a paid product before I wasted time wrestling with bugs in the integration.

Should we look at creating a LibreOffice Online docker image, as an alternative to the restricted closed binary Collabora version?

Builds failed for me too so I forked the script and now it works for me. Here’s the script: https://github.com/methuselah-0/libreoffice-online-install.sh

1 Like

Of course! But what is the advantage of Docker? I use Docker for our developer. But if I need resources and security then preferably root server. This is my opinion but anyway we can create a LibreOffice Online docker image.

Thanks. For the likes of me, the docker way is quite a (time) efficient way of managing things. It would also avoid the complications of compiling from source. With a good compose script, it makes a reliable and easily updated setup straightforward. I’m also not too keen on the advertised online editing features being essentially a gimped closed binary - it would be good to make a more libre solution more accessible to the community.

In terms of security, I’m inclined to keep Nextcloud behind a VPN anyway. Plenty of bugs around, and I’m not anywhere enough of an expert in web application security to have sufficient confidence that I won’t make a serious mistake sooner or later.

There is already a libreoffice online docker image : docker pull libreoffice/online:master

But with the same limitation : no more than 10 differents documents open at the same time or no more than 20 connections to any documents at the same time.

It’s really important to compile by ourself to write the limitation we want for our server. If your server can scale 100docs at the same time it’s good. If you have a slow server with low ram, you should try libreoffice docker because the limitation fit your scale.
But Docker is easy on a side and have a lot of bad things on the other side.

@husisusi : when compiling is done what are the folders and file we can copy to a pen drive or hdd drive to copy on another sever

I think of /opt/online /opt/poco create a user lool create loolwsd service.
But what about the /opt/libreoffice folder it’s 10Go, do we need all this folder or just /opt/libreoffice/installdir ?

1 Like

Yes, I saw the existing docker, but noted the same limits. It’s a horrible decision to make the limitation settings written in stone at compile time. TBH, I fear that this is due to the considerable influence of Collabora on the Libreoffice project.

I do think that a docker with a much higher hard limit compiled would be a benefit to many people. We can always add the caveat that server hardware must be taken into consideration for the number of users, and perhaps also develop some knowledge on the recommendations. The default limit is so restrictive as to make it unusable for any but the smallest group.

Are there any chances to reduce size to get it on pi as on pi it will take all space.

Quote

(There is already a libreoffice online docker image : docker pull libreoffice/online:master)

Does this work on arm device

If you can write this command :
apt install docker (or docker.io)

And if it comes to the end, you will have libreoffice online on your pi

1 Like

Problem is docker can’t start container.That’s why I am askingWill it work on arm device.Anyone here got office on arm device?

@earth i would focus on running the Hello World container first, if possible then the world is endless. If you don’t wanna waste time finding out manually, remember Google is your friend.

Docker can’t start hello-world but it can start armhf/hello-world.

Kiran

Then it only runs a very special kind of containers build for arm.
I think you have your answer right there.

I will check what we can delete and integrate it in the script.

1 Like

thats why my first point was,
Is it possible to reduce size of integration?

You can delete /opt/libreoffice/workdir. it’s 7GB.
I added it to script.

Can we get a “Barney and Friends” tutorial for this? For those of us who don’t know how to run the script?

@husisusi
@Nemskiller

what is the installation size?
will it fit on pi’s with 8.5 gb left,

thanks

No, you need >15 GB. Ark74 told you “remember Google is your friend”.

1 Like

Been there, tried that. There’s a typo at the end:

systemctl status loolwsdy

should be

systemctl status loolwsd

instead.

Nevertheless, service loolwsd fails to start - here’s the output of sudo systemctl status loolwsd:

● loolwsd.service - LibreOffice On-Line WebSocket Daemon
   Loaded: loaded (/lib/systemd/system/loolwsd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since So 2017-03-05 12:10:47 CET; 37min ago
 Main PID: 20652 (code=exited, status=203/EXEC)
Mär 05 12:10:47 cardhu systemd[1]: Started LibreOffice On-Line WebSocket Daemon.
Mär 05 12:10:47 cardhu systemd[20652]: loolwsd.service: Failed at step EXEC spawning /opt/online/loolwsd: No such file or directory
Mär 05 12:10:47 cardhu systemd[1]: loolwsd.service: Main process exited, code=exited, status=203/EXEC
Mär 05 12:10:47 cardhu systemd[1]: loolwsd.service: Unit entered failed state.
Mär 05 12:10:47 cardhu systemd[1]: loolwsd.service: Failed with result 'exit-code'.

ls -l /opt/online/:

insgesamt 940
-rw-r--r-- 1 lool lool  49853 Mär  5 12:42 aclocal.m4
-rw-r--r-- 1 lool lool      0 Mär  5 12:42 AUTHORS
-rwxr-xr-x 1 lool lool    440 Mär  5 12:42 autogen.sh
drwxr-xr-x 1 lool lool    112 Mär  5 12:42 autom4te.cache
drwxr-xr-x 1 lool lool     14 Mär  5 12:35 bundled
-rw-r--r-- 1 lool lool     27 Mär  5 12:42 ChangeLog
drwxr-xr-x 1 lool lool    574 Mär  5 12:42 common
lrwxrwxrwx 1 lool lool     32 Mär  5 12:35 compile -> /usr/share/automake-1.14/compile
lrwxrwxrwx 1 lool lool     37 Mär  5 12:35 config.guess -> /usr/share/automake-1.14/config.guess
-rw-r--r-- 1 lool lool   2354 Mär  5 12:35 config.h.in
-rw-r--r-- 1 lool lool  38660 Mär  5 12:42 config.log
lrwxrwxrwx 1 lool lool     35 Mär  5 12:35 config.sub -> /usr/share/automake-1.14/config.sub
-rwxr-xr-x 1 lool lool 597153 Mär  5 12:42 configure
-rw-r--r-- 1 lool lool  11544 Mär  5 12:42 configure.ac
-rw-r--r-- 1 lool lool    240 Mär  5 12:42 COPYING
drwxr-xr-x 1 lool lool    174 Mär  5 12:42 debian
lrwxrwxrwx 1 lool lool     32 Mär  5 12:35 depcomp -> /usr/share/automake-1.14/depcomp
-rw-r--r-- 1 lool lool  10718 Mär  5 12:42 discovery.xml
drwxr-xr-x 1 lool lool     76 Mär  5 12:42 etc
-rw-r--r-- 1 lool lool   1150 Mär  5 12:42 favicon.ico
-rw-r--r-- 1 lool lool     35 Mär  5 12:42 INSTALL
lrwxrwxrwx 1 lool lool     35 Mär  5 12:35 install-sh -> /usr/share/automake-1.14/install-sh
drwxr-xr-x 1 lool lool    230 Mär  5 12:42 kit
drwxr-xr-x 1 lool lool    592 Mär  5 12:42 loleaflet
-rwxr-xr-x 1 lool lool   2635 Mär  5 12:42 loolstat
-rw-r--r-- 1 lool lool    426 Mär  5 12:42 loolwsd.service
-rw-r--r-- 1 lool lool   7791 Mär  5 12:42 loolwsd.spec.in
-rwxr-xr-x 1 lool lool   2612 Mär  5 12:42 loolwsd-systemplate-setup
-rw-r--r-- 1 lool lool   6422 Mär  5 12:42 loolwsd.xml.in
lrwxrwxrwx 1 lool lool     35 Mär  5 12:35 ltmain.sh -> /usr/share/libtool/config/ltmain.sh
drwxr-xr-x 1 lool lool    116 Mär  5 12:35 m4
-rw-r--r-- 1 lool lool   8178 Mär  5 12:42 Makefile.am
-rw-r--r-- 1 lool lool 121428 Mär  5 12:42 Makefile.in
-rw-r--r-- 1 lool lool    437 Mär  5 12:42 maketarballfordeb.sh.in
lrwxrwxrwx 1 lool lool     32 Mär  5 12:35 missing -> /usr/share/automake-1.14/missing
-rw-r--r-- 1 lool lool     22 Mär  5 12:42 NEWS
-rw-r--r-- 1 lool lool   2552 Mär  5 12:42 PROBLEMS
-rw-r--r-- 1 lool lool    375 Mär  5 12:42 README
-rw-r--r-- 1 lool lool     26 Mär  5 12:42 robots.txt
drwxr-xr-x 1 lool lool    146 Mär  5 12:42 scripts
-rw-r--r-- 1 lool lool    160 Mär  5 12:42 sysconfig.loolwsd
drwxr-xr-x 1 lool lool    700 Mär  5 12:42 test
lrwxrwxrwx 1 lool lool     36 Mär  5 12:35 test-driver -> /usr/share/automake-1.14/test-driver
-rw-r--r-- 1 lool lool   1019 Mär  5 12:42 TODO
drwxr-xr-x 1 lool lool    136 Mär  5 12:42 tools
drwxr-xr-x 1 lool lool    814 Mär  5 12:42 wsd

No dangling symlinks here, but there’s no binary ‘loolwsd’ either.

Debian Jessie (up-to-date), nginx and PHP7.0 from dotdeb.org