Show HN: Microsoft Office running with Wine on Linux with no virtualization

github.com

95 points by tombert 5 days ago

Microsoft Office famously hasn't worked well with Wine since Office 2007. There are lots of solutions out there to work around this, but all of them involve fairly heavy virtualization.

Multiple people have told me that their biggest hangup for switching to Linux from Windows is the lack of the desktop version of Microsoft Office, and they don't want to run a VM to get around it.

I recently fell into a bunch of free time with a Claude Max subscription, so I got Fable to hack at this until it worked! And with this, we have Microsoft Office running on Linux, with no Windows in sight!

I can't promise that this will work on everyone's computer, but I did put this all in Nix Flakes, so ideally it should be relatively reproducible on any Linux system with the Nix package manager and Flakes enabled. Also, it does not work very well with X, but Wayland appears to work fine.

This is not warez. You need a valid license for Office 365 for this to work. You also need to register on Microsoft's website in a browser; the flow for registering in the app proved to be tricky and not worth pursuing.

This is more proof of concept than anything else; I have no doubt that there are bugs and improvements to be made. I have only tested this with NixOS on Sway and KDE, and as stated it only really works with Wayland and the absolute latest GE-Proton, but I believe it would work fine with Gnome or any other Wayland desktop.

Full disclosure, Claude Code with Fable did the vast vast majority of the work on this. I ended up primarily just reading log messages and complaining back to it.

farseer 4 days ago

I feel like the entire world needs to take a plunge towards LibreOffice for the good of all.

  • cyanydeez 4 days ago

    I've been trying to slowly do this. But muscle memory and visual cues, embedded for 15 years just keep winning.

    None of my excel sheets are just numbers, they're tied to database pulls and those dont work either.

    Just trying to do the same things like merge cells I'm searching through a bunch of menus wondering what the hell it's called.

    Theres a gui that looks similar but not enough. If they really want adoption, they need to completely add a office-clone mode and accept the consequences.

  • tombert 4 days ago

    I agree with you in principle, and I honestly genuinely kind of hate Microsoft Office and I haven't used it or LibreOffice since I learned how to do LaTeX and Pandoc and Typst.

    That said, whether or not it should be the case, a lot of people want specifically proper noun Microsoft Office (TM), not something "as good or better" than Microsoft Office.

    I think getting people people towards a less horrible computing setup, for most people, requires it being done incrementally.

    • passthejoe 4 days ago

      Today's generation of kids is using Google Apps in school and has no ties to MS Office. SAAS in general will make MS Office much less relevant. Things like Canva and Photopea are doing the same to Adobe.

      • tombert 4 days ago

        Sure; honestly this is just for people like my parents.

        I am slowly trying to build the case that they should switch to Linux, especially if they expect me to play IT for them.

  • Daviey 4 days ago

    The biggest blocker for me is having confidence my output renders the same with people using MS Office, pdf output isn't always sufficient.

    • MrDrMcCoy 4 days ago

      That has been a lot less of a problem lately. Why not try again and open a bug report if there's an issue?

      • afavour 4 days ago

        Because there’s no one and done testing for it. You need to check every document you make with Office (so you’re paying for Office anyway…) to ensure it’s correct.

        All very well for an open source software project but for software you’re using day to day to achieve other, business central, goals, it’s a lot of lost time with little benefit.

        • hagbard_c 4 days ago

          > for software you’re using day to day to achieve other, business central, goals...

          ...you should use something which is reliable, no more complicated than needed for the purpose, which assures documents made now can be read in the distant future, keeps your confidential information out of the wrong hands and which is sure to be available to anyone who needs to have access to it.

          Doesn't really sound like Microsoft Office is a good fit if you ask me.

          • afavour 4 days ago

            You want to use the same stuff your clients use, that’s guaranteed to look the same on their computer. So Office it is.

            • hagbard_c 4 days ago

              Well, you want to be using what your clients can read, it doesn't have to the the same software. This is true for most file formats - audio, video, image/graphics (the latter more restricted due to other entrenched proprietary formats) - but the 'office' space (no pun intended) is still suffering from decades of abuse of its position os operating system vendor by Microsoft. Windows is only getting worse with every release so it is just smart business sense to steer away from it and things depending on it. Microsoft Office is one of the few remaining reasons often quoted for staying with this deteriorating platform so there are other incentives to move away from it. The best moment for moving away from Windows was years - or decades - ago. The second best moment is now.

    • hagbard_c 4 days ago

      As long as that is the goal Microsoft can block uptake of any competitor simply by making sure that is never achieved. They have a lot of history with this - DOS ain't done 'till 1-2-3 won't run etc. - so you can rest assured that they'll do it again. Maybe you should change your output so it isn't as reliant on 'rendering the same', i.e. make it less complex and with that less easy for Microsoft to claim the error lies with the other party? Word is not a DTP package nor a typesetter, it is a document editor. Fancy layout has never been the forte of this class of programs, they're meant to make sure the output works on different computers, different printers, different monitors.

    • drnick1 4 days ago

      When is a PDF not sufficient? I write all my reports/letters in LaTeX and if someone complained about receiving a PDF, I would send them the source and wish them good luck.

      • tombert 4 days ago

        That is actually why I got into LaTeX in the first place!

        My resume was initially done with LibreOffice and I'd send recruiters a PDF, and they would ask for a .docx, and when I would send that they would screw up all the formatting by inserting their ugly logo on the top.

        When I "ported" my resume over to LaTeX, I would send the PDF and they'd ask for a .docx, I would say "Oh, the resume is done in LaTeX. Here's a link to the source and instructions on how to compile it, feel free to do what you need".

        Then they would just submit the raw PDF.

        • menotyou 4 days ago

          ..or they would just not submit it at all.

          • tombert 4 days ago

            As far as I am aware that never happened. Every time this particular situation has happened, I have gotten a callback.

            • Daviey 3 days ago

              If you did this to me, fine.

              If you had done this to a recruiter that funnels screened people to me, I'd make sure to not interview you. It shows total lack of awareness of how to deal with non-tech people, verging on arrogance.

              • tombert 3 days ago

                …what?

                How would that work logistically? You would get a regular resume with formatting that isn’t fucked up and you would think “this is a guy who I shouldn’t hire”? You’d have a stack of resumes, all of which are broken, and you’d see one that isn’t and that would be a red flag?

                How exactly is it “arrogant”? I didn’t like that my resume formatting was breaking because of the people who insisted on inserting their ugly logo on top the page. I had historically asked them to stop doing that, or at the very least to show me the end result before they submitted, and they would simply not work with me. I think my solution actually demonstrates a lot of awareness in how to deal with “non-tech people”.

                • Daviey 3 days ago

                  The recruiter wouldn't compile anything, they'd just tell me "this guy sent me a GitHub repo instead of a CV", or more likely just not mention your application. A recruiter who reliably funnels screened people to me is worth far more than any single application, so that's how it plays out logistically - you get dropped and never hear about it. "As far as I am aware" is carrying a lot of weight there.

                  The arrogant bit is "here's a link to the source and instructions on how to compile it, feel free to do what you need". A recruiter asking for an editable version wants something they can drop their letterhead on and forward to the client. Handing them a build task assumes they have both the skills and the inclination to meet you on your toolchain. Nobody expects you to be their typesetter either; the difference in skills isn't the problem, assuming the difference away is.

                  That mismatch is the part I'd actually be screening for. A company is mostly non-engineering people: sales, support, HR, PMs who can't read a diff. The recruiter is the one non-technical person in your hiring pipeline, and how you handle them is a sample of how you'd handle the fifty you'd work alongside. If the instinct is to make them come to your toolchain rather than meet them where they are, that plays out in every meeting and every "quick question" from sales for as long as you're employed. The CV is the one document whose entire purpose is to sell you to a non-technical audience, and handling that poorly is telling.

                  I've maintained my own CV in LaTeX for ~20 years and would never dream of sending a recruiter a Makefile and telling them to work it out.

                  Sent to me directly? Fine, I'd read the repo, probably be impressed, might even see if I could improve mine from it. That was never the scenario though.

                  • tombert 3 days ago

                    I don't agree with you being mass-downvoted, since you're just espousing your opinion, even if it's one I don't agree with.

                    That said, I think we're at a fundamental disagreement here; the recruiters would screw up the formatting in a way that would make the resume say things that are flatly untrue. It's not just aesthetic. For example, I used to put the amount of experience I had in different technologies, and because they would break the alignment it would look like I had more years experience with Node.js than Node.js had even existed at that point.

                    When I would politely ask recruiters to, at the very least, send me the updated resume with their ugly logo so I could point these things out, they would universally agree and then never actually do it before sending it to the potential employer. This was literally 100% of the time, there was not a single outlier here. That's not nothing; a competent interviewer might think they've caught me in a lie and not move forward. I'm no exception; if I saw that a person said they had more experience with a technology than the laws of physics would dictate, I would assume they're full of shit and pass on the resume.

                    So you tell me, what exactly should I do? Waste my time and the technically incompetent recruiter's time and the interviewer's time because they think I'm more qualified for something than I ever said I was? Or I could simply, hear me out, create a situation where these "non-tech people" can't screw this up, because they invariably would. I guess you can call it "arrogant" if you want, but I really think it's considerably less douchey than wasting everyone's time.

                    With the advent of LLMs they could point Claude to the LaTeX source and get it in any format they want. Or they could, and I think they largely did, just forward the raw PDF (which I always provided), maybe using Preview to insert their ugly logo somewhere where it doesn't screw up formatting. If they had asked me to do the logo insertion, I would have inserted it myself because I'm not incompetent with typesetting.

                    Frankly, though, the resume is actually working as intentional, because I do not believe that I would be a good culture-fit on your team so it would be best not to waste your time anyway.

      • Daviey 4 days ago

        When I need other people to continue editing it.

        I also prefer LaTeX, I've written hundreds of letters, multiple papers, a few thesis and my CV (maintained for the last ~20 years). But the defacto for business documents sadly isn't LaTeX.

  • revolvingthrow 4 days ago

    The network effect of social media has nothing on the network effect of ms office

    • varispeed 4 days ago

      You can try to use LibreOffice all you want, until you receive a form to fill where LibreOffice doesn't display checkboxes and recipient won't accept "x", because their automated software only uses MS Office and won't properly attribute it to questions.

    • ray_kay777 2 days ago

      Yep, I've seen this come up time and time again in the legal world and Microsoft 365 is so entrenched in the legal world that there is 0 chance of change in at least the next decade, and probably in the next 20 years.

  • brightball 4 days ago

    Makes me wonder about aiming all those subscriptions at LibreOffice. How fast could it be improved to gain parity or surpass MS Office?

    Maybe the new Omarchy foundation thing will take it on. DHH has pretty publicly been asking for a version of office for Linux.

    • varispeed 4 days ago

      With such an advancement of AI, can't parity be vibe coded?

  • TiredOfLife 4 days ago

    That would require LibreOffice not being shit.

  • fluidcruft 4 days ago

    I can't tell what's going on with all the LibreOffice drama and whether it's a zombie on life support after the professional community management class kicked all the actual developers out (my take away).

  • bastardoperator 4 days ago

    I avoid both like the plague. These apps make me feel less productive and the docs they produce always look ugly to me. I would rather md, html or latex.

  • chris_money202 4 days ago

    The word editor isn't really Microsoft's product, it's just one of the many entry points to the Microsoft Office cloud sphere where all the data can be interconnected and shareable.

  • ducktective 4 days ago

    For starters, universities and government offices should not expect a proprietary format. Everyone should accept OpenDocument Format (ODF) or a similar FOSS format. MS Office, LibreOffice, OpenOffice and whatnot can compete in editing and rendering open formats.

    Come to think of it, this is a good proposal for EU, thanks for the USB-C, by the way :)

    • tombert 4 days ago

      Can't speak for every graduate program or every school, but when I was in grad school at University of York, we actually used Overleaf with LaTeX a lot, since it allowed shared collaborative editing.

      I liked that because it's still an open format.

    • kasabali 4 days ago

      The problem with this is Microsoft foresaw it and pushed (bribed?) OOXML through ISO and now there's no standing on "forcing" an open standard without OOXML being one.

      • vrighter 4 days ago

        how about requiring the format to actually be specified? Isn't ooxml filled with tons of chunks saying "and then this will behave like word 95 did" and not specify what tat is

        • illiac786 3 days ago

          What? And this got approved by ISO?!?

          • vrighter 3 days ago

            It sure did! and because those products aren't sold anymore, it's impossible to legally implement the standardc as even with the "full" spec, you need to reverse engineer stuff from unavailable software

  • glimshe 4 days ago

    I think LibreOffice is an outdated and overall awful piece of software. It's not like Open Source champions like Linux, Blender and Godot at all.

    Its only advantage is being Free. This product couldn't survive in the market if it was paid, arguably at any price. I really tried it to use and love it, but LibreOffice is just terrible.

    • winrid 4 days ago

      OpenOffice is older and outdated compared to Libre, which did you try?

      • glimshe 4 days ago

        Both. Neither is a viable mass-market alternative in my opinion. Cross-platform office software is just a difficult problem. I think they could be appropriate for some nonprofit/government work, which I think is where they do well today.

        • winrid 4 days ago

          I agree with that. They are only usable if you're fairly technical.

    • ducktective 4 days ago

      >outdated

      What modern features are you looking for in a say, document editor? My experience with LibreOffice Writer and Calc has been excellent. I'm happy there is no modern AI or cloud integration noise or ribbon bars with excessive whitespaces.

      • staindk 4 days ago

        I mostly just want UI icons that make sense. The LibreOffice icons all look samey to me, can never find what I'm looking for.

    • nonethewiser 4 days ago

      I always wonder how people can suggest LibreOffice over Word or Google Docs. Its much worse. Either people are just extremely motivated to use it or they don’t actually use it.

      You are exactly right that it is not an open source success. I wish it were.

  • GuB-42 4 days ago

    Except that Microsoft Office is just better.

    But with the awesome job Microsoft does at breaking it, maybe in a few years, LibreOffice will be a good alternative, if the LibreOffice guys don't screw up too much on their side.

  • mahboi 4 days ago

    Realistically, the world is just gonna AI-plow their way through old moats like this. Don't know about new ones.

    • mahboi 4 days ago

      Also, it's not even a joke anymore how Wine is the most stable Linux ABI

