shadowsocks-iOS icon indicating copy to clipboard operation
shadowsocks-iOS copied to clipboard

OS X下如何导入gui-config.json

Open 4tj opened this issue 9 years ago • 21 comments

OS X系统下不会像Windows那样在相对目录下生成gui-config.json,如果我想导入大量服务器数据,如何操作?OS X下是否支持gui-config.json或配置信息存在哪里。

How to import the "gui-config.json" file in OS X like Windows do.

4tj avatar Aug 20 '15 07:08 4tj

+1,同求,你找到办法实现了吗

itkang avatar Sep 01 '15 16:09 itkang

文件找到了,在OS X 10.10.5 系统下的~/Library/Preferences/clowwindy.ShadowsocksX.plist,不过是plist文件,有啥编辑方法吗

4tj avatar Sep 02 '15 01:09 4tj

[email protected] ,这个方便些

itkang avatar Sep 02 '15 02:09 itkang

同问,ShadowsockX 怎么导入 gui-config.json 文件?

wangzishi avatar Sep 06 '15 03:09 wangzishi

osx上有nodejs版的,那个的配置文件貌似是json的,或者是安装linux版的

原始邮件 发件人:Wang [email protected] 收件人:shadowsocks/[email protected] 抄送:york [email protected] 发送时间:2015年9月6日(周日) 11:17 主题:Re: [shadowsocks-iOS] OS X下如何导入gui-config.json (#150)

同问,ShadowsockX 怎么导入 gui-config.json 文件? — Reply to this email directly or view it on GitHub.

itkang avatar Sep 06 '15 05:09 itkang

意思是说,OSX版本就没有这个功能吗?

通过 Android 版 Outlook 发送

On Sat, Sep 5, 2015 at 10:30 PM -0700, "york yuan" [email protected] wrote: osx上有nodejs版的,那个的配置文件貌似是json的,或者是安装linux版的

原始邮件 发件人:Wang [email protected] 收件人:shadowsocks/[email protected] 抄送:york [email protected] 发送时间:2015年9月6日(周日) 11:17 主题:Re: [shadowsocks-iOS] OS X下如何导入gui-config.json (#150)

同问,ShadowsockX 怎么导入 gui-config.json 文件? — Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub: https://github.com/shadowsocks/shadowsocks-iOS/issues/150#issuecomment-138042683

wangzishi avatar Sep 06 '15 12:09 wangzishi

编辑plist的话用defaults就好了吧?

defaults read ~/Library/Preferences/clowwindy.ShadowsocksX.plist

但是读出来有些意义不明的数据... 不知道怎么改。

magicnat avatar Sep 07 '15 13:09 magicnat

而且就算修改这个plist文件,实际上程序并未更新,没啥作用

4tj avatar Sep 08 '15 02:09 4tj

Sublime Text 和 Atom 可以打开文件 并且是非二进制的显示。

Azeril avatar Dec 07 '15 03:12 Azeril

edit .plist is not useful.

ciwyaitd avatar Dec 14 '15 03:12 ciwyaitd

I used homebrew install shadowsocks_libev.It can use your json configuration file.

itkang avatar Dec 14 '15 03:12 itkang

plist文件可以用defaults read 读出,那些数据其实就是配置文件的内容,可以用less看一下,但实际上改 了也没用,要再启动才会生效。我改用node.js版的了, 可以直接用json配置文件。 网盘http://pan.baidu.com/s/1sjS5SBV

aquila995 avatar Jan 18 '16 11:01 aquila995

@MagicNAT @itkang @aquila995 default read读出的一些字段是十六进制的所以会看起来意义不明 plutil -convert xml1 ~/Library/Preferences/clowwindy.ShadowsocksX.plist -o xxx.xml 可以把 plist 转成 xml,里面那个config下面的 data 字段就是 base64 转码后的 json,把 json base64 之后整个覆盖 data 字段然后 plutil -convert binary1 xxx.xml -o yyy.plist 重新转成 plist defaults import clowwindy.ShadowsocksX yyy.plist 重新启动客户端就能载入 但是看起来这个 json 的字段定义和 Windows 客户端的 gut-config.json 并不完全一致:

{"current":9,"profiles":[{"password":"xxxxxxxx","method":"aes-256-cfb","server_port":8888,"remarks":"US-Bandwagon","server":"xxxxxxxxxx"}]}

不知道作者设计这个的时候怎么想的

StarDuster avatar Apr 01 '16 20:04 StarDuster

赞,使用楼上的方法成功批量导入多个地址,格式需要调整一下

zzy302 avatar Jul 02 '16 09:07 zzy302

mac 可以使用二维码扫描的方式来导入服务器配置。打开产品详情,下面点开服务器列表后面的二维码,然后点开shadowsocks-从屏幕上扫描二维码,弹出的窗口点击确定,就会把该服务器配置导入了。 image

ikaren avatar Oct 13 '16 09:10 ikaren

https://github.com/shadowsocks/shadowsocks-nodejs NodeJS版本的shadowsocks Client已经Deprecated了,作者推荐使用其它版本

wikke avatar May 21 '17 04:05 wikke

生成二维码->复制到本地->解析(可以上传到专门的解析二维码网站)->ss://后面的字符使用base64解码,然后得到:[加密方式]:[密码]@[ip]:[port]

jarmywang avatar Aug 05 '18 02:08 jarmywang

chrome 插件商店有一个插件: SSR解析器 不知是否能解决你的问题 2018-09-09 6 45 12

2018-09-09 6 43 20

ghost avatar Sep 09 '18 10:09 ghost

@jamesney ss:// 这样的链接就是个 base64,根本不需要什么解析器,和这个 issue 讨论的问题无关

StarDuster avatar Sep 14 '18 09:09 StarDuster

为什么你们要搞得这么复杂呢? 先在菜单栏中“ShadowsocksX”->"服务器"->“导出全部服务器配置...", 把当前配置导出到文件。 然后再在导出文件中添加你的服务器列表信息。 然后再在菜单栏中“ShadowsocksX”->"服务器"->“导入服务器配置文件...”, 选择你修改好的配置文件。 搞定! content of exported config file:

{
  "random" : false,
  "authPass" : null,
  "useOnlinePac" : false,
  "TTL" : 0,
  "global" : false,
  "reconnectTimes" : 3,
  "index" : 0,
  "proxyType" : 0,
  "proxyHost" : null,
  "authUser" : null,
  "proxyAuthPass" : null,
  "isDefault" : false,
  "pacUrl" : null,
  "configs" : [...], #Just add your server-list configure here, json format.
  "proxyPort" : 0,
  "randomAlgorithm" : 0,
  "proxyEnable" : false,
  "enabled" : true,
  "autoban" : false,
  "proxyAuthUser" : null,
  "shareOverLan" : false,
  "localPort" : 1080
}

你为什么不看一眼这个issue的时间呢。。。

StarDuster avatar Aug 01 '19 03:08 StarDuster

shadowsocks 买的服务现在现在可以用 v2ray 了。 官网的 v2ray 只有一个连接,手动配置也可以。

dalei2019 avatar Jan 20 '20 08:01 dalei2019