Page 1 of 2

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

Posted: 25 Sep 2020, 21:07
by Maestro
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.

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

Posted: 26 Sep 2020, 05:41
by ncmprhnsbl
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

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

Posted: 08 Oct 2020, 05:35
by Maestro
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.

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

Posted: 08 Oct 2020, 10:18
by beny
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.

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

Posted: 08 Oct 2020, 13:30
by ncmprhnsbl
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'.

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

Posted: 08 Oct 2020, 23:25
by ncmprhnsbl
..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 ..

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

Posted: 09 Oct 2020, 09:22
by beny
hi this software have the geolocation,so i can't use it, 403 bbc access denied

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

Posted: 09 Oct 2020, 12:09
by ncmprhnsbl
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..

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

Posted: 03 Nov 2020, 19:26
by Maestro
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)

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

Posted: 04 Nov 2020, 19:36
by Maestro
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.

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

Posted: 04 Nov 2020, 22:59
by ncmprhnsbl
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)

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

Posted: 07 Nov 2020, 04:55
by Maestro
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.

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

Posted: 07 Nov 2020, 06:31
by Ed_P
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.

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

Posted: 10 Nov 2020, 02:33
by Maestro
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.

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

Posted: 10 Nov 2020, 03:09
by Rava
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..