overclock-api 5 days ago

Good work. I had assumed Office and Wine had been an unsolvable problem due to how long it had been around.

What specifically breaks? My understanding is that the modern version of Office is in reality a combination of many things: the licensing layer, the .NET bits, the Click-to-Run packaging, and finally the app. If it turns out that the real hard part is the licensing/activation flow rather than the app itself, that is a more interesting discovery in that the problem is less about the app itself and more about how the distribution works. Which might also explain why it got easier to tackle.

  • tombert 5 days ago

    Actually not that much breaks now!

    The hardest part was the activation, but some patience with Claude seemed to get that working.

    At least with Sway, I had trouble getting anything with X11 working, particularly anything involve "pop ups". That includes right-click menus and stuff like that. Wayland works much better.

    It also took a very long time to get the dictionary loaded for spell-check, and then a very long time to get the red squigglies working.

    • yjftsjthsd-h 4 days ago

      > At least with Sway, I had trouble getting anything with X11 working, particularly anything involve "pop ups". That includes right-click menus and stuff like that. Wayland works much better.

      ? Sway is a Wayland compositor

      • tombert 4 days ago

        I use it as my desktop environment. I was using XWayland at first to get this working since that was historically the norm with Wine stuff, but that ended up being really glitchy. The latest versions of Wine/Proton actually have native Wayland support though so once I forced that it ran significantly better.

        I don't know if this is an XWayland problem, or a problem with X in general, since I don't have any computers running X anymore.

rkagerer 4 days ago

That's ok, I still prefer Word 2003 to the bloated, web-wired, ribbon-infested garbage that came after.

https://news.ycombinator.com/item?id=47202540

  • tombert 4 days ago

    Yeah, I think I mentioned it here a few months ago, but I got Office 97 working with Wine, and I was sort of flabbergasted at how usable it still is. It worked fine with my system's TrueType fonts, it does all the formatting I care about, and given that it's nearly 30 year old software it runs obscenely fast. If I weren't a grumpy die-hard CLI person I would probably still consider using it.

    All that said, there are a lot of people who want the absolute latest MS Office. I don't get it either.

  • mahboi 4 days ago

    I'm glad this is still a complaint. I used Office 2004 (same as 03) until 2013, when I absolutely couldn't anymore because of docx incompatibility. My wife still uses 07, sadly it's ribboned.

    • creshal 4 days ago

      doc vs docx is whatever, what kills older offices for me is the 64k row/col limit in excel. That was only fixed with the ribboned versions. :(

    • rkagerer 4 days ago

      Do you have the docx compatibility pack installed?

      • mahboi 2 days ago

        They didn't have that for Mac. Oh and turns out Word '04 was Mac-only, '03 was the last Windows version without the ribbon.

alright2565 4 days ago

I've done something similar with a CAD app, where I've used AI tools to package it as a Nix flake. It's a really good format for wine packaging since it makes it so easy to patch wine in ways that would never be accepted upstream, and it makes launching it just one command vs needing to deal with other people's potentially broken wine prefixes.

  • tombert 4 days ago

    Yeah, completely agree.

    I absolutely love Nix Flakes; they feel, to me, like what Docker was supposed to be. A little self-contained packaged environment that gives you a place to do any kind of custom hacks deterministically.

    • aroman 4 days ago

      nix + LLMs is the most fun I've had with personal computing since I burned an Ubuntu live CD in middle school

pluc 4 days ago

It's cool to see things that were entirely unnecessary popping up with the help of AI. Nobody ever cared enough to do this, nobody is going to use this, but now we can just shit it out knowing full well nobody is going to care. Just had to sacrifice humanity's knowledge and a few professions to get there.

  • tombert 4 days ago

    Uh, what?

    I actually think a lot of people cared enough to do this; the entire Wine project sort of exists specifically because people want Windows software on Linux.

    I know multiple people who have said that they won't use Linux specifically because it doesn't have the full-fat desktop version Office on there.

    "Unnecessary"? Sure, I guess, I don't like MS Office and I don't use it, but a lot of people seem to really like it, whether or not they should.

    • pluc 4 days ago

      I'm not talking about WINE, I'm talking avout what you had Claude build to use it.

      If this were a proof of concept and you had the ability to say what you did different to make it work better than previous attempts that would be great, but i don't think you know.

      • tombert 4 days ago

        The stuff that was done differently was the shim to get the activation working, and the fact that modern Wine has native Wayland support that helps avoid a lot of graphical glitches.

        I'm not entirely sure what your point is though? Are you suggesting I don't know how to write software? I've been doing this for a very long time, well before generative AI.

  • cyberax 4 days ago

    Is anything YOU do useful?

    This is a very useful project for me, because I occasionally need real Excel.

  • mahboi 4 days ago

    This is pretty necessary for tons of people considering Linux

TiredOfLife 4 days ago

The bottles project https://x.com/brombinmirko also has been progressing with alpha being promised "soon"

  • tombert 4 days ago

    Interesting, I hadn't heard of this actually, though it looks like there's a good chunk of overlap in what we were doing.

    I suspect what they're doing is better than what I did. I just was happy I got something working and wanted to share.

PeterStuer 4 days ago

365 on Linux with a sup? Why would MS not celebrate this? Windows consumer has been a loss leader for quite some time, and entreprise wont touch it till its 100% cleared.

  • milgrum 4 days ago

    probably the support burden, plus they already have o365 web apps that work on linux. office breaks in new and exciting ways on windows all the time, and they have full control over that. I <3 linux but I never want to support wine office in an enterprise environment, sounds like a total nightmare

  • tiahura 4 days ago

    Because they want to phase out the windows apps too.

28304283409234 3 days ago

Ok but why. Why on earth would i want to run microsoft office in 2026?

  • tombert 3 days ago

    I'm with you. You're not my parents.

tiahura 4 days ago

Bravo! Beat me. Been working on this for a bit.

  • tombert 4 days ago

    I mean, all I did was use a large chunk of free time and Fable tokens. I wish I could say that my big brain and software engineering prowess is what got it working, but mostly it was just staring at text and not having anything better to do.

jmkni 4 days ago

What version of Office are we talking about?

  • tombert 4 days ago

    The latest version of Office 365. Well, latest as of about four or five days ago. It required me to buy a month of it for $15.

    I have been trying to get one of those gray-market keys from Groupon working, but that has proven to be very difficult because there's a lot of weird kernel-level stuff going on for verification because those are done with volume-licenses. If I were willing to pay full-price for a regular Office 2024 Home and Business key I think it would be relatively easy to adapt this to get it working, but I don't want to sink $200 for software I'm unlikely to ever actually use.

Kwpolska 4 days ago

Show HN is for things you made, not things where all commits are made by Claude.

  • aroman 4 days ago

    Shall we also ban projects that are not authored directly in bytecode? Surely it's not really "made by hand" if you used a higher level interpreted language. But seriously: software engineering is all about leveraging abstractions/indirection where appropriate for the job to be done. It's kind of... the whole point: https://en.wikipedia.org/wiki/Fundamental_theorem_of_softwar...

  • tombert 4 days ago

    To be fair, I actually emailed HN moderation before I submitted this because I actually sort of agree. They said I should go ahead and submit it because there might be some interest in this.

    • mahboi 4 days ago

      That's solid

  • drnick1 4 days ago

    Yes, sure, let's pretend we are back in 1995 and write C by hand on a beige Pentium tower.

  • qwerpy 4 days ago

    Disagree, if it provides value to me I don’t care who or what built it. This provides value to me. I’m stuck on windows and eventually want to get out, and MS Office (specifically OneNote) is one of the remaining hurdles. This gives me hope that it’s only a matter of time. For the anti-AI people they can wait for someone can do a "proper", artisanal human-written version that builds on the problems that were solved by the AI-written version here.