Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Connect to a headless Anki instance #411

Open
AllenEllis opened this issue Oct 22, 2023 · 1 comment
Open

Connect to a headless Anki instance #411

AllenEllis opened this issue Oct 22, 2023 · 1 comment

Comments

@AllenEllis
Copy link

I wanted to resurrect either #87 or #62 to find out I it's possible to use anki-connect with a headless instance of Anki (maybe its GUI-free sync server?)

My use case is that I've written a web app to track my learned vocabulary. It uses Anki-Connect to automatically create new cards in Anki. All of this runs directly on my laptop.

I'd like to move it all to a headless remote Ubuntu server so that I can create new cards and sync them on mobile without my laptop needing to be online somewhere.

The problem with doing this is simply getting Anki-Connect to install, because this is done with the "Get Add-ons" GUI that isn't available on a remote Ubuntu Server.

I've tried setting up remote X11 forwarding but every guide I've followed still fails to get the remote server to recognize any "displays", so Anki crashes when launching.

Is there any way I can manually install this addon without using the Anki GUI?

@antistic
Copy link
Contributor

I don't know how to get a headless Anki instance working so this has only been tested with gui Anki, but

The problem with doing this is simply getting Anki-Connect to install, because this is done with the "Get Add-ons" GUI that isn't available on a remote Ubuntu Server.

Is there any way I can manually install this addon without using the Anki GUI?

You don't need the get add-ons gui to install a plugin. It's possible to clone this repository and move (or symlink) it into your Anki add-ons folder, which on linux should be in ~/.local/share/Anki2/addons21. This repo also includes the script link.sh which links it for you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants