How to get/make a Porteus module for/from programs for other distro...

Post here if you are a new Porteus member and you're looking for some help.
Maestro
White ninja
White ninja
Posts: 7
Joined: 25 Sep 2020, 20:53
Distribution: All over the place! :)

How to get/make a Porteus module for/from programs for other distro...

Post#1 by Maestro » 25 Sep 2020, 21:07

Running from a Porteus LiveCD.

The software I need to run is only available from here: https://github.com/get-iplayer/get_iplayer/wiki/unixpkg

I have no idea how to install this on Porteus. The CD has some facility to download a module (like a windows installer) but this only seems to be for browsers. It does work though. Wondering how to get the same for the program listed above or find some other way of installing or running it.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2708
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

How to get/make a Porteus module for/from programs for other distro...

Post#2 by ncmprhnsbl » 26 Sep 2020, 05:41

welcome to porteus :)
Maestro wrote:
25 Sep 2020, 21:07
Running from a Porteus LiveCD
what version? (cat /etc/porteus-version)
get_iplayer: there are slackware packages for this out there(although the repo for this seems to be down at the moment)
https://pkgs.org/search/?q=get_iplayer
there's a slackbuild(build script) at https://slackbuilds.org/repository/14.2 ... et_iplayer
with deps listed: perl-JSON, perl-xml-libxml, perl-Mojolicious, AtomicParsley, perl-LWP-Protocol-https
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Maestro
White ninja
White ninja
Posts: 7
Joined: 25 Sep 2020, 20:53
Distribution: All over the place! :)

How to get/make a Porteus module for/from programs for other distro...

Post#3 by Maestro » 08 Oct 2020, 05:35

Thanks for the reply.

cat /etc/porteus-version returns Porteus v5.0 at the terminal.

I have downloaded and unpacked the get_iplayer.tar.gz before, but it is just a few text files. No installer or .xzm module etc.
I presume I need the source tar.gz aswell. Done the download and unpack for that. How to install?

I seem to have had some partial success by using wget following this guide here https://github.com/get-iplayer/get_iplayer/wiki/unix but it still fails to run from the terminal with some kind of perl lib related error or something: HTML:Entities.pm @INC or somesuch, so I have missed something somewhere.

beny
Full of knowledge
Full of knowledge
Posts: 916
Joined: 02 Jan 2011, 11:33
Location: italy

How to get/make a Porteus module for/from programs for other distro...

Post#4 by beny » 08 Oct 2020, 10:18

hi there is a slackbuild for this software:
AtomicParsley
perl-Mojolicious
perl-xml-libxml
perl-JSON
perl-Test-RequiresInternet
perl-Mozilla-CA
perl-www-robotrules
perl-net-http
perl-IO-HTML
perl-lwp-mediatypes
perl-http-date
perl-html-tagset
perl-html-parser
perl-encode-locale
perl-http-message
perl-http-negotiate
perl-http-daemon
perl-http-cookies
perl-file-listing
libwww-perl
perl-LWP-Protocol-https
get_iplayer
you need all this packages to start it.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2708
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

How to get/make a Porteus module for/from programs for other distro...

Post#5 by ncmprhnsbl » 08 Oct 2020, 13:30

here you go: (seems to work ok in porteus 5.0rc2, though not fully tested)
get_iplayer-3.26-x86_64+deps.xzm
not a trivial task, to say the least.. not only are all the above^ needed but they must be built in the correct order, installing as you go, and atomicparsley's slackbuild needed to be fixed..
as well as there being the bug of an essential build time component of perl missing(good to have found)
not something i would wish upon an experienced user, let alone a newby..
to use this module running from livecd, place it some where safe(on some drive), rightclick on it in a filemanager, and choose 'activate'.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2708
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

How to get/make a Porteus module for/from programs for other distro...

Post#6 by ncmprhnsbl » 08 Oct 2020, 23:25

..annd after at that, apparently youtube-dl can also do bbc iplayer downloads :p http://ytdl-org.github.io/youtube-dl/su ... sites.html
and porteus includes a tool to fetch youtube-dl: menu>internet>browser update tool ..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

beny
Full of knowledge
Full of knowledge
Posts: 916
Joined: 02 Jan 2011, 11:33
Location: italy

How to get/make a Porteus module for/from programs for other distro...

Post#7 by beny » 09 Oct 2020, 09:22

hi this software have the geolocation,so i can't use it, 403 bbc access denied

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2708
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

How to get/make a Porteus module for/from programs for other distro...

Post#8 by ncmprhnsbl » 09 Oct 2020, 12:09

yeah, same here, need to be in the UK.. although i think there's some radio programs that aren't geolocked: https://github.com/get-iplayer/get_ipla ... t-can-i-do
Use of get_iplayer outside the UK is not supported, with the exception of downloading lower-quality (96k and 48k) radio programmes that are available to international users.
vpn is also specifically blocked(even within UK)
no idea how youtube-dl fares..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Maestro
White ninja
White ninja
Posts: 7
Joined: 25 Sep 2020, 20:53
Distribution: All over the place! :)

