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)
snap (snapd)
-
- Contributor
- Posts: 633
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Poland
- Contact:
snap (snapd)
I tried someday installing anbox, but it requires to much time for me.
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).
snap (snapd)
Python dependencies are hell! 
What about using Acrobat with Wine? A friend of mine told me recently that it works.

What about using Acrobat with Wine? A friend of mine told me recently that it works.
- ncmprhnsbl
- DEV Team
- Posts: 2263
- Joined: 20 Mar 2012, 03:42
- Distribution: 5.0rc1-64bit all-DE+more
- Location: australia
- Contact:
snap (snapd)
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:
notes:
PyPDF2 and pypoppler needed to be build against icu4c and poppler versions present in porteus
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
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
snap (snapd)
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)


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)
-
- Contributor
- Posts: 633
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Poland
- Contact:
snap (snapd)
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

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.
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

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).
snap (snapd)
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.
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.
- n0ctilucient
- Warlord
- Posts: 531
- Joined: 21 Apr 2017, 15:59
- Distribution: fullmoonremix
- Location: 127.0.0.1
- Contact:
snap (snapd)
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
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

but I reserve the "right" to tell them what they should "consider".