Wednesday, January 15, 2025

Instalasi Debian KMS Server

 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 file
nano /lib/systemd/system/vlmcsd.service
[Unit]
Description=vlmcsd KMS emulator service
After=network-online.target
Wants=network-online.target


[Service]
Type=forking
User=vlmcsd

ExecStart=/opt/linux-kms-server/vlmcsd/vlmcsd -l /var/log/vlmcsd/vlmcsd.log

[Install]
WantedBy=multi-user.target
save
Create 
mkdir /var/log/vlmcsd
chown vlmcsd:vlmcsd /var/log/vlmcsd
add enable service
systemctl enable vlmcsd
systemctl start vlmcsd
systemctl status vlmcsd
 vlmcsd.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
  1. Mount ISO and install.
  2. Open one of the Office applications, for example Word and close initial window that is asking for serial key.
  3. 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