使用
安裝前先知道:有已知漏洞
pickfit 在安裝時會一併裝上的套件裡找到 2 個已知的高風險或嚴重漏洞(OSV.dev,2026年11月16日),安裝前請先考慮。
go:github.com/andybalholm/brotli v1.2.3github.com/andybalholm/brotli 解壓特製串流時配置過多記憶體 (GO-2026-6888,嚴重,1.2.7 已修正)go:github.com/klauspost/compress v1.20.0github.com/klauspost/compress 遇到雙區塊 frame 時 panic (GO-2026-6865,高風險,1.20.2 已修正)
Linux x86_64
需要先準備
- 執行環境:
go>=1.23 (build from source) - 需要網路
下載 glance-linux-amd64 release tarball,將執行檔安裝到 ~/.local/bin
mkdir -p ~/.local/bin /tmp/gl && curl -fsSL -o /tmp/gl/glance.tar.gz https://github.com/glanceapp/glance/releases/latest/download/glance-linux-amd64.tar.gz && tar -xzf /tmp/gl/glance.tar.gz -C /tmp/gl && install -m755 /tmp/gl/glance ~/.local/bin/glance
在 pickfit 驗證過的原始指令(沙盒裡實際執行的)
僅供查核:裡面是沙盒的家目錄 /home/sbx。
mkdir -p ~/.local/bin /tmp/gl && curl -fsSL -o /tmp/gl/glance.tar.gz https://github.com/glanceapp/glance/releases/latest/download/glance-linux-amd64.tar.gz && tar -xzf /tmp/gl/glance.tar.gz -C /tmp/gl && install -m755 /tmp/gl/glance ~/.local/bin/glanceglance --versionmkdir -p ~/gl/feeds ~/gl/assets && cd ~/gl && cat > feeds/rss.xml <<'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><title>Local Feed</title><link>http://127.0.0.1:9000/</link><description>test</description>
<item><title>Hello Glance RSS Item</title><link>http://127.0.0.1:9000/item1</link><pubDate>Mon, 01 Jan 2024 00:00:00 GMT</pubDate></item>
</channel></rss>
EOF
cat > feeds/data.json <<'EOF'
{"message": "CustomApiWorks", "count": 42}
EOF
cat > assets/user.css <<'EOF'
.my-custom-marker { color: red; }
EOF
cat > glance.yml <<'EOF'
server:
port: 8080
assets-path: /home/sbx/gl/assets
theme:
background-color: 50 1 6
primary-color: 24 97 58
contrast-multiplier: 1.3
custom-css-file: /assets/user.css
pages:
- name: Home
columns:
- size: full
widgets:
- type: rss
title: MyRSS
feeds:
- url: http://127.0.0.1:9000/rss.xml
title: Local Feed
- type: custom-api
title: MyAPI
url: http://127.0.0.1:9000/data.json
template: |
<p>Message: {{ .JSON.String "message" }} / {{ .JSON.Int "count" }}</p>
EOF
glance --config glance.yml config:validatecd ~/gl/feeds && python3 -m http.server 9000 --bind 127.0.0.1cd ~/gl && glance --config glance.ymlcurl -fsS http://127.0.0.1:8080/api/pages/home/content/確認能用
glance --version輸出應包含「v0.8.8」。
先試試這個
mkdir -p ~/gl/feeds ~/gl/assets && cd ~/gl && cat > feeds/rss.xml <<'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><title>Local Feed</title><link>http://127.0.0.1:9000/</link><description>test</description>
<item><title>Hello Glance RSS Item</title><link>http://127.0.0.1:9000/item1</link><pubDate>Mon, 01 Jan 2024 00:00:00 GMT</pubDate></item>
</channel></rss>
EOF
cat > feeds/data.json <<'EOF'
{"message": "CustomApiWorks", "count": 42}
EOF
cat > assets/user.css <<'EOF'
.my-custom-marker { color: red; }
EOF
cat > glance.yml <<'EOF'
server:
port: 8080
assets-path: "$HOME"/gl/assets
theme:
background-color: 50 1 6
primary-color: 24 97 58
contrast-multiplier: 1.3
custom-css-file: /assets/user.css
pages:
- name: Home
columns:
- size: full
widgets:
- type: rss
title: MyRSS
feeds:
- url: http://127.0.0.1:9000/rss.xml
title: Local Feed
- type: custom-api
title: MyAPI
url: http://127.0.0.1:9000/data.json
template: |
<p>Message: {{ .JSON.String "message" }} / {{ .JSON.Int "count" }}</p>
EOF
glance --config glance.yml config:validatecd ~/gl/feeds && python3 -m http.server 9000 --bind 127.0.0.1cd ~/gl && glance --config glance.ymlcurl -fsS http://127.0.0.1:8080/api/pages/home/content/執行 glance --config <config file>,再用瀏覽器開啟 http://127.0.0.1:8080 查看儀表板。
它能做什麼
- 在儀表板小工具中顯示 RSS已測試
怎麼使用
- 在 glance.yml 的頁面欄位下新增
type: rss小工具,並在feeds下列出每個來源的url與title。 - 用
glance --config <config file> config:validate檢查檔案。 - 用
glance --config <config file>啟動 Glance,開啟頁面查看 feed 項目。
- 在 glance.yml 的頁面欄位下新增
- 從 JSON API 建立自訂小工具已測試
怎麼使用
- 在 glance.yml 新增
type: custom-api小工具,以url指向 JSON API,並用{{ .JSON.String "<key>" }}之類的template顯示欄位。 - 用
glance --config <config file> config:validate檢查檔案。 - 用
glance --config <config file>啟動 Glance,開啟頁面查看小工具。
- 在 glance.yml 新增
- 顯示天氣預報與市場價格未測試
- 套用自訂主題與 CSS沒有看到它可用
pickfit 測到哪一步
Linux x86_64
- 可以安裝
- 可以啟動
- 4 項功能中 2 項可用
- 可離線使用
Windows 和 macOS:專案說支援,但 pickfit 還沒試過。
適合用來
- 在同一頁追蹤 RSS 與 subreddit 貼文
- 監控 Docker 容器狀態與伺服器數據
- 追蹤 YouTube 頻道新影片
pickfit 怎麼測的
每次測試都從乾淨的機器開始,照上面的步驟執行。 pickfit 怎麼驗證
Linux x86_64
服務能回應請求
- 從頭重跑
- 可離線使用
- 檢查於 2026年11月15日
- 版本 v0.8.8
測試機器遇到的差異
- README: Place the binary in /opt/glance/ and run /opt/glance/glance --config /etc/glance.yml
測試中: 這裡沒有 root,因此將執行檔裝到 ~/.local/bin,設定檔放在 ~/gl/glance.yml。加上 --config 執行,效果相同。 - README: Visit the latest release page for available binaries
測試中: 直接下載網址為 https://github.com/glanceapp/glance/releases/latest/download/glance-linux-amd64.tar.gz。 - README: Use the sample config with feeds from outside sites
測試中: 冒煙測試在斷網狀態下重跑,因此 RSS feed 與 custom-api 的 JSON 改由 port 9000 上的本機 python http.server 提供。