Protonvpn for Fossapup

Moderator: Forum moderators

Post Reply
User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 111 times
Been thanked: 149 times

Protonvpn for Fossapup

Post by 666philb »

Protonvpn as well as offering paid subscriptions also have a limited 'Free' tier that offers reasonable speeds & unlimited downloads.
It's limited to only one device so if it's connected on your phone (there's a nice android app for it) you will have to unconnect before connecting with your computer.

Here's a quick guide for setting up protonvpn in fossapup.

1. create an account at https://protonvpn.com/ and confirm your email address etc.

2. login to your account and on the left of your dashboard click on "account" and scroll down to "OpenVPN / IKEv2 username" (you'll need this info in a moment)
snapshot-2020-10-16-11-37-06.png
snapshot-2020-10-16-11-37-06.png (39.53 KiB) Viewed 8867 times
3. now to install the dependencies in a terminal.
update the repositories first

Code: Select all

pkg ru
install the dependencies

Code: Select all

pkg get openvpn dialog python3-pip python3-setuptools python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-appindicator3 libnotify-bin
4. now install protonvpn

Code: Select all

pip3 install protonvpn-cli
5. now to setup protonvpn

Code: Select all

protonvpn init
Image

your login & password are the OpenVPN / IKEv2 username mentioned at (2.)
1 for free tier
1 for UDP
enter to confirm all

hopefully everything in now set.

to connect

Code: Select all

protonvpn c -f
to disconnect

Code: Select all

protonvpn d
if you would like a nice GUI and tray icon

Code: Select all

pip3 install protonvpn-gui
to start

Code: Select all

protonvpn-tray
snapshot-2020-10-16-11-40-29.png
snapshot-2020-10-16-11-40-29.png (105.2 KiB) Viewed 8867 times
-------------------------------------------------------------------------------------------------------------------
to check for and update protonvpn & the gui

Code: Select all

pip3 install protonvpn-cli --upgrade

Code: Select all

pip3 install protonvpn-gui --upgrade
attached is a menu entry for protonvpn-tray
Attachments
protonvpn-menu-entry.pet
(528 Bytes) Downloaded 1435 times
User avatar
Subito Piano
Posts: 75
Joined: Fri Sep 04, 2020 6:08 pm
Location: UPSTATE New York
Has thanked: 17 times
Been thanked: 11 times
Contact:

Re: Protonvpn for Fossapup

Post by Subito Piano »

philb -- what a PLEASANT surprise to see this in the Fossa Pup QuickPet packages!! Kudos. I'd been using Xenial for years and am now setting up Fossa for my new laptop -- you made installing ProtonVPN extremely easy. (I was doing all via command line and making my own scripts.) Kudos for all your thoughtful work in Fossa, I'm discovering some nice "gifts" to us Puppy users. :-)

IDK if I'm the only one, but my list of VPN countries stops at New Zealand. Not sure if this is a ProtonVPN issue or what...? I like to choose my server, which I can do through the commandline, but it would be nice to be able to use the GUI for this. I do see they have changed a few things in the program, perhaps this is an unintended side effect from Proton?

"God is love" - I John 4:16
Member since 2007. Currently running Fossa on a 2012 MacBook Air.
Still using Xenial 32 on my trusty 2007 IBM T60 warhorse. ♥
(A/V Linux for live softsynth needs)

User avatar
m1k3
Posts: 86
Joined: Sat Sep 26, 2020 1:44 am
Has thanked: 33 times
Been thanked: 11 times

Re: Protonvpn for Fossapup

Post by m1k3 »

@666philb, unfortunately I'm getting an error message. It shows that I'm connected but then I have no internet connection. Thoughts?

Code: Select all

root# protonvpn c -f
Connecting to US-NY#33 via UDP...
iptables v1.8.4 (legacy): Couldn't load match `state':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.4 (legacy): Couldn't load match `state':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
Connected!
I thought maybe it was the firewall but even turning that off had no affect.
User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 111 times
Been thanked: 149 times

Re: Protonvpn for Fossapup

Post by 666philb »

hi @m1k3 ,

have you updated fossapup as there were some fixes for iptables symlinks .
quickpet >>> fossapup-updates.
User avatar
m1k3
Posts: 86
Joined: Sat Sep 26, 2020 1:44 am
Has thanked: 33 times
Been thanked: 11 times

Re: Protonvpn for Fossapup

Post by m1k3 »

Thank you, I just updated it and no longer get the iptables error but now it seems like even though I'm connected I'm not able to reach any server.

Before connecting with VPN:

Code: Select all

root# ping -c 3 puppylinux.com
PING puppylinux.com (185.199.110.153): 56 data bytes
64 bytes from 185.199.110.153: seq=0 ttl=57 time=36.584 ms
64 bytes from 185.199.110.153: seq=1 ttl=57 time=37.374 ms
64 bytes from 185.199.110.153: seq=2 ttl=57 time=37.041 ms

--- puppylinux.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 36.584/36.999/37.374 ms
After connecting to VPN:

Code: Select all

root# protonvpn c -f
Connecting to US-NY#7 via UDP...
Connected!
root# ping -c 3 puppylinux.com
ping: bad address 'puppylinux.com'
User avatar
m1k3
Posts: 86
Joined: Sat Sep 26, 2020 1:44 am
Has thanked: 33 times
Been thanked: 11 times

Re: Protonvpn for Fossapup

Post by m1k3 »

Hmm, so I got it working by purging my configuration and doing init again. It worked fine after that but once I used proton-gui again it stopped working. I suspect it has something to do with the killswitch feature but I can't be certain. I'll just use cli and the tray for now I guess.
Alchem1k
Posts: 1
Joined: Fri Nov 13, 2020 3:03 pm

Re: Protonvpn for Fossapup

Post by Alchem1k »

Hello,
to run the program i typed protonvpn-tray

and it says:

Import Error: lipgirepository-1.0.so.1 cannot open shared object file
: No such file or directory

What should i do?
Thank you for help

User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 111 times
Been thanked: 149 times

Re: Protonvpn for Fossapup

Post by 666philb »

Alchem1k wrote: Fri Nov 13, 2020 3:11 pm

Hello,
to run the program i typed protonvpn-tray

and it says:

Import Error: lipgirepository-1.0.so.1 cannot open shared object file
: No such file or directory

What should i do?
Thank you for help

hi Alchem1k,

did you run dependency installation script at the start of the post ?

Code: Select all

pkg get openvpn dialog python3-pip python3-setuptools python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-appindicator3 libnotify-bin
xveeb
Posts: 1
Joined: Fri Nov 20, 2020 9:25 pm
Been thanked: 1 time

Re: Protonvpn for Fossapup

Post by xveeb »

Thank you!! After struggling with this for weeks, I found your link and had it installed in minutes. You made it easy. (Even for a dinosaur like myself.)

:thumbup2:

User avatar
Grey
Posts: 2024
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 76 times
Been thanked: 376 times

Re: Protonvpn for Fossapup

Post by Grey »

In some countries, the relevant supervisory authorities block API servers of Protonvpn(api.protonvpn.ch and api.protonmail.ch). Therefore, for example in Russia, this connection method does not work. But the other works :) Without using native utilities from ProtonVPN, but only OpenVPN + configs from ProtonVPN.

