在 Linux 上,NymVPN 应用程序与守护进程之间的通信是需要身份验证的,因此应用程序在连接到守护进程时会要求输入用户密码。 Under the i3 window manager that password prompt never appears unless an authentication agent is running, so the app cannot connect. 对于 i3 用户,您需要安装 policykit-1-gnome 并运行身份验证代理,应用程序才能提示输入用户密码。
为确保身份验证在您的 Linux 设备上正常运行,请按照以下步骤在 i3 环境下安装 GNOME Polkit 身份验证代理。
设置
将以下行添加到您的 ~/.config/i3/config 文件中:
exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
这可确保出现图形身份验证对话框(用于权限提示)。 确保已安装 policykit-1-gnome。
实施步骤
Step 1: install the agent
sudo apt install policykit-1-gnome
Step 2: edit your i3 config
打开 ~/.config/i3/config 然后添加:
exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
Step 3: reload i3
按下 $mod+Shift+r 重新加载配置,或重启 i3。 一切就绪!
Related questions
Why does NymVPN ask for my password at all?
The daemon manages your network configuration, so the connection between app and daemon is authenticated with your user password as a security measure.
I use a different minimal window manager. Does this apply?
The same requirement applies: a Polkit authentication agent must be running for the password prompt to appear. The GNOME agent installed above works under most window managers.