Obsidian 是根据卢曼卡片盒方法论构建的次世代笔记系统,基于本地 markdown 编辑和双向链接特殊语法。具体使用方式可以参考《卡片盒阅读法》和 Notion。

官网 obsidian.md ,目前支持 Windows, macOS, Linux, iOS, iPadOS, Android.
同步支持 Obsidian 应用内付费同步, 苹果生态支持 iCloud 同步,可自建其他云盘同步和 Git 同步。

我个人的使用方案是:

Windows, Linux(Ubuntu 20.04), macOS, 都使用 Onedrive 同步;

手机上不使用。

安装

官网 obsidian.md

启动 Launch

可以直接在 https://obsidian.md/download 下载 deb。

Linux 下是 AppImage,每一次启动时都需要在 terminal 敲击命令,而不是点击图标,所以可以自制 launch 文件。

  1. icon: 首先下载好 Obsidian 的图标;

  2. 新建 Obsidian.desktop 文件:

    1
    2
    3
    4
    5
    6
    [Desktop Entry]
    Name=Obsidian
    Exec=/home/song/OneDrive/Desktop/Obsidian-0.13.14.AppImage
    Icon=/home/song/Desktop/obsidian.png
    Type=Application
    StartupNotify=true
    • Exec 指向应用文件
    • Icon 指向应用图标
  3. 修改权限:对文件 右键 >> 属性 (Property) >> 权限 (Permissions) >> 允许作为程序执行文件 (Allow executing file as program),打勾。

  4. 移动该文件到 /usr/share/applications

  5. 便可以在应用列表下搜索到该应用

OneDrive 进行同步

可以直接使用 Obsidian 第三方插件 Remotely Save https://github.com/remotely-save/remotely-save

Ubuntu 安装 OneDrive

https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md

可以跟着以下教程 在 ubuntu 20.04 上安装 Onedrive。

  1. Update /etc/apt/sources.list

    1
    sudo gedit /etc/apt/sources.list

    /etc/apt/sources.list 末尾添加一行:

    1
    deb https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/ ./
  2. Download and add the release key

    1
    2
    wget https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/Release.key
    apt-key add ./Release.key
  3. Update your apt package cache

    1
    sudo apt-get update
  4. Install ‘onedrive’

    1
    sudo apt install onedrive
  5. auth the application

    在命令行中输入 onedrive 然后打开最后列出的授权链接 Enter the response url ,在链接中同意便可。

同步

更多同步,具体可参考该文

  1. 完全同步

    1
    onedrive --synchronize

    此后如果 OneDrive 网盘或者 ~/OneDrive 文件夹里的文件/文件夹有变动,再执行该命令会进行双向对应的变动/同步。

  2. 选择性同步

    如果你不想同步整个网盘,而是某个文件夹,比如 Obsidian,使用前提是 OneDrive 网盘和本机 ~/OneDrive 文件夹都有这个文件夹使用命令:

    1
    onedrive --synchronize --single-directory Desktop/Obsidian
  3. 单向同步

    在某些情况下(如备份网站数据),可能只需要上传到 OneDrive。这样我们可以使用以下命令:

    1
    onedrive --synchronize --upload-only

    该命令只会单向同步本机 ~/OneDrive 文件夹,不受 OneDrive 网盘文件变动影响

卸载客户端

1
2
3
cd ~/onedrive
make uninstall
rm -rf ~/.config/onedrive