峯言凬语 My life is brilliant~
常用标签
您正在查看:2019年8月

Exchange Server Role Requirements Calculator v9.1

https://gallery.technet.microsoft.com/Exchange-2013-Server-Role-f8a61780

Exchange Client Network Bandwidth Calculator

https://gallery.technet.microsoft.com/Exchange-Client-Network-8af1bf00

Mailbox Size Report for Exchange 2010/2013/2016 & Office 365

https://gallery.technet.microsoft.com/Mailbox-Size-Report-for-ed9435e2

Generate Exchange Environment Reports using Powershell

https://gallery.technet.microsoft.com/Generate-Exchange-2388e7c9

August 17, 2019

Microsoft Volume Licensing Service Center
https://www.microsoft.com/licensing/servicecenter/default.aspx

Microsoft Office 2016 Volume License Pack
Microsoft Office 2010 KMS 主机许可证包:
https://www.microsoft.com/zh-cn/download/details.aspx?id=25095

Microsoft Office 2013 批量许可证包:
https://www.microsoft.com/zh-cn/download/details.aspx?id=35584

Microsoft Office 2016批量许可证包:
https://www.microsoft.com/en-us/download/details.aspx?id=49164

查看KMS服务器可以激活那些Windows或Office
Administrator运行CMD,输入:

slmgr.vbs /dlv all

或导出列表:

Cscript Slmgr.vbs /dlv all >c:\kms.txt

文件地址:
/system/usr/keylayout/AVRCP.kl

修改方法:
可用keytest.apk来侦测按键映射动作,取得code,然后文件修改,重启即可。

/OpenWrt与其衍生版本Koolshare和Lean简要分析/
/OpenWrt:优点是官方原版,代码最新,稳定可靠。缺点是很多地方需要DIY。/
/Koolshare:优点是简单方便,小白即可操作。缺点是稳定性一般,默认开了多拨均衡,易掉线,软件中心不稳定,且移除了科学上网等插件。/
/Lean:优点是编译可靠,有功能集成。缺点是luci版本旧,内核升级慢。/
/Koolshare属于自闭症且有过大规模掉网翻车的河蟹记录,我们现在采用OpenWrt合并lean代码来编译好用的固件。/