The first two steps are as described by 666philb. Further, only openvpn is needed and it can be installed directly from PPM. Then we go to the https://protonvpn.com/ again. This time we click not on Account, but on Downloads. Next, click "OpenVPN configuration files", "Select platform"(of course GNU/Linux), "Select protocol"(UDP) and "Select config file and download"(Free server configs). Choose the nearest country from the three available for the free tariff plan(Japan, Netherlands and United States). Download the config file with settings with the .ovpn extension(for instance, nl-free-01.protonvpn.com.udp.ovpn) Run in terminal or create a script to run:

Code: Select all

openvpn /path_to_configfile/nl-free-01.protonvpn.com.udp.ovpn

Enter the username and password from step two in 666philb's description (in terminal name and password are pasted from the clipboard by pressing the middle mouse button(roller) and although password is not visible, it is inserted) You successfully connected to the Protonvpn servers once you see "Initialization Sequence Completed". Keep terminal open if you ran it not as a script but from the command line, to stay connected to Protonvpn. Go to http://ipleak.net/ if you’d like to ensure that the connection is established and there are no DNS leaks. To disconnect vpn connection press Ctrl+C in terminal and close it.

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

Jess0514
Posts: 7
Joined: Fri Aug 26, 2022 2:48 pm
Has thanked: 7 times
Been thanked: 2 times

