Pleroma管理筆記

上傳表情

AdminFE: Emoji packs > Local packs > Create a new local pack 從這裡可以一張張上傳 後台上傳表情包:暫時還沒成功過

一鍵安裝

Puniko's emoji repository

OTP安裝的話要使用./bin命令,把mix pleroma.emoji換成./bin/pleroma_ctl emoji

./bin/pleroma_ctl emoji get-packs screws -m https://fedi.absturztau.be/emoji-packs/manifest.json mix pleroma.emoji get-packs screws -m https://fedi.absturztau.be/emoji-packs/manifest.json

執行前要先換到 cd /opt/pleroma

官方文檔 – Custom Emoji 官方文檔 – Managing emoji packs


上傳主題

styles.json

{
  "pleroma-dark": "/static/themes/pleroma-dark.json",
  "pleroma-light": "/static/themes/pleroma-light.json",
  "pleroma-amoled": [ "Pleroma Dark AMOLED", "#000000", "#111111", "#b0b0b1", "#d8a070", "#aa0000", "#0fa00f", "#0095ff", "#d59500"],
  "classic-dark": [ "Classic Dark", "#161c20", "#282e32", "#b9b9b9", "#baaa9c", "#d31014", "#0fa00f", "#0095ff", "#ffa500" ],
  "bird": [ "Bird", "#f8fafd", "#e6ecf0", "#14171a", "#0084b8", "#e0245e", "#17bf63", "#1b95e0", "#fab81e"],
  "ir-black": [ "Ir Black", "#000000", "#242422", "#b5b3aa", "#ff6c60", "#FF6C60", "#A8FF60", "#96CBFE", "#FFFFB6" ],
  "monokai": [ "Monokai", "#272822", "#383830", "#f8f8f2", "#f92672", "#F92672", "#a6e22e", "#66d9ef", "#f4bf75" ],

  "redmond-xx": "/static/themes/redmond-xx.json",
  "redmond-xx-se": "/static/themes/redmond-xx-se.json",
  "redmond-xxi": "/static/themes/redmond-xxi.json",
  "breezy-dark": "/static/themes/breezy-dark.json",
  "breezy-light": "/static/themes/breezy-light.json",
  "mammal": "/static/themes/mammal.json",
  "paper": "/static/themes/paper.json"
}

官方文檔 – Theming your instance


上傳貼圖

stickers.json

nano /var/lib/pleroma/static/static/stickers.json

{
"deathnote": "/static/stickers/deathnote/",
"tsfox": "/static/stickers/tsfox/",
"gintama": "/static/stickers/gintama/",
"greek": "/static/stickers/greek/",
"lab": "/static/stickers/lab/",
"mori": "/static/stickers/mori/",
"RickAndMorty": "/static/stickers/RickAndMorty/",
"oceancreatures": "/static/stickers/oceancreatures/"
}

pack.json

nano /var/lib/pleroma/static/emoji/caudex/pack.json

{"title":"caudex","author":"hitsuji","tabIcon":"tab_on.png","stickers":
["tab_on.png",
"caudex_001.png",
"caudex_002.png",
"caudex_003.png",
"caudex_004.png",
.
.
.
"caudex_024.png"]}

sudo systemctl restart pleroma

然后可以用

sudo journalctl -u pleroma

看一下 pleroma 的日志里有没有相关信息。

也可以在重启后马上使用

sudo journalctl -u pleroma -f

看日志实时输出。

-

如果是 VPS 重启之后有问题的话,可能是没有设置 pleroma 服务开机启动。这可以在

sudo systemctl status pleroma

输出的 Loaded 一行看看有没有 enabled; 或者 disabled; 的字眼。如果是 disabled; 的话,可以用

sudo systemctl enable pleroma

来设置开机启动。


https://cobaltkiss.blue/static/custom/custom.css​ https://shykana.qoto.io/posts/pleroma-largemoji​