Page 1 of 1

Anki - Flash Card program to help studying ;-)

Posted: 27 Jul 2013, 10:50
by miguipda
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 ;-)

Anki - Flash Card program to help studying ;-)

Posted: 05 Jul 2023, 10:38
by rych
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.

Anki - Flash Card program to help studying ;-)

Posted: 05 Jul 2023, 12:22
by Ed_P
Make a backup of your changes file/folder, do the "install", test it. If the test fails, restore the backups. :)

Anki - Flash Card program to help studying ;-)

Posted: 06 Jul 2023, 10:42
by rych
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.

Anki - Flash Card program to help studying ;-)

Posted: 06 Jul 2023, 12:58
by Ed_P
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

Anki - Flash Card program to help studying ;-)

Posted: 07 Jul 2023, 09:34
by rych
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.

Anki - Flash Card program to help studying ;-)

Posted: 07 Jul 2023, 11:38
by Ed_P
Did you try:

anki args: --no-sandbox

:%)

And if that failed I would try:

anki args --no-sandbox

:happy62:

Anki - Flash Card program to help studying ;-)

Posted: 08 Jul 2023, 10:06
by rych
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.

Anki - Flash Card program to help studying ;-)

Posted: 08 Jul 2023, 16:44
by Ed_P
No problem. Since I have no interesting in Anki I won't be testing or offering any more suggestions.

Anki - Flash Card program to help studying ;-)

Posted: 08 Jul 2023, 16:58
by beny
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,

Anki - Flash Card program to help studying ;-)

Posted: 08 Jul 2023, 17:16
by tome
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)

Anki - Flash Card program to help studying ;-)

Posted: 09 Jul 2023, 06:33
by rych
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.

Anki - Flash Card program to help studying ;-)

Posted: 05 Nov 2023, 01:20
by rych
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)