[Share Experiences] Deepin配置Typora和PicGo实现GitHub图床
Tofloor
poster avatar
terwer
deepin
2022-06-01 09:53
Author

deepin新手,刚刚换系统,感觉各方面用着还挺顺手,体验也比较丝滑,打算陆续迁移工作环境过来了。

首先的话,写文档的工具自然少不了,因为一直习惯Typora,就捣鼓了一下deepin下面的Typora配置,有需要的可以看看。

PS:打个小广告,我的博客,https://terwergreen.com/

下载并安装 Typora

https://typora.io/

下载 PicGo 的 AppImage 版本

https://github.com/Molunerfinn/PicGo/releases/tag/v2.3.0

设置Typora

选择 文件->偏好设置->图像->上传服务,选择PicGo(app),填上 AppImage 的绝对路径。

/media/terwer/data/appimage/PicGo-2.3.0.AppImage

image-20220601015423533

点击验证,此时会启动 PicGo

设置 PicGo 使用 GitHub 图床

image-20220601204542849

注意下,域名

https://cdn.jsdelivr.net/gh/terwer/upload/main

这里,选择 jsdeliver ,防止 GitHub 无法访问的情况。

PS:最新方法,输入下面地址:

https://ghproxy.com/https://raw.githubusercontent.com/terwer/upload/main

切记 不要滥用!不要滥用!不要滥用! 避免失效。

这个地址根据你自己的仓库调整即可

https://ghproxy.com/https://raw.githubusercontent.com/用户名/仓库名/分支名

安装水印插件

注意:这里直接安装会提示,请安装 NodeJS 并重启 PicGo ,需要使用 apt 安装最新稳定版 node 。

方法如下:

1:安装apt中的nodejs和npm

sudo apt-get install nodejs-legacy
sudo apt-get install npm 

2:npm修改成淘宝源,安装n模块

sudo npm config set registry https://registry.npm.taobao.org
sudo npm config list
sudo npm install n -g

3:安装最新的nodejs(stable版本)

sudo n stable

4:验证安装

sudo node -v
sudo npm -v

5:顺便安装一下 yarn ,这个也经常用

sudo npm install --global yarn

然后就可以安装水印插件了。

image-20220601014554723

水印设置,图片要是绝对路径

image-20220601014447070

水印图片

logo

本地路径

/home/terwer/Pictures/logo.png
Reply Favorite View the author
All Replies
寰宇ζ
deepin
2022-06-01 20:44
#1

发的图片好像挂了

Reply View the author
xuqi
deepin testing team
2022-06-01 22:59
#2

👍

Reply View the author
terwer
deepin
2022-06-02 04:48
#3
寰宇ζ

发的图片好像挂了

已修复,cdn地址改用

https://ghproxy.com/https://raw.githubusercontent.com/terwer/upload/main

jsdeliver挂了。

Reply View the author