Skip to content

Commit

Permalink
add vlmcsd
Browse files Browse the repository at this point in the history
--ci
  • Loading branch information
linianhui committed Nov 10, 2024
1 parent e13c006 commit c4338c6
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 23 deletions.
34 changes: 34 additions & 0 deletions src/tool/vlmcsd/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: '[Windows] vlmcsd'
created_at: 2024-11-10 12:00:08
tag: ["Windows", "kms","vlmcsd"]
toc: true
---

# Windows

<https://github.com/Wind4/vlmcsd>

```sh
# 服务端 -s 注册为windows服务 -l 日志
vlmcsd-Windows-x64.exe -s -l c:\_vlmcsd\server.log

# 客户端-查看支持的版本
vlmcs-Windows-x64.exe -x

# 开放端口
netsh advfirewall firewall add rule name=vlmcsd1688 dir=in action=allow protocol=TCP localport=1688
```

# Docker
```sh
docker run -d -p 1688:1688 --restart=always --name vlmcsd ghcr.io/linianhui/vlmcsd:1113-2020-03-28
```

# Openwrt

```sh
vlmcsd-mips32el-openwrt-uclibc-static
```

{{<highlight-file path="vlmcsd.init" lang="sh">}}
27 changes: 27 additions & 0 deletions src/tool/vlmcsd/vlmcsd.init
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh /etc/rc.common


# openwrt
# /etc/init.d/vlmcsd
# chmod +x /etc/init.d/vlmcsd
# /etc/init.d/vlmcsd enable
# /etc/init.d/vlmcsd start
# /etc/init.d/vlmcsd stop
# /etc/init.d/vlmcsd reload

START=98

SERVICE_WRITE_PID=1
SERVICE_DAEMONIZE=1

start() {
service_start /usr/bin/vlmcsd
}

stop() {
service_stop /usr/bin/vlmcsd
}

reload() {
service_reload /usr/bin/vlmcsd
}
26 changes: 3 additions & 23 deletions src/windows/kms/index.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,10 @@
---
title: '[Windows] kms'
created_at: 2023-08-13 17:20:08
tag: ["Windows", "kms","vlmcsd"]
tag: ["Windows", "kms"]
toc: true
---

# vlmcsd

<https://github.com/Wind4/vlmcsd>

```sh
# 服务端 -s 注册为windows服务 -l 日志
vlmcsd-Windows-x64.exe -s -l c:\_vlmcsd\server.log

# 客户端-查看支持的版本
vlmcs-Windows-x64.exe -x

# 开放端口
netsh advfirewall firewall add rule name=vlmcsd1688 dir=in action=allow protocol=TCP localport=1688
```

# Docker {#docker}
```sh
docker run -d -p 1688:1688 --restart=always --name vlmcsd ghcr.io/linianhui/vlmcsd:1113-2020-03-28
```

# Windows {#windows}

```sh
Expand All @@ -33,7 +13,7 @@ slmgr.vbs -upk
# 导入密钥
slmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
# 设置kms服务器
slmgr.vbs -skms vlmcsd.test
slmgr.vbs -skms vlmcsd.lan
# 激活
slmgr.vbs -ato
# 查看激活信息
Expand All @@ -45,7 +25,7 @@ slmgr.vbs -dlv
```sh
cd C:\Program Files\Microsoft Office\Office15
cscript ospp.vbs /inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT
cscript ospp.vbs /sethst:vlmcsd.test
cscript ospp.vbs /sethst:vlmcsd.lan
cscript ospp.vbs /act
cscript ospp.vbs /dstatusall
```
Expand Down

0 comments on commit c4338c6

Please sign in to comment.