compiling environment
*服务器搭建好梯子
*Ubuntu 18.04 LTS 64bit
*若使用VMware虚拟机环境,安装VMware tools:把VMware tools解压到主文件夹,进入运行 sudo ./wmware-install.pl
*不要用root来git和编译
*Let`s Go~~~

sudo apt-get update

sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint

git clone https://github.com/openwrt/openwrt

git clone https://github.com/coolsnowwolf/lede

*复制/lede/packgage/lean 到/openwrt/package
*自定义Luci:修改openwrt/feeds.conf.default
*自定义安装包:修改openwrt的include/target.mk
*在DEFAULT_PACKAGES:=base-files libc libgcc busybox dropbear mtd uci opkg netifd fstools uclient-fetch logd 后面加上要编译的内容。
*举个例子:

DEFAULT_PACKAGES:=base-files libc libgcc busybox dropbear mtd uci opkg netifd fstools uclient-fetch logd default-settings luci luci-app-aliddns luci-app-upnp luci-app-adbyby-plus luci-app-autoreboot luci-app-ssr-plus ddns-scripts_aliyun luci-app-vlmcsd luci-app-ramfree luci-app-flowoffload 

*说明:default-settings luci 必须要有,luci-app-ddns luci-app-upnp luci-app-adbyby-plus luci-app-autoreboot luci-app-ssr-plus ddns-scripts_aliyun luci-app-vlmcsd luci-app-ramfree luci-app-flowoffload 选择使用。
*在DEFAULT_PACKAGES.router:=dnsmasq iptables ip6tables处,将dnsmasq改为dnsmasq-full,把 ip6tables odhcpd-ipv6only odhcp6c去掉,否则手机浏览有ipv6地址的网站时,可能不能访问;扶墙时有问题。
*举个栗子:

DEFAULT_PACKAGES.router:=dnsmasq-full iptables ip6tables ppp ppp-mod-pppoe firewall odhcpd-ipv6only odhcp6c kmod-ipt-offload

*修改目标固件包:修改/target/linux/x86/Makefile 里DEFAULT_PACKAGES
*注意不要加autocore,会和新版luci冲突,导致主页错误。如果是实机写盘安装,此处要加上相关硬件驱动,可参考lean的设置。如果只编译一个固件,也可加在上一步的DEFAULT_PACKAGES 处。
*应用fullconenat:拷贝lede/package/network/config/firewall/里的makefile文件及patches文件夹到openwrt下面的同目录里,覆盖openwrt官方的。
*openwrt设置活动连接数:修改package/kernel/linux/files/sysctl-nf-conntrack.conf里net.netfilter.nf_conntrack_max=16384,可修改为65536 或者更大。

定义主机名和ssr-plus
*修改openwrt/package/lean/default-settings/f iles/zzz-default-settings
*文件中uci set system.@system[0].timezone=CST-8 后增加 uci set system.@system[0].hostname=LEDE
*增加 echo 0xDEADBEEF > /etc/config/google_fu_mode
PPPOE自定义
*添加路由器pppoe拨号账户密码:

uci set network.wan.proto='pppoe'
uci set network.wan.username='宽带账号'
uci set network.wan.password='宽带密码'
uci set network.wan.ifname='eth2'   //网络接口要根据具体的路由器WAN口情况修改
uci set network.wan6.ifname='eth2'
uci commit network  

修改管理ip地址和lan口配置

uci set network.lan.ipaddr='192.168.0.8'    //默认的管理ip
uci set network.lan.proto='static'          //LAN口静态IP方式
uci set network.lan.type='bridge'           //设置桥接
uci set network.lan.ifname='eth0 eth1 eth2 eth4 eth5' //网络接口要根据具体的路由器LAN口情况修改
uci commit network

*v2ray及ssr-puls版本的处理
如果v2ray官方有最新版,在openwrt/package/lean/v2ray/makefile 里PKG_VERSION:=v4.18.0修改成最新版本号。
ssr-plus在新luci下需要处理下,否则安装后不能扶墙,增加服务器的时候会出现错误。 删除luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/server.lua和client-config.lua里的'local ipkg = require("luci.model.ipkg")'

安装feeds包

./scripts/feeds update -a && ./scripts/feeds install -a

OpenWrt默认kb显示内存可用数,修改为MB显示,增加CPU频率显示
/feeds/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/index.js
在其中找到内存处,将1024改为1048576 ,后面的kb改为MB。
/feeds/luci/modules/luci-mod-status/luasrc/view/admin_status/index/10-system.htm
里面把第三个

<div class="tr"><div class="td left" width="33%"><%:Architecture%></div><div class="td left"><%=pcdata(boardinfo.system or "?")%></div></div>

修改为:

<div class="tr"><div class="td left" width="33%"><%:Architecture%></div><div class="td left"><%=pcdata(boardinfo.system or "?")%>:<%=luci.sys.exec("cat /proc/cpuinfo | grep 'core id' | sort -u | wc -l ")%>Core<%=luci.sys.exec("cat /proc/cpuinfo | grep 'processor' | wc -l")%>Thread</div></div>
<div class="tr"><div class="td left" width="33%"><%:CPU Info%></div><div class="td left"><%=luci.sys.exec("grep 'MHz' /proc/cpuinfo | cut -c11- |sed -n '1p'")%> MHz <%=luci.sys.exec("sensors | grep 'Core 0' | cut -c10-24")%></div></div>

make defconfig
*预下载dl库可以避免下载造成的编译失败

make defconfig

make menuconfig
*选择Soc,<*>编译进固件,<m>编译不进固件,确定路由配置
*编译冲突,配置还原到初始状态命令: rm -f .config && rm -f .config.old
*根据需要设置
target system,subtarget,target images,修改固件大小 Kernel partition size (in MB) Root filesystem partition size (in MB)。
各种驱动,支持文件,应用,以及luci-application下的web UI。

make menuconfig

编译

make download V=s

make -j1 V=s

*-j1 后面是线程数,根据CPU型号线程数编译

GoodLuck!


8899
/ 若你懒得编译,也可使用我修改的版本 /
/默认IP 192.168.1.1, 密码 password /
*下载地址:

August 14, 2019

*默认语言和主题:
feeds/luci/modules/luci-base/root/etc/config/luci

config core main
        option lang "zh_cn"
        option mediaurlbase /luci-static/material
        option resourcebase /luci-static/resources
               
config internal languages
        option zh_cn "普通话 (Chinese)"
               
config internal themes
        option Bootstrap "/luci-static/bootstrap"
        option Material "/luci-static/material"

*主机名,时区,IP:
package/base-files/files/bin/config_generate

generate_static_system() {
uci -q batch <<-EOF
delete system.@system[0]
add system system
set system.@system[-1].hostname='LEDE'
set system.@system[-1].timezone='CST-8'                      #东八区
set system.@system[-1].zonename='Asia/Shanghai'       #这句话要加上,不然还是UTC

lan) ipad=${ipaddr:-"192.168.1.1"} ;;       #默认IP

WIFI:
package/kernel/mac80211/files/lib/wifi/mac80211.sh

set wireless.radio${devidx}.disabled=0          #0是显示wifi
set wireless.default_radio${devidx}=wifi-iface
set wireless.default_radio${devidx}.device=radio${devidx}
set wireless.default_radio${devidx}.network=lan
set wireless.default_radio${devidx}.mode=ap
set wireless.default_radio${devidx}.ssid=LEDE               #SSID
set wireless.default_radio${devidx}.encryption=psk2   #加密方式,没有是none
set wireless.default_radio${devidx}.key=password       #密码

*SSH/TELNET信息:
package/base-files/files/etc/banner

*语言信息:
feeds/luci/modules/luci-base/po/zh-cn/base.po

*路由连接数:
package/base-files/files/etc/sysctl.conf

net.netfilter.nf_conntrack_max=65535

LuCI ---> Applications 添加插件应用说明
LuCI ---> Applications ---> luci-app-accesscontrol #访问时间控制
LuCI ---> Applications ---> luci-app-adblock #ADB广告过滤
LuCI ---> Applications ---> luci-app-adbyby-plus #广告屏蔽大师Plus +
LuCI ---> Applications ---> luci-app-adbyby #广告过滤大师(已弃)
LuCI ---> Applications ---> luci-app-adkill #广告过滤(已弃)
LuCI ---> Applications ---> luci-app-advanced-reboot #Linksys高级重启
LuCI ---> Applications ---> luci-app-ahcp #支持AHCPd
LuCI ---> Applications ---> luci-app-aliddns #阿里DDNS客户端(已弃,集成ddns)
LuCI ---> Applications ---> luci-app-amule #aMule下载工具
LuCI ---> Applications ---> luci-app-aria2 # Aria2下载工具
LuCI ---> Applications ---> luci-app-arpbind #IP/MAC绑定
LuCI ---> Applications ---> luci-app-asterisk #支持Asterisk电话服务器
LuCI ---> Applications ---> luci-app-attendedsysupgrade #固件更新升级相关
LuCI ---> Applications ---> luci-app-autoreboot #支持计划重启
LuCI ---> Applications ---> luci-app-bcp38 #BCP38网络入口过滤(不确定)
LuCI ---> Applications ---> luci-app-bird4 #Bird 4(未知)
LuCI ---> Applications ---> luci-app-bird6 #Bird 6(未知)
LuCI ---> Applications ---> luci-app-bmx6 #BMX6路由协议
LuCI ---> Applications ---> luci-app-bmx7 #BMX7路由协议
LuCI ---> Applications ---> luci-app-caldav #联系人
LuCI ---> Applications ---> luci-app-cjdns #加密IPV6网络相关
LuCI ---> Applications ---> luci-app-clamav #ClamAV杀毒软件
LuCI ---> Applications ---> luci-app-commands #Shell命令模块
LuCI ---> Applications ---> luci-app-cshark #CloudShark捕获工具
LuCI ---> Applications ---> luci-app-ddns #动态域名 DNS
LuCI ---> Applications ---> luci-app-diag-core #core诊断工具
LuCI ---> Applications ---> luci-app-dnscrypt-proxy #DNSCrypt解决DNS污染
LuCI ---> Applications ---> luci-app-dnscrypt-dnsforwarder #DNSForwarder防DNS污染
LuCI ---> Applications ---> luci-app-dnspod #DNSPod
LuCI ---> Applications ---> luci-app-dump1090 #民航无线频率(不确定)
LuCI ---> Applications ---> luci-app-dynapoint #DynaPoint(未知)
LuCI ---> Applications ---> luci-app-e2guardian #Web内容过滤器
LuCI ---> Applications ---> luci-app-familycloud #家庭云盘
LuCI ---> Applications ---> luci-app-filetransfer #文件传输
LuCI ---> Applications ---> luci-app-firewall #添加防火墙
LuCI ---> Applications ---> luci-app-flowoffload #Turbo ACC FLOW转发加速(集成在sfe)
LuCI ---> Applications ---> luci-app-freifunk-diagnostics #freifunk组件 诊断(未知)
LuCI ---> Applications ---> luci-app-freifunk-policyrouting #freifunk组件 策略路由(未知)
LuCI ---> Applications ---> luci-app-freifunk-widgets #freifunk组件 索引(未知)
LuCI ---> Applications ---> luci-app-frpc #内网穿透 Frp
LuCI ---> Applications ---> luci-app-fwknopd #Firewall Knock Operator服务器
LuCI ---> Applications ---> luci-app-guest-wifi #WiFi访客网络
LuCI ---> Applications ---> luci-app-gfwlist #GFW域名列表(已弃)
LuCI ---> Applications ---> luci-app-hd-idle #硬盘休眠
LuCI ---> Applications ---> luci-app-hnet #Homenet Status家庭网络控制协议
LuCI ---> Applications ---> luci-app-kodexplorer #KOD可道云私人网盘
LuCI ---> Applications ---> luci-app-kooldns #virtual**服务器 ddns替代方案(已弃)
LuCI ---> Applications ---> luci-app-koolproxy #KP去广告(已弃)
LuCI ---> Applications ---> luci-app-lxc #LXC容器管理
LuCI ---> Applications ---> luci-app-meshwizard #网络设置向导
LuCI ---> Applications ---> luci-app-minidlna #完全兼容DLNA / UPnP-AV客户端的服务器软件
LuCI ---> Applications ---> luci-app-mjpg-streamer #兼容Linux-UVC的摄像头程序
LuCI ---> Applications ---> luci-app-mmc-over-gpio #添加SD卡操作界面(已弃)
LuCI ---> Applications ---> luci-app-multiwan #多拨虚拟网卡(已弃)
LuCI ---> Applications ---> luci-app-mwan #MWAN负载均衡
LuCI ---> Applications ---> luci-app-mwan3 #MWAN3分流助手
LuCI ---> Applications ---> luci-app-n2n_v2 #N2N内网穿透 N2N v2 virtual**服务
LuCI ---> Applications ---> luci-app-nft-qos #QOS流控 Nftables版(已弃)
LuCI ---> Applications ---> luci-app-ngrokc #Ngrok 内网穿透(已弃)
LuCI ---> Applications ---> luci-app-nlbwmon #网络带宽监视器
LuCI ---> Applications ---> luci-app-noddos #NodDOS Clients 阻止DDoS攻击
LuCI ---> Applications ---> luci-app-ntpc #NTP时间同步服务器
LuCI ---> Applications ---> luci-app-ocserv #OpenConnect virtual**服务
LuCI ---> Applications ---> luci-app-olsr #OLSR配置和状态模块
LuCI ---> Applications ---> luci-app-olsr-services #OLSR服务器
LuCI ---> Applications ---> luci-app-olsr-viz #OLSR可视化
LuCI ---> Applications ---> luci-app-ocserv #OpenConnect virtual**服务(已弃)
LuCI ---> Applications ---> luci-app-openvirtual #Openvirtual客户端
LuCI ---> Applications ---> luci-app-openvirtual-server #易于使用的Openvirtual服务器 Web-UI
LuCI ---> Applications ---> luci-app-oscam #OSCAM服务器(已弃)
LuCI ---> Applications ---> luci-app-p910nd #打印服务器模块
LuCI ---> Applications ---> luci-app-pagekitee #Pagekite内网穿透客户端
LuCI ---> Applications ---> luci-app-polipo #Polipo代理(是一个小型且快速的网页缓存代理)
LuCI ---> Applications ---> luci-app-pppoe-relay #PPPoE NAT穿透 点对点协议(PPP)
LuCI ---> Applications ---> luci-app-p p t p-server #virtual**服务器 p p t p
LuCI ---> Applications ---> luci-app-privoxy #Privoxy网络代理(带过滤无缓存)
LuCI ---> Applications ---> luci-app-qos #流量服务质量(QoS)流控
LuCI ---> Applications ---> luci-app-radicale #CalDAV/CardDAV同步工具
LuCI ---> Applications ---> luci-app-ramfree #释放内存
LuCI ---> Applications ---> luci-app-rp-pppoe-server #Roaring Penguin PPPoE Server 服务器
LuCI ---> Applications ---> luci-app-samba #网络共享(Samba)
LuCI ---> Applications ---> luci-app-samba4 #网络共享(Samba4)
LuCI ---> Applications ---> luci-app-sfe #Turbo ACC网络加速(开启Fast Path转发加速)
LuCI ---> Applications ---> luci-app-s-s #SS兲朝上网(已弃)
LuCI ---> Applications ---> luci-app-s-s-libes #SS-libev服务端
LuCI ---> Applications ---> luci-app-shairplay #支持AirPlay功能
LuCI ---> Applications ---> luci-app-siitwizard #SIIT配置向导 SIIT-Wizzard
LuCI ---> Applications ---> luci-app-simple-adblock #简单的广告拦截
LuCI ---> Applications ---> luci-app-simple-softethervirtual #SoftEther virtual服务器 NAT穿透(已弃)
LuCI ---> Applications ---> luci-app-splash #Client-Splash是无线MESH网络的一个热点认证系统
LuCI ---> Applications ---> luci-app-sqm #流量智能队列管理(QOS)

LuCI ---> Applications ---> luci-app-squid #Squid代理服务器

LuCI ---> Applications ---> luci-app-S-S R-plus #S-S R兲朝上网Plus+
LuCI ---> Applications ---> luci-app-S-S R-plus ---> Include s-s New Versiong #新SS代理
LuCI ---> Applications ---> luci-app-S-S R-plus ---> Include V2ray #V2Ray透明代理
LuCI ---> Applications ---> luci-app-S-S R-plus ---> Include Kcptun #Kcptun代理
LuCI ---> Applications ---> luci-app-S-S R-plus ---> Include s-sR Server #S-S R客户端

LuCI ---> Applications ---> luci-app-S-S R-plus ---> Include s-sR Socks and Tunnel #S-S R代理

LuCI ---> Applications ---> luci-app-S-S R-pro #S-S R-Pro
LuCI ---> Applications ---> luci-app-S-S Rserver-python #s-sR Python服务器
LuCI ---> Applications ---> luci-app-statistics #流量监控工具
LuCI ---> Applications ---> luci-app-syncdial #多拨虚拟网卡(原macvlan)
LuCI ---> Applications ---> luci-app-tinyproxy #Tinyproxy是 HTTP(S)代理服务器
LuCI ---> Applications ---> luci-app-transmission #BT下载工具
LuCI ---> Applications ---> luci-app-travelmate #旅行路由器
LuCI ---> Applications ---> luci-app-ttyd #网页终端命令行
LuCI ---> Applications ---> luci-app-udpxy #udpxy做组播服务器
LuCI ---> Applications ---> luci-app-uhttpd #uHTTPd Web服务器
LuCI ---> Applications ---> luci-app-unblockmusic #解锁网易云灰色歌曲
LuCI ---> Applications ---> luci-app-unbound #Unbound DNS解析器
LuCI ---> Applications ---> luci-app-upnp #通用即插即用UPnP(端口自动转发)
LuCI ---> Applications ---> luci-app-usb-printer #USB 打印服务器
LuCI ---> Applications ---> luci-app-v2ray-pro #V2Ray透明代理(已弃,集成S-S R)
LuCI ---> Applications ---> luci-app-vlmcsd #KMS服务器设置
LuCI ---> Applications ---> luci-app-vnstat #vnStat网络监控(图表)
LuCI ---> Applications ---> luci-app-virtualbypass #virtual BypassWebUI 绕过virtual**设置
LuCI ---> Applications ---> luci-app-vsftpd #FTP服务器
LuCI ---> Applications ---> luci-app-watchcat #断网检测功能与定时重启
LuCI ---> Applications ---> luci-app-webadmin #Web管理页面设置
LuCI ---> Applications ---> luci-app-webshell #网页命令行终端(已弃)
LuCI ---> Applications ---> luci-app-wifischedule #WiFi 计划
LuCI ---> Applications ---> luci-app-wireguard #virtual**服务器 WireGuard状态
LuCI ---> Applications ---> luci-app-wireless-regdb #WiFi无线
LuCI ---> Applications ---> luci-app-wol #WOL网络唤醒
LuCI ---> Applications ---> luci-app-wrtbwmon #实时流量监测
LuCI ---> Applications ---> luci-app-xlnetacc #迅雷快鸟
LuCI ---> Applications ---> luci-app-zerotier #ZeroTier内网穿透

LuCI ---> Applications ---> luci-i18n-qbittorrent-zh-cn #BT下载工具(qBittorrent)

LuCI ---> Collections ---> luci #添加luci (web界面管理)
LuCI ---> Modules ---> Translations ---> Simplified Chinese (zh-cn) #新版本中文语言包位置
LuCI ---> Themes ---> luci-theme-bootstrap #默认主题,大家可以自行增减插件

LuCI ---> Translations ---> luci-i18n-chinese #添加luci的中文语言包

支持 iPv6:
Extra packages ---> ipv6helper
Network ---> odhcp6c
Network ---> odhcpd-ipv6only
LuCI ---> Protocols ---> luci-proto-ipv6

LuCI ---> Protocols ---> luci-proto-ppp

一些注意事项
*luci-app-samba 与luci-app-samba4 两个选项只可选择其中的一项,两项都选中编译时会因为这两项包名相同而产生冲突造成中断。
*WAN口多拨,分流和负载平衡可能会造成$$不正常。取消以下项目:
luci-app-syncdial = null
luci-app-mwan3helper = null
luci-app-mwan3 = null
*luci-app-v2ray-pro 集成后为默认打开状态,但因为默认情况下未添加任何节点,可能造成极少数网站无法正常打开的情况 (如 阿里云等),需手动关闭 V2Ray。
*Kcptun 官方暂时没有适配于 64 位设备 (arm64/aarch64) 的软件包,如果编译 64 位设备固件时勾选 Kcptun 将会导致编译过程中无法找到相应的软件包而报错,在 LuCI - Applications - luci-app-ssr-plus 中取消选择 Include Kcptun,在 Network 中取消对 Kcptun 的编译。
*Kernel modules - Wireless Drivers可能会产生冲突的软件包:
kmod-libertas-sdio
kmod-libertas-spi
kmod-libertas-usb
kmod-rsi91x-sdio
kmod-rsi91x-usb