Configuring Linux Ubuntu setup (Standard User)

These are the instructions to connect non-administrative account (newuser in this example) to VPN using Linux. The instructions were made using Ubuntu 16.04 LTS and connecting to US #311 server using UDP protocol. Before following these instructions, please make sure at least 1-7 steps of our Linux tutorial has already been completed.

1. Login to your admin account:

Img01.png

2. Create a new file and name it US311_UDP.sh or however you prefer. For the sake of convenience we will create the file in ~/Documents/ folder;

Img02.png

3. Open the US311_UDP.sh file and enter these two lines:

#!/bin/bash
sudo openvpn /etc/openvpn/ovpn_udp/us311.nordvpn.com.udp.ovpn


Save and close the file;

4. Open Terminal (Ctrl + Alt + T) and run sudovisudo command. Afterwards, you will be prompted your administrator password, please enter it.

Img04_1.png

It will open the /etc/sudoers.tmp file as shown below.

Img04_2.png
 

5. Using arrow keys navigate to the #Members of the admin group may gain root privileges and below the %admin ALL=(ALL) ALL entry type these three lines:

newuser ALL=NOPASSWD: /home/blue_mountain/Documents/US311_UDP.sh
newuser ALL=NOPASSWD: /usr/sbin/openvpn
newuser ALL=NOPASSWD: /etc/openvpn/ovpn_udp/us311.nordvpn.com.udp.ovpn


Img05.png

6. Press Ctrl + X to close the file. Shortly afterwards you will be asked to press Y in order to save changes you have made. You will be required to press Enter to complete the changes;

7. Access your standard user account:

Img07.png

8. Open Terminal (Ctrl + Alt + T) and run cd /home/blue_mountain/Documents command:

Img08.png

9. Now you can use sh US311_UDP.sh command to use the previously created script to connect to VPN, though you will be required to enter your NordVPN credentials;

Img09.png

10. Wait for the VPN connection to be established. It is indicated by the Initialization Sequence Completed message.

Img10.png

이 게시글이 도움이 되었나요?

여전히 문제가 지속되나요?

  • 라이브 채팅

  • 이메일 양식

“지원 팀과 채팅”를 클릭하면, 귀하는 당사의 서비스 약관에 동의하고 개인정보 처리방침을 확인하는 것으로 간주됩니다. 채팅 기능은 쿠키를 사용합니다. 채팅을 시작하면 쿠키 사용에 동의하게 됩니다. 자세한 내용은 다음을 참조하세요. 쿠키 정책.