vlmcsd.8.html 29 KB

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