View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 31 posts ] 
Go to page 1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Aug 20, 2018 2:50 pm 
Offline
Joined: Tue Mar 27, 2018 12:02 pm
Posts: 40
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


Last edited by caymann on Wed Aug 22, 2018 11:10 am, edited 1 time in total.


Top
 Profile  
 
PostPosted: Tue Aug 21, 2018 5:32 am 
Offline
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
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.


Top
 Profile  
 
PostPosted: Tue Aug 21, 2018 9:26 am 
Offline
Joined: Tue Mar 27, 2018 12:02 pm
Posts: 40
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/


Last edited by caymann on Wed Aug 22, 2018 11:11 am, edited 1 time in total.


Top
 Profile  
 
PostPosted: Tue Aug 21, 2018 1:23 pm 
Offline
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location: Lexington, Ky
You'll probably need to look for Arch Linux Open VPN here.


Top
 Profile  
 
PostPosted: Wed Aug 22, 2018 8:30 am 
Offline
Joined: Tue Mar 27, 2018 12:02 pm
Posts: 40
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


Top
 Profile  
 
PostPosted: Thu Aug 23, 2018 7:34 pm 
Offline
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
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.


Top
 Profile  
 
PostPosted: Thu Aug 23, 2018 7:35 pm 
Offline
Joined: Tue Mar 27, 2018 12:02 pm
Posts: 40
thank you
yes i am using latest 8.5.2


Top
 Profile  
 
PostPosted: Sat Aug 25, 2018 6:11 am 
Offline
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
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.


Top
 Profile  
 
PostPosted: Sat Aug 25, 2018 7:28 am 
Offline
Joined: Tue Mar 27, 2018 12:02 pm
Posts: 40
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


Top
 Profile  
 
PostPosted: Sat Aug 25, 2018 8:04 am 
Offline
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
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


Top
 Profile  
 
PostPosted: Sat Aug 25, 2018 8:11 am 
Offline
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
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.


Top
 Profile  
 
PostPosted: Sat Aug 25, 2018 8:57 am 
Offline
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
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.


Top
 Profile  
 
PostPosted: Mon Aug 27, 2018 5:18 am 
Offline
Joined: Tue Mar 27, 2018 12:02 pm
Posts: 40
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


Top
 Profile  
 
PostPosted: Sat Sep 01, 2018 2:39 pm 
Offline
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
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.


Top
 Profile  
 
PostPosted: Sat Sep 01, 2018 7:46 pm 
Offline
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ] 
Go to page 1, 2, 3  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu