https://wiki.archlinux.org/api.php?action=feedcontributions&user=Muon&feedformat=atomArchWiki - User contributions [en]2024-03-29T09:21:48ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=LibreOffice&diff=274147LibreOffice2013-09-02T16:11:28Z<p>Muon: /* Troubleshooting */ Extra explanation about video support (e.g. videos in Impress)</p>
<hr />
<div>[[Category:Office]]<br />
[[de:LibreOffice]]<br />
[[es:LibreOffice]]<br />
[[fr:LibreOffice]]<br />
[[it:LibreOffice]]<br />
[[ja:LibreOffice]]<br />
[[ru:LibreOffice]]<br />
[[zh-CN:LibreOffice]]<br />
{{Article summary start}}<br />
{{Article summary text|This article discusses the installation and configuration of LibreOffice}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Apache OpenOffice}}: Apache branch-out of OpenOffice.org, the project from which LibreOffice descends.<br />
{{Article summary end}}<br />
From [http://www.libreoffice.org/ Home - LibreOffice]:<br />
<br />
:''LibreOffice is the free power-packed Open Source personal productivity suite for Windows, Macintosh and Linux, that gives you six feature-rich applications for all your document production and data processing needs: Writer, Calc, Impress, Draw, Math and Base. [http://www.libreoffice.org/get-help/ Support] and [http://www.libreoffice.org/get-help/documentation/ documentation] is free from our large, dedicated community of users, contributors and developers. [http://www.libreoffice.org/get-involved/ You, too, can also get involved!]''<br />
<br />
== LibreOffice in Arch Linux ==<br />
<br />
Official support for [[OpenOffice.org]] was dropped in favor of LibreOffice, the "Document Foundation" fork of the project, which also includes enhancements and additional features. See [https://mailman.archlinux.org/pipermail/arch-general/2011-March/018819.html Dropping Oracle OpenOffice (arch-general)].<br />
<br />
== Installation ==<br />
<br />
Since version 3.4.2rc1, LibreOffice has been split into several packages, which can be [[pacman|installed]] with the {{Grp|libreoffice}} group from the [[official repositories]]: pacman will display a menu prompting for which components to install.<br />
<br />
{{Note|<br />
* As the language pack for en-US is no longer included by default, you will need to install at least 1 language pack. The default language is Afrikaans (because it is alphabetically the first provider of libreoffice-langpack), while the previous default (en-US) is at number 24. A common mistake is to install {{Pkg|libreoffice-uk}}, which is the Ukrainian language pack, instead of {{Pkg|libreoffice-en-GB}}.<br />
* You need {{Pkg|libreoffice-kde4}} or {{Pkg|libreoffice-gnome}} only if you care about Qt or GTK+ visual integration. See the [[#Theme|Theme]] section.<br />
}}<br />
<br />
Check the recommended optional dependencies pacman suggests. E.g. install a Java Runtime Environment (optional, highly recommended). See: [[Java]]. You may need {{AUR|hsqldb2-java}} to use [https://wiki.documentfoundation.org/Base#Java_and_HSQLDB some module] of LibreOffice Base.<br />
<br />
=== Microsoft fonts ===<br />
<br />
Official Microsoft fonts are useful to prevent pagination problems. Check the [[MS_Fonts]] wiki page.<br />
<br />
== Theme ==<br />
<br />
For [[Qt]] integration, install the package {{Pkg|libreoffice-kde4}}.<br />
For [[GTK+]] integration, install the package {{Pkg|libreoffice-gnome}}.<br />
{{Note|<br />
* Qt integration is able to mimic GTK+ theme. The command {{ic|qtconfig-qt4}} opens a window which let you choose.<br />
* Even if you are not running one of these desktop environments and thus do not need to "integrate" with them, you may still wish to install these packages so that LibreOffice will use non-default GTK+ or Qt themes. For example, LibreOffice on e17 uses the default "ugly" (aka "win95") theme; installing libreoffice-gnome will allow you to select a more pleasant GTK+ theme.<br />
}}<br />
<br />
As of LibreOffice version 3.5.x it tries to magically autodetect your desktop UI using the following magic if proper libs will be found:<br />
gtk3 > gtk2 > kde4 > generic<br />
<br />
To force the use of a certain VCL UI interface use one of this:<br />
SAL_USE_VCLPLUGIN=gen lowriter<br />
SAL_USE_VCLPLUGIN=kde4 lowriter<br />
SAL_USE_VCLPLUGIN=gtk lowriter<br />
SAL_USE_VCLPLUGIN=gtk3 lowriter<br />
It is convenient to save {{ic|SAL_USE_VCLPLUGIN}} variable in your shell configuration file, e.g.{{ic|/etc/bash.bashrc}} or {{ic|~/.bashrc}} if using Bash.<br />
<br />
{{Note|The new GTK3 UI is still marked upstream as experimental and will only be available if you enable "experimental features" in LibreOffice main configuration dialog.}}<br />
<br />
However, if it looks like it's using Windows 98 icons, go to ''Tools > Options > Accessibility'' and uncheck "Automatically detect high contrast mode of the system".<br />
<br />
=== Firefox themes ===<br />
<br />
LibreOffice 4.x series is able to use Firefox themes.<br />
Enter LibreOffice options and choose ''Personalization > Select Personas'', then paste the URL of your favourite one. A convenient button in the dialog box lets you open the browser.<br />
<br />
== Extension management ==<br />
<br />
Arch is shipping some additional extensions. We currently ship these extensions: nlpsolver, presentation-minimizer, report-builder, wiki-publisher. You can install them with pacman:<br />
<br />
# pacman -S libreoffice-extension-nlpsolver libreoffice-extension-foo ...<br />
<br />
Check [[AUR]] or the built-in LibreOffice Extension manager or [http://libreplanet.org/wiki/Group:OpenOfficeExtensions/List get extensions online] if you want to install more extensions.<br />
<br />
== Language aids ==<br />
<br />
=== Spell checking ===<br />
<br />
For spell checking, you will need {{Pkg|hunspell}} and a language dictionary for hunspell (like {{Pkg|hunspell-en}} for English, {{Pkg|hunspell-de}} for German, etc).<br />
<br />
=== Hyphenation rules ===<br />
<br />
For hyphenation rules, you will need {{Pkg|hyphen}} and a language hyphen rule set ({{Pkg|hyphen-en}} for English, {{Pkg|hyphen-de}} for German, etc).<br />
<br />
=== Thesaurus ===<br />
<br />
For the thesaurus option, you will need {{Pkg|libmythes}} and a mythes language thesaurus (like {{Pkg|mythes-en}} for English, {{Pkg|mythes-de}} for German, etc).<br />
<br />
=== Grammar checking ===<br />
<br />
For grammar checking, you will need to install an extension such as LanguageTool, which can be found in the [[AUR]]: {{AUR|libreoffice-extension-languagetool}} or the [http://www.languagetool.org/ LanguageTool Website].<br />
<br />
Other grammar tools can also be found on the [http://libreplanet.org/wiki/Group:OpenOfficeExtensions/List LibreOffice Extension Page] or [http://lingucomponent.openoffice.org/grammar.html OpenOffice's Website]. Not all OpenOffice extensions are guaranteed to work with LibreOffice.<br />
<br />
{{Note|Languagetool uses Java and may slow down or briefly hang LibreOffice, particularly while opening documents. Fortunately this is usually only when initially opening a document and is usually not apparent otherwise.<br />
<br />
Openjdk6 seems to get the better results than openjdk7 with LanguageTool, although this is unconfirmed.}}<br />
<br />
== Installing macros ==<br />
<br />
If you intend to use macros, you must have a Java Runtime Environment enabled. A Java Runtime Environment is enabled by default, but disabling it [[LibreOffice#Speed_up_LibreOffice|speeds up the program]].<br />
<br />
The default path for macros in Arch Linux is different from most Linux distributions. Its location is:<br />
~/.config/libreoffice/4/user/Scripts/<br />
<br />
== Speed up LibreOffice ==<br />
<br />
Some settings may improve LibreOffice's loading time and responsiveness. However, some also increase RAM usage, so use them carefully. They can all be accessed under ''Tools > Options''.<br />
* Under ''Memory'':<br />
** Reduce the number of Undo steps to a figure lower than 100, to something like 20 or 30 steps<br />
** Under ''Graphics cache'', set Use for LibreOffice to 128 MB (up from the original 20MB)<br />
** Set ''Memory per object'' to 20MB (up from the default 5MB).<br />
** If you use LibreOffice often, check ''Enable systray Quickstarter''<br />
{{Note|You need to have the package {{Pkg|libreoffice-gnome}} installed for the quickstarter option to be available.}}<br />
* Under ''Advanced'', uncheck ''Use a Java runtime environment''<br />
{{Note|For a list of functionality written in Java only, see: https://wiki.documentfoundation.org/Development/Java.}}<br />
<br />
== Troubleshooting ==<br />
<br />
=== Font substitution ===<br />
<br />
These settings can be changed in the LibreOffice options. From the drop-down menu, select ''Tools > Options > LibreOffice > Fonts''. Check the box that says ''Apply Replacement Table''. Type {{ic|Andale Sans UI}} in the font box and choose your desired font for the ''Replace with'' option. When done, click the ''checkmark''. Then choose the ''Always'' and ''Screen only'' options in the box below. Click OK.<br />
You will then need to go to ''Tools > Options > LibreOffice > View'', and uncheck "Use system font for user interface". If you use a non-antialised font, such as Arial, you will also need to uncheck "Screen font antialiasing" before menu fonts render correctly.<br />
<br />
=== Anti-aliasing ===<br />
<br />
Execute:<br />
$ echo "Xft.lcdfilter: lcddefault" | xrdb -merge<br />
<br />
To make the change persistent, add {{ic|Xft.lcdfilter: lcddefault}} to your {{ic|~/.Xresources}} file, and make sure to run {{ic|$ xrdb -merge ~/.Xresources}}. [https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/271283/comments/19]. See [[X resources]] for more details.<br />
<br />
If this does not work, you can also try adding {{ic|Xft.lcdfilter: lcddefault}} to your {{ic|~/.Xdefaults}}. If you do not have this file, you will have to create it.<br />
<br />
=== Hanging when using NFSv3 shares ===<br />
<br />
If LibreOffice hangs when trying to open or save a document located on a NFSv3 share, try prepending the following lines with a {{ic|#}} in {{ic|/usr/lib/libreoffice/program/soffice}}:<br />
# file locking now enabled by default<br />
SAL_ENABLE_FILE_LOCKING=1<br />
export SAL_ENABLE_FILE_LOCKING<br />
<br />
To avoid overwriting on update you can copy {{ic|/usr/lib/libreoffice/program/soffice}} in {{ic|/usr/local/bin}}. Original post [http://www.crazysquirrel.com/computing/debian/bugs/openoffice-over-nfs.jspx here].<br />
<br />
=== Fixing Java framework error ===<br />
<br />
You may get the following error when you try to run LibreOffice.<br />
<br />
[Java framework] Error in function createSettingsDocument (elements.cxx).<br />
javaldx failed!<br />
<br />
If so, give yourself ownership of {{ic|~/.config/}} like so:<br />
# chown -vR username:users ~/.config<br />
<br />
[https://bbs.archlinux.org/viewtopic.php?id=93168 Post on Arch Linux forums].<br />
<br />
=== LibreOffice does not detect my certificates ===<br />
<br />
If you cannot see the certificates when trying to sign a document, you will need to have the certificates configured in Mozilla Firefox (or Thunderbird). If after that LibreOffice still does not show them, set the {{ic|MOZILLA_CERTIFICATE_FOLDER}} environment variable to point to your Mozilla Firefox (or Thunderbird) folder.<br />
export MOZILLA_CERTIFICATE_FOLDER=$HOME/.mozilla/firefox/XXXXXX.default/<br />
<br />
[http://wiki.services.openoffice.org/wiki/Certificate_Detection Certificate Detection].<br />
<br />
=== Run .pps files in edit mode (without slideshow) ===<br />
<br />
The only solution is to rename .pps file in .ppt<br />
<br />
Add the following script to your home directory and use it to open every .pps file. Very useful to open .pps files received by email without the need to save them.<br />
<br />
{{bc|<nowiki><br />
#!/bin/bash<br />
<br />
f=$(mktemp)<br />
cp "$1" "${f}.ppt" && libreoffice "${f}.ppt" && rm -f "${f}.ppt"<br />
</nowiki>}}<br />
<br />
=== Bibliography problems ===<br />
<br />
If Writer crashes on attempting to access ''Tools > Bibliography Database'', with the following error:<br />
com::sun::star::loader::CannotActivateFactoryException<br />
Install {{Pkg|libreoffice-base}} as this is a workaround to a known bug, purportedly [http://cgit.freedesktop.org/libreoffice/core/commit/?id=1889c1af41650576a29c587a0b2cdeaf0d297587 fixed].<br />
<br />
=== Video support ===<br />
<br />
If embedded videos are just gray boxes, in addition to gst-plugins-base-libs and gst-plugins-[base | good | bad | ugly], install gst-libav<br />
# pacman -S gst-libav</div>Muonhttps://wiki.archlinux.org/index.php?title=Django&diff=250635Django2013-03-14T17:27:06Z<p>Muon: /* Installation */ included development version for python3 django</p>
<hr />
<div>[[Category:Development]]<br />
[[fr:Django]]<br />
''"[http://www.djangoproject.com Django] is a high-level [[Python]] Web framework that encourages rapid development and clean, pragmatic design."''<br />
==Installation==<br />
Django can be installed through pacman by installing the appropriate package.<br />
# pacman -S python-django<br />
for python 3 or<br />
# pacman -S python2-django<br />
for python 2.<br />
<br />
There are also git development version PKGBUILD's available in the AUR, 'python-django-git' for python 3 and 'django-git' for python 2. Using yaourt they can be installed as follows:<br />
<br />
# yaourt -S python-django-git<br />
for python 3 or<br />
# yaourt -S django-git<br />
for python 2.<br />
<br />
Of course, you can always download it directly from [http://www.djangoproject.com/download/ The Official Website]<br />
<br />
==Usage==<br />
Django is not used like other python libraries for the most part, but it can. After installation, you should be able to simply import django in any python V2 script.<br />
<br />
>>> import django<br />
<br />
In order to start a project, use django-admin.py.<br />
<br />
$ django-admin.py startproject myproject<br />
<br />
This will create the directory ''myproject'' under the current directory. It will also create the ''manage.py'' script, which has more useful functions for managing and testing your project. For instance, django has a small test server built into ''manage.py''.<br />
{{bc|<br />
$ python2 manage.py runserver<br />
Validating models...<br />
0 errors found<br />
<br />
Django version 1.1, using settings 'modsite.settings'<br />
Development server is running at http://127.0.0.1:8000/<br />
Quit the server with CONTROL-C.<br />
}}<br />
It can be changed to run at, say, port 8080 like so.<br />
{{bc|<br />
$ python2 manage.py runserver 8080<br />
Validating models...<br />
0 errors found<br />
<br />
Django version 1.1, using settings 'modsite.settings'<br />
Development server is running at http://127.0.0.1:8080/<br />
Quit the server with CONTROL-C.<br />
}}<br />
For more help, please see the [http://www.djangobook.com Django Book] or [http://docs.djangoproject.com/en/dev/ Official Django Documentation]<br />
<br />
==eric4-IDE Tips & Tricks==<br />
Eric4 is a good IDE for Django. It has Highlighting, Autocompletion, CVS & Subversion, Debugger, and Breakpoints.<br />
<br />
First install eric4 and eric-plugins<br />
<br />
# pacman -S eric eric-plugins<br />
<br />
To start a new Django Project.<br />
<br />
First click on the "Project/new."<br />
Then under "Project Type" select Django.<br />
After your new django project has been created, Right-click on the "Project Viewer", to the Left, and select "Configure", and in the configuration window set "Project type" to Django.<br />
<br />
After that, in eric4's "Settings/Preferences" select Django, from the left, and add this change to the "Console Command."<br />
<br />
If KDE,<br />
<br />
konsole --workdir `pwd` -e<br />
konsole --workdir `pwd` --noclose -e<br />
<br />
This will solve the problem...<br />
<br />
/usr/bin/python2: can't open file 'manage.py': [Errno 2] No such file or directory<br />
<br />
Note the "Django" menu next to "Project" and "Extras". There you will find Django tools to runserver and sync database.<br />
<br />
Now, just play around with it a little. All your Python code will be Added to the first tab of the "Project-Viewer" and your html templates will be opened in the second tab.</div>Muonhttps://wiki.archlinux.org/index.php?title=Django&diff=250634Django2013-03-14T17:14:16Z<p>Muon: /* Installation */ -- Django is now split into python/python2, and django development is now django-git</p>
<hr />
<div>[[Category:Development]]<br />
[[fr:Django]]<br />
''"[http://www.djangoproject.com Django] is a high-level [[Python]] Web framework that encourages rapid development and clean, pragmatic design."''<br />
==Installation==<br />
Django can be installed through pacman by installing the appropriate package.<br />
# pacman -S python-django<br />
or<br />
# pacman -S python2-django<br />
<br />
There is also a git PKGBUILD available in the AUR, 'django-git'. Using yaourt it can be installed as follows.<br />
<br />
# yaourt -S django-git<br />
<br />
Of course, you can always download it directly from [http://www.djangoproject.com/download/ The Official Website]<br />
<br />
==Usage==<br />
Django is not used like other python libraries for the most part, but it can. After installation, you should be able to simply import django in any python V2 script.<br />
<br />
>>> import django<br />
<br />
In order to start a project, use django-admin.py.<br />
<br />
$ django-admin.py startproject myproject<br />
<br />
This will create the directory ''myproject'' under the current directory. It will also create the ''manage.py'' script, which has more useful functions for managing and testing your project. For instance, django has a small test server built into ''manage.py''.<br />
{{bc|<br />
$ python2 manage.py runserver<br />
Validating models...<br />
0 errors found<br />
<br />
Django version 1.1, using settings 'modsite.settings'<br />
Development server is running at http://127.0.0.1:8000/<br />
Quit the server with CONTROL-C.<br />
}}<br />
It can be changed to run at, say, port 8080 like so.<br />
{{bc|<br />
$ python2 manage.py runserver 8080<br />
Validating models...<br />
0 errors found<br />
<br />
Django version 1.1, using settings 'modsite.settings'<br />
Development server is running at http://127.0.0.1:8080/<br />
Quit the server with CONTROL-C.<br />
}}<br />
For more help, please see the [http://www.djangobook.com Django Book] or [http://docs.djangoproject.com/en/dev/ Official Django Documentation]<br />
<br />
==eric4-IDE Tips & Tricks==<br />
Eric4 is a good IDE for Django. It has Highlighting, Autocompletion, CVS & Subversion, Debugger, and Breakpoints.<br />
<br />
First install eric4 and eric-plugins<br />
<br />
# pacman -S eric eric-plugins<br />
<br />
To start a new Django Project.<br />
<br />
First click on the "Project/new."<br />
Then under "Project Type" select Django.<br />
After your new django project has been created, Right-click on the "Project Viewer", to the Left, and select "Configure", and in the configuration window set "Project type" to Django.<br />
<br />
After that, in eric4's "Settings/Preferences" select Django, from the left, and add this change to the "Console Command."<br />
<br />
If KDE,<br />
<br />
konsole --workdir `pwd` -e<br />
konsole --workdir `pwd` --noclose -e<br />
<br />
This will solve the problem...<br />
<br />
/usr/bin/python2: can't open file 'manage.py': [Errno 2] No such file or directory<br />
<br />
Note the "Django" menu next to "Project" and "Extras". There you will find Django tools to runserver and sync database.<br />
<br />
Now, just play around with it a little. All your Python code will be Added to the first tab of the "Project-Viewer" and your html templates will be opened in the second tab.</div>Muon