How to get/make a Porteus module for/from programs for other distro...

Post#9 by Maestro » 03 Nov 2020, 19:26

Thanks ever so much for going to the trouble to do this. I suspected it was tricky just from having a go at it myself.

I don`t think Atomic Parsley is necessary as it`s for mp4 headers metadata .

After activating, when I try to run it from the term I get the following error message: Parser.c: loadable library and perl binaries are mismatched (got handshake key 0xed00080, needed 0xcd00080)

Maestro
White ninja
White ninja
Posts: 7
Joined: 25 Sep 2020, 20:53
Distribution: All over the place! :)

How to get/make a Porteus module for/from programs for other distro...

Post#10 by Maestro » 04 Nov 2020, 19:36

After activating the .xzm module.

At the term: Perl -V comes up with: Summary of my perl5 (revision 5 version 30 subversion 0) configuration: and a lot of other details.

From what I've read, it seems to be related to some problem with the version of Perl on the source system that the module was compiled with and the Perl that is running on the target system.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2708
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

How to get/make a Porteus module for/from programs for other distro...

Post#11 by ncmprhnsbl » 04 Nov 2020, 22:59

yeah, there's been more than a year between RC1 and RC2, and a lot has moved on, including perl.
fortunately upgrading to RC2 is relatively trivial: you simply swap out <usb>/porteus/base/{001-core.xzm,002-xorg.xzm,003-<DE>.xzm} (and add 002-xtra.xzm)
the kernel.xzm and <usb>/boot/syslinux/vmlinuz is optional ..
but backup the originals, in case there's a problem( if you have a changes folder or .dat, it's possible there could be a conflict there)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Maestro
White ninja
White ninja
Posts: 7
Joined: 25 Sep 2020, 20:53
Distribution: All over the place! :)

How to get/make a Porteus module for/from programs for other distro...

Post#12 by Maestro » 07 Nov 2020, 04:55

Ah, I see. I'm using rc1 which seems to stand for "release candidate". By that does it mean that v5.0 is not the one that is for general use?

Is there any way to update perl running from the live CD, either using an .xzm, the package manager or from the term? Before I started this thread I was having a go at that from the term using some perl related wget commands but it didn't quite work. If not, I presume I have to download and burn v5.0rc2 to a CD for the .xzm module to work.

User avatar
Ed_P
Contributor
Contributor
Posts: 5798
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 & 5.0rc2 Cinnamon 64 ISOs
Location: Western NY, USA

How to get/make a Porteus module for/from programs for other distro...

Post#13 by Ed_P » 07 Nov 2020, 06:31

Maestro wrote:
07 Nov 2020, 04:55
Ah, I see. I'm using rc1 which seems to stand for "release candidate". By that does it mean that v5.0 is not the one that is for general use?
It means 5.0 is still in development, bugs exist and are being worked on. rc2 has less bugs but still some. The non-rc release is 4.0.
I presume I have to download and burn v5.0rc2 to a CD for the .xzm module to work.
You could boot the ISO download using grub2 or you could install it to a flash drive.
Ed

Maestro
White ninja
White ninja
Posts: 7
Joined: 25 Sep 2020, 20:53
Distribution: All over the place! :)

How to get/make a Porteus module for/from programs for other distro...

Post#14 by Maestro » 10 Nov 2020, 02:33

Burned v5.0rc2 cinnamon to CDR and booted it. Activated the .xzm module. Typed get_iplayer at the term and got this:

Can't locate XML/LibXML.pm in @INC (you may need to install the XML::LibXML module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/bin/get_iplayer line 3367.
BEGIN failed--compilation aborted at /usr/bin/get_iplayer line 3367.

User avatar
Rava
Contributor
Contributor
Posts: 2682
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 5.0rc1 x86-64 XFCe
Location: Forests of Germany

How to get/make a Porteus module for/from programs for other distro...

Post#15 by Rava » 10 Nov 2020, 03:09

ncmprhnsbl wrote:
08 Oct 2020, 23:25
..annd after at that, apparently youtube-dl can also do bbc iplayer downloads :p http://ytdl-org.github.io/youtube-dl/su ... sites.html
and porteus includes a tool to fetch youtube-dl: menu>internet>browser update tool ..
as discussed elsewhere due to the RIAA takedown http://ytdl-org.github.io/youtube-dl/su ... sites.html only shows this
404

There isn't a GitHub Pages site here.

If you're trying to publish one, read the full documentation to learn how to set up GitHub Pages for your repository, organization, or user account.
more info RIAA has done a dmca takedown on youtube-dl source..
Cheers!
Yours Rava

Post Reply