markdown
## (一)安装
```text
apt install nyx
```
## (二)配置
启动tor后,再启动nyx会出现如下报错
```text
Unable to connect to tor. Maybe it's running without a ControlPort?
```
需要我们编辑/etc/tor/torrc
```text
#取消注释Controlort
ControlPort 9051
#下一行有以下提示
If you enable the controlport, be sure to enable one of these
#取消注释(以下认证方法二选一)
HashedControlPassword 16:BF1A38821A9A7E30603194533E8B94BCC8EB0F1AFB33017C0EAE91EBE2
#CookieAuthentication 1
```
* 个人推荐 HashedControlPassword 方法
```text
#查看tor文档
man tor
#因此我们知道了如何设置密码
tor --hash-password "password"
#将回显,粘帖到/etc/tor/torrc的HashedControlPassword中
16:A90E15E7C89A9F6860B5D27762AA9D367507663B9D28319F9686CA1D39
```
```text
nyx
#启动后输入 password 登录即可
Tor controller password:
```
* 官网文档 [CookieAuthentication](https://nyx.torproject.org/#getting_started) 方法
```text
#取消注释即可
CookieAuthentication 1
#直接启动就可以
```
## (三)使用
```text
#进入界面后,可以使用如下键盘指令
m: menu
p: pause
h: page help
q: quit
```
```text
单击m,进入面板,下键两次,回车后,便可以重置tor网络,获取新的ip
```
评论