Mac各种问题总结

1 - sublime

1.1 - Package-Controllor提示no package

cmd + shift + p快捷键打开Package Controller,install package时提示 no package avaliable

首先打开st3的debug模式,找到 Settings-User,输入以下配置:

"debug": true

然后再一次 install package,看下console信息:

Package Control: Found previously exported CA bundle at /Users/iEpac/Library/Application Support/Sublime Text 3/Packages/User/oscrypto-ca-bundle.crt (265167 bytes)
Package Control: Urllib HTTPS Debug General
  Connecting to packagecontrol.io on port 443
Package Control: Urllib HTTPS Debug General
  Upgrading connection to SSL using CA certs file at /Users/iEpac/Library/Application Support/Sublime Text 3/Packages/User/Package Control.merged-ca-bundle
Package Control: Error downloading channel. URL error _ssl.c:532: The handshake operation timed out downloading https://packagecontrol.io/channel_v3.json.

这下就知道,是因为https握手超时导致的。解决方案如下:
依然是在Settings-User中配置

"channels":[
		"https://packagecontrol.io/channel_v3.json",
		"http://web.archive.org/web/timemap/link/https://packagecontrol.io/channel_v3.json"
	],

问题就解决了。

原文可参照github issue #959

2. 网络

$ networksetup -listallhardwareports | pbcopy

Hardware Port: USB 10/100 LAN
Device: en6
Ethernet Address: 00:e0:4c:36:20:2b

Hardware Port: Wi-Fi
Device: en0
Ethernet Address: ac:bc:32:c1:1b:85

Hardware Port: Bluetooth PAN
Device: en3
Ethernet Address: ac:bc:32:c1:1b:86

Hardware Port: Thunderbolt 1
Device: en1
Ethernet Address: 6a:00:01:59:8a:30

Hardware Port: Thunderbolt 2
Device: en2
Ethernet Address: 6a:00:01:59:8a:31

Hardware Port: Thunderbolt Bridge
Device: bridge0
Ethernet Address: 6a:00:01:59:8a:30

VLAN Configurations
===================

command line

invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

重装一下command line

xcode-select --install

上面命令无法下载时, 可以在苹果开发者中心下载安装, apple developer

iTerm2

ssh服务器中文问题

ssh登录到Linux服务器后, vim/less等中文会显示乱码. 解决办法(mac端):

sudo vim /private/etc/ssh/ssh_config
注释掉 SendEnv LANG LC_*

原文链接

转载于:https://my.oschina.net/iepac/blog/790923

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值