惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
T
The Blog of Author Tim Ferriss
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
爱范儿
爱范儿
GbyAI
GbyAI
H
Help Net Security
I
InfoQ
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
人人都是产品经理
人人都是产品经理
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
N
Netflix TechBlog - Medium
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
P
Privacy & Cybersecurity Law Blog
A
Arctic Wolf
Know Your Adversary
Know Your Adversary
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tor Project blog
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
WordPress大学
WordPress大学
V
Visual Studio Blog
博客园_首页
G
GRAHAM CLULEY
K
Kaspersky official blog
T
Tailwind CSS Blog
T
Threat Research - Cisco Blogs
博客园 - Franky
D
Docker
Security Latest
Security Latest
I
Intezer
有赞技术团队
有赞技术团队
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 【当耐特】
B
Blog RSS Feed
T
The Exploit Database - CXSecurity.com
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

博客园 - 明月我心

百度网盘的同步空间使用方式 windows10删除多出的oem分区 linux设置自动更换壁纸 linux下zip文件解压乱码的问题 Node判断文件是否链接 解决Qualcomm Atheros AR8161 Gigabit Ethernet网卡Linux下坏掉的问题 Openbox中指定目录打开程序 Openbox简单支持平铺 linux关闭双显卡的方法 rdesktop共享剪贴板的问题 Apache FTPServer安装为Windows服务的问题 Dell Inspiron One2330连接WPA2-PSK的问题 12306快速输入验证码办法 rsync命令中的include参数顺序问题 gnome下使用x-tile平铺窗口 开始相信360是款好软件,见下图 adb shell后insufficient permissions for device的问题 Gentoo linux下Adobe AIR运行环境的安装 php升级到5.3后Discuz论坛不能使用的问题
自己搭建anki同步服务器
明月我心 · 2017-09-28 · via 博客园 - 明月我心

最近帮孩子找学习的软件,发现了anki

不过同步速度太慢,但发现可以自己搭建同步服务器

具体方法见https://github.com/dsnopek/anki-sync-server

我的安装过程如下

1 下载https://apps.ankiweb.net/downloads/archive/anki-2.0.36.tgz,并解压到/usr/share/anki

2 安装AnkiServer

virtualenv -p python2 anki
cd anki
source bin/activate
pip install AnkiServer
cp examples/example.ini production.ini

3 运行

4配置nginx

/etc/nginx/conf.d/anki.conf

server {
    listen 80;

    server_name yourdomain;

    location / {
        client_max_body_size 0;
        proxy_pass http://localhost:27701;
        include proxy_params;
    }
}

然后 systemctl reload nginx载入配置

客户端配置

目前我使用的客户端有Android手机上的AnkiDrod以及Linux上安装的anki软件

其中AnkiDoid直接支持同步服务器,在设置里修改参数就好

PC端目前在界面里没有地方更新同步服务器,因为有python代码,直接更改.py文件就好

/usr/share/anki/anki/consts.py中,修改

SYNC_BASE = "http://yourdomain"
SYNC_MEDIA_BASE = "http://yourdomain/msync/"