Re: Protonvpn for Fossapup

Post by Jess0514 »

Thank you very much. A very detailed tutorial. I am currently using it right now. :thumbup2:

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: Protonvpn for Fossapup

Post by Jasper »

mention]666philb[/mention]

Thank you for your clear and concise instructions. They worked for me as well and I am now connected to the VPN service. I am using FossaPup64.

I do have a slight concern regarding the GUI installation as it does not appear to be fully functional.

Here is the contents of terminal following the last instruction to install the GUI.

Code: Select all


root# pip3 install protonvpn-gui
Collecting protonvpn-gui
  Downloading protonvpn_gui-2.1.1-py3-none-any.whl (6.9 MB)
     |████████████████████████████████| 6.9 MB 795 kB/s 
Requirement already satisfied: protonvpn-cli>=2.2.2 in /usr/local/lib/python3.8/dist-packages (from protonvpn-gui) (2.2.11)
Collecting requests>=2.23.0
  Downloading requests-2.28.1-py3-none-any.whl (62 kB)
     |████████████████████████████████| 62 kB 475 kB/s 
Requirement already satisfied: pythondialog in /usr/local/lib/python3.8/dist-packages (from protonvpn-cli>=2.2.2->protonvpn-gui) (3.5.3)
Requirement already satisfied: distro in /usr/local/lib/python3.8/dist-packages (from protonvpn-cli>=2.2.2->protonvpn-gui) (1.7.0)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.8/dist-packages (from protonvpn-cli>=2.2.2->protonvpn-gui) (3.1.2)
Requirement already satisfied: docopt in /usr/local/lib/python3.8/dist-packages (from protonvpn-cli>=2.2.2->protonvpn-gui) (0.6.2)
Collecting charset-normalizer<3,>=2
  Downloading charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.23.0->protonvpn-gui) (2.8)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests>=2.23.0->protonvpn-gui) (1.25.8)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.23.0->protonvpn-gui) (2019.11.28)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.8/dist-packages (from jinja2->protonvpn-cli>=2.2.2->protonvpn-gui) (2.1.1)
Installing collected packages: charset-normalizer, requests, protonvpn-gui
  Attempting uninstall: requests
    Found existing installation: requests 2.22.0
    Not uninstalling requests at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'requests'. No files were found to uninstall.
Successfully installed charset-normalizer-2.1.1 protonvpn-gui-2.1.1 requests-2.28.1
root# protonvpn-tray

(protonvpn-tray:26950): Gdk-CRITICAL **: 13:57:51.976: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed

After the last line, I do not return to Root# and it simply hangs.

Any suggestions/advice?

User avatar
charlie6
Posts: 44
Joined: Wed Sep 09, 2020 12:59 pm
Location: Namur, Belgium
Has thanked: 5 times
Been thanked: 6 times

[SOLVED possibly] Re: Protonvpn for Fossapup / gui not displaying / gdk criitical

Post by charlie6 »

Hi 666philb,

Tons of thanks for the present howto !
I carefully have followed yout tuto and have also installed the latest bugfixes (running fossapup64)
Here cannot get the protonvpn-gui to display: hereunder is the terminal launch report:
NB: at line 3 I typed Ctrl-C to stop the launch process ( see "^C" and following comments)

Code: Select all

root# protonvpn-tray

