SoftEther 编译报错的问题

SoftEther 在 Linux 下需要手动编译安装。不管是 官网 还是 Github, 下载的源码都无法成功编译,提示以下错误, 官网 (softether-vpnclient-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz) ...(略) ranlib code/vpnclient.a gcc code/vpnclient.a -O2 -fsigned-char -pthread -m64 -lm -ldl -lrt -lpthread -L./ lib/libssl.a lib/libcrypto.a lib/libiconv.a lib/libcharset.a lib/libedit.a lib/libncurses.a lib/libz.a lib/libintelaes.a -o vpnclient /usr/bin/ld: code/vpnclient.a(vpnclient.o): relocation R_X86_64_32 against symbol `StopProcess' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: code/vpnclient.a(Unix.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC ...(略) collect2: error: ld returned 1 exit status Makefile:18: recipe for target 'i_read_and_agree_the_license_agreement' failed make[1]: *** [i_read_and_agree_the_license_agreement] Error 1...

2017-08-12 · wuan

如何取消对 WoSign&StartCom&CNNIC 证书的信任

% diff /etc/ca-certificates.conf.orig /etc/ca-certificates.conf 48c48 < mozilla/CNNIC_ROOT.crt --- > #mozilla/CNNIC_ROOT.crt 134,136c134,136 < mozilla/StartCom_Certification_Authority_2.crt < mozilla/StartCom_Certification_Authority.crt < mozilla/StartCom_Certification_Authority_G2.crt --- > #mozilla/StartCom_Certification_Authority_2.crt > #mozilla/StartCom_Certification_Authority.crt > #mozilla/StartCom_Certification_Authority_G2.crt 181,182c181,182 < mozilla/WoSign_China.crt < mozilla/WoSign.crt --- > #mozilla/WoSign_China.crt > #mozilla/WoSign.crt 185,186c185,186 < mozilla/CA_WoSign_ECC_Root.crt < mozilla/Certification_Authority_of_WoSign_G2.crt --- > #mozilla/CA_WoSign_ECC_Root.crt > #mozilla/Certification_Authority_of_WoSign_G2.crt % sudo update-ca-certificates

2016-09-27 · wuan

一个解决 NFS 挂载点无法 umount 的方法

背景 关闭了一台提供 NFS 服务器,使用了这台服务器挂载点的机器都有异常。 现象 执行 umount、umount -f、umount -l、umount -f -l 都无法卸载挂载点。 调查 If the NFS server disappeared and you can’t get it back online, one trick that I use is to add an alias to the interface with the IP of the NFS server 方法 新增一个虚拟 IP,地址为原来的 NFS 服务器地址 装配一个...

2016-08-28 · wuan

改用 Neovim 后遇到的问题(一)

之前在用 Vim 的时候,有一个配置项, nmap <unique> <F5> :!git difftool --tool=nvimdiff -y HEAD -- %<LEFT><LEFT><LEFT><LEFT><LEFT> 效果如下图:编辑文件时用 F5 查看当前内容与 Git 库 HEAD 的差异 现在改用 Neovim 以后,暂时无法实现。 简单调查后,问题可能在于 Neovim 删除了 term,改用了 terminal。 在 Vim 和 Neovim 分别执行一个外部的命令(!top),可以看出差别。 @https://github.com/neovim/neovim/issues/1496 This is not a bug, it is the new behavior...

2016-08-24 · wuan

聊天室

安装 Mattermost 是一款类似 Slack、IRC 的聊天室应用。因为开源,所以可以在小组内部搭建。 参考官方文档的搭建过程比较顺利,有 AWS、Docker、Jessie、Trusty、RHEL 等对应的文档。 需要提醒的是,虽然默认支持 UTF-8 编码(即支持 CJK),但是中日韩语言的搜索功能(分词),需要额外...

2016-07-23 · wuan