rikkix / v2gen

A powerful cross-platform CLI client for V2Ray subscription. 跨平台V2Ray命令行订阅管理客户端
MIT License
143 stars 29 forks source link

v2gen --init still will fail. #3

Closed hongyi-zhao closed 5 years ago

hongyi-zhao commented 5 years ago

See the following:

$ ./v2gen --init panic: open /etc/v2ray/v2gen.ini: no such file or directory

goroutine 1 [running]: main.checkErr(...) /home/werner/software/anti-gfw/socks5/v2ray/V2Gen.git/main.go:64 main.main() /home/werner/software/anti-gfw/socks5/v2ray/V2Gen.git/main.go:45 +0x1ef

rikkix commented 5 years ago

Try sudo ./v2gen --init As it will write to /etc/v2ray/v2gen.ini by default

rikkix commented 5 years ago

or try -c xxx/xxx/v2gen.ini to save to a custom path and add -c xxx/xxx/v2gen.ini when you generate a V2Ray config

rikkix commented 5 years ago

It seems that you do not have /etc/v2ray/ folder, try sudo mkdir /etc/v2ray/ first or try https://github.com/iochen/V2Gen/issues/3#issuecomment-531257320

hongyi-zhao commented 5 years ago

I use the v2ray directly instead of installing it, so I don't have that folder.

rikkix commented 5 years ago

you can make that folder or use another path like the solutions above.

hongyi-zhao commented 5 years ago

Thanks, got it.