diff --git a/00. Inbox/tailscale.md b/00. Inbox/tailscale.md new file mode 100644 index 0000000..a87e6d2 --- /dev/null +++ b/00. Inbox/tailscale.md @@ -0,0 +1,25 @@ +# 安裝 +## Synology +直接從套件中心安裝,但是安裝之後要設定。 + +### 設定 +因為 Synology 套件的關係,所以還需要一些設定,參考[Enabling Synology outbound connections](https://tailscale.com/kb/1131/synology#enabling-synology-outbound-connections) 。 + +步驟如下: +1. 打開「控制台->任務排程表」 +2. 新增一個「觸發任務->使用者定義指令碼」 +3. 使用者帳號選「root」,事件選「開機」 +4. 切換到第二頁的「任務設定」,在「使用者定義指令碼」那一區填入 `/var/packages/Tailscale/target/bin/tailscale configure-host; synosystemctl restart pkgctl-Tailscale.service`。 +5. 如果有開防火牆的話,也要設定防火牆規則 + +設定防火牆 +1. 打開「控制台->任務排程表」,切到「防火牆」那一頁。 +2. 按下「編輯規則」 +3. 按下「新增」 +4. 來源IP選「特定IP」,然後按「選擇」 +5. 會跳出一個視窗,選「子網路」 +6. 「IP位址」那一欄填「`100.64.0.0`」 +7. 「子網路遮罩 (mask)/Prefix 長度:」那一欄填「`255.192.0.0`」 + +記得按「確定」儲存。然後重開機。 +重開機之後打開talscale套件會要你登入,登入之後就可以在machine看到機器了。 diff --git a/00. Inbox/樹莓派/00. 樹莓派.canvas b/00. Inbox/樹莓派/00. 樹莓派.canvas index 1b62bb1..33cfb6c 100644 --- a/00. Inbox/樹莓派/00. 樹莓派.canvas +++ b/00. Inbox/樹莓派/00. 樹莓派.canvas @@ -3,7 +3,6 @@ {"id":"6c6ff5d0e7850ea8","type":"group","x":920,"y":-360,"width":480,"height":1320,"label":"Docker"}, {"id":"e94c9e71b9aeaa89","type":"group","x":440,"y":-360,"width":400,"height":1100,"label":"設定"}, {"id":"d624199752cf24de","type":"text","text":"![[更新與安裝工具]]","x":460,"y":-340,"width":360,"height":120}, - {"id":"6e59f6b9f36b24e2","type":"text","text":"![[安裝]]","x":-80,"y":-37,"width":383,"height":177}, {"id":"a63a5baed201beda","type":"text","text":"![[設定日誌大小]]","x":460,"y":160,"width":360,"height":180}, {"id":"f210470376a4829d","type":"text","text":"![[設定Cloudflare DDNS]]","x":460,"y":370,"width":360,"height":150}, {"id":"bc030994aafc5a3b","type":"text","text":"![[bashrc]]","x":460,"y":-37,"width":360,"height":177}, @@ -14,7 +13,8 @@ {"id":"8cac63e48dff1f2a","type":"text","text":"# 安裝 Gitea\n官方教學:[Installation with Docker](https://docs.gitea.com/installation/install-with-docker)\n\n設定Gmail寄信:[Gitea 使用 Gmail 寄信 - 筆記ZONE](https://zonego.tw/2021/11/14/gitea-gmail/)\n","x":940,"y":80,"width":440,"height":140}, {"id":"94fa9ef036dbe62a","type":"text","text":"# Speedtest 測試\n超簡單命令:`docker run --rm robinmanuelthiel/speedtest:latest`\n\nGithub: [robinmanuelthiel/speedtest: Check internet bandwidth from a Docker container and save the results to an InfluxDB](https://github.com/robinmanuelthiel/speedtest)","x":940,"y":253,"width":440,"height":207}, {"id":"2a7d5efcc0f2dc0e","type":"text","text":"# 安裝 Portainer\n教學: [Portainer:一款圖形化容器管理工具|方格子 vocus](https://vocus.cc/article/643e9f74fd89780001b51739)\n\n官網:[Portainer: Container Management Software for Kubernetes and Docker](https://www.portainer.io/)","x":940,"y":489,"width":440,"height":191}, - {"id":"fc32cf264646fdec","type":"text","text":"# 安裝 Storj\n![[Storj]]","x":940,"y":720,"width":440,"height":200} + {"id":"fc32cf264646fdec","type":"text","text":"# 安裝 Storj\n![[Storj]]","x":940,"y":720,"width":440,"height":200}, + {"id":"6e59f6b9f36b24e2","type":"text","text":"![[安裝]]","x":-80,"y":80,"width":383,"height":177} ], "edges":[ {"id":"9683c15c63c167c0","fromNode":"6e59f6b9f36b24e2","fromSide":"right","toNode":"e94c9e71b9aeaa89","toSide":"left"},