Swafox Blog
Search
K

Microsoft Office on Linux

How to run Microsoft Office apps on Ubuntu/Any Linux system.
For some mysterious reason, Microsoft has not yet released Linux-supported apps, forcing people to use Libre Office or their web version. This fact scares most of the people who were planning on switching to Linux and using it as the main OS. Luckily for us, there's a way to save our Office360 subscription and use all the features as intended.
For this project, we are going to use an awesome tool called Nativefier. A given NodeJS-based tool allows to turn any web page into a fully functioning desktop application.
In order to make everything work properly, we need to install two small packages via apt. (Both are ~25MB)
sudo apt install nodejs
sudo apt install npm
Now let's proceed to the building process. Create a separate directory for the install process and run the following command to install Nativefier.
sudo npm -g install nativefier
After that, simply pull Microsoft Office logo by running:
wget https://i.imgur.com/GF0Srjo.png -O icon.png
Now, finally build the project by running
nativefier -p linux -a x64 -i icon.png --disable-context-menu --disable-dev-tools --single-instance --internal-urls ".*" https://www.office.com/
Now you have a perfectly working Office binary inside a newly created folder. Let's do some cosmetics work just to make everything perfect.
mv Signintoyouraccount-linux-x64/ microsoft-office/ && cd microsoft-office/
mv Signintoyouraccount office && cd ..
sudo mv microsoft-office/ /opt/
sudo chmod 777 -R /opt/microsoft-office/
cp icon.png /opt/microsoft-office/
Now you are able to launch a fully functioning Office client on your Linux system!
Command:
/opt/microsoft-office/office