手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表2015年11月的文章

转:一些升級 El Capitan 之後要注意的事項

 以下内容纯COPY

 
原文来自:http://hiraku.tw/2015/09/3969/
  1. 前兩天 OS X El Capitan 出了 GM Candidate,所以就升級上去了,雖然外觀上 El Capitan 跟 Yosemite 看起來差不多,但是我裝的不少東西馬上就不能用了,這邊列一下目前遇到的問題跟解決方法,如果後面陸續遇到更多會持續補充。    
  2.   
  3. 首先最重要的是,El Capitan 增加了一個叫做  System Integrity Protection (簡稱 SIP ,或稱 rootless, 在 iOS 9 裡面也有) 的保護機制,SIP 最主要功能就是防止對系統程式的 code injection,還有使用未被 Apple 認可的 kext。  
  4.   
  5. 但是要關閉 SIP 也不難,只要進去 Recovery Mode (開機按著 Command + R 直接進入,千萬不要用按著 option 的方式選擇,否則會找不到 csrutil 的指令),用終端機輸入  
  6.     
  7. csrutil disable  
  8. 之後重新開機,就可以關閉 SIP 了。若有使用到以下說明要關閉 SIP 的軟體,就必須按照上述方法操作,才能正常使用該軟體之功能。而開啟 SIP 也很簡單,輸入  
  9.   
  10. csrutil enable  
  11. 特別要注意的是,csrutil 的設定實際上是在 NVRAM 中設定參數,所以當你重置 NVRAM (開機按住 command + option + P + R) 之後,SIP 會變回開啟狀態,所以要再重新關閉一次,切記切記!  
  12.   
  13.    
  14.   
  15. 而以下就是我目前遇到在 El Capitan 必須特別留意的軟體:  
  16.   
  17. TotalFinder:必須在 1.7.1 以上,並且關閉 SIP。 (1.7.1 beta 載點)  
  18. XtraFinder:官網下載最新版,並且關閉 SIP。  
  19. Bartender:必須在 1.3.2 版以上(如果你無法升級,試著開啟 beta 版檢查),暫時關閉 SIP (成功安裝後可以再次開啟)  
  20. Homebrew:如果出現無法編譯的問題,就去下載 Xcode 7,開啟並安裝 command line tools 之後就能解決  
  21. iStat Menus:必須在 5.11 版以上 (5.11 beta 載點),但因為在 5.11 之後,iStat Menus 的每個元件並不是分開的,而是整個合併為一大塊元件,所以目前不能把其他項目放置在 iStat Menus 元件的中間(例如:以前可以 RAM → Spotlight → CPU 這樣穿插放,但現在不行,iStat Menus 的項目必須連續。)如果要改各個項目的順序,要在 iStat Menus 裡面的設定改,不能直接在 menubar 拖曳。  
  22. Sequel Pro:如果用 SSH 連接的話會出錯,去抓 Nightly Builds 就可以了  
  23. theos:iOS 9 SDK 跟 theos 裡面的 header 似乎有些問題,如果有問題的話去用 iOS 8.4 的 SDK 或者抓 Xcode 6.4 回來編譯。(目前測試如果用到 Springboard 跟 UIKit2.h 的 header 好像會出錯)  
  24. Parallels Desktop:必須在 PD 10 (含) 以上  
  25. Fantastical 2:如果不能用下載 beta 看看(載點)(感謝 @katerjacob 補充)  
  26. CleanMyMac 3:必須在 3.1 beta 以上  
  27. 以上就是目前遇到的問題,但我覺得除了 iStat Menus 不能照以前的方法用之外(其實原因是因為 menucracker 失效了),其他不是太大問題。而 GM 版本雖然不是最終版本(這次是 GM Candidate,跟去年一樣,有可能會有 GM2、GM3),但是穩定性還算 OK(大家都知道,OS X 要真正穩定必須等到 10.x.2 之後…),所以如果有開發者帳號的,也可以考慮趕緊備份資料,準備上來 El Capitan 了!  
所幸,上述程序我几乎都不用。除了homebrew/parallels desktop。。。这两个的问题我已经解决了。黑黑
如果你们有遇到或者要用上述程序的,先做好心里准备

brew upgrade不能升级go 1.5.1的解决方案(无效,已删)

本文是使用代理后提交时出现的BUG,本来是重复的,已删除 ,做个纪念。

不知道是数据太大了,还是什么其他原因:
XML/HTML代码
  1. [ERROR] 2015/11/19 01:22:08 parse response header: bufio: buffer full POST neatstudio.com:80/admin/admincp.php?job=article  
  2. HTTP/1.1 200 OK  
  3. Date: Wed, 18 Nov 2015 17:22:08 GMT  
  4. Server: Apache/2.2.22 (Debian)  
  5. X-Powered-By: PHP/5.4.41-0+deb7u1  
  6. Set-Cookie: cid=17expires=Fri, 18-Dec-2015 17:22:08 GMT  
  7. Set-Cookie: title=brew+upgrade%E4%B8%8D%E8%83%BD%E5%8D%87%E7%BA%A7go+1.5.1%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88; expires=Fri, 18-Dec-2015 17:22:08 GMT  
  8. Set-Cookie: description=deletedexpires=Thu, 01-Jan-1970 00:00:01 GMT  
  9. [ERROR] 2015/11/19 01:22:19 parse response header: bufio: buffer full POST neatstudio.com:80/admin/admincp.php?job=article  
  10. HTTP/1.1 200 OK  
  11. Date: Wed, 18 Nov 2015 17:22:18 GMT  
  12. Server: Apache/2.2.22 (Debian)  
  13. X-Powered-By: PHP/5.4.41-0+deb7u1  
  14. Set-Cookie: cid=17expires=Fri, 18-Dec-2015 17:22:19 GMT  
  15. Set-Cookie: title=brew+upgrade%E4%B8%8D%E8%83%BD%E5%8D%87%E7%BA%A7go+1.5.1%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88; expires=Fri, 18-Dec-2015 17:22:19 GMT  
  16. Set-Cookie: description=deletedexpires=Thu, 01-Jan-1970 00:00:01 GMT  
估计是标题中有特殊字符?还是其他的呢?
或者是内容太多了吧?

brew upgrade不能升级go 1.5.1的解决方案

 在brew upgrade的时候,出错信息如下:

XML/HTML代码
  1. brew upgrade  
  2. ==> Upgrading 1 outdated package, with result:  
  3. go 1.5.1  
  4. ==> Upgrading go  
  5. ==> Downloading https://storage.googleapis.com/golang/go1.5.1.src.tar.gz  
  6. Already downloaded: /Library/Caches/Homebrew/go-1.5.1.tar.gz  
  7. ==> Downloading https://storage.googleapis.com/golang/go1.4.2.darwin-amd64-osx10.8.tar.gz  
  8. Already downloaded: /Library/Caches/Homebrew/go--gobootstrap-10.8.tar.gz  
  9. ==> ./make.bash --no-clean  
  10. ==> ./make.bash --no-clean  
  11. ==> Cloning https://go.googlesource.com/tools.git  
  12. Cloning into '/Library/Caches/Homebrew/go--gotools--git'...  
  13. fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out  
  14. Error: Failed to download resource "go--gotools"  
  15. Failure while executing: git clone https://go.googlesource.com/tools.git /Library/Caches/Homebrew/go--gotools--git  
