Installation without desktop

I’m running linux Devuan with a window manager but without a desktop environment. I assume this only means that Anki will not provide a menu entry for itself and must be started from CLI.

Should installation have created an ~/.anki file? None exists.

I intend to use Anki to memorize Chinese characters and so when it first came up I selected the Chinese language. Now whenever I start Anki it displays a Chinese interface by default that I cannot (yet) read. Should I have chosen English? I uninstalled Anki but a config file somewhere tells it to display Chinese by default and it does so even when reinstalled.

If Anki’s installed correctly, you just need to type anki in a terminal or something else that can launch things found in $PATH (e.g. dmenu or any other launcher).

The files you should have are like this:

$ ls -lh /usr/local/{bin,share/anki}/anki
lrwxrwxrwx 1 root root  26  1月 20 12:04 /usr/local/bin/anki -> /usr/local/share/anki/anki
-rwxr-xr-x 1 root root 82M 12月 28 01:53 /usr/local/share/anki/anki

The second file is the one actually being executed and the first is a symlink to it.

You can create another symlink to it within your home directory if you want:

cd ~
ln -s /usr/local/share/anki/anki anki

As far as correcting the language issue, you can launch in English and then fix your preferences or just use these images as a reference:

image

To launch with a specific language, there’s an Anki manual page here for startup options: Managing Files - Anki Manual

To launch in English, use this:

anki -l en

To launch in Chinese (PRC), use this:

anki -l zh-cn

Language codes can be seen here: https://www.andiamo.co.uk/resources/iso-language-codes/

1 Like

Thank you. Your suggestions solved the problem.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.