Guihong Wang

Guihong的博客

魔理沙一生推

Linux uses the Baota panel to build Microsoft E5 Renew X.

Required software packages (Debian):

apt install unzip screen wget tar vim -y

Install Dotnet3

If you are using Arm64 architecture (Raspberry Pi, mainstream old mobile phones), please refer to the following commands:

Execute the "arch" command to determine if you are using Arm64 architecture

GuihongWang@marisa:~$ arch
aarch64       x86_64

Left side is Arm64, right side is 64-bit architecture for computers

Download the Dotnet package for Arm64 architecture

wget https://download.visualstudio.microsoft.com/download/pr/f9f54199-f0b3-43ac-badd-f9ef6867641c/50bd985f26c59f5d63f29f571f7f89e5/dotnet-sdk-3.1.412-linux-arm64.tar.gz

Put it in /root and execute as root

mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-3.1.412-linux-arm64.tar.gz -C $HOME/dotnet 

export DOTNET_ROOT=$HOME/dotnet 

export PATH=$PATH:$HOME/dotnet

If you are using 64-bit architecture, install dotnet here

Demonstration using Debian 11 64-bit

Copy and paste the commands

wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb 

sudo dpkg -i packages-microsoft-prod.deb 

rm packages-microsoft-prod.deb 

sudo apt-get update 

sudo apt-get install -y apt-transport-https 

sudo apt-get update 

sudo apt-get install -y dotnet-sdk-3.1

Line break

Ouath (If for personal use, ignore)

Please refer to the official help to create Ouath Official Help Page

PFX certificate, I recommend you to get one from freessl.cn (takes 1-2 hours to obtain the certificate) and then use their recommended keymanager to generate the certificate

Line break

keymanager More-Export Certificate-Select all formats

Find the domain name you applied for the certificate in the specified command-a string of numbers.zip

Enter the zip, enter the folder, find the IIS folder, and enter it

Remember the password inside, you will need it later

So far, we have prepared the necessary files, now download Microsoft E5 Renew X

Manually download https://sundayrx.lanzoui.com/aW09Lsss75g and upload it to the location you remember on the server

Then execute unzip -d /renew Microsoft365_E5_Renew_X.zip

This will put it in the location you remember/renew

Configure and upload the above certificate to the Deploy folder

cd Deploy

vim Config.xml

Use vim, press "i" to enter input mode, press "esc" to exit input mode, enter "" to save and exit (w to save, q to exit), use "!" for force execution, used at the end (example: ! to force save and exit)

If the configuration is correct and a 500 proxy error occurs, set the SSL certificate transmission to false

After configuring the certificate and Ouath, go to our Baota panel

Before opening the Baota panel, create a website (I use Apache, Nginx may have similar operations)

Before reverse proxy, make sure the office 365 e5 renew program is running continuously

screen (create a virtual window)

Then cd to the directory you remember/renew inside

Then run dotnet Microsoft365_E5_Renew_X.dll

When you see "Application started. Press Ctrl+C to shut down.", you can press ctrl + a + d to exit this virtual window (the office 365 e5 renew program will continue to work after exiting)

Go back to the Baota panel, go to Website-Settings-Reverse Proxy to configure

Enjoy!

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.