LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   LibreOffice (https://www.linuxquestions.org/questions/slackware-14/libreoffice-837883/)

maxmiorim 10-23-2010 07:02 AM

@gargamel
Indeed, the UI needs some work.

I'd kill for an UI better designed for widescreen monitors, for example.

Seriously, it's not hard to fit two pages side by side on a 24" LCD but both get cut somewhere near the bottom/top because there are 2-4 toolbars, a menu bar and the window border.

samac 10-23-2010 07:36 AM

Quote:

Has anyone installed a language package?
How would I go about it? Download the 20 MB tar ball with a dozen RPM files in it, then rpm2tgz and installpkg?

LibreOffice language packs
Yes the language packs work just fine but you have to play around with the default install directories. The RPM's install to /opt/libreoffice3 and Alien Bob's package installs to /usr/lib/libreoffice

I did it like this
Code:

mkdir ~/pkg
mkdir ~/tmp

# download the language tar.gz to ~/tmp
cd ~/tmp
tar -xvzf LibO-xxx-xx.tgz
cd en_GB/RPMS
rpm2tgz *.rpm
rm *.rpm
installpkg --root ~/pkg *.tgz
rm ~/pkg/var/log/packages/*
cd  ~/pkg
mkdir usr
mkdir usr/lib
cd opt/
mv libreoffice3 ../usr/lib
cd ..
rmdir opt/
cd usr/lib
mv libreoffice3 libreoffice
cd ~/pkg
makepkg ../libreoffice-en_GB-samac-i486-1.tgz

Do all this as root and substitute your own language and name into the package that you have made and install your package as normal. Once you start libreoffice you will have to change your language settings in options.

samac

niels.horn 10-23-2010 07:56 AM

@samac: I did something very similar, just letting it install in /opt, as I use the binaries from TDF with my SlackBuild.

I might (if time allows) write a simple SlackBuild that uses one variable for the language and another for choosing the destination of the files (like /opt for the binary version, /lib for Eric's version).

Lufbery 10-23-2010 08:07 AM

FWIW, (and I know this is a beta), I'm getting crashes with Libreoffice's writer every time I try to dock the navigator panel. :(

niels.horn 10-23-2010 08:14 AM

Quote:

Originally Posted by Lufbery (Post 4136800)
FWIW, (and I know this is a beta), I'm getting crashes with Libreoffice's writer every time I try to dock the navigator panel. :(

uhm, I haven't had a single crash yet (but I'm not really a heavy "Writer" user, I use Calc a lot more).
Can you reproduce this with a few simple steps?
Any error messages? (If you can reproduce it, start Writer from the command line to see possible output when crashing)

hemp4fuel 10-23-2010 09:28 AM

Quote:

Originally Posted by repo (Post 4136682)
I have removed openoffice and installed libreoffice.
There is no ooffice

Kind regards

I did the same with alienbob's package and there is both.

brixtoncalling 10-23-2010 09:35 AM

Quote:

Originally Posted by Lufbery (Post 4136800)
FWIW, (and I know this is a beta), I'm getting crashes with Libreoffice's writer every time I try to dock the navigator panel. :(

Strange. It docks fine for me...

kite 10-23-2010 11:39 AM

Quote:

Originally Posted by samac (Post 4136779)
installpkg --root ~/pkg *.tgz

above step will create a ~/pkg/var/log/ there. Since we are going to combine all the small tgz into one tgz, var/log should be deleted.

samac 10-23-2010 11:54 AM

Quote:

above step will create a ~/pkg/var/log/ there. Since we are going to combine all the small tgz into one tgz, var/log should be deleted
I have edited the sequence and added this command
Quote:

rm ~/pkg/var/log/packages/*
I haven't tested it, but I reckon it should be OK.

samac

gargamel 10-23-2010 11:56 AM

Quote:

Originally Posted by samac (Post 4136779)
Yes the language packs work just fine but you have to play around with the default install directories. The RPM's install to /opt/libreoffice3 and Alien Bob's package installs to /usr/lib/libreoffice

I did it like this
Code:

mkdir ~/pkg
mkdir ~/tmp

# download the language tar.gz to ~/tmp
cd ~/tmp
tar -xvzf LibO-xxx-xx.tgz
cd en_GB/RPMS
rpm2tgz *.rpm
rm *.rpm
installpkg --root ~/pkg *.tgz
cd  ~/pkg
mkdir usr
mkdir usr/lib
cd opt/
mv libreoffice3 ../usr/lib
cd ..
rmdir opt/
cd usr/lib
mv libreoffice3 libreoffice
cd ~/pkg
makepkg ../libreoffice-en_GB-samac-i486-1.tgz

Do all this as root and substitute your own language and name into the package that you have made and install your package as normal. Once you start libreoffice you will have to change your language settings in options.

samac

Thanks a lot, however, I get:

Code:

# rpm2tgz *.rpm
ERROR:  rpm2cpio failed.  (maybe libobasis3.3-de-3.3.0-1.x86_64.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libobasis3.3-de-base-3.3.0-1.x86_64.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libobasis3.3-de-binfilter-3.3.0-1.x86_64.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libobasis3.3-de-calc-3.3.0-1.x86_64.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libobasis3.3-de-draw-3.3.0-1.x86_64.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libobasis3.3-de-help-3.3.0-1.x86_64.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libobasis3.3-de-impress-3.3.0-1.x86_64.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libobasis3.3-de-math-3.3.0-1.x86_64.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libobasis3.3-de-res-3.3.0-1.x86_64.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libobasis3.3-de-writer-3.3.0-1.x86_64.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libreoffice3-de-3.3.0-1.x86_64.rpm is not an RPM?)

But with src2pkg I was able to create .tgz files. In the end it worked, and I have LibO with a UI in my language. Thanks a lot!

gargamel

niels.horn 10-24-2010 08:40 PM

Hi,

I built a SlackBuild script for the language packs. It's currently in the pending queue at SBo, but if you want to try it before it gets approval, feel free to download it from here.

Get your language packs from here (for 32-bits) or here (for 64-bits).

It takes two variables:
- LOLANG as the "locale" (default = en_GB)
- ALIEN to choose "/usr/lib" as the base directory instead of "/opt" (default = no)

So, simply run it as:
Code:

# LOLANG=pt-BR ./libreoffice-langpack.SlackBuild
for the Brazilian Portuguese language pack that will install in /opt

or:
Code:

# LOLANG=nl ALIEN=yes ./libreoffice-langpack.SlackBuild
for the Dutch language pack that will install in /usr/lib, for Eric's packages.

Martinezio 10-25-2010 02:23 AM

Niels: does this option ALIEN=yes work also for Slack-64 (main library path is /usr/lib64 ;))?

Can anyone prepare some patches, that swich the source building process to use git repository via http protocol? ;)

niels.horn 10-25-2010 04:18 AM

Quote:

Originally Posted by Martinezio (Post 4138279)
Niels: does this option ALIEN=yes work also for Slack-64 (main library path is /usr/lib64 ;))?

Ehh... well, now it does! ;) (just uploaded a corrected version.)

Lufbery 10-25-2010 06:58 AM

Quote:

Originally Posted by brixtoncalling (Post 4136856)
Strange. It docks fine for me...

Are you using Alien Bob's package?

H_TeXMeX_H 11-01-2010 06:38 AM

I installed it manually and it seems to work fine (extracted rpms and copied to somewhere locally). It's actually faster than go-oo now.


All times are GMT -5. The time now is 07:18 PM.