Anki on Raspbian Buster (Raspberry Pi 4)



Anki is a program which makes remembering things easy. Because it's a lot more efficient than traditional study methods, you can either greatly decrease your time spent studying, or greatly increase the amount you learn.

Anyone who needs to remember things in their daily life can benefit from Anki. Since it is content-agnostic and supports images, audio, videos and scientific markup (via LaTeX), the possibilities are endless.

The instructions mention this being a fix for installing Anki on Stretch, but just tried it on Buster and it seems to be working so far. Not sure if this is a permanent solution, but we shall see.

one thing worth mentioning, I received an error message when typing in:

sudo schroot -c anki -- apt install -y anki locales mplayer fonts-vlgothic fonts-takao

got it to work by deleting -y like so:

sudo schroot -c anki -- apt install anki locales mplayer fonts-vlgothic fonts-takao

This could make it work.

The Overall process based on debian 8
Setup

Install schroot
, which will facilitate entering the chroot, and debootstrap
, which will populate it with "jessie" files:

sudo apt install schroot debootstrap 

Create and populate the chroot's file tree:

sudo mkdir -p /srv/anki sudo mkdir /srv/anki/chroot sudo debootstrap jessie /srv/anki/chroot http://deb.debian.org/debian/


sudo tee /etc/schroot/chroot.d/anki.conf >/dev/null <<EOF [anki] description=Anki on jessie type=directory directory=/srv/anki/chroot profile=desktop preserve-environment=true users=$USER EOF 

Finally, customize the chroot with your locale and time zone, and install Anki and allied packages:

sudo cp {,/srv/anki/chroot}/etc/locale.gen sudo cp -P {,/srv/anki/chroot}/etc/localtime sudo schroot -c anki -- apt install -y anki locales mplayer fonts-vlgothic fonts-takao 

Now
schroot -c anki -- anki
should work!

Post a Comment

0 Comments