Trên Linux, quá trình giao tiếp giữa ứng dụng NymVPN và daemon được xác thực, do đó ứng dụng sẽ yêu cầu mật khẩu người dùng để kết nối với daemon. Under the i3 window manager that password prompt never appears unless an authentication agent is running, so the app cannot connect. Đối với người dùng i3, bạn cần cài đặt policykit-1-gnome và chạy tác nhân xác thực để ứng dụng có thể yêu cầu nhập mật khẩu người dùng.
Để đảm bảo quá trình xác thực hoạt động chính xác trên thiết bị Linux của bạn, hãy làm theo các bước dưới đây để cài đặt tác nhân xác thực GNOME Polkit trên i3.
Thiết lập
Thêm dòng sau vào tệp ~/.config/i3/config của bạn:
exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
Điều này đảm bảo rằng các hộp thoại xác thực dạng đồ họa (dành cho sudo và các yêu cầu cấp quyền) sẽ xuất hiện. Đảm bảo rằng policykit-1-gnome đã được cài đặt.
Các bước triển khai
Step 1: install the agent
sudo apt install policykit-1-gnome
Step 2: edit your i3 config
Mở ~/.config/i3/config và thêm:
exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
Step 3: reload i3
Nhấn $mod+Shift+r để tải lại cấu hình hoặc khởi động lại i3. Bạn đã sẵn sàng.
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.