于是我想到,可以使用proxychains4来进行访问(之前已经安装 goagentx + cow [with shadowsocks] ),然而:
XML/HTML代码
  1. proxychains4 brew upgrade  
  2. [proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.10/etc/proxychains.conf  
  3. [proxychains] preloading /usr/local/Cellar/proxychains-ng/4.10/lib/libproxychains4.dylib  
  4. ==> Upgrading 1 outdated package, with result:  
  5. go 1.5.1  
  6. ==> Upgrading go  
  7. ==> Downloading https://storage.googleapis.com/golang/go1.5.1.src.tar.gz  
  8. Already downloaded: /Library/Caches/Homebrew/go-1.5.1.tar.gz  
  9. ==> Downloading https://storage.googleapis.com/golang/go1.4.2.darwin-amd64-osx10.8.tar.gz  
  10. Already downloaded: /Library/Caches/Homebrew/go--gobootstrap-10.8.tar.gz  
  11. ==> ./make.bash --no-clean  
  12. Last 15 lines from /Users/xiaojianliang/Library/Logs/Homebrew/go/01.make.bash:  
  13. text/template  
  14. go/doc  
  15. go/build  
  16. cmd/go  
  17. fatal error: runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)  
  18.   
  19. runtime stack:  
  20. runtime.throw(0x3e9855)  
  21.     /usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7fff5fbff390 sp=0x7fff5fbff360  
  22. runtime.goenvs()  
  23.     /usr/local/go/src/runtime/os_darwin.c:103 +0x60 fp=0x7fff5fbff3a8 sp=0x7fff5fbff390  
  24. runtime.schedinit()  
  25.     /usr/local/go/src/runtime/proc.c:141 +0x5f fp=0x7fff5fbff3d0 sp=0x7fff5fbff3a8  
  26. runtime.rt0_go(0x7fff5fbff408, 0x4, 0x7fff5fbff408, 0x0, 0x0, 0x4, 0x7fff5fbff670, 0x7fff5fbff6c6, 0x7fff5fbff6cc, 0x7fff5fbff6cf, ...)  
  27.     /usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7fff5fbff3d8 sp=0x7fff5fbff3d0  
  28.   
  29. READ THIS: https://git.io/brew-troubleshooting  
  30.   
  31. These open issues may also help:  
  32. 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代码
  1. :~$ proxychains4 git clone https://go.googlesource.com/tools.git /Library/Caches/Homebrew/go--gotools--git  
  2. [proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.10/etc/proxychains.conf  
  3. [proxychains] preloading /usr/local/Cellar/proxychains-ng/4.10/lib/libproxychains4.dylib  
  4. Cloning into '/Library/Caches/Homebrew/go--gotools--git'...  
  5. remote: Counting objects: 827, done  
  6. remote: Finding sources: 100% (12/12)  
  7. remote: Total 14355 (delta 9764), reused 14348 (delta 9764)  
  8. Receiving objects: 100% (14355/14355), 8.98 MiB | 119.00 KiB/s, done.  
  9. Resolving deltas: 100% (9764/9764), done.  
  10. Checking connectivity... done.  
果然OK了。那么我再直接试一下upgrade吧?
XML/HTML代码
  1. brew upgrade  
  2. ==> Upgrading 1 outdated package, with result:  
  3. go 1.5.1  
  4. ==> Upgrading go  
  5. ==> Downloading https://storage.googleapis.com/golang/go1.5.1.src.tar.gz  
  6. Already downloaded: /Library/Caches/Homebrew/go-1.5.1.tar.gz  
  7. ==> Downloading https://storage.googleapis.com/golang/go1.4.2.darwin-amd64-osx10.8.tar.gz  
  8. Already downloaded: /Library/Caches/Homebrew/go--gobootstrap-10.8.tar.gz  
  9. ==> ./make.bash --no-clean  
  10. ==> ./make.bash --no-clean  
  11. ==> Cloning https://go.googlesource.com/tools.git  
  12. Updating /Library/Caches/Homebrew/go--gotools--git  
  13. ==> Checking out revision d02228d1857b9f49cd0252788516ff5584266eb6  
  14. ==> go build  
  15. ==> go build  
  16. ==> Caveats  
  17. As of go 1.2, a valid GOPATH is required to use the `go get` command:  
  18.   https://golang.org/doc/code.html#GOPATH  
  19.   
  20. You may wish to add the GOROOT-based install location to your PATH:  
  21.   export PATH=$PATH:/usr/local/opt/go/libexec/bin  
  22. ==> Summary  

关于proxychains4在OSX EI Capitan上不能使用的问题

 相信很多朋友在升级到OSX EI Capitan后发现proxychains无效了。随便你设置什么代理 ,都无法用来上网。

经过多次测试,发现程序没问题,然后到了官网后,发现有一个issue里也提到了这个问题,最后确认是SIP的问题,于是重启电脑,按cmd+R进入恢复模式,打开终端输入:csrutil disable,然后重启,一切OK~

对于开发人员来说,csrutil还是disable吧。比如brew 也有这个问题。

Tags: proxychains4, brew

纪念一下sablog作者

 只有图,没有字,随便看看吧

大小: 36.88 K
尺寸: 500 x 200
浏览: 1549 次
点击打开新窗口浏览全图
 
参考来源:
1、http://www.server110.com/sec_news/201511/11322.html
2、http://netsecurity.51cto.com/art/201510/495611.htm
3、http://www.hostloc.com/forum.php?mod=viewthread&tid=289531&page=1#pid3775357
4、http://www.court.gov.cn/zgcpwsw/jiangsu/jsshaszjrmfy/xs/201507/t20150710_9441657.htm   这个才是原地址,看最后一段话,明显是交友不慎啊

Tags: sablog, phpspy

Records:612