Get started with Obsidian
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 文件。
icon: 首先下载好 Obsidian 的图标;
新建
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=trueExec指向应用文件Icon指向应用图标
修改权限:对文件 右键 >> 属性 (Property) >> 权限 (Permissions) >> 允许作为程序执行文件 (Allow executing file as program),打勾。
移动该文件到
/usr/share/applications便可以在应用列表下搜索到该应用
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。
Update
/etc/apt/sources.list1
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/ ./
Download and add the release key
1
2wget https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/Release.key
apt-key add ./Release.keyUpdate your apt package cache
1
sudo apt-get update
Install ‘onedrive’
1
sudo apt install onedrive
auth the application
在命令行中输入
onedrive然后打开最后列出的授权链接Enter the response url,在链接中同意便可。
同步
更多同步,具体可参考该文。
完全同步
1
onedrive --synchronize
此后如果
OneDrive网盘或者~/OneDrive文件夹里的文件/文件夹有变动,再执行该命令会进行双向对应的变动/同步。选择性同步
如果你不想同步整个网盘,而是某个文件夹,比如
Obsidian,使用前提是OneDrive网盘和本机~/OneDrive文件夹都有这个文件夹使用命令:1
onedrive --synchronize --single-directory Desktop/Obsidian
单向同步
在某些情况下(如备份网站数据),可能只需要上传到
OneDrive。这样我们可以使用以下命令:1
onedrive --synchronize --upload-only
该命令只会单向同步本机
~/OneDrive文件夹,不受OneDrive网盘文件变动影响
卸载客户端
1 | cd ~/onedrive |
