Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Why Denmark Is Dumping Microsoft Office for LibreOffice and Linux

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Denmark is not literally replacing every government computer overnight, but a series of municipal and national decisions have shifted large parts of the public sector from Microsoft Office and Windows to LibreOffice and Linux. The main reasons are cost, digital sovereignty, and avoiding vendor lock-in. This guide explains the real drivers behind the move, what it means for other governments and organizations, and how you can evaluate a similar transition.

What You'll Need

  • Basic understanding of how your organization uses Office documents (templates, macros, add-ins, shared workflows).
  • Access to a test environment (a few computers or a virtual machine) to trial LibreOffice and a Linux distribution.
  • Inventory of existing software and hardware to check compatibility.
  • Budget for training and support, even if the software itself is free.

Step-by-Step

  1. Understand the Danish context. Denmark's move is not a single law but a series of decisions. In 2011, the Danish government published a strategy for open standards, and several municipalities (like Munich's famous example, though that's German) have piloted or fully moved to open source. The key drivers are: reducing license fees, gaining control over data and infrastructure, and ensuring that public documents remain accessible without depending on a single vendor's proprietary formats.
  2. Audit your current Office usage. Before any migration, list every document type, spreadsheet, and presentation your organization uses. Note which ones rely on complex macros, embedded objects, or specific formatting that may not transfer cleanly. Denmark's public sector did this to identify which workflows could move easily and which needed rework.
  3. Test LibreOffice with your real files. Install LibreOffice on a few machines and open a sample of your most complex documents. Check for layout shifts, missing fonts, and broken macros. In Denmark, pilot tests in municipalities revealed that most standard documents (letters, reports, simple spreadsheets) worked fine, but some legacy macros needed rewriting.
  4. Choose a Linux distribution. For desktops, popular choices are Ubuntu LTS, Linux Mint, or Debian. Denmark's public sector has used Ubuntu and Debian in various projects. For servers, you might use the same or a server-focused distribution. Ensure your hardware is compatible—check for drivers for printers, scanners, and specialized peripherals.
  5. Plan for document exchange. Even after migration, you will still receive .docx and .xlsx files from citizens and other agencies. LibreOffice can open and save these formats, but you must test that the conversion is lossless enough for your needs. Denmark's approach was to set a policy: use ODF (OpenDocument Format) internally, and export to Office formats when required externally.
  6. Train your staff. The biggest cost is not software but training. Denmark's municipalities ran workshops and provided cheat sheets for common tasks like mail merge, pivot tables, and track changes. Expect a learning curve—LibreOffice's interface is similar to older Office versions but not identical.
  7. Migrate incrementally. Start with a small department, gather feedback, fix issues, then expand. Denmark did not switch everything at once; they piloted in a few municipalities before wider adoption. This reduces risk and builds internal champions.
  8. Review legal and security aspects. Open source software can be more transparent for security audits, but you still need to manage updates and patches. Denmark's Digital Agency has published guidelines on secure configuration for Linux and LibreOffice. Ensure your IT team is comfortable with package management and security updates.

Common Mistakes

  • Assuming everything will just work. Complex Excel macros, VBA scripts, and Access databases often break. Denmark found that many internal tools built on Office needed redevelopment.
  • Ignoring font and layout differences. Documents may look fine in LibreOffice but render differently when opened in Word. Use standard fonts like Calibri (if available) or switch to open fonts like Liberation or Carlito that are metric-compatible with Arial and Times New Roman.
  • Forgetting about add-ins and plugins. If you rely on Office add-ins (e.g., for PDF editing or document management), check if there are Linux alternatives or web-based replacements.
  • Underestimating training needs. Even simple changes like where the save button is can cause frustration. Provide ongoing support, not just a one-day workshop.
  • Not testing all workflows. Email signatures, shared calendars, and document co-authoring may behave differently. Denmark's pilot failed in some cases because shared editing in LibreOffice via network drives was slower than expected.

Tips

  • Use the same version of LibreOffice across your organization. Version mismatches can cause subtle formatting differences.
  • Set up a document template system. Create official templates in LibreOffice with the correct logos, fonts, and styles. This ensures consistency and reduces manual formatting.
  • Leverage online collaboration tools. Denmark's public sector often uses Nextcloud or ownCloud for file sharing and collaborative editing, which works well with LibreOffice Online (a web-based version).
  • Keep a small number of Windows machines for legacy tasks. Some specialized software (e.g., certain GIS tools or legacy databases) may not have Linux equivalents. It's acceptable to run a hybrid environment during transition.
  • Communicate the “why.” Staff are more accepting if they understand the reasons—cost savings, public ownership of data, and avoiding dependency on a single company.

Troubleshooting

If the migration hits a wall, here’s what to do:

  • Documents look wrong in Office. Check if you are using the latest LibreOffice version. Sometimes the issue is a missing font—install the Microsoft core fonts package (if legally allowed) or use substitution tables.
  • Macros don't work. LibreOffice uses a different macro language (Basic, Python, or JavaScript). You may need to rewrite macros. Start by identifying which macros are critical and prioritize rewriting those.
  • Printing issues. Printer drivers on Linux can be tricky. Use the manufacturer’s Linux drivers if available, or use the generic PostScript driver. Test with your specific printer models.
  • Users complain about performance. LibreOffice can be slower than Office on very large documents. Optimize by disabling unnecessary add-ons and increasing memory allocation in the settings.
  • Co-authoring breaks. If you rely on real-time collaboration, LibreOffice Online (via Nextcloud) works, but it’s not as smooth as Microsoft 365. Consider using a web-based office suite (like Google Docs) for real-time collaboration, while keeping LibreOffice for desktop work.

Frequently Asked Questions

Is Denmark completely dropping Windows and Office?

No, not completely. Many municipalities and some national agencies have migrated, but there are still Windows machines for legacy systems. The goal is to reduce dependency, not to eliminate everything.

Why does Denmark care about open source?

It’s about digital sovereignty—ensuring that public data is stored and processed in ways that the government controls, and avoiding being locked into a single vendor’s ecosystem, which can lead to rising costs and less flexibility.

Does LibreOffice handle .docx files well?

Yes, it can open and save .docx files, but complex formatting, comments, and track changes may have minor differences. For most everyday documents, it works fine.

Is Linux secure enough for government use?

Yes, Linux is widely used in servers and is considered very secure. The main challenge is ensuring regular updates and proper configuration, which is the same as with any OS.

What about software that only runs on Windows?

Some specialized software (e.g., certain tax, GIS, or engineering tools) may not have Linux versions. In those cases, Denmark uses virtual machines or keeps a few Windows machines for those specific tasks.

How much money does Denmark save?

Exact figures are not publicly available, but the main savings come from avoiding license fees and reducing the cost of forced upgrades. The savings are significant but vary by municipality.