KMS сервер

anakom

Случайный прохожий
Нашел хороший мануал по развертыванию KMS сервера на Ubuntu Server (от Ekzorchik)


Основное:
1. Ставим Ubuntu, статику, обновляем
sudo apt update
sudo apt upgrade
2. Я всегда ставлю mc (видимо привычка от ms-dos)
sudo apt install mc
3.
sudo apt install git build-essential debhelper net-tools -y

root:~$ mkdir ~/vlmcsd-build
root:~$ cd ~/vlmcsd-build/
root:~/vlmcsd-build$

root:~/vlmcsd-build$ git clone https://github.com/Wind4/vlmcsd
root:~/vlmcsd-build$

root:~/vlmcsd-build$ cd vlmcsd/
root:~/vlmcsd-build/vlmcsd$ git submodule update --init debian

root:~/vlmcsd-build/vlmcsd$
root:~/vlmcsd-build/vlmcsd$ dpkg-buildpackage -rfakeroot -D -us -uc
root:~/vlmcsd-build/vlmcsd$ cd ~
root:~$ ls -la ~/vlmcsd-build/

root:~$ sudo dpkg -i ~/vlmcsd-build/vlmcsd_1113_amd64.deb

root:~$ sudo nano /etc/vlmcsd/vlmcsd.ini
Listen = 0.0.0.0:1688
LogFile = /var/log/vlmcsd/vlmcsd.log
root:~$ sudo mkdir /var/log/vlmcsd
root:~$ sudo useradd -s /usr/sbin/nologin -r -M vlmcsd
root:~$ sudo chown -R vlmcsd:vlmcsd /var/log/vlmcsd/
roota:~$
root:~$ sudo nano /lib/systemd/system/vlmcsd.service
[Unit]
Description=Vlmcsd (KMS Emulator in C)
After=network.target

[Service]
Type=simple
#User=nobody
User=vlmcsd
#Group=nogroup
Group=vlmcsd
ExecStart=/usr/bin/vlmcsd -i /etc/vlmcsd/vlmcsd.ini -D

[Install]
WantedBy=multi-user.target
root:~$ sudo systemctl daemon-reload
root:~$ sudo systemctl restart vlmcsd.service && sudo systemctl status vlmcsd.service | head -n5

root:~$ sudo tail -f /var/log/vlmcsd/vlmcsd.log

root:~$ sudo netstat -tulpn | grep :1688

root:~$ ss -lnptu | grep 1688
 
Назад
Верх