Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Private Internet Access GUI [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 24

PostPosted: Sat Mar 09, 2024 1:53 pm    Post subject: Private Internet Access GUI [solved] Reply with quote

I've tried to get the PIA GUI to work with OpenRC but no luck. I have it working with Void Linux's Runit init system and was thinking if I could somehow add the Runit system working with OpenRC. The wiki page https://wiki.gentoo.org/wiki/Runit says:
Quote:
It can be used as alternative to sysvinit or systemd, either by itself or in conjunction with OpenRC. It can also be used as a helper for supervising OpenRC services.


The way it works with Void is descripted in Reddit https://www.reddit.com/r/voidlinux/comments/ot3du9/how_to_install_private_internet_access_on_void
1. Run bash pia-linux-x-x.run -- --skip-service
this gives error on Gentoo:
Code:

bash pia-linux-3.5.1-07760.run -- --skip-service
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing Private Internet Access  100% 

=================================
Private Internet Access Installer
=================================

Installing PIA for x86_64, system is x86_64
✘ Build is not compatible with this system.
/tmp/selfgz890631105/piafiles/bin/piactl --version
/tmp/selfgz890631105/piafiles/bin/piactl: error while loading shared libraries: libgssapi_krb5.so.2: cannot open shared object file: No such file or directory

This upgrade does not appear to be compatible with this system.
If this is an older distribution, it may no longer be supported.

The PIA installation will not be modified.
You can stop receiving update notifications if this distribution is out of support.
Stop receiving update notifications? [y/N]


2. Create a file /etc/sv/piavpn/run
Code:

#!/bin/sh
exec /opt/piavpn/bin/pia-daemon


3. chmod +x /etc/sv/piavpn/run

4. ln -s /etc/sv/piavpn /var/service

sv start piavpn + launch the app.

So how should I add the runit to run the PIA app or is there any other way? I can connect PIA with their cli script but it's not so intuitive to use.


Last edited by tedlasso on Sun Mar 10, 2024 11:25 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54572
Location: 56N 3W

PostPosted: Sat Mar 09, 2024 2:21 pm    Post subject: Reply with quote

tedlasso,

Code:
bash pia-linux-3.5.1-07760.run
installs random files all over your gentoo install, potentally overwriting files installed and managed by portage.
That's a very bad thing for the rest of your system.

If it installs to /opt, or /usr/local, it should "mostly harmless".

Its complaining about a missing dependency.
Code:
error while loading shared libraries: libgssapi_krb5.so.2:

You need to provide that.

Searching https://www.portagefilelist.de/ for libgssapi_krb5* shows that its provided by
Code:
app-crypt/mit-krb5
in gentoo, so you need to install that package.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 24

PostPosted: Sat Mar 09, 2024 6:36 pm    Post subject: Reply with quote

Thank you Neddy! I'll try if installing that package helps. And thanks for the heads up on the script installing random files. I'll try it on a spare computer for a while to see if anything breaks. I know it's not a good practice to use some scripts instead of Portage.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54572
Location: 56N 3W

PostPosted: Sat Mar 09, 2024 6:44 pm    Post subject: Reply with quote

tedlasso,

Try the -h or --help option. It may give you an install path option.

It may have several missing libraries too. You will discover them one at a time.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 24

PostPosted: Sun Mar 10, 2024 11:24 am    Post subject: Reply with quote

update: I emerged the
Code:
app-crypt/mit-krb5

and then proceeded with
Code:
bash pia-linux-3.5.1-07760.run -- --skip-service

Quote:
Verifying archive integrity... 100% MD5 checksums are OK. All good.
Uncompressing Private Internet Access 100%

=================================
Private Internet Access Installer
=================================

Installing PIA for x86_64, system is x86_64
✔ Copied Private Internet Access files
✔ Allow non-root /opt/piavpn/bin/pia-unbound to bind to privileged ports
✔ Created var folder
✔ Installed icon
✔ Created desktop entry
✔ Finished. You will need to manually configure /opt/piavpn/bin/pia-daemon to start at boot.


Code:
pete@gentoo ~/Downloads $ sudo mkdir /etc/sv
pete@gentoo ~/Downloads $ sudo mkdir /etc/sv/piavpn
pete@gentoo ~/Downloads $ sudo touch /etc/sv/piavpn/run
pete@gentoo ~/Downloads $ sudo nano /etc/sv/piavpn/run


this it the /etc/sv/piavpn/run file:

Code:
#!/bin/sh
exec /opt/piavpn/bin/pia-daemon


Code:

pete@gentoo ~/Downloads $ sudo chmod +x /etc/sv/piavpn/run
pete@gentoo ~/Downloads $ sudo ln -s /etc/sv/piavpn /var/service
pete@gentoo ~/Downloads $ rc-service piavpn start
 * piavpn: superuser access required
pete@gentoo ~/Downloads $ sudo !!
sudo rc-service piavpn start
 * Caching service dependencies ...                                       [ ok ]
 * Starting piavpn ...                                                    [ ok ]



and the GUI works! Thank you Neddy!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54572
Location: 56N 3W

PostPosted: Sun Mar 10, 2024 11:57 am    Post subject: Reply with quote

tedlasso,

Code:
/opt/piavpn/...
that looks like a well behaved binary install too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 24

PostPosted: Sat Mar 16, 2024 9:29 am    Post subject: Reply with quote

a quick update: the PIA GUI doesn't work anymore. I've given up with the GUI and just use cli to enable PIA WG
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54572
Location: 56N 3W

PostPosted: Sat Mar 16, 2024 12:03 pm    Post subject: Reply with quote

tedlasso,

Quote:
doesn't work anymore
is not a good bug report. For us to help fix it, we need to know what it does do.

As its installed outside of portage, keeping the dependencies it needs is your problem.
We already identified app-crypt/mit-krb5 as not being installed at all.

Its quite possible that portage has removed another library as you system does not need it or updated something to an incompatible version.
The error message from PIA will give more information.

Try starting the GUI from a terminal window if you don't get an error message.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tedlasso
n00b
n00b


Joined: 27 Oct 2023
Posts: 24

PostPosted: Wed Mar 20, 2024 4:53 pm    Post subject: Reply with quote

Hi Neddy,

sorry for my late reply. I've opened a ticket to Private Internet Access and they informed that they don't have plans to make the GUI work with OpenRC anytime soon. So I gave up trying to use the app.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum