Cubieboard using py-kms and DNSMASQ to build a fully automatic KMS activation environment in LAN

Source: Internet
Author: User

As we all know, the KMS activation mode is the most widespread active mode of "trial" windows,office for the majority of netizens nowadays. It can be used in almost all Microsoft products.

However, the use of the KMS class activation tool is always a bit insecure, on the one hand every 180 days to reactivate, the other is the source of these tools, often killed soft kill, these activation tools in the end there is no security problem? Only by faith.

Therefore, the best embodiment of the current technology house do not toss the practice is to build a KMS activation simulator in a non-native environment, remote activation of the machine in the LAN.

KMS Activation Server Setup

The currently used KMS Activation server program is py-kms and VLMCSD, respectively, Python and C language versions. Can run in the big freebsd/linux/openwrt/windows ... Environment.

VLMCSD Post Address:

Http://forums.mydigitallife.info/threads/50234-Emulated-KMS-Servers-on-non-Windows-platforms

py-kms Post Address:

https://github.com/myanaloglife/py-kms

Individuals prefer to py-kms some, rely on less, cross-platform, without compiling. You can activate Windows full series (7/8/8.1/10), Office full series (~2013).

The process of installing py-kms in Cubietruck (a raspberry-like arm host) within the LAN is as follows:

1. Installation dependencies

sudo Install Python-argparse

2. Download the Code

git clone https://github.com/myanaloglife/py-kms

3. Run the activation server

cd/py-Kmspython server.py

When you see the prompt message

0.0. 0.0 1688.

This means that the KMS service has been opened on port 1688 without errors. This is the end of the building.

4. Using Supervisor to manage py-kms services (not required steps)

In order for py-kms to run in my cubieboard for 24 hours in a long time, I wrote a supervisor script pykms.conf as follows:

[Program:pykms]command=python/root/py-kms/server.pyautorestart=trueUser= Root

Restart under Supervisor, see pykms Normal operation, call off.

5. Manually Activate Office 2013

Reference: http://learner7.blog.51cto.com/1340889/1597515

My office is a 32-bit version 2013, so first open a command-line tool with administrator privileges and go to the program installation directory:

" %programfiles (x86)%\microsoft Office\office15 "

To run the activation command:

CSCRIPT OSPP. Vbs/sethst:192.168. 0  //dstatus

The effect of the above three lines is: 1. Set the activation server address to 192.168.0.xxx, which is your intranet KMS server address; 2. Activate; 3. View the activation status.

It's finished.

Reference:

Http://wrlog.com/activate-kms-vlmcsd.html

http://stdioa.github.io/2015/09/02/%E6%90%AD%E5%BB%BA%E7%A7%81%E6%9C%89KMS%E6%9C%8D%E5%8A%A1%E5%99%A8/

http://learner7.blog.51cto.com/1340889/1597515

Http://forums.mydigitallife.info/threads/50234-Emulated-KMS-Servers-on-non-Windows-platforms

Set OPENWRT-DNSMASQ to enable LAN users to automatically discover KMS activation servers

The applicability of py-kms and VLMCSD is really wide, whether you can build a private KMS service under Windows,linux or even under Android. But the last thing you'll encounter is the need to run batch commands on the activated host, which can be tedious.

Once heard a Chinese University of High-volume purchase enterprise Windows license, your computer as long as connected to the campus network, do not need any configuration to activate the system, unavoidably charmed. The data found that this is achieved by configuring the DNS server's SRV entry to enable the host to automatically discover the KMS activation server within the LAN.

Just right my router is running OPENWRT system, can configure DNSMASQ to provide SRV function, so ssh into the router backstage, add configuration in/etc/dnsmasq.conf:

Srv-host=_vlmcs._tcp.lan,cubietruck.lan,1688,0,

Where _vlmcs._tcp is the service name; LAN is my intranet domain name, Cubietruck.lan is the address of my cubieboard; 1688 is the KMS activation service default port number, 0 is priority, and 100 is the weight.

Then restart the DNSMASQ service in the router

/ETC/INIT.D/DNSMASQ restart

Switch to Windows to verify that the DNS configuration is correct, open a command prompt, run the command:

Nslookup-type=srv _vlmcs._tcp.lan

Where _VLMCS._TCP represents the KMS service type, LAN is my LAN domain name.

See return information:

_vlmcs._tcp.lan SRV service location:       priority 0          weight                    Port           1688hostname             =  Cubietruck.lancubietruck.lan  192.168. 1.126

Indicates that the DNS configuration is correct.

Let's see if Office on my own computer can successfully discover a KMS server or run a command under Administrator privileges:

" %programfiles (x86)%\microsoft Office\office15 "  ///dstatus

The first line indicates that the KMS activation server address that was set before is cleared, the second line is activated manually, and the third line shows the activation status. Finally see the information

  2592005  Characters of installed product Key:xtgctactivation Type configuration:all        KMS machine name from DNS:cubietruck.lan:1688         minutes         10080 minutes        KMS host caching:enabled--------------------------------------------------------------------------------- Exiting-----------------------------

which

KMS machine name from DNS:cubietruck.lan:1688

Represents the ability to automatically discover KMS activation servers within a LAN based on DNS Cubietruck.lan.

Description Office can be fully configured for automatic activation.

Any future computer can automatically activate its vol version of Office and Windows as soon as it is connected to my local area network. cool~

Reference:

Http://blog.14401.cn/post-166.html

Http://www.cnblogs.com/zhuangxuqiang/archive/2009/04/28/1445113.html

https://support.microsoft.com/en-us/kb/816587

Cubieboard using py-kms and DNSMASQ to build a fully automatic KMS activation environment in LAN

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.