Установка
apt-get update && apt-get upgrade -yapt-get install -y git gcc make net-tools mc
cd ~
git clone https://github.com/Wind4/vlmcsd
git clone https://github.com/Wind4/vlmcsd
cd vlmcsd
make
make
cd bin
cp vlmcsd /usr/bin
cp vlmcs /usr/bin
cp vlmcsd /usr/bin
cp vlmcs /usr/bin
cat > /etc/systemd/system/kms-script.service <<EOF
[Unit]
Description=Microsoft KMS Server
After=network.target
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/vlmcsd -l /var/log/vlmcsd.log
RemainAfterExit=yes
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
EOF
[Unit]
Description=Microsoft KMS Server
After=network.target
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/vlmcsd -l /var/log/vlmcsd.log
RemainAfterExit=yes
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
EOF
chmod 664 /etc/systemd/system/kms-script.service
systemctl daemon-reload
systemctl start kms-script.service
systemctl status kms-script.service
systemctl enable kms-script.service
Изменения в DNS
$ORIGIN _tcp.domain.local._vlmcs SRV 0 0 1688 kms.domain.local.
$ORIGIN domain.local.
kms-server A 192.168.1.123
kms CNAME kms-server
kms-server A 192.168.1.123
kms CNAME kms-server