上一篇博客说了。我用vsc的ssh-remote的时候,30秒或者1分钟必断。错误信息一直就类似:
[04:30:38.608] "install" terminal command done
[04:30:38.609] Install terminal quit with output:
[04:31:18.258] SSH Resolver called for "ssh-remote+neatstudio.com", attempt 2
[04:31:18.258] SSH Resolver called for host: neatstudio.com
[04:31:18.259] Setting up SSH remote "neatstudio.com"
[04:31:18.259] Using commit id "f06011ac164ae4dc8e753a3fe7f9549844d15e35" and quality "stable" for server
[04:31:18.263] Running script with connection command: ssh -o ClearAllForwardings=true -o ConnectTimeout=15 neatstudio.com bash
[04:31:18.263] Install and start server if needed
[04:31:35.269] Connecting with SSH timed out
[04:31:35.269] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"Timeout"},"measures":{"resolveAttempts":2,"retries":1}}
[04:31:35.269] ------
重连后也是
[04:37:06.477] SSH Resolver called for "ssh-remote+neatstudio.com", attempt 12
[04:37:06.477] SSH Resolver called for host: neatstudio.com
[04:37:06.477] Setting up SSH remote "neatstudio.com"
[04:37:06.478] Using commit id "f06011ac164ae4dc8e753a3fe7f9549844d15e35" and quality "stable" for server
[04:37:06.479] Running script with connection command: ssh -o ClearAllForwardings=true -o ConnectTimeout=15 neatstudio.com bash
[04:37:06.480] Install and start server if needed
[04:37:21.515] > ssh: connect to host 123.176.103.247 port 22: Operation timed out
[04:37:21.515] Got some output, clearing connection timeout
[04:37:21.776] "install" terminal command done
[04:37:21.776] Install terminal quit with output: ssh: connect to host 123.176.103.247 port 22: Operation timed out
[04:37:21.776] Received install output: ssh: connect to host 123.176.103.247 port 22: Operation timed out
[04:37:21.777] The operation timed out
[04:37:21.777] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"OfflineError"},"measures":{"resolveAttempts":12,"retries":1}}
[04:37:21.777] ------
发了ticket给layerstack。他们测试也来没有这个问题。我开始以为是什么openfiles limit的问题。也打开到最大了。
期间调整了一下这个:echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p,因为开始有报inotify max error
直到他们给我发了一个ticket:
Thank you for your patience in this matter.
We have investigated the issue in detail and we are not able to recreate the issue from our end. We have checked the same from multiple locations and find out its working fine.
The reported issue seems to be related to your local ISP, so we suggest you to change the standard port (22) of SSH to some other non standard port like 2222 or 2244, in server and recheck the issue.
Please do have a check on our above suggestion and let us know if you still face any issues in accessing.
所以我就想了一下,直接把PORT改成了2222,2223,2244,然而仍然 失败,最后我用了一个超大端口,居然正常了
这两天在闲逛的时候,突然看到有人提及了《寄生前夜》,说是今天史克威尔突然注册了什么寄生前夜吧啦吧啦 的。然后我就想起来,好象20年前,我的寄生前夜还没有打完。
寄生前夜我是在98还是99年玩的?那时候的游戏机房,PS每小时要4元(比网吧贵多了),然而我仍然坚持了一把。之所以说没打完,这个就比较尴尬了,因为BOSS在给别人存档的时候,把我的记录给清了。那个年代,PS的记录存储卡容量有限,只能存有限的几个。如果过多了就需要删除其中一个。而我的记录就是那不幸的一个。
之后过了N年,随着模拟器的发展,其实我中间有玩过一次,在PSP1000上,用PS模拟器玩了一下。但最后卡在“换第二张盘”这个问题上。这个问题,网上很多人都遇到过,后面实在玩不下去就只能放弃。
最近在听到寄生前夜后,又搜了一下。发现NS上也有模拟器了:RetroArch,居然跨平台。但mac装了还是需要外接蓝牙手柄(没有看到有keyboard的设置)。最后找到了安卓上有模拟器,网上有人推荐了两个:小鸡模拟器和悟饭游戏厅。我都装了,但刚装完,google play说,小鸡里可能有损害系统的软件,于是我在没有测试的情况就将删除了小鸡。
打开悟饭,搜索寄生前夜,直接下载包然后就能够运行了。虚拟按钮一直在屏幕上,存档也是随时,感觉又回到了20年前。玩了一会感觉这样操作还是不太爽,突然想起来5年前买小米电视的时候,还买了两个蓝牙手柄,轻松的连接上去后,完全不用设置就直接能够玩了。
最后。。。晚上测试一下,mac是不是能够连接小米的手柄,如果OK,就不需要在手机上玩了。毕竟手机分辨率好象有点糊,当然最关键的是,屏幕太小了,毕竟20年也是在大电视上玩的,现在不能到退啊。
-----
悟饭的菜单点了好几下,发现有不少游戏都支持,还有DC的,看来现在手机的机能都不错啊,至少在玩大部分游戏的时候都没有感觉到卡顿。如果念旧的,可以试一下,因为我发现上面居然还有:重装机兵。或者你也可以玩玩当年FC的金庸群侠传。也是一个经典的游戏
在brew upgrade的时候,出错信息如下:
XML/HTML代码
- brew upgrade
- ==> Upgrading 1 outdated package, with result:
- go 1.5.1
- ==> Upgrading go
- ==> Downloading https://storage.googleapis.com/golang/go1.5.1.src.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go-1.5.1.tar.gz
- ==> Downloading https://storage.googleapis.com/golang/go1.4.2.darwin-amd64-osx10.8.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go--gobootstrap-10.8.tar.gz
- ==> ./make.bash --no-clean
- ==> ./make.bash --no-clean
- ==> Cloning https://go.googlesource.com/tools.git
- Cloning into '/Library/Caches/Homebrew/go--gotools--git'...
- fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out
- Error: Failed to download resource "go--gotools"
- Failure while executing: git clone https://go.googlesource.com/tools.git /Library/Caches/Homebrew/go--gotools--git
于是我想到,可以使用proxychains4来进行访问(之前已经安装 goagentx + cow [with shadowsocks] ),然而:
XML/HTML代码
- proxychains4 brew upgrade
- [proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.10/etc/proxychains.conf
- [proxychains] preloading /usr/local/Cellar/proxychains-ng/4.10/lib/libproxychains4.dylib
- ==> Upgrading 1 outdated package, with result:
- go 1.5.1
- ==> Upgrading go
- ==> Downloading https://storage.googleapis.com/golang/go1.5.1.src.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go-1.5.1.tar.gz
- ==> Downloading https://storage.googleapis.com/golang/go1.4.2.darwin-amd64-osx10.8.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go--gobootstrap-10.8.tar.gz
- ==> ./make.bash --no-clean
- Last 15 lines from /Users/xiaojianliang/Library/Logs/Homebrew/go/01.make.bash:
- text/template
- go/doc
- go/build
- cmd/go
- fatal error: runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)
-
- runtime stack:
- runtime.throw(0x3e9855)
- /usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7fff5fbff390 sp=0x7fff5fbff360
- runtime.goenvs()
- /usr/local/go/src/runtime/os_darwin.c:103 +0x60 fp=0x7fff5fbff3a8 sp=0x7fff5fbff390
- runtime.schedinit()
- /usr/local/go/src/runtime/proc.c:141 +0x5f fp=0x7fff5fbff3d0 sp=0x7fff5fbff3a8
- runtime.rt0_go(0x7fff5fbff408, 0x4, 0x7fff5fbff408, 0x0, 0x0, 0x4, 0x7fff5fbff670, 0x7fff5fbff6c6, 0x7fff5fbff6cc, 0x7fff5fbff6cf, ...)
- /usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7fff5fbff3d8 sp=0x7fff5fbff3d0
-
- READ THIS: https://git.io/brew-troubleshooting
-
- These open issues may also help:
- Homebrew goes ahead with installation after warning dev tools aren't installed https://github.com/Homebrew/homebrew/issues/19580
这回倒好,还没有到git clone,就直接出错了。看来proxychains和golang不兼容,怎么办?于是干脆我直接先clone一下看看:
XML/HTML代码
- :~$ proxychains4 git clone https://go.googlesource.com/tools.git /Library/Caches/Homebrew/go--gotools--git
- [proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.10/etc/proxychains.conf
- [proxychains] preloading /usr/local/Cellar/proxychains-ng/4.10/lib/libproxychains4.dylib
- Cloning into '/Library/Caches/Homebrew/go--gotools--git'...
- remote: Counting objects: 827, done
- remote: Finding sources: 100% (12/12)
- remote: Total 14355 (delta 9764), reused 14348 (delta 9764)
- Receiving objects: 100% (14355/14355), 8.98 MiB | 119.00 KiB/s, done.
- Resolving deltas: 100% (9764/9764), done.
- Checking connectivity... done.
果然OK了。那么我再直接试一下upgrade吧?
XML/HTML代码
- brew upgrade
- ==> Upgrading 1 outdated package, with result:
- go 1.5.1
- ==> Upgrading go
- ==> Downloading https://storage.googleapis.com/golang/go1.5.1.src.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go-1.5.1.tar.gz
- ==> Downloading https://storage.googleapis.com/golang/go1.4.2.darwin-amd64-osx10.8.tar.gz
- Already downloaded: /Library/Caches/Homebrew/go--gobootstrap-10.8.tar.gz
- ==> ./make.bash --no-clean
- ==> ./make.bash --no-clean
- ==> Cloning https://go.googlesource.com/tools.git
- Updating /Library/Caches/Homebrew/go--gotools--git
- ==> Checking out revision d02228d1857b9f49cd0252788516ff5584266eb6
- ==> go build
- ==> go build
- ==> Caveats
- As of go 1.2, a valid GOPATH is required to use the `go get` command:
- https://golang.org/doc/code.html#GOPATH
-
- You may wish to add the GOROOT-based install location to your PATH:
- export PATH=$PATH:/usr/local/opt/go/libexec/bin
- ==> Summary
-
Flutter | 评论:0
| 阅读:28521