linux-app icon indicating copy to clipboard operation
linux-app copied to clipboard

OpenSuse RPM package is missing

Open Alex-1357 opened this issue 4 years ago • 37 comments

Hello guys. OpenSuse is most popular Linux distribution in Europe and has only little bit less popularity than Ubuntu in the world. I'm don't understand why you ignore millions and millions Linux users? Is so hard for developer to create RPM installation package?

Alex-1357 avatar Jul 11 '21 10:07 Alex-1357

I'm going to fix your request:

Hello guys. OpenSUSE is the most popular Linux distribution in Europe and has only a little bit less popularity than Ubuntu in the world. Please consider creating an RPM installation package for OpenSUSE. It would make millions of Linux users very happy.

bartbutler avatar Jul 11 '21 11:07 bartbutler

Anyone can submit a package to openSUSE to be included in the official repositories. There's already a spec file in this repo, half work done.

@calexandru2018 I noticed that you tried to pack it for openSUSE a while ago, do you need any help? I can pack it in OBS.

Even though this package is OSS, I believe it could end up in openSUSE:Factory:NonFree as ProtonVPN is not free.

alexandrevicenzi avatar Jul 20 '21 17:07 alexandrevicenzi

We have free tier, does that not count?

bartbutler avatar Jul 20 '21 17:07 bartbutler

I'm not sure, there's no "VPN providers" packages in openSUSE, just openvpn, wireguard and similar.

I would need to ask where is the best place to put this if the intention is to be an official package under openSUSE repositories.

alexandrevicenzi avatar Jul 20 '21 17:07 alexandrevicenzi

Got it, thanks.

bartbutler avatar Jul 20 '21 17:07 bartbutler

@calexandru2018 I noticed that you tried to pack it for openSUSE a while ago, do you need any help? I can pack it in OBS.

@alexandrevicenzi Where did you see that ?

calexandru2018 avatar Jul 22 '21 08:07 calexandru2018

@calexandru2018 I noticed that you tried to pack it for openSUSE a while ago, do you need any help? I can pack it in OBS.

@alexandrevicenzi Where did you see that ?

Here https://build.opensuse.org/package/show/home:calexandru2018/protonvpn-linux-gui

alexandrevicenzi avatar Jul 22 '21 14:07 alexandrevicenzi

@alexandrevicenzi that is actually the legacy GUI, which is based on the community CLI.

Once we get added to official fedora repo we'll be able to easily support openSUSE (I suspect). And we're working on being official on fedora repos, although given the nature of things it takes time so we have no ETA at this point.

calexandru2018 avatar Jul 22 '21 15:07 calexandru2018

I added all packages to my home project in OBS. python-proton-client and python-protonvpn-nm-lib I submitted to devel:languages:python, protonvpn-gui I'll submit somewhere once the dependencies are accepted, otherwise the package will be broken.

Fedora may use RPMs as well, but openSUSE build system has its own perks.

https://build.opensuse.org/package/show/home:avicenzi/protonvpn-gui https://build.opensuse.org/package/show/home:avicenzi/python-proton-client https://build.opensuse.org/package/show/home:avicenzi/python-protonvpn-nm-lib

protonvpn-opensuse

alexandrevicenzi avatar Jul 23 '21 15:07 alexandrevicenzi

Correct @alexandrevicenzi but from the fedora system, the opensuse packages are actually built automatically and once approved, they're added to the official repositories. That's the benefit, since it's centralized.

calexandru2018 avatar Jul 28 '21 11:07 calexandru2018

The GUI in openSUSE has some issues compared to the one in Ubuntu, I'm currently investigating some odd behaviors.

alexandrevicenzi avatar Jul 28 '21 13:07 alexandrevicenzi

@alexandrevicenzi Hi, I'm using your repo for protonvpn-gui, python-proton-client and python-protonvpn-nm-lib . There's no protonvpn-cli so I used the older version of it from https://build.opensuse.org/package/show/home%3Aahjolinna/protonvpn-cli

BTW, your version of protonvpn-gui is outdated too. The latest version as of I'm writing is 1.2.0

Dyrimon avatar Aug 21 '21 04:08 Dyrimon

Packages python-proton-client and python-protonvpn-nm-lib are in Factory, currently available for Tumbleweed only.

https://build.opensuse.org/package/show/openSUSE:Factory/python-proton-client https://build.opensuse.org/package/show/openSUSE:Factory/python-protonvpn-nm-lib

protonvpn-gui still has some issues that I need to fix, once I have time I'll do that and submit the package.

alexandrevicenzi avatar Aug 23 '21 09:08 alexandrevicenzi

Hei,

No protonvpn-cli for Leap 15.3 yet?

oldcastlehq avatar Aug 29 '21 08:08 oldcastlehq

Hei,

No protonvpn-cli for Leap 15.3 yet?

You could install protonvpn-cli using pip.

dariusc93 avatar Sep 23 '21 18:09 dariusc93

Anyluck on the package for opensuse, would be really appreciate having an native app.

skybreakerrd avatar Sep 27 '21 15:09 skybreakerrd

Hello all, is there any progress on this topic?

osm-frasch avatar Oct 25 '21 19:10 osm-frasch

The protonvpn-gui package was submitted to openSUSE Factory, if approved will be available in Tumbleweed.

I would need to submit all packages and dependencies to Leap 15.3 to be available there, once approved I'll take a look into that, but can't guarantee that it will be in 15.3, perhaps only 15.4.

alexandrevicenzi avatar Oct 26 '21 21:10 alexandrevicenzi

Hi there, thanks for the efforts to include the OpenSUSE users in the mix! However, I tried to install the packages you have provided on latest Tumbleweed w/ KDE Plasma (5.23.4) - no luck there.

I keep getting: ValueError: Namespace Gtk not available when trying to run it, yet I've got all dependencies needed.

bionicworx avatar Dec 24 '21 10:12 bionicworx

@alexandrevicenzi any progress on this? I've got the CLI version 3.11.0 to run by modifying the .spec file for the OpenSUSE package names, but the GUI version 1.7.0 can't be run that way and throws an AttributeError: 'APISession' object has no attribute 'delinquent'.

UPD: problem solved by updating the library to 3.7.0 (packages here), had to hack the .spec file to bypass the tests on the library because they try to make network access which OBS blocks during builds.

phrxmd avatar Dec 30 '21 19:12 phrxmd

@alexandrevicenzi Thank you so much for packing this for openSUSE!

There are a few issues with the protonvpn-gui package I have found so far:

  1. typelib-1_0-WebKit2-4_0 is not marked as a dependency. This package is actually needed to run protonvpn, so I think you should add it.
  2. I am getting an excessive amount of password prompts with the standard polkit policy (I have to type my password in like 4 times everytime I try to connect to the VPN). I did try putting it to easy mode, but it made no differences. I think this might have to do with openSUSE policies itself, but I am not sure. It would be great if you could somehow help eliminate the password prompts (like how it is on Fedora) or at least reduce the number of prompts there are.

I am testing this on openSUSE MicroOS.

TommyTran732 avatar Dec 31 '21 07:12 TommyTran732

2. I am getting excessive amount of password prompt with the standard polkit policy (I have to type my password in like 4 times everytime I try to connect to a VPN). I did try putting it to easy mode, but it made no differences. I think this might have to do with openSUSE policies itself, but I am not sure. It would be great if you could somehow help eliminate the password prompts (like how it is on Fedora) or at least reduce the number of prompts there are.

Relevant: https://github.com/ProtonVPN/linux-cli/issues/42#issue-955693989

Dyrimon avatar Dec 31 '21 07:12 Dyrimon

@tommytran732 what happens if you do this:

printf "\npolkit.addRule(function(action, subject) {\n\tif (action.id.indexOf('org.freedesktop.NetworkManager.') == 0 && subject.isInGroup('users')) {\n\t\treturn polkit.Result.YES;\n\t}\n});\n" | sudo tee /etc/polkit-1/rules.d/20-protonvpn.rules

That should give you apolkit exception for NetworkManager for all regular user accounts.

phrxmd avatar Dec 31 '21 16:12 phrxmd

@tommytran732 what happens if you do this:

printf "\npolkit.addRule(function(action, subject) {\n\tif (action.id.indexOf('org.freedesktop.NetworkManager.') == 0 && subject.isInGroup('users')) {\n\t\treturn polkit.Result.YES;\n\t}\n});\n" | sudo tee /etc/polkit-1/rules.d/20-protonvpn.rules

That should give you apolkit exception for NetworkManager for all regular user accounts.

Doesn't seem to fix it. Do I need to run any other command to load the polkit rules in? I did try rebooting but it made no differences.

TommyTran732 avatar Jan 01 '22 15:01 TommyTran732

@alexandrevicenzi Hi, I just wanted to ask if there is any further progress regarding Protonvpn-Gui as official -.rpm for Tumbleweed? It would be really cool if Opensuse would be in front of it

osm-frasch avatar Mar 02 '22 10:03 osm-frasch

@osm-frasch hi, the package is currently experimental and can be added easily see: https://software.opensuse.org/package/protonvpn-gui

I still need to update a few things, once I do that, I'll send it to Factory and if accepted it will be available in TW.

I did not have the time recently, but hopefully, I can get back to it soon.

alexandrevicenzi avatar Mar 03 '22 10:03 alexandrevicenzi

Hey @alexandrevicenzi any updates on getting the package to TW from factory ? I really appreciate your efforts !

Afsalmc avatar Apr 05 '22 09:04 Afsalmc

The package is available in development repositories, not in Factory yet.

For TW:

zypper addrepo https://download.opensuse.org/repositories/network:vpn/openSUSE_Tumbleweed/network:vpn.repo

For Leap 15.3:

zypper addrepo https://download.opensuse.org/repositories/network:vpn/openSUSE_Leap_15.3/network:vpn.repo

After just refresh and install.

zypper refresh
zypper install protonvpn-gui

Once the package is accepted in Factory I'll post it here.

alexandrevicenzi avatar Apr 07 '22 07:04 alexandrevicenzi

@alexandrevicenzi Thank you, works perfectly. Except for the Polkit rules. After I applied the Polkit rules as shown by @tommytran732, the GUI runs without the root password query. So now we just have to wait until the whole thing is included in Factory ...and until Wireguard is finally implemented and the whole thing becomes snappy ;-)

osm-frasch avatar Apr 07 '22 09:04 osm-frasch

Not sure if any of you are aware but there are going to be some changes (no ETA at this point though). Please read more here: https://github.com/ProtonVPN/linux-cli/issues/64

calexandru2018 avatar Apr 07 '22 09:04 calexandru2018