Surface Go 和 Ubuntu

Surface 默认是 Win10 系统,一直想换成 Linux 系统,从昨天搞到今天,满意了。 有 推上 成功的先例,以及 讨论版 上的详细介绍,动手之前,没有太担心。 然而,还是有意外发生,多亏了 这篇帖子,差点就要拿去送修了。 墙裂忠告,在动手前,确保你的 USB 安装盘,能够被正常识别、加载、启动。 在 Linux 下的制作方法,在 这里,亲测有效...

2018-09-08 · wuan

像脚本一样直接运行 golang 文件

0$ export GOPATH=/some/where/ 1$ go get github.com/erning/gorun 2$ apt install binfmt-support 3$ cat /usr/share/binfmts/golang package golang interpreter /some/where/bin/gorun extension go credentials yes 4$ sudo update-binfmts --import golang 假设你的 GOPATH 是 /some/where(0),首先安装 gorun 工具(1),其次确认 binfmt-support 工具也安装了(2), 然后添加一个配置文件,文件内容如(3)所示,注意其中的 /some/where/,替换成实际的 GOPATH, 最后,使用 update-binfmts 工具的 import 方法,...

2018-04-11 · wuan

几天翻出不去浑身难受

2017-10-11 · wuan

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