snap (snapd)

If you are looking for a specific 64-bit package and you can't find it in any of the 64-bit repos, please post a request for it here
Post Reply
rych
Samurai
Samurai
Posts: 158
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 4.0 64 LXDE
Location: NZ

snap (snapd)

Post#1 by rych » 15 Jul 2018, 13:02

Could someone please help me make my Porteus snap-ready if possible? It's installable on linux
https://docs.snapcraft.io/core/install, I hope it can be installed on porteus too.

The software I've been trying to install, krop, which I need to crop my pdf pages, is offered as a snap. Otherwise I've spent 2 days already trying to install requirements for krop: python3 (easy using miniconda), pyqt5 (okay), python-poppler-qt5 and that's where I hit the wall. And that's not even the last dependency. Also the python 3 folder is now 1GB. I hope going the snap bundle way will be easier and more economical.

(I'd also be interested to know how people crop pdf pages otherwise, or to find a krop porteus module -- but it's perhaps too exotic)

tome
Contributor
Contributor
Posts: 633
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

snap (snapd)

Post#2 by tome » 16 Jul 2018, 08:25

I tried someday installing anbox, but it requires to much time for me.
rych wrote:
15 Jul 2018, 13:02
I'd also be interested to know how people crop pdf pages otherwise
I use EBookDroid - pdf book reader for Android. I can upload my taps settings if you wish.
No intelligence, no life and no information can exist without prior intelligence, life or information (in place where things change and time is running).

fulalas
DEV Team
DEV Team
Posts: 1425
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

snap (snapd)

Post#3 by fulalas » 18 Jul 2018, 01:36

Python dependencies are hell! Image

What about using Acrobat with Wine? A friend of mine told me recently that it works.

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

snap (snapd)

Post#4 by ncmprhnsbl » 19 Jul 2018, 08:26

here's one to try: pdfshuffler-0.6.0+deps-x86_64.xzm 692 KB
it's pretty basic ie cropping requires entering percentages into boxes..(have your ruler handy ;) )
module contains:

Code: Select all

PyPDF2-1.26.0-x86_64-1_SBo.tgz
pdfshuffler-0.6.0-x86_64-4_slonly.txz
pygobject-2.28.7-x86_64-2.txz
pypoppler-0.12.1-x86_64-4_SBo.tgz
notes:
PyPDF2 and pypoppler needed to be build against icu4c and poppler versions present in porteus
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Samurai
Samurai
Posts: 158
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 4.0 64 LXDE
Location: NZ

snap (snapd)

Post#5 by rych » 21 Jul 2018, 05:56

fulalas wrote:
18 Jul 2018, 01:36
What about using Acrobat with Wine?
I've tried a couple of Acrobat portable solutions. Both kind of work until it comes to the inner dialogs where the GUI is useless maybe due to fonts/DPI incompatibility with my wine (wine-3.11-x86_64-1sg.xzm, 0050-compat32-multilib-ftw.xzm)
Image Image
So, @fulalas, thanks, but perhaps your friend also knows how to deal with Adobe's peculiar fonts/GUI on Wine?!

Until then I'm going to concentrate on sorting out python3 packages in hope to get the krop and pdfshuffler working... I'll be posting my progress/problems here.

(It's interesting that no one is even commenting on snapd -- I guess that's not promising at all)

tome
Contributor
Contributor
Posts: 633
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

snap (snapd)

Post#6 by tome » 22 Jul 2018, 18:24

I was able to run krop.krop-app but it requires some modifications:
1. Working kernel (I used kernel from slax based on debian) because /sys/cgroups/freezer was missing, this kernel doesn't work with porteus initrd, all .xzm was renamed to slax .sb.
2. Systemd must be started at boot - default in aporteus from neko (snaps require many mounts - main problem)
4. I used snapd from Manjaro repo.
5. Download size was ca 90MB core.snap and 90MB krop.snap (.snap can be renamed to .xzm to see what is inside)
6. systemd for slackware - https://github.com/Dlackware/systemd
7. snapd without systemd on potreus slackware allows only download snaps but not install
Image
https://www.dropbox.com/s/vms03x1hgks00 ... 8.png?dl=1

krop is also available via slakfinder.org but I don't know to handle it with python.
No intelligence, no life and no information can exist without prior intelligence, life or information (in place where things change and time is running).

rych
Samurai
Samurai
Posts: 158
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 4.0 64 LXDE
Location: NZ

snap (snapd)

Post#7 by rych » 28 Jul 2018, 05:54

ncmprhnsbl, thanks for the pdfshuffler-0.6.0+deps-x86_64.xzm. It works and crops! Which is remarkable given the time I've spent so far just trying to even install (prerequisites to) another python program, krop. It freezes often when I click too much on the GUI, so needs a fresh restart every now and then. But, actually on my system even PCManFM freezes sometimes. Another problem with pdfshuffler is that it throws away all the bookmarks when it saves the cropped file. Also, it's a python 2.7 module. Anyway, thank you so much.

tome, that's astonishing that you've managed to make snapd work given the modifications you had to use. I couldn't imagine it was going to be so serious. With that complexity it's way too difficult for me. Not sure if snapd has a useful future on porteus. Thanks for investigating.

My own progress is lacking. I've tried different approaches to python3 installation, and chasing python dependencies, and anyway I get stuck at poppler-qt5 -- there is no ready binary for python 3.6 so I have to build it myself. Which proves to be a project on its own. I'm not sure I can tackle it at this stage without spending a lot of time.

User avatar
n0ctilucient
Warlord
Warlord
Posts: 512
Joined: 21 Apr 2017, 15:59
Distribution: fullmoonremix
Location: 127.0.0.1
Contact:

snap (snapd)

Post#8 by n0ctilucient » 28 Jul 2018, 19:36

Hi rych...

Python (3.6.5) @...
http://slakfinder.org/show.php?pkg=1617902

Depfinder (eg. depfinder -a -j2 -p -s "nameofpackage") can help you find
deps that you can download from slakfinder.org instead of pkgs.org...
http://slakfinder.org/show.php?pkg=1531654
:hmmm: I do NOT have the "right" to tell anyone what they should do...
but I reserve the "right" to tell them what they should "consider".

Post Reply