(protonvpn-tray:4727): Gdk-CRITICAL **: 12:56:54.125: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
^CTraceback (most recent call last):
  File "/usr/local/bin/protonvpn-tray", line 8, in <module>
    sys.exit(ProtonVPNIndicator())
  File "/usr/local/lib/python3.8/dist-packages/linux_gui/indicator.py", line 67, in __init__
    self.gtk.main()
  File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 1632, in main
    return _Gtk_main(*args, **kwargs)
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/usr/lib/python3/dist-packages/gi/_ossighelper.py", line 251, in register_sigint_fallback
    signal.default_int_handler(signal.SIGINT, None)
KeyboardInterrupt

Thanks for any help!
Best regards, Charlie

last edited: got the same behaviour on a fossapup64 fresh install
last edited might be solved :-) !: have installed protonvpn-menu-entry.pet available on page 1 this thread;
without installation of any extra dep., launching protonvpn-tray from terminal OR selecting in Menu/Network/Protonvpn-gui displays the protonvpns tray icon. Left click on it / select «Show GUI» in the popup box /and you are done: the protonvpns gui got displayed :-)

tray(4).png
tray(4).png (15.12 KiB) Viewed 3947 times
don570
Posts: 688
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 117 times

TOR browser

Post by don570 »

Not sure if this is relevant but the TOR browser allows anonymous browsing in Easy OS.
http://forum.puppylinux.com/viewtopic.p ... acd#p73683
I use a chromebook which has an incognito mode of browsing.
__________________________________________________________

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: Protonvpn for Fossapup

Post by Jasper »

Recently, I am unable to connect to Protonvpn using the CLI.

I read some threads on Reddit and it appears the CLI tool is no longer supported (?)

Or that it requires v3 to be used. They also mention that they are working on v4.

Anyone still using this successfully using the CLI?

Image

Image

Image

User avatar
Subito Piano
Posts: 75
Joined: Fri Sep 04, 2020 6:08 pm
Location: UPSTATE New York
Has thanked: 17 times
Been thanked: 11 times
Contact:

Re: Protonvpn for Fossapup

Post by Subito Piano »

I am running it via OpenVPN. Instructions are on their website. Contacting the Proton people, there is no lack of security doing it this way.

Last edited by Subito Piano on Wed Apr 17, 2024 9:01 pm, edited 1 time in total.

"God is love" - I John 4:16
Member since 2007. Currently running Fossa on a 2012 MacBook Air.
Still using Xenial 32 on my trusty 2007 IBM T60 warhorse. ♥
(A/V Linux for live softsynth needs)

sonny
Posts: 725
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 486 times
Been thanked: 173 times

Re: Protonvpn for Fossapup

Post by sonny »

@Jasper, free VPN services come and go.

As long as you have OpenVPN installed and
@OscarTalks's 'vpn-onoff, plus config files from...

freevpn.png
freevpn.png (61.37 KiB) Viewed 1986 times
vpngate.png
vpngate.png (405.77 KiB) Viewed 1986 times

You can have your own free VPN.

FYI, DARKPUPPY utilizes this approach (using ProtonVPN's GUI).
Just press CTRL+1 and see if the ProtonVPN icon turns blue.

darkpuppy-vpn-icon.png
darkpuppy-vpn-icon.png (2.4 KiB) Viewed 1987 times
User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: Protonvpn for Fossapup

Post by Jasper »

Thank you for the suggestions. :thumbup2:

I will follow this up when I have some more time.

It is strange as it only stopped working approximately 2 weeks ago.

I do not use it all the time, but it is useful to have in the toolbox.

User avatar
Subito Piano
Posts: 75
Joined: Fri Sep 04, 2020 6:08 pm
Location: UPSTATE New York
Has thanked: 17 times
Been thanked: 11 times
Contact:

Re: Protonvpn for Fossapup

Post by Subito Piano »

Proton upgraded their services at that time, it threw me for a loop as it affected all us Linux users who don't/can't use an "official" Linux release, at least those using the old CLI version. It's no longer supported.

"God is love" - I John 4:16
Member since 2007. Currently running Fossa on a 2012 MacBook Air.
Still using Xenial 32 on my trusty 2007 IBM T60 warhorse. ♥
(A/V Linux for live softsynth needs)

Post Reply

Return to “Network/Server”