GitXplorerGitXplorer
g

anki-jessie

public
12 stars
1 forks
1 issues

Commits

List of commits on branch master.
Unverified
4a32fafb395f6907601326461147496678370185

Add instructions for copying fonts from host.

ggnprice committed 7 years ago
Unverified
e433570a100992450eb7b5d15349e6a4456ed91b

Install Takao fonts too

ggnprice committed 8 years ago
Unverified
52b843803cde0a53a5b12c2277e7d6083043e3d4

Mention Chinese fonts, and a small side detail

ggnprice committed 8 years ago
Unverified
996c6f5908487869bc9795d06914046c9d19b9cb

Tweak headings format

ggnprice committed 8 years ago
Unverified
f4e3f78d7b3c6b58d89a8d2839f77f1440cbe791

Add more words, to make more useful for people other than me

ggnprice committed 8 years ago
Unverified
5eba10f3b8b1acb3abafbd6962f272b2a642b034

Handy license template from GitHub

ggnprice committed 8 years ago

README

The README file for this repository.

Anki isn't available in Debian 9.0 "stretch" (the release frozen in 2017) because of the Qt 5 transition. See Debian bug #784612 . Upstream versions compatible with stretch begin with 2.1.0, which is in alpha as of 2017-02-24 .

Fortunately, schroot provides a simple and lightweight way to create a Debian 8 "jessie" environment on a "stretch" system and run a stable Anki from there.

Usage

After the setup below, this command runs Anki:

schroot -c anki -- anki

The resulting Anki has full access to my homedir (notably ~/Anki), my network connection, and my desktop environment, including the input method (fcitx) I use for typing Japanese.

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/

and tell schroot about it:

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!

Variations

The fonts-vlgothic package included above is one I use for Japanese. You may want other fonts packages for other languages. (E.g., for Chinese, perhaps fonts-arphic-uming fonts-wqy-zenhei.) Or copy in fonts from the host; for example:

sudo rsync -av {,/srv/anki/chroot}/usr/share/fonts/
sudo schroot -c anki -- fc-cache -v

I later made a second chroot for Anki development. For any additional chroot, vary the /srv/anki/$foo path and the schroot config's filename (/etc/schroot/chroot.d/$foo.conf), header ([$foo]), and description.