-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error connecting on Arch Linux #57
Comments
I see. So this python's OS module's function "os.getlogin()" is not designed for Arch Linux. I'll use something else that hopefully works with every os. Btw when installing with Pip3 on Arch, does it create the folder "/usr/share/openpyn" ? Debian is no longer letting Pip create folders or store files in any other location than the default location. |
openpyn needs to know if it is being run using "sudo", notifications are not allowed if a script is running as root using "su" or "sudo". They work fine if you are logged in as "root". I tried a bunch of other ways to find out if the logged in user is not "root" it self. None of these work the way I need them to. shell variables worked fine on Fedora but not on "Debian" or "Ubuntu" (when running a script with sudo, they say the user is root). To receive desktop notification run it without "sudo" then supply sudo credentials when needed. PS. Could you please test it out on Arch and let me know. git clone --branch test https://github.com/jotyGill/openpyn-nordvpn.git
cd openpyn-nordvpn
sudo python3 setup.py install Cheers :) |
I test it on Arch : `╰─➤ sudo openpyn it -u -p2p -m 45 -d Pinging Server it14 min/avg/max/mdev = [14, 15, 15, 0] Pinging Server it16 min/avg/max/mdev = [15, 15, 15, 0] Pinging Server it18 min/avg/max/mdev = [14, 14, 15, 0] Pinging Server it8 min/avg/max/mdev = [26, 26, 26, 0] Top 4 Servers with best Ping are: ['it18', 'it14', 'it16', 'it8'] CONNECTING TO SERVER it18 ON PORT udp1194 Pinging Server it12 min/avg/max/mdev = [16, 16, 16, 0] Pinging Server it14 min/avg/max/mdev = [16, 69, 121, 52] Pinging Server it8 min/avg/max/mdev = [28, 28, 28, 0] Pinging Server it18 min/avg/max/mdev = [15, 15, 15, 0] Top 4 Servers with best Ping are: ['it18', 'it12', 'it8', 'it14'] CONNECTING TO SERVER it18 ON PORT udp1194 |
The problem appear only with "-d" option is very strange :( |
New error : `╭─ubermensch@netblackbook ~ Pinging Server it14 min/avg/max/mdev = [15, 15, 16, 0] Pinging Server it17 min/avg/max/mdev = [16, 16, 16, 0] Pinging Server it19 min/avg/max/mdev = [15, 19, 23, 4] Pinging Server it18 min/avg/max/mdev = [15, 16, 17, 0] Top 4 Servers with best Ping are: ['it14', 'it17', 'it18', 'it19'] CONNECTING TO SERVER it14 ON PORT udp1194 ` |
Bruh as I stated earlier don't run it with 'sudo' for the notifications to work. btw now if it is run using 'sudo', it will just warn you about notifications but won't give you an error. 3dfbdc4 For this "Options error: In [CMD-LINE]:1: Error opening configuration file: /usr/share/openpyn/files/it18.nordvpn.com.udp1194.ovpn" Can you make sure you have files in /usr/share/openpyn/files ? And update your config files (openpyn --update) it could be that server you were trying to connect to was recently added and did not have a config yet. Cheers. |
If all is good now. I'll close this issue. |
sudo openpyn it
According to NordVPN, Least Busy 4 Servers, In IT With 'Load' less than 70 Which Support OPENVPN-TCP are : [['it15', 7], ['it18', 8], ['it13', 9], ['it7', 11]]
Pinging Server it15 min/avg/max/mdev = [15, 15, 15, 0]
Pinging Server it18 min/avg/max/mdev = [15, 15, 15, 0]
Pinging Server it13 min/avg/max/mdev = [26, 27, 27, 0]
Pinging Server it7 min/avg/max/mdev = [15, 15, 17, 0]
Top 4 Servers with best Ping are: ['it15', 'it18', 'it7', 'it13']
Out of the Best Available Servers, Chose it15
CONNECTING TO SERVER it15 ON PORT tcp443
Traceback (most recent call last):
File "/usr/bin/openpyn", line 11, in
load_entry_point('openpyn==1.7.3', 'console_scripts', 'openpyn')()
File "/usr/lib/python3.6/site-packages/openpyn/openpyn.py", line 116, in main
args.skip_dns_patch)
File "/usr/lib/python3.6/site-packages/openpyn/openpyn.py", line 216, in run
connection = connect(aserver, port, daemon, test, skip_dns_patch)
File "/usr/lib/python3.6/site-packages/openpyn/openpyn.py", line 578, in connect
if root.running_with_sudo():
File "/usr/lib/python3.6/site-packages/openpyn/root.py", line 55, in running_with_sudo
logged_in_user = os.getlogin()
FileNotFoundError: [Errno 2] No such file or directory
The text was updated successfully, but these errors were encountered: