Anki - Flash Card program to help studying ;-)

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
miguipda
Samurai
Samurai
Posts: 157
Joined: 12 Jun 2012, 18:21
Location: france

Anki - Flash Card program to help studying ;-)

Post#1 by miguipda » 27 Jul 2013, 10:50

Hi,

could somebody help us to have this Anki program as a Porteus module ?
http://ankisrs.net/

It is a Flash Card program allowing to study (langages, ...).

Sincerely thanks and have a nice day,

Miguipda ;-)

rych
Warlord
Warlord
Posts: 631
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Anki - Flash Card program to help studying ;-)

Post#2 by rych » 05 Jul 2023, 10:38

10 years later, may I repeat this request. The modules built by getmod or pmod both lack certain python libraries and are older anyway that the latest version on https://apps.ankiweb.net/ (need Qt5 version please) so anki-2.1.65-linux-qt5.tar.zst It has an install.sh but I'm afraid of running it: it'll "install" into my changes but I want a module. If anyone could help please or teach it'd be great.

User avatar
Ed_P
Contributor
Contributor
Posts: 8397
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Anki - Flash Card program to help studying ;-)

Post#3 by Ed_P » 05 Jul 2023, 12:22

Make a backup of your changes file/folder, do the "install", test it. If the test fails, restore the backups. :)
Ed

rych
Warlord
Warlord
Posts: 631
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Anki - Flash Card program to help studying ;-)

Post#4 by rych » 06 Jul 2023, 10:42

OK, it won't run anyway under root, so it's a dead end:

Code: Select all

root@porteus:/tmp/anki-2.1.65-linux-qt5# anki --no-sandbox
Anki starting...
Initial setup...
Preparing to run...
[7820:7820:0706/223501.758486:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
There is nothing to be done, no more time to be wasted on this.

User avatar
Ed_P
Contributor
Contributor
Posts: 8397
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Anki - Flash Card program to help studying ;-)

Post#5 by Ed_P » 06 Jul 2023, 12:58

You should have read the webpage linked in the error msg.
ngscripts commented on Jun 19, 2022 wrote:

Code: Select all


    args: ['--no-sandbox']

This worked for me by adding args
Ed

rych
Warlord
Warlord
Posts: 631
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Anki - Flash Card program to help studying ;-)

Post#6 by rych » 07 Jul 2023, 09:34

Ed_P wrote:
06 Jul 2023, 12:58
This worked for me by adding args
No, it doesn't work for me anyway:

Code: Select all

root@porteus:/tmp/anki-2.1.65-linux-qt5# anki args: ['--no-sandbox']
Anki starting...
Initial setup...
Preparing to run...
[7611:7611:0707/213307.048151:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

User avatar
Ed_P
Contributor
Contributor
Posts: 8397
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Anki - Flash Card program to help studying ;-)

Post#7 by Ed_P » 07 Jul 2023, 11:38

Did you try:

anki args: --no-sandbox

:%)

And if that failed I would try:

anki args --no-sandbox

:happy62:
Ed

rych
Warlord
Warlord
Posts: 631
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Anki - Flash Card program to help studying ;-)

Post#8 by rych » 08 Jul 2023, 10:06

Ed_P, None of those work. Let me know if you discover a way to pass that parameter to anki that actually works. Ttop making me do random things :crazy: Anki is broken for root. Case closed. For now.

User avatar
Ed_P
Contributor
Contributor
Posts: 8397
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Anki - Flash Card program to help studying ;-)

Post#9 by Ed_P » 08 Jul 2023, 16:44

No problem. Since I have no interesting in Anki I won't be testing or offering any more suggestions.
Ed

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

Anki - Flash Card program to help studying ;-)

Post#10 by beny » 08 Jul 2023, 16:58

the sh.install of anki you have to run it as root with sudo, and the path is /usr/local but every day use you have to run it as guest,

tome
Contributor
Contributor
Posts: 676
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Russia is causing the immense damage to humanity
Contact:

Anki - Flash Card program to help studying ;-)

Post#11 by tome » 08 Jul 2023, 17:16

or as root:

Code: Select all

su -l guest -c /mnt/sdb3/data/x86_64-packages/anki-2.1.65-linux-qt5/anki
(without installing (copying) anki files)
You have mind and feelings. Be wise and clever.

rych
Warlord
Warlord
Posts: 631
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Anki - Flash Card program to help studying ;-)

Post#12 by rych » 09 Jul 2023, 06:33

tome, yes, thanks -- the weird things they make us do sometimes, but yes running under guest works, and with either Qt5 or Qt6 because the binary package includes the whole Qt subsystem it needs. Of course, it'll be placing its data and config under /home/guest. But we can run it in a half-portable mode like this (see https://docs.ankiweb.net/files#startup-options), (it still writes something less important in /home/guest):

Code: Select all

root@porteus:~# su -l guest -c "/tmp/anki-2.1.65-linux-qt5/anki -b /P/Anki"
Anki starting...
Initial setup...
Preparing to run...
Starting main loop...
-- and you're right , no need to "install.sh" it as it's already hacky anyway -- just unzip the archive.

rych
Warlord
Warlord
Posts: 631
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Anki - Flash Card program to help studying ;-)

Post#13 by rych » 05 Nov 2023, 01:20

This thread continues with some repetition over at: Anki: improving memory -- please don't post here, unless an actual xzm is produced (which is unlikely to happen as this is one of those AppImage-like all-inclusive bundles)

Post Reply