大麦路由器DW33D安装vlmcsd,激活Windows及Office

1.修改DW33D专业版为中文
在专业版中找到“system – soft ware - configuration”页面,将第一行修改成:

src/gz wireless_router http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages

然后到“system – soft ware - Actions”下,先更新列表(Update lists),然后安装“luci-i18n-chinese”

安装完中文包,在“System-System-language and Style”页面中的“language”选择中文,点击右下角“Save& Apply”按钮保存应用后,重启路由器,你就会发现可爱又熟悉的中文了。

2.开启SSH

在“系统– 备份/升级”中,打开配置,将“/etc/”加入到末尾,保存。

在“系统 – 备份/升级”中的“动作”中选择生成备份,会自动下载后缀为.gz的备份包文件。

在linux下双击备份包文件打开,不用解包,找到shadow(路径:/etc/)和dropbear(路径:/etc/config)。

打开shadow,将root后面的x改成加密密码。

root:x:15225:0:99999:7:::
daemon:*:0:0:99999:7:::
ftp:*:0:0:99999:7:::
network:*:0:0:99999:7:::
nobody:*:0:0:99999:7:::

加密密码可以在LINUX下用下面命令生成。

openssl passwd -1 password

红色部分为需要修改成的密码。

打开/etc/config/dropbear,修改成下面的内容后保存。

config dropbear
    option Port'22'
    option enable'1'
    optionInterface 'lan'
    optionRootLogin '1'
    optionPasswordAuth 'on'
    option GatewayPorts 'on'

然后把备份包上传到路由器上,等待路由器自动重启更新,然后就能用putty连接了。

3.下载vlmcsd
发布地址:https://forums.mydigitallife.net/threads/emulated-kms-servers-on-non-windows-platforms.50234/
DW33D使用这个文件:vlmcsd-mips32r2-openwrt-atheros-ar7xxx-ar9xxx-uclibc-static
路径在:binaries/Linux/mips/big-endian/static/

4.安装vlmcsd
使用WinSCP连接路由器,上传vlmcsd-mips32r2-openwrt-atheros-ar7xxx-ar9xxx-uclibc-static到路由器/sbin/并改名kms。
加入执行权限:chmod 755 kms
此时已经可以直接运行/sbin/kms,这样就开启了KMS服务了。可以加-P <端口号>更换端口号。

5.开机运行vlmcsd
在/etc/init.d/目录下新建kms文件:vi kms
加入下面内容:

#!/bin/sh /etc/rc.common
START=99
start(){
        /sbin/kms -P 2688
        }

然后执行:/etc/init.d/kms enable
这样重启路由器就能自动开启KMS服务了,注意-P 2688是指把端口改为2688。

6.DNS自动激活
在/etc/dnsmasq.conf最后增加:srv-host=_vlmcs._tcp.DomyWifi,DomyWifi.lan,2688,0,100
然后执行:/etc/init.d/dnsmasq restart
回到Windows,在CMD中验证DNS是否成功。
执行:nslookup -type=srv _vlmcs._tcp.DomyWifi
如返回以下内容则为成功:

服务器:  DomyWifi.lan
Address:  192.168.10.1

_vlmcs._tcp.DomyWifi    SRV service location:
          priority       = 0
          weight         = 100
          port           = 2688
          svr hostname   = DomyWifi.lan

7.激活Windows及Office
自已百度~

参考以下文章:
http://www.right.com.cn/forum/thread-204962-1-1.html
http://blog.csdn.net/guo_xiao_tong/article/details/52268141

标签: dw33d, openwrt, vlmcsd

评论已关闭