====== keenetic ====== cd ~ opkg install python3-pip gcc python3-dev python3-sqlite3 python3-pytz wget-ssl wget https://github.com/Py-KMS-Organization/py-kms/archive/refs/heads/master.zip unzip master.zip python3 /opt/root/py-kms-master/py-kms/pykms_Server.py 0.0.0.0 1688 -V INFO -F /opt/root/py-kms-master/pykms_logserver.log --sqlite /op t/root/py-kms-master/lic.db --logsize 100 ====== Debian ====== apt install python3-pip -y pip3 install tzlocal pysqlite3 #wget https://github.com/SystemRage/py-kms/archive/master.zip wget https://github.com/Py-KMS-Organization/py-kms/archive/refs/heads/master.zip unzip master.zip -d /opt/ * nano /etc/systemd/system/py3-kms.service
[Unit]
Description=py3-kms
After=network.target
#StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
KillMode=process
User=root
ExecStart=/usr/bin/python3 /opt/py-kms-master/py-kms/pykms_Server.py 0.0.0.0 1688 -V INFO -F /opt/py-kms-master/pykms_logserver.log --sqlite /opt/py-kms-master/lic.db --logsize 100

[Install]
WantedBy=multi-user.target
systemctl daemon-reload systemctl start py3-kms.service systemctl enable py3-kms.service *** pfSense pkg add https://github.com/augin/kms/raw/main/work/pkg/pfSense-pkg-kms-1.0.0_2.pkg