Installing LibreOffice on the Raspberry Pi?

LibreOffice is a free and open source office suite that includes applications for word processing, spreadsheets, presentations, and more. It is a great option for Raspberry Pi users who want an office suite on their device. Installing LibreOffice on the Raspberry Pi does take some work, but it can be optimized to run faster and more efficiently with a few key steps.

Installing LibreOffice on the Raspberry Pi?

Downloading LibreOffice

The first step is to download the latest armhf version of LibreOffice from the official website. This is the version optimized to run on ARM-based devices like the Raspberry Pi. The download is around 200 MB, which while large for the Pi, is needed for all the applications.

When the download finishes, extract the archive file to a location like /home/pi/libreoffice to install it.

Optimizing Memory Split

By default, the Raspberry Pi only allocates 128 MB of memory to the GPU. This leaves more for the CPU, but can slow graphics performance.

To optimize LibreOffice, adjust the memory split to allocate more memory for graphics processes:

  1. Open the Raspberry Pi Configuration tool
  2. Go to the “Performance” tab
  3. Set the GPU memory to 256 MB for best LibreOffice performance

This memory boost will allow LibreOffice to run faster and process complex documents more smoothly.

Adding Font Packages

LibreOffice may show text formatting oddly or use fallback fonts without extra font packages installed.

Run this command to install free font packages:

sudo apt install fonts-liberation libreoffice-l10n-en-za mythes-en-us

  • fonts-liberation adds new fonts like Liberation Sans
  • libreoffice-l10n adds grammar and spellcheck dictionaries
  • mythes enhances the built-in spellchecker

Now text should render properly in LibreOffice with better accuracy.

Using a Lighter Desktop Environment

The default Raspberry Pi OS desktop environment is quite heavy. Alternative “lite” environments like LXDE or Xfce use less RAM and CPU power.

Switching the Pi to boot to a lighter desktop can provide extra resources for LibreOffice:

sudo raspi-config

Under “System Options” choose the lighter desktop, like LXDE. Reboot for this to take effect.

Disabling Unneeded Services

Some default services and background processes that start with the Pi OS are unnecessary and waste resources if LibreOffice is the main application being used.

Try disabling some services that are not critical:

sudo systemctl disable rpcbind

sudo systemctl disable avahi-daemon

Reboot once again for maximum free memory for LibreOffice. Check with free -mh before and after to compare.

Adding Swap File for Extra RAM

With all optimizations so far LibreOffice should run faster. However, working with complex documents can still be slow on the Pi. A swap file essentially uses a bit of storage space as extra “virtual” RAM.

Here is how to create a 512 MB swap file:

sudo fallocate -l 512M /swapfile

sudo chmod 600 /swapfile  

sudo mkswap /swapfile

sudo swapon /swapfile

The extra memory allocation from disk will allow bigger files with graphics and tables to be edited more smoothly.

Key Takeaways

A few key ways to optimize LibreOffice performance on the Raspberry Pi include:

  • Allocating more GPU memory
  • Installing extra font packages
  • Using a lighter desktop environment
  • Disabling unneeded services
  • Adding a swap file for extra RAM

With these optimizations LibreOffice runs faster, launches quicker, and operates more efficiently even editing complex documents on the Pi. Carefully managing available memory is critical.


While the Raspberry Pi is not the most powerful device for running office software, LibreOffice can work well with careful configuration. The open source nature makes it accessible for all Pi users. Optimizing GPU allocation, adding fonts and dictionaries, using lighter environments, disabling services, and supplementing with swap space allows LibreOffice to run quite smoothly. With a few easy optimizations, the versatile LibreOffice suite can tackle documents of all kinds even on the Raspberry Pi.

Frequently Asked Questions

  1. How do I download LibreOffice for the Pi?
    Download the latest armhf build for ARM devices like the Pi from LibreOffice directly. Extract the archive to install.

  2. What is the ideal GPU memory to allocate?
    256 MB is recommended for best performance based on testing LibreOffice on the Pi. This allows graphics and rendering to be processed quickly.

  3. What desktop environment works best with LibreOffice?
    Lighter options like LXDE or Xfce use less memory so more is available for LibreOffice processing and loading documents.

  4. Is swap space necessary for good performance?
    Adding some swap space can help LibreOffice work with bigger documents by using disk as extra memory. Even 512 MB makes a difference.

  5. How can I make documents open faster?
    Disabling unnecessary services, adding font packages, and increasing GPU memory allocation are some ways documents can launch quicker.

  6. Will LibreOffice slow down my Pi too much?
    With optimizations to balance memory, disable background processes, and add swap space, LibreOffice will run efficiently without slowing general Pi use.

  7. Can I edit Microsoft Office documents with LibreOffice on Pi?
    Yes, one of LibreOffice’s best features is excellent compatibility to open and edit Word, Excel, and PowerPoint formats for cross-platform document editing.

  8. Is there a way to improve LibreOffice spelling and grammar on Pi?
    Yes, installing the libreoffice-l10n package adds additional language dictionaries to improve spellcheck, grammar and accuracy while editing documents.

  9. What causes graphics and images to render poorly in LibreOffice on Pi?
    Increasing GPU memory allocation from 128 MB to 256 MB can greatly improve graphics rendering capabilities within LibreOffice on the Raspberry Pi for images, drawings, diagrams, and more.

  10. How can I access cloud storage from LibreOffice on my Pi?
    Connector extensions allow integrating cloud platforms like Google Drive, Dropbox, OneDrive and more for opening and saving files directly from LibreOffice on Pi.

  11. Can I install LibreOffice on any model of Raspberry Pi?
    Yes, LibreOffice can be installed through the same process on any Pi model from early versions up to Pi 4. Performance varies depending on RAM and other specs so optimization is important.

  12. Is LibreOffice difficult for kids to use on the Pi?
    LibreOffice has excellent educational tools for young students on Pi including math equation editors, paint/draw, database views, and built-in template options to introduce office software concepts.

  13. Can I use LibreOffice on Pi 400 keyboard computer?
    Yes, LibreOffice is fully supported on the Pi 400 with 4GB RAM model. It makes an excellent portable office suite that can run smoothly directly on the keyboard as a computer.

  14. Is it possible to use macros and scripts in LibreOffice on Pi?
    Yes, LibreOffice has full macro capabilities through Python, Basic, JavaScript and more. Scripts can automate documents and processes enabling advanced functionality.

  15. How can I get help using LibreOffice on Raspberry Pi if I have issues?
    Consult the LibreOffice user forums and community support resources for Raspberry Pi specific troubleshooting. Volunteers and staff can help resolve installation and use issues.

  16. What’s the easiest way optimize LibreOffice performance on my Pi?
    Adjusting GPU memory allocation up from the 128 MB default makes the biggest impact for improved rendering and faster graphical performance within LibreOffice on the Raspberry Pi.

  17. Does LibreOffice offer cloud integration for Pi users?
    Yes. LibreOffice supports various cloud storage platforms like Google Drive, Dropbox, and OneDrive for saving and opening documents directly from the cloud.

  18. How can I customize or extend LibreOffice on my Pi?
    The software supports extensions and add-ons to enhance functionality, available from the LibreOffice extensions website to add unique capabilities.

  19. What PDF features come with LibreOffice on the Pi?
    It offers excellent built-in PDF editing tools including export to PDF, form filling, and annotation without needing additional third-party software.

  20. Can I use databases in LibreOffice on my Raspberry Pi?
    Yes, Base provides relational database access to create tables, queries, forms, reports that integrate nicely with the other office components.

Leave a Comment