Swafox Blog
  • Home
  • Resources
  • linux
    • Microsoft Office on Linux
    • Vim
    • How to set up an unlimited secure VPN server for 5$/month
  • Exploit Development / BoF
    • Pwntools
    • Buffer Overflows
  • Ethical Hacking & Bug Bounty
    • Bug Bounty Methodology
    • XSS
    • XXE
    • CVE-2020-5902
    • Google XSS
    • Identifying IP via Email
    • OWASP ZAP
    • Server-side request forgery (SSRF)
  • Write-ups
    • TryHackMe - OWASP Top 10 Event
    • TryHackMe - Anthem
    • TryHackMe - Blog
    • TryHackMe - Poster
    • HTB - Traceback: User flag Walkthrough
    • TryHackMe - Tomghost
Powered by GitBook
On this page
  1. linux

Microsoft Office on Linux

PreviousResourcesNextVim

Last updated 2 years ago

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.

Github:

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
github.com/jiahaog/Nativefier