cd /opt/
git clone https://github.com/kebe7jun/linux-kms-server useradd -s /usr/sbin/nologin -r -M vlmcsd cd /opt/linux-kms-server/vlmcsd/ make
Add following filenano /lib/systemd/system/vlmcsd.service[Unit]
Description=vlmcsd KMS emulator service
After=network-online.target
Wants=network-online.target[Service]
Type=forking
User=vlmcsdExecStart=/opt/linux-kms-server/vlmcsd/vlmcsd -l /var/log/vlmcsd/vlmcsd.log
[Install]
WantedBy=multi-user.targetsave
Create
mkdir /var/log/vlmcsdchown vlmcsd:vlmcsd /var/log/vlmcsdadd enable service systemctl enable vlmcsd systemctl start vlmcsd
systemctl status vlmcsdvlmcsd.service - vlmcsd KMS emulator service Loaded: loaded (/lib/systemd/system/vlmcsd.service; enabled; vendor preset: e Active: active (running) since Thu 2025-01-16 14:03:50 WIB; 11s ago Process: 6825 ExecStart=/opt/linux-kms-server/vlmcsd/vlmcsd -l /var/log/vlmcsd Main PID: 6826 (vlmcsd) Tasks: 1 (limit: 4642) Memory: 360.0K CGroup: /system.slice/vlmcsd.service └─6826 /opt/linux-kms-server/vlmcsd/vlmcsd -l /var/log/vlmcsd/vlmcsd. Jan 16 14:03:50 KMS systemd[1]: Starting vlmcsd KMS emulator service... Jan 16 14:03:50 KMS systemd[1]: Started vlmcsd KMS emulator service.Example activation license office
- Mount ISO and install.
- Open one of the Office applications, for example Word and close initial window that is asking for serial key.
- Open “cmd” as Administrator and run following commands (separated with #):
# cd /d %ProgramFiles%\Microsoft Office\Office16
# for /f %x in (‘dir /b ..\root\Licenses16\ProPlus2021VL_KMS*.xrm-ms’) do cscript ospp.vbs /inslic:”..\root\Licenses16\%x”
# cscript ospp.vbs /setprt:1688
# cscript ospp.vbs /unpkey:6F7TH >nul
# cscript ospp.vbs /inpkey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH
# cscript ospp.vbs /sethst:<IP OR FQDN OF YOUR KMS SERVER>
# cscript ospp.vbs /act
No comments:
Post a Comment