解决 software_reporter_tool.exe 占用 CPU 问题

Google 已经从“不作恶”演变成了“尽作恶”。

在大家都无法避免使用 chrome 的情况下,经常发现其下的一个 software_reporter_tool.exe 疯狂占用 CPU 和硬盘 IO。

解决方法其实很简单,进入 %localappdata%\Google\Chrome\User Data 删除 SwReporter 文件夹,再建一个建立个 0 字节、只读、同名、占位文件 SwReporter 即可。

fxxk Google.

Linux 设置系统时间及同步

1.调整系统时区

CentOS6 , Ubuntu16 修改方法 :
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

CentOS7 , RHEL7 , Scientific Linux 7 , Oracle Linux 7 :
timedatectl set-timezone Asia/Shanghai #其他时区以此类推

查看时间:
date

参考链接:Linux 修改时区和时间

2.配置 NTP

安装 NTP:
yum install ntp #适用于 CentOS

启动 NTPD 服务:
service ntpd start #适用于 CentOS

参考链接:NTP服务器的配置和使用

3.公共 NTP 服务器

为 VPS 配置 IPv6

在如今到处都在普及 IPv6 之际,某 VPS 服务商非常不友好地不支持 Native IPv6,无奈之下只能采用曲线救国方式,利用 HE.NET 提供的 IPv6 Tunnel 来实现 VPS 对 IPv6 的支持。

检查 VPS 是否支持 IPv6

输入 ip -6 address show 看是否有显示内容,如无则表示没有启用 IPv6。
编辑文件 /etc/sysctl.conf,添加或修改一下内容启用 IPv6:

net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0

键入 sysctl -p 使上述设置生效,再输入 ip -6 address show 查看是否有信息显示。

为 VPS 配置 IPv6 Tunnel

/root 目录下新建一个 he-ipv6.sh 文件,将 Tunnelbroker.net 中 Linux-route2 选项下的配置内容粘贴进去,执行 ./he-ipv6.sh

设置 IPv6 优先级

尽管目前 IPv6 在全世界范围内快速普及,但在实际使用中仍然会遇到不少问题,为保守起见,我们设置了 IPv4 的优先级高于 IPv6。
方法很简单,就是在 /etc/gai.conf 中加入 precedence ::ffff:0:0/96 100 就行了。

添加一整段 IPv6

虽然我也不知道在一个 VPS 上监听 2^n 个 IP 地址有啥用…

ip -6 route add local XXXX/64 dev lo #添加
ip -6 route list table local #查看

在 Windows 系统利用 HE Tunnelbroker 配置 IPv6

现在国家大力推进 IPv6 普及,很多网站都提供了 IPv4/v6 双栈访问,IPv6 的普及也是大势所趋。但是由于我国复杂的网络环境,很多小伙伴现在还不能使用原生的 IPv6(Native IPv6),原来在 Windows 系统下普遍采用的是 Teredo 方法来配置 IPv6,但最近几乎所有网上能查到了 Teredo 服务器都已经无法使用,所以不得不另辟蹊径。

Windows Vista/7/8/10 配置方法

原来给 VPS 配置 IPv6 环境曾经使用过 HE.NET 的 IPv6 Tunnel,那是否也能把其移植到 Windows 上?答案是肯定的。先说一下我的电脑环境:

系统: Windows 7 SP1 Ultimate 64位
网络:有线连接路由器(内网IP:192.168.1.x,公网IP:222.x.x.x)

  1. 在 Tunnelbroker.net 注册一个账号

  2. Create Regular Tunnel,填入公网IP,也就是 222.x.x.x。然后选择一个网络质量最好的 Tunnel Server

  3. 创建完成后,可以在 Main Page 最下方看见 tunnel 列表,点击打开查看详情,再进入 Example Configurations

  4. 在下拉菜单选择相应的系统,例如选择 Windows Vista/2008/7/8 则显示下列信息:

    netsh interface teredo set state disabled
    netsh interface ipv6 add v6v4tunnel interface=IP6Tunnel 192.168.1.x 216.66.88.98 #如果你是内网环境,加黑处替换为内网地址
    netsh interface ipv6 add address IP6Tunnel 2001:470:XXXX:XXXX::2 #替换为你的 IPv6 地址
    netsh interface ipv6 add route ::/0 IP6Tunnel 2001:470:XXXX:XXXX::1 #对应替换 IPv6 地址

    Windows 10 则为如下配置:

    netsh interface teredo set state disabled
    netsh interface ipv6 add v6v4tunnel interface=IP6Tunnel localaddress=192.168.1.x remoteaddress=216.66.88.98 #如果你是内网环境,加黑处替换为内网地址
    netsh interface ipv6 add address interface=IP6Tunnel address=2001:470:XXXX:XXXX::2
    netsh interface ipv6 add route prefix=::/0 interface=IP6Tunnel nexthop=2001:470:XXXX:XXXX::1
  5. 用管理员权限启动 CMD,然后依次输入上述信息,IPv6 配置就完成了

其他相关命令

下面陈列一下其他涉及 IPv6 配置的命令

netsh int ipv6 show int #查看 IPv6 interfaces
netsh int ipv6 add address IP6Tunnel 2001:470:XXXX:XXXX::3/64 #添加额外 IPv6 地址
netsh int ipv6 delete address IP6Tunnel 2001:470:XXXX:XXXX::3/64 #删除额外 IPv6 地址

netsh interface ipv6 delete interface ip6tunnel #删除 ip6tunnel
netsh interface ipv6 reset all #重置 IPv6 设置

netsh int ipv6 show prefixpolicies #查看前缀策略,第一列数值越大,优先级越高
netsh int ipv6 add prefixpolicy 2001:470::/32 5 11 store=persistent #降低 Tunnelbroker 的优先级

netsh int ipv6 delete prefixpolicy ::1/128 store=persistent #删除策略记录
netsh int ipv6 add prefixpolicy ::1/128 40 0 store=persistent #新增策略记录
*::1/128 #IPv6 loopback
*::/0 #Native IPv6
*::ffff:0:0/96 #IPv4
*2002::/16 #6to4
*2001::/32 #Teredo
*::/96 #v4compat
*fec0::/10 #IPv6 site-local
*3ffe::/16 #6bone

参考文章
Windows IP Address Prefix Policies

免费时间戳服务器

服务器列表

有的时候需要使用时间戳服务,但一时找不到免费的时间戳服务器,所以在这里总结一下。

Digicert:
http://timestamp.digicert.com
Credible: Yes . [Adobe Approved Trust List] and [Windows Cert Store].
Hash: up to SHA512

GlobalSign:
http://aatl-timestamp.globalsign.com/tsa/aohfewat2389535fnasgnlg5m23
Credible: Yes . [Adobe Approved Trust List] and [Windows Cert Store].
Hash: up to SHA512

Sectigo:
https://timestamp.sectigo.com
Credible: Yes . [Adobe Approved Trust List] and [Windows Cert Store].
Hash: up to SHA512
Note: wait 15 seconds between each request.

Entrust:
http://timestamp.entrust.net/TSS/RFC3161sha2TS
Credible: Yes . [Adobe Approved Trust List] and [Windows Cert Store].
Hash: up to SHA512

SwissSign:
http://tsa.swisssign.net
Credible: Yes . [Adobe Approved Trust List] and [Windows Cert Store].
Hash: up to SHA512
Note: only 10 requests per day. For bigger quantities contact the company.

IDnomic:
http://kstamp.keynectis.com/KSign/
Credible: Yes . [Adobe: European Union Trusted Lists] and [Windows Cert Store].
Hash: up to SHA512

QuoVadis + Digicert:
http://tsa.quovadisglobal.com/TSS/HttpTspServer
Credible: Yes . [Adobe Approved Trust List] and [Windows Cert Store].
Hash: up to SHA512

IRN:
http://ts.cartaodecidadao.pt/tsa/server
Credible: Yes . [Adobe: European Union Trusted Lists] and [Windows Cert Store].
Hash: only SHA256
Note: only allows 20 requests in 20 minutes, if more requests are done the IP address will be blocked and legal consequences may happen.

ACCV:
http://tss.accv.es:8318/tsa
Credible: Yes . [Adobe: European Union Trusted Lists] and [Windows Cert Store].
Hash: up to SHA512

BalTstamp:
http://tsa.baltstamp.lt
Credible: Yes . [Adobe: European Union Trusted Lists] and [Windows Cert Store].
Hash: up to SHA512
Note: Limitation applies to non-registered users: no more than 100 requests within one month; the beginning and the end of the month are defined in UTC time.

IZENPE:
http://tsa.izenpe.com
Credible: Yes . [Adobe: European Union Trusted Lists].
Hash: up to SHA512

CERTUM:
http://time.certum.pl
Credible: Yes . [Windows Cert Store]
Hash: up to SHA512

DFN:
http://zeitstempel.dfn.de
Credible: Yes . [Windows Cert Store]
Hash: up to SHA512
Note: commercial use forbidden.

CatCert:
http://psis.catcert.cat/psis/catcert/tsp
Credible: Yes . [Windows Cert Store]
Hash: up to SHA512

Symantec:
http://sha256timestamp.ws.symantec.com/sha256/timestamp
Credible: Yes . [Windows Cert Store]
Hash: up to SHA512

GlobaSign:
http://rfc3161timestamp.globalsign.com/advanced
http://timestamp.globalsign.com/tsa/r6advanced1
Credible: Yes . [Windows Cert Store]
Hash: up to SHA512

Apple:
http://timestamp.apple.com/ts01
Credible: Yes. [Apple CA]
Hash: up to SHA512

FreeTSA:
https://freetsa.org/tsr
Credible: No.
Hash: up to SHA512

SafeStamper:
https://www.safestamper.com/tsa
Credible: No.
Hash: up to SHA512
Note: up to 5 requests per day. For bigger quantities contact the company.

MeSign:
http://tsa.mesign.com
Credible: No.
Hash: up to SHA512

WoTrust:
https://tsa.wotrus.com
Credible: No.
Hash: only SHA256
Note: wait 15 seconds between each request.

Lex-Persona:
http://tsa.lex-persona.com/tsa
Credible: No.
Hash: up to SHA512

Reference

  1. 可信时间戳
  2. List of free rfc3161 servers

更新日志

2021-12-14:更新可用服务器。