vlmcsd.8.html 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  1. <!-- Creator : groff version 1.22.3 -->
  2. <!-- CreationDate: Fri Jun 17 14:16:33 2016 -->
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  4. "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta name="generator" content="groff -Thtml, see www.gnu.org">
  8. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  9. <meta name="Content-Style" content="text/css">
  10. <style type="text/css">
  11. p { margin-top: 0; margin-bottom: 0; vertical-align: top }
  12. pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
  13. table { margin-top: 0; margin-bottom: 0; vertical-align: top }
  14. h1 { text-align: center }
  15. </style>
  16. <title>VLMCSD</title>
  17. </head>
  18. <body>
  19. <h1 align="center">VLMCSD</h1>
  20. <a href="#NAME">NAME</a><br>
  21. <a href="#SYNOPSIS">SYNOPSIS</a><br>
  22. <a href="#DESCRIPTION">DESCRIPTION</a><br>
  23. <a href="#OPTIONS">OPTIONS</a><br>
  24. <a href="#SIGNALS">SIGNALS</a><br>
  25. <a href="#SUPPORTED OPERATING SYSTEMS">SUPPORTED OPERATING SYSTEMS</a><br>
  26. <a href="#SUPPORTED PRODUCTS">SUPPORTED PRODUCTS</a><br>
  27. <a href="#FILES">FILES</a><br>
  28. <a href="#EXAMPLES">EXAMPLES</a><br>
  29. <a href="#BUGS">BUGS</a><br>
  30. <a href="#AUTHOR">AUTHOR</a><br>
  31. <a href="#CREDITS">CREDITS</a><br>
  32. <a href="#SEE ALSO">SEE ALSO</a><br>
  33. <hr>
  34. <h2>NAME
  35. <a name="NAME"></a>
  36. </h2>
  37. <p style="margin-left:11%; margin-top: 1em">vlmcsd &minus;
  38. a fully Microsoft compatible KMS server</p>
  39. <h2>SYNOPSIS
  40. <a name="SYNOPSIS"></a>
  41. </h2>
  42. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b> [
  43. <i>options</i> ]</p>
  44. <h2>DESCRIPTION
  45. <a name="DESCRIPTION"></a>
  46. </h2>
  47. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
  48. is a fully Microsoft compatible KMS server that provides
  49. product activation services to clients. It is meant as a
  50. drop-in replacement for a Microsoft KMS server (Windows
  51. computer with KMS key entered). It currently supports KMS
  52. protocol versions 4, 5 and 6.</p>
  53. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
  54. is designed to run on POSIX compatible operating systens. It
  55. only requires a basic C library with a BSD-style sockets API
  56. and either <b>fork</b>(2) or <b>pthreads</b>(7). That allows
  57. it to run on most embedded systems like routers, NASes,
  58. mobile phones, tablets, TVs, settop boxes, etc. Some efforts
  59. have been made that it also runs on Windows.</p>
  60. <p style="margin-left:11%; margin-top: 1em">Although
  61. <b>vlmcsd</b> does neither require an activation key nor a
  62. payment to anyone, it is not meant to run illegal copies of
  63. Windows. Its purpose is to ensure that owners of legal
  64. copies can use their software without restrictions, e.g. if
  65. you buy a new computer or motherboard and your key will be
  66. refused activation from Microsoft servers due to hardware
  67. changes.</p>
  68. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
  69. may be started via an internet superserver like
  70. <b>inetd</b>(8) or <b>xinetd</b>(8) as well as an advanced
  71. init system like <b>systemd</b>(8) or <b>launchd</b>(8)
  72. using socket based activation. If <b>vlmcsd</b> detects that
  73. <b>stdin</b>(3) is a socket, it assumes that there is
  74. already a connected client on stdin that wants to be
  75. activated. All options that control setting up listening
  76. sockets will be ignored when in inetd mode.</p>
  77. <h2>OPTIONS
  78. <a name="OPTIONS"></a>
  79. </h2>
  80. <p style="margin-left:11%; margin-top: 1em">Since vlmcsd
  81. can be configured at compile time, some options may not be
  82. available on your system.</p>
  83. <p style="margin-left:11%; margin-top: 1em">All options
  84. that do no require an argument may be combined with a single
  85. dash, for instance &quot;vlmcsd -D -e&quot; is identical to
  86. &quot;vlmcsd -De&quot;. For all options that require an
  87. argument a space between the option and the option argument
  88. is optional. Thus &quot;vlmcsd -r 2&quot; and &quot;vlmcsd
  89. -r2&quot; are identical too. <b><br>
  90. -h</b> or <b>-?</b></p>
  91. <p style="margin-left:22%;">Displays help.</p>
  92. <table width="100%" border="0" rules="none" frame="void"
  93. cellspacing="0" cellpadding="0">
  94. <tr valign="top" align="left">
  95. <td width="11%"></td>
  96. <td width="3%">
  97. <p><b>-V</b></p></td>
  98. <td width="8%"></td>
  99. <td width="78%">
  100. <p>Displays extended version information. This includes the
  101. compiler used to build vlmcsd, the intended platform and
  102. flags (compile time options) to build vlmcsd. If you have
  103. the source code of vlmcsd, you can type <b>make help</b> (or
  104. <b>gmake help</b> on systems that do not use the GNU version
  105. of <b>make</b>(1) by default) to see the meaning of those
  106. flags.</p> </td></tr>
  107. </table>
  108. <p style="margin-left:11%;"><b>-L</b>
  109. <i>ipaddress</i>[:<i>port</i>]</p>
  110. <p style="margin-left:22%;">Instructs vlmcsd to listen on
  111. <i>ipaddress</i> with optional <i>port</i> (default 1688).
  112. You can use this option more than once. If you do not
  113. specify <b>-L</b> at least once, IP addresses 0.0.0.0 (IPv4)
  114. and :: (IPv6) are used. If the IP address contains colons
  115. (IPv6) you must enclose the IP address in brackets if you
  116. specify the optional port, e.g.
  117. [2001:db8::dead:beef]:1688.</p>
  118. <p style="margin-left:22%; margin-top: 1em">If no port is
  119. specified, vlmcsd uses the default port according to a
  120. preceding <b>-P</b> option. If you specify a port, it can be
  121. a number (1-65535) or a name (usually found in /etc/services
  122. if not provided via LDAP, NIS+ or another name service).</p>
  123. <p style="margin-left:22%; margin-top: 1em">If you specify
  124. a link local IPv6 address (fe80::/10, usually starting with
  125. fe80::), it must be followed by a percent sign (%) and a
  126. scope id (=network interface name or number) on most unixoid
  127. OSses including Linux, Android, MacOS X and iOS, e.g.
  128. fe80::1234:56ff:fe78:9abc<b>%eth0</b> or
  129. [fe80::1234:56ff:fe78:9abc<b>%2</b>]:1688. Windows
  130. (including cygwin) does not require a scope id unless the
  131. same link local address is used on more than one network
  132. interface. Windows does not accept a name and the scope id
  133. must be a number.</p>
  134. <p style="margin-left:11%;"><b>-P</b> <i>port</i></p>
  135. <p style="margin-left:22%;">Use TCP <i>port</i> for all
  136. subsequent <b>-L</b> statements that do not include an
  137. optional port. If you use <b>-P</b> and <b>-L</b>, <b>-P</b>
  138. must be specified before <b>-L</b>.</p>
  139. <p style="margin-left:11%;"><b>-F0</b> and <b>-F1</b></p>
  140. <p style="margin-left:22%;">Allow (<b>-F1</b>) or disallow
  141. (<b>-F0</b>) binding to IP addresses that are currently not
  142. configured on your system. The default is <b>-F0</b>.
  143. <b>-F1</b> allows you to bind to an IP address that may be
  144. configured after you started <b>vlmcsd</b>. <b>vlmcsd</b>
  145. will listen on that address as soon as it becomes available.
  146. This feature is only available under Linux (IPv4 and IPv6)
  147. and FreeBSD (IPv4 only). FreeBSD allows this feature only
  148. for the root user (more correctly: processes that have the
  149. PRIV_NETINET_BINDANY privilege). Linux does not require a
  150. capability for this.</p>
  151. <p style="margin-left:11%;"><b>-t</b> <i>seconds</i></p>
  152. <p style="margin-left:22%;">Timeout the TCP connection with
  153. the client after <i>seconds</i> seconds. After sending an
  154. activation request. RPC keeps the TCP connection for a
  155. while. The default is 30 seconds. You may specify a shorter
  156. period to free ressources on your device faster. This is
  157. useful for devices with limited main memory or if you used
  158. <b>-m</b> to limit the concurrent clients that may request
  159. activation. Microsoft RPC clients disconnect after 30
  160. seconds by default. Setting <i>seconds</i> to a greater
  161. value does not make much sense.</p>
  162. <p style="margin-left:11%;"><b>-m</b>
  163. <i>concurrent-clients</i></p>
  164. <p style="margin-left:22%;">Limit the number of clients
  165. that will be handled concurrently. This is useful for
  166. devices with limited ressources or if you are experiencing
  167. DoS attacks that spawn thousands of threads or forked
  168. processes. If additional clients connect to vlmcsd, they
  169. need to wait until another client disconnects. If you set
  170. <i>concurrent-clients</i> to a small value ( &lt;10 ), you
  171. should also select a reasonable timeout of 2 or 3 seconds
  172. with <b>-t</b>. The default is no limit.</p>
  173. <table width="100%" border="0" rules="none" frame="void"
  174. cellspacing="0" cellpadding="0">
  175. <tr valign="top" align="left">
  176. <td width="11%"></td>
  177. <td width="3%">
  178. <p><b>-d</b></p></td>
  179. <td width="8%"></td>
  180. <td width="78%">
  181. <p>Disconnect each client after processing one activation
  182. request. This is a direct violation of DCE RPC but may help
  183. if you receive malicous fake RPC requests that block your
  184. threads or forked processes. Some other KMS emulators (e.g.
  185. py-kms) behave this way.</p></td></tr>
  186. <tr valign="top" align="left">
  187. <td width="11%"></td>
  188. <td width="3%">
  189. <p><b>-k</b></p></td>
  190. <td width="8%"></td>
  191. <td width="78%">
  192. <p>Do not disconnect clients after processing an activation
  193. request. This selects the default behavior. <b>-k</b> is
  194. useful only if you used an ini file (see
  195. <b>vlmcsd.ini</b>(5) and <b>-i</b>). If the ini file
  196. contains the line &quot;DisconnectClientsImmediately =
  197. true&quot;, you can use this switch to restore the default
  198. behavior.</p> </td></tr>
  199. </table>
  200. <p style="margin-left:11%;"><b>-N0</b> and <b>-N1</b></p>
  201. <p style="margin-left:22%;">Disables (<b>-N0</b>) or
  202. enables (<b>-N1</b>) the use of the NDR64 transfer syntax in
  203. the RPC protocol. Unlike Microsoft vlmcsd supports NDR64 on
  204. 32-bit operating systems. Microsoft introduced NDR64 in
  205. Windows Vista but their KMS servers started using it with
  206. Windows 8. Thus if you choose random ePIDs, vlmcsd will
  207. select ePIDs with build numbers 9200 and 9600 if you enable
  208. NDR64 and build numbers 6002 and 7601 if you disable NDR64.
  209. The default is to enable NDR64.</p>
  210. <p style="margin-left:11%;"><b>-B0</b> and <b>-B1</b></p>
  211. <p style="margin-left:22%;">Disables (<b>-B0</b>) or
  212. enables (<b>-B1</b>) bind time feature negotiation (BTFN) in
  213. the RPC protocol. All Windows operating systems starting
  214. with Vista support BTFN and try to negotiate it when
  215. initiating an RPC connection. Thus consider turning it off
  216. as a debug / troubleshooting feature only. Some older
  217. firewalls that selectively block or redirect RPC traffic may
  218. get confused when they detect NDR64 or BTFN.</p>
  219. <p style="margin-left:11%;"><b>-l</b> <i>filename</i></p>
  220. <p style="margin-left:22%;">Use <i>filename</i> as a log
  221. file. The log file records all activations with IP address,
  222. Windows workstation name (no reverse DNS lookup), activated
  223. product, KMS protocol, time and date. If you do not specify
  224. a log file, no log is created. For a live view of the log
  225. file type tail -f <i>file</i>.</p>
  226. <p style="margin-left:22%; margin-top: 1em">If you use the
  227. special <i>filename</i> &quot;syslog&quot;, vlmcsd uses
  228. <b>syslog</b>(3) for logging. If your system has no syslog
  229. service (/dev/log) installed, logging output will go to
  230. /dev/console. Syslog logging is not available in the native
  231. Windows version. The Cygwin version does support syslog
  232. logging.</p>
  233. <table width="100%" border="0" rules="none" frame="void"
  234. cellspacing="0" cellpadding="0">
  235. <tr valign="top" align="left">
  236. <td width="11%"></td>
  237. <td width="3%">
  238. <p><b>-D</b></p></td>
  239. <td width="8%"></td>
  240. <td width="78%">
  241. <p>Normally vlmcsd daemonizes and runs in background
  242. (except the native Windows version). If <b>-D</b> is
  243. specified, vlmcsd does not daemonize and runs in foreground.
  244. This is useful for testing and allows you to simply press
  245. &lt;Ctrl-C&gt; to exit vlmcsd.</p></td></tr>
  246. </table>
  247. <p style="margin-left:22%; margin-top: 1em">The native
  248. Windows version never daemonizes and always behaves as if
  249. <b>-D</b> had been specified. You may want to install vlmcsd
  250. as a service instead. See <b>-s</b>.</p>
  251. <table width="100%" border="0" rules="none" frame="void"
  252. cellspacing="0" cellpadding="0">
  253. <tr valign="top" align="left">
  254. <td width="11%"></td>
  255. <td width="3%">
  256. <p style="margin-top: 1em"><b>-e</b></p></td>
  257. <td width="8%"></td>
  258. <td width="78%">
  259. <p style="margin-top: 1em">If specified, vlmcsd ignores
  260. <b>-l</b> and writes all logging output to <b>stdout</b>(3).
  261. This is mainly useful for testing and debugging and often
  262. combined with <b>-D</b>.</p></td></tr>
  263. <tr valign="top" align="left">
  264. <td width="11%"></td>
  265. <td width="3%">
  266. <p><b>-v</b></p></td>
  267. <td width="8%"></td>
  268. <td width="78%">
  269. <p>Use verbose logging. Logs every parameter of the base
  270. request and the base response. It also logs the HWID of the
  271. KMS server if KMS protocol version 6 is used. This option is
  272. mainly for debugging purposes. It only has an effect if some
  273. form of logging is used. Thus <b>-v</b> does not make sense
  274. if not used with <b>-l</b>, <b>-e</b> or <b>-f</b>.</p></td></tr>
  275. <tr valign="top" align="left">
  276. <td width="11%"></td>
  277. <td width="3%">
  278. <p><b>-q</b></p></td>
  279. <td width="8%"></td>
  280. <td width="78%">
  281. <p>Do not use verbose logging. This is actually the default
  282. behavior. It only makes sense if you use vlmcsd with an ini
  283. file (see <b>-i</b> and <b>vlmcsd.ini</b>(5)). If the ini
  284. file contains the line &quot;LogVerbose = true&quot; you can
  285. use <b>-q</b> to restore the default behavior.</p></td></tr>
  286. </table>
  287. <p style="margin-left:11%;"><b>-p</b> <i>filename</i></p>
  288. <p style="margin-left:22%;">Create pid file
  289. <i>filename</i>. This has nothing to do with KMS ePIDs. A
  290. pid file is a file where vlmcsd writes its own process id.
  291. This is used by standard init scripts (typically found in
  292. /etc/init.d). The default is not to write a pid file.</p>
  293. <p style="margin-left:11%;"><b>-u</b> <i>user</i> and
  294. <b>-g</b> <i>group</i></p>
  295. <p style="margin-left:22%;">Causes vlmcsd to run in the
  296. specified <i>user</i> and <i>group</i> security context. The
  297. main purpose for this is to drop root privileges after it
  298. has been started from the root account. To use this feature
  299. from cygwin you must run cyglsa-config and the account from
  300. which vlmcsd is started must have the rights &quot;Act as
  301. part of the operating system&quot; and &quot;Replace a
  302. process level token&quot;. The native Windows version does
  303. not support these options.</p>
  304. <p style="margin-left:22%; margin-top: 1em">The actual
  305. security context switch is performed after the TCP sockets
  306. have been created. This allows you to use privileged ports
  307. (&lt; 1024) when you start vlmcsd from the root account.</p>
  308. <p style="margin-left:22%; margin-top: 1em">However if you
  309. use an ini, pid or log file, you must ensure that the
  310. unprivileged user has access to these files. You can always
  311. log to <b>syslog</b>(3) from an unprivileged account on most
  312. platforms (see <b>-l</b>).</p>
  313. <p style="margin-left:11%;"><b>-w</b> <i>ePID</i></p>
  314. <p style="margin-left:22%;">Use <i>ePID</i> as Windows
  315. ePID. If specified, <b>-r</b> is disregarded for
  316. Windows.</p>
  317. <p style="margin-left:11%;"><b>-0</b> <i>ePID</i></p>
  318. <p style="margin-left:22%;">Use <i>ePID</i> as Office 2010
  319. ePID (including Project and Visio). If specified, <b>-r</b>
  320. is disregarded for Office 2010.</p>
  321. <p style="margin-left:11%;"><b>-3</b> <i>ePID</i></p>
  322. <p style="margin-left:22%;">Use <i>ePID</i> as Office
  323. 2013/2016 ePID (including Project and Visio). If specified,
  324. <b>-r</b> is disregarded for Office 2013/2016.</p>
  325. <p style="margin-left:11%;"><b>-H</b> <i>HwId</i></p>
  326. <p style="margin-left:22%;">Use <i>HwId</i> for all
  327. products. All HWIDs in the ini file (see <b>-i</b>) will not
  328. be used. In an ini file you can specify a seperate HWID for
  329. each <i>application-guid</i>. This is not possible when
  330. entering a HWID from the command line.</p>
  331. <p style="margin-left:22%; margin-top: 1em"><i>HwId</i>
  332. must be specified as 16 hex digits that are interpreted as a
  333. series of 8 bytes (big endian). Any character that is not a
  334. hex digit will be ignored. This is for better readability.
  335. The following commands are identical:</p>
  336. <p style="margin-left:22%; margin-top: 1em">vlmcsd -H
  337. 0123456789ABCDEF <br>
  338. vlmcsd -H 01:23:45:67:89:ab:cd:ef <br>
  339. vlmcsd -H &quot;01 23 45 67 89 AB CD EF&quot;</p>
  340. <p style="margin-left:11%;"><b>-i</b> <i>filename</i></p>
  341. <p style="margin-left:22%;">Use configuration file (aka ini
  342. file) <i>filename</i>. Most configuration parameters can be
  343. set either via the command line or an ini file. The command
  344. line always has precedence over configuration items in the
  345. ini file. See <b>vlmcsd.ini</b>(5) for the format of the
  346. configuration file.</p>
  347. <p style="margin-left:22%; margin-top: 1em">If vlmcsd has
  348. been compiled to use a default configuration file (often
  349. /etc/vlmcsd.ini), you may use <b>-i-</b> to ignore the
  350. default configuration file.</p>
  351. <p style="margin-left:11%;"><b>-r0</b>, <b>-r1</b>
  352. (default) and <b>-r2</b></p>
  353. <p style="margin-left:22%;">These options determine how
  354. ePIDs are generated if</p>
  355. <p style="margin-left:22%; margin-top: 1em">- you did not
  356. sprecify an ePID in the command line and <br>
  357. - you haven&rsquo;t used <b>-i</b> or <br>
  358. - the file specified by <b>-i</b> cannot be opened or <br>
  359. - the file specified by <b>-i</b> does not contain the
  360. <i>application-guid</i> for the KMS request</p>
  361. <p style="margin-left:22%; margin-top: 1em"><b>-r0</b>
  362. means there are no random ePIDs. vlmcsd simply issues
  363. default ePIDs that are built into the binary at compile
  364. time. <b>Pro:</b> behaves like real KMS server that also
  365. always issues the same ePID. <b>Con</b>: Microsoft may start
  366. blacklisting again and the default ePID may not work any
  367. longer.</p>
  368. <p style="margin-left:22%; margin-top: 1em"><b>-r1</b>
  369. instructs vlmcsd to generate random ePIDs when the program
  370. starts or receives a SIGHUP signal and uses these ePIDs
  371. until it is stopped or receives another SIGHUP. Most other
  372. KMS emulators generate a new ePID on every KMS request. This
  373. is easily detectable. Microsoft could just modify sppsvc.exe
  374. in a way that it always sends two identical KMS requests in
  375. two RPC requests but over the same TCP connection. If both
  376. KMS responses contain the different ePIDs, the KMS server is
  377. not genuine. <b>-r1</b> is the default mode. <b>-r1</b> also
  378. ensures that all three ePIDs (Windows, Office 2010 and
  379. Office 2013) use the same OS build number and LCID (language
  380. id).</p>
  381. <p style="margin-left:22%; margin-top: 1em">If vlmcsd has
  382. been started by an internet superserver, <b>-r1</b> works
  383. identically to <b>-r2</b>. This is simply due to the fact
  384. that vlmcsd is started upon a connection request and does
  385. not stay in memory after servicing a KMS request.</p>
  386. <p style="margin-left:22%; margin-top: 1em"><b>-r2</b>
  387. behaves like most other KMS server emulators with random
  388. support and generates a new random ePID on every request.
  389. Use this mode with &quot;care&quot;. However since Microsoft
  390. currently does not seem to do any verification of the ePID,
  391. you currently don&rsquo;t need to pay attention to ePIDs at
  392. all.</p>
  393. <p style="margin-left:11%;"><b>-C</b> <i>LCID</i></p>
  394. <p style="margin-left:22%;">Do not randomize the locale id
  395. part of the ePID and use <i>LCID</i> instead. The
  396. <i>LCID</i> must be specified as a decimal number, e.g. 1049
  397. for &quot;Russian - Russia&quot;. This option has no effect
  398. if the ePID is not randomized at all, e.g. if it is selected
  399. from the command line or an ini file.</p>
  400. <p style="margin-left:22%; margin-top: 1em">By default
  401. vlmcsd generates a valid locale id that is recognized by
  402. .NET Framework 4.0. This may lead to a locale id which is
  403. unlikely to occur in your country, for instance 2155 for
  404. &quot;Quecha - Ecuador&quot;. You may want to select the
  405. locale id of your country instead. See
  406. <a href="http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx">MSDN</a>
  407. for a list of valid <i>LCID</i>s. Please note that some of
  408. them are not recognized by .NET Framework 4.0.</p>
  409. <p style="margin-left:22%; margin-top: 1em">Most other KMS
  410. emulators use a fixed <i>LCID</i> of 1033 (English - US). To
  411. achive the same behavior in vlmcsd use <b>-C 1033</b>.</p>
  412. <p style="margin-left:11%;"><b>-R</b>
  413. <i>renewal-interval</i></p>
  414. <p style="margin-left:22%;">Instructs clients to renew
  415. activation every <i>renewal-interval</i>. The
  416. <i>renewal-interval</i> is a number optionally immediately
  417. followed by a letter indicating the unit. Valid unit letters
  418. are s (seconds), m (minutes), h (hours), d (days) and w
  419. (weeks). If you do not specify a letter, minutes is
  420. assumed.</p>
  421. <p style="margin-left:22%; margin-top: 1em"><b>-R3d</b> for
  422. instance instructs clients to renew activation every 3 days.
  423. The default <i>renewal-interval</i> is 10080 (identical to
  424. 7d and 1w).</p>
  425. <p style="margin-left:22%; margin-top: 1em">Due to poor
  426. implementation of Microsofts KMS Client it cannot be
  427. guaranteed that activation is renewed on time as specfied by
  428. the -R option. Don&rsquo;t care about that. Renewal will
  429. happen well before your activation expires (usually 180
  430. days).</p>
  431. <p style="margin-left:22%; margin-top: 1em">Even though you
  432. can specify seconds, the granularity of this option is 1
  433. minute. Seconds are rounded down to the next multiple of
  434. 60.</p>
  435. <p style="margin-left:11%;"><b>-A</b>
  436. <i>activation-interval</i></p>
  437. <p style="margin-left:22%;">Instructs clients to retry
  438. activation every <i>activation-interval</i> if it was
  439. unsuccessful, e.g. because it could not reach the server.
  440. The default is 120 (identical to 2h).
  441. <i>activation-interval</i> follows the same syntax as
  442. <i>renewal-interval</i> in the <b>-R</b> option.</p>
  443. <table width="100%" border="0" rules="none" frame="void"
  444. cellspacing="0" cellpadding="0">
  445. <tr valign="top" align="left">
  446. <td width="11%"></td>
  447. <td width="3%">
  448. <p><b>-s</b></p></td>
  449. <td width="8%"></td>
  450. <td width="78%">
  451. <p>Installs vlmcsd as a Windows service. This option only
  452. works with the native Windows version and Cygwin. Combine
  453. <b>-s</b> with other command line options. These will be in
  454. effect when you start the service. The service automatically
  455. starts when you reboot your machine. To start it manually,
  456. type &quot;net start vlmcsd&quot;.</p></td></tr>
  457. </table>
  458. <p style="margin-left:22%; margin-top: 1em">If you use
  459. Cygwin, you must include your Cygwin system DLL directory
  460. (usually C:\Cygwin\bin or C:\Cygwin64\bin) into the PATH
  461. environment variable or the service will not start.</p>
  462. <p style="margin-left:22%; margin-top: 1em">You can
  463. reinstall the service anytime using vlmcsd -s again, e.g.
  464. with a different command line. If the service is running, it
  465. will be restarted with the new command line.</p>
  466. <p style="margin-left:22%; margin-top: 1em">When using
  467. <b>-s</b> the command line is checked for basic syntax
  468. errors only. For example &quot;vlmcsd -s -L 1.2.3.4&quot;
  469. reports no error but the service will not start if 1.2.3.4
  470. is not an IP address on your system.</p>
  471. <table width="100%" border="0" rules="none" frame="void"
  472. cellspacing="0" cellpadding="0">
  473. <tr valign="top" align="left">
  474. <td width="11%"></td>
  475. <td width="3%">
  476. <p style="margin-top: 1em"><b>-S</b></p></td>
  477. <td width="8%"></td>
  478. <td width="78%">
  479. <p style="margin-top: 1em">Uninstalls the vlmcsd service.
  480. Works only with the native Windows version and Cygwin. All
  481. other options will be ignored if you include -S in the
  482. command line.</p></td></tr>
  483. </table>
  484. <p style="margin-left:11%;"><b>-U</b>
  485. [<i>domain</i>\]<i>username</i></p>
  486. <p style="margin-left:22%;">Can only be used together with
  487. <b>-s</b>. Starts the service as a different user than the
  488. local SYSTEM account. This is used to run the service under
  489. an account with low privileges. If you omit the domain, an
  490. account from the local computer will be used.</p>
  491. <p style="margin-left:22%; margin-top: 1em">You may use
  492. &quot;NT AUTHORITY\NetworkService&quot;. This is a pseudo
  493. user with low privileges. You may also use &quot;NT
  494. AUTHORITY\LocalService&quot; which has more privileges but
  495. these are of no use for running vlmcsd.</p>
  496. <p style="margin-left:22%; margin-top: 1em">Make sure that
  497. the user you specify has at least execute permission for
  498. your executable. &quot;NT AUTHORITY\NetworkService&quot;
  499. normally has no permission to run binaries from your home
  500. directory.</p>
  501. <p style="margin-left:22%; margin-top: 1em">For your
  502. convenience you can use the special username &quot;/l&quot;
  503. as a shortcut for &quot;NT AUTHORITY\LocalService&quot; and
  504. &quot;/n&quot; for &quot;NT AUTHORITY\NetworkService&quot;.
  505. &quot;vlmcsd&nbsp;&minus;s&nbsp;&minus;U&nbsp;/n&quot;
  506. installs the service to run as &quot;NT
  507. AUTHORITY\NetworkService&quot;.</p>
  508. <p style="margin-left:11%;"><b>-W</b> <i>password</i></p>
  509. <p style="margin-left:22%;">Can only be used together with
  510. <b>-s</b>. Specifies a <i>password</i> for the corresponding
  511. username you use with -U. SYSTEM, &quot;NT
  512. AUTHORITY\NetworkService&quot;, &quot;NT
  513. AUTHORITY\LocalService&quot; do not require a password.</p>
  514. <p style="margin-left:22%; margin-top: 1em">If you specify
  515. a user with even lower privileges than &quot;NT
  516. AUTHORITY\NetworkService&quot;, you must specify its
  517. password. You also have to grant the &quot;Log on as a
  518. service&quot; right to that user.</p>
  519. <h2>SIGNALS
  520. <a name="SIGNALS"></a>
  521. </h2>
  522. <p style="margin-left:11%; margin-top: 1em">The following
  523. signals differ from the default behavior: <b><br>
  524. SIGTERM</b>, <b>SIGINT</b></p>
  525. <p style="margin-left:22%;">These signals cause vlmcsd to
  526. exit gracefully. All global semaphores and shared memory
  527. pages will be released, the pid file will be unlinked
  528. (deleted) and a shutdown message will be logged.</p>
  529. <table width="100%" border="0" rules="none" frame="void"
  530. cellspacing="0" cellpadding="0">
  531. <tr valign="top" align="left">
  532. <td width="11%"></td>
  533. <td width="9%">
  534. <p><b>SIGHUP</b></p></td>
  535. <td width="2%"></td>
  536. <td width="78%">
  537. <p>Causes vlmcsd to be restarted completely. This is useful
  538. if you started vlmcsd with an ini file. You can modify the
  539. ini file while vlmcsd is running and then sending
  540. <b>SIGHUP</b>, e.g. by typing &quot;killall -SIGHUP
  541. vlmcsd&quot; or &quot;kill -SIGHUP &rsquo;cat
  542. /var/run/vlmcsd.pid&rsquo;&quot;.</p> </td></tr>
  543. </table>
  544. <p style="margin-left:22%; margin-top: 1em">The SIGHUP
  545. handler has been implemented relatively simple. It is
  546. virtually the same as stopping vlmcsd and starting it again
  547. immediately with the following exceptions:</p>
  548. <table width="100%" border="0" rules="none" frame="void"
  549. cellspacing="0" cellpadding="0">
  550. <tr valign="top" align="left">
  551. <td width="22%"></td>
  552. <td width="1%">
  553. <p style="margin-top: 1em">&mdash;</p></td>
  554. <td width="3%"></td>
  555. <td width="74%">
  556. <p style="margin-top: 1em">The new process does not get a
  557. new process id.</p></td></tr>
  558. <tr valign="top" align="left">
  559. <td width="22%"></td>
  560. <td width="1%">
  561. <p>&mdash;</p></td>
  562. <td width="3%"></td>
  563. <td width="74%">
  564. <p>If you used a pid file, it is not deleted and recreated
  565. because the process id stays the same.</p></td></tr>
  566. <tr valign="top" align="left">
  567. <td width="22%"></td>
  568. <td width="1%">
  569. <p>&mdash;</p></td>
  570. <td width="3%"></td>
  571. <td width="74%">
  572. <p>If you used the &rsquo;user&rsquo; and/or
  573. &rsquo;group&rsquo; directive in an ini file these are
  574. ignored. This is because once you switched to lower
  575. privileged users and groups, there is no way back. Anything
  576. else would be a severe security flaw in the OS.</p></td></tr>
  577. </table>
  578. <p style="margin-left:11%; margin-top: 1em">Signaling is
  579. not available in the native Windows version and in the
  580. Cygwin version when it runs as Windows service.</p>
  581. <h2>SUPPORTED OPERATING SYSTEMS
  582. <a name="SUPPORTED OPERATING SYSTEMS"></a>
  583. </h2>
  584. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
  585. compiles and runs on Linux, Windows (no Cygwin required but
  586. explicitly supported), Mac OS X, FreeBSD, NetBSD, OpenBSD,
  587. Dragonfly BSD, Minix, Solaris, OpenIndiana, Android and iOS.
  588. Other POSIX or unixoid OSses may work with unmodified
  589. sources or may require minor porting efforts.</p>
  590. <h2>SUPPORTED PRODUCTS
  591. <a name="SUPPORTED PRODUCTS"></a>
  592. </h2>
  593. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
  594. can answer activation requests for the following products:
  595. Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows
  596. 10, Windows Server 2008, Windows Server 2008 R2, Windows
  597. Server 2012, Windows Server 2012 R2, Office 2010, Project
  598. 2010, Visio 2010, Office 2013, Project 2013, Visio 2013,
  599. Office 2016, Project 2016, Visio 2016.</p>
  600. <p style="margin-left:11%; margin-top: 1em">Office, Project
  601. and Visio must be volume license versions.</p>
  602. <h2>FILES
  603. <a name="FILES"></a>
  604. </h2>
  605. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd.ini</b>(5)</p>
  606. <h2>EXAMPLES
  607. <a name="EXAMPLES"></a>
  608. </h2>
  609. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd
  610. -f</b></p>
  611. <p style="margin-left:22%;">Starts <b>vlmcsd</b> in
  612. foreground. Useful if you use it for the first time and want
  613. to see what&rsquo;s happening when a client requests
  614. activation.</p>
  615. <p style="margin-left:11%;"><b>vlmcsd -l
  616. /var/log/vlmcsd.log</b></p>
  617. <p style="margin-left:22%;">Starts <b>vlmcsd</b> as a
  618. daemon and logs everything to /var/log/vlmcsd.log.</p>
  619. <p style="margin-left:11%;"><b>vlmcsd -L
  620. 192.168.1.17</b></p>
  621. <p style="margin-left:22%;">Starts <b>vlmcsd</b> as a
  622. daemon and listens on IP address 192.168.1.17 only. This is
  623. useful for routers that have a public and a private IP
  624. address to prevent your KMS server from becoming public.</p>
  625. <p style="margin-left:11%;"><b>vlmcsd -s -U /n -l
  626. C:\logs\vlmcsd.log</b></p>
  627. <p style="margin-left:22%;">Installs <b>vlmcsd</b> as a
  628. Windows service with low privileges and logs everything to
  629. C:\logs\vlmcsd.log when the service is started with
  630. &quot;net start vlmcsd&quot;.</p>
  631. <h2>BUGS
  632. <a name="BUGS"></a>
  633. </h2>
  634. <p style="margin-left:11%; margin-top: 1em">An ePID
  635. specified in an ini file must not contain spaces.</p>
  636. <p style="margin-left:11%; margin-top: 1em">The maximum
  637. number of <b>-L</b> options in the command line or listen
  638. statements in the inifile is the platform default for
  639. <i>FD_SETSIZE</i>. This is 64 on Windows and 1024 on most
  640. Unixes.</p>
  641. <h2>AUTHOR
  642. <a name="AUTHOR"></a>
  643. </h2>
  644. <p style="margin-left:11%; margin-top: 1em">Written by
  645. crony12, Hotbird64 and vityan666. With contributions from
  646. DougQaid.</p>
  647. <h2>CREDITS
  648. <a name="CREDITS"></a>
  649. </h2>
  650. <p style="margin-left:11%; margin-top: 1em">Thanks to
  651. CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad,
  652. Ratiborus, ...</p>
  653. <h2>SEE ALSO
  654. <a name="SEE ALSO"></a>
  655. </h2>
  656. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd.ini</b>(5),
  657. <b>vlmcsd</b>(7), <b>vlmcs</b>(1), <b>vlmcsdmulti</b>(1)</p>
  658. <hr>
  659. </body>
  660. </html>