LinHES Forums
http://forums.linhes.org/

how do i install OpenVPN Client?
http://forums.linhes.org/viewtopic.php?f=14&t=24777
Page 1 of 3

Author:  caymann [ Mon Aug 20, 2018 2:50 pm ]
Post subject:  how do i install OpenVPN Client?

looking to install an debian linux package such as "something.deb"
Under ubuntu, i used
# sudo dpkg -i something.deb

how do i do this in linhes?
jim

Author:  knappster [ Tue Aug 21, 2018 5:32 am ]
Post subject:  Re: how do i install a debian packge?

The short answer is that you cant install debian packages in linhes because it is an arch based distro. The developers would probably also discourage installing arch packages from the main repository because it was not compiled for linhes specifically and it could cause issues.

The best practice would probably be to use a PKGBUILD file to download and compile the package and then install it with pacman. The Arch repository typically has PKGBUILD files for packages and it can be downloaded and tweaked if necessary for linhes. If you share the name of the program, I could try to assist with this if you would like.

Author:  caymann [ Tue Aug 21, 2018 9:26 am ]
Post subject:  Re: how do i install OpenVPN client?

It is a vpn package in debian
So there is no public source code

Alternately, is there something available for openvpn ?
I am not seeing this here: http://linhes.org/repo/src_packages/

Author:  tscholl [ Tue Aug 21, 2018 1:23 pm ]
Post subject:  Re: how do i install a debian packge?

You'll probably need to look for Arch Linux Open VPN here.

Author:  caymann [ Wed Aug 22, 2018 8:30 am ]
Post subject:  Re: how do i install OpenVPN client?

Sorry but i am not able to get this working.
I only need openvpn client. I don't need openvpn server.

Here's what i have tried...

1. Download Openvpn to /tmp > https://www.archlinux.org/packages/?name=openvpn
This downloads openvpn-2.4.6-1-x86_64.pkg.tar.xz

2. Unpack to /tmp> tar xf openvpn-2.4.6-1-x86_64.pkg.tar.xz
This creates files and directories in /tmp/etc/
and creates files and directories in /tmp/usr/

3. I try to run: sudo /tmp/usr/openvpn
I get an error...
openvpn: error while loading shared libraries: libpkcs11-helper.so.1: cannot open shared object file: No such file or directory

Anyway, i think i am stuck.

Any help? Maybe a tutorial?

thanks
jim

Author:  knappster [ Thu Aug 23, 2018 7:34 pm ]
Post subject:  Re: how do i install OpenVPN Client?

Caymann, I will try to look into this over the weekend. If linhes has all of the dependencies then hopefully it just needs to be compiled from source. If so, I can upload the package after compilation and post a link for you. I am assuming you are using linhes 8.5.2.

Author:  caymann [ Thu Aug 23, 2018 7:35 pm ]
Post subject:  Re: how do i install OpenVPN Client?

thank you
yes i am using latest 8.5.2

Author:  knappster [ Sat Aug 25, 2018 6:11 am ]
Post subject:  Re: how do i install OpenVPN Client?

caymann wrote:
thank you
yes i am using latest 8.5.2

I've just built this using 8.5.2. There is one dependency that is required as well. You should be able to download both packages from here:
https://drive.google.com/open?id=1ZUUgc ... mXXKQT427n

Essentially I've just downloaded the PKGBUILD files from the arch repository and compiled them for LinHES. I was able to install both packages, but I don't really have a way to test them.

In order to install the packages, you will just need to download them and from the directory they are in use:
Quote:
sudo pacman -U pkcs11-helper-1.23-1-x86_64.pkg.tar.xz
sudo pacman -U openvpn-2.4.6-1-x86_64.pkg.tar.xz


Let me know if you have any trouble.

Author:  caymann [ Sat Aug 25, 2018 7:28 am ]
Post subject:  Re: how do i install OpenVPN Client?

Thank you knappster

Installation done, but same error as before...

sudo openvpn --config clientvpn.ovpn
openvpn: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

I am guessing there is some dependency on openssl where libcrypto.so.1.1 resides?
pacman -S openssl shows

In my case it shows : package core/openssl 1.0.2.g-3

Author:  knappster [ Sat Aug 25, 2018 8:04 am ]
Post subject:  Re: how do i install OpenVPN Client?

caymann, I've installed a number of other packages for kodi and I know there were some cryptography packages included. Do you have a file named /usr/lib/libcrypto.so.1.1?

What is your output of:
Code:
pacman -Ss openssl

Author:  knappster [ Sat Aug 25, 2018 8:11 am ]
Post subject:  Re: how do i install OpenVPN Client?

caymann wrote:
In my case it shows : package core/openssl 1.0.2.g-3


Try
Code:
sudo pacman -Sy openssl

I am using the testing repos which are on 1.1.0.g-1. I will be kind of surprised if the production repos aren't on the same. Let's make sure you have the latest openssl package installed first before deciding if you need to change your sources for pacman.

Author:  knappster [ Sat Aug 25, 2018 8:57 am ]
Post subject:  Re: how do i install OpenVPN Client?

I just looked at the LinHES repository and it is still on 1.0.2g.

I upgraded to the testing repos a few months ago and just assumed that the main repositories had been updated by now. You could upgrade to testing if you want, but I will warn you that it changes a number of packages and I had to rebuild some packages that are not in the repository due to dependency changes. Alternatively, you can compile the packages on your machine and see if it will work with older dependencies. The steps are pretty straightforward:
Save this text as PKGBUILD (or wget this URL and rename it to PKGBUILD)
https://git.archlinux.org/svntogit/pack ... es/openvpn

Code:
gpg --recv-keys F554A3687412CFFEBDEFE0A312F5F7B42F2B01E7
makepkg


If there aren't any errors, then you should be able to install the package as before. If there is a problem with the pkcs11-helper then you can download the PKGBUILD and compile it as well:

https://git.archlinux.org/svntogit/pack ... s11-helper
Code:
makepkg


Due to the older version of openssl I am not sure what to expect from this, but let me know if there are additional errors. If you install it all this way and then update to the testing repos, you may have to compile them again afterward, because the dependencies (like openssl) will change. This is the danger of installing packages outside of the repository. If there is a demand for it, then it would probably be better to request that brfransen add them to the official repository so that it doesn't result in conflicts on systems later.

Author:  caymann [ Mon Aug 27, 2018 5:18 am ]
Post subject:  Re: how do i install OpenVPN Client?

I guess i screwed up somewhere in openssl 1.1 upgrading that broke various links, dependencies and linhes crashed.
After reboot it won't connect to the backend. I gave up and just reinstalled linhes.
I learned that i am not the expert for changing repositories, linking, compiling etc.
Unfortunately, i didn't make any progress.

It would be nice to have a openvpn package that just works.
thanks
jim

Author:  knappster [ Sat Sep 01, 2018 2:39 pm ]
Post subject:  Re: how do i install OpenVPN Client?

caymann, I am going to try to install a virtual machine with the production repos and rebuild openvpn from there. I will let you know the outcome.

Author:  knappster [ Sat Sep 01, 2018 7:46 pm ]
Post subject:  Re: how do i install OpenVPN Client?

caymann, can you try the same packages, but from the following link? I've tried compiling them from the production repos instead of testing. I tried downgrading a virtual machine, so if it still doesn't work, I will try a fresh install and recompile.
https://drive.google.com/drive/folders/ ... sp=sharing

Page 1 of 3 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/