diff --git a/00. Inbox/Linux/smb.md b/00. Inbox/Linux/smb.md new file mode 100644 index 0000000..c9acb68 --- /dev/null +++ b/00. Inbox/Linux/smb.md @@ -0,0 +1,26 @@ +# Connect to SMB folder +## 安裝 +```shell +sudo apt-get install cifs-utils +``` + +## 設定 + +```shell + + +sudo apt-get install cifs-utils +# Fill below +username=your_username +password=your_password + +sudo mkdir /mnt/sambashare +sudo nano /etc/fstab +# Fill +//samba_server_ip/share_name /mnt/sambashare cifs credentials=/home/pi/.smbcredentials,uid=pi,gid=pi 0 0 + +sudo systemctl daemon-reload +sudo mount -a + +# Check smb folder +``` \ No newline at end of file diff --git a/00. Inbox/樹莓派/00. 樹莓派.canvas b/00. Inbox/樹莓派/00. 樹莓派.canvas index 3ebe74b..af6ea70 100644 --- a/00. Inbox/樹莓派/00. 樹莓派.canvas +++ b/00. Inbox/樹莓派/00. 樹莓派.canvas @@ -1,17 +1,17 @@ { "nodes":[ - {"id":"e94c9e71b9aeaa89","type":"group","x":440,"y":-360,"width":400,"height":900,"label":"設定"}, - {"id":"6e59f6b9f36b24e2","type":"text","text":"![[安裝]]","x":-80,"y":-37,"width":383,"height":177}, + {"id":"e94c9e71b9aeaa89","type":"group","x":440,"y":-360,"width":400,"height":1180,"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}, - {"id":"6875474760fafe7c","type":"text","text":"![[raspi-config]]","x":460,"y":-200,"width":360,"height":140}, - {"id":"b77234a9cdf72aad","type":"text","text":"安裝[[00. Inbox/Linux/Docker|Docker]]","x":980,"y":-340,"width":340,"height":180}, - {"id":"d0711febf5985ed5","type":"text","text":"certbotdocker: [iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天](https://ithelp.ithome.com.tw/m/articles/10301801\n\n[JonasAlfredsson/docker-nginx-certbot: Automatically create and renew website certificates for free using the Let's Encrypt certificate authority.](https://github.com/JonasAlfredsson/docker-nginx-certbot)","x":980,"y":-130,"width":340,"height":142}, - {"id":"8cac63e48dff1f2a","type":"text","text":"Gitea: [Gitea 使用 Gmail 寄信 - 筆記ZONE](https://zonego.tw/2021/11/14/gitea-gmail/)\n","x":980,"y":80,"width":250,"height":60}, - {"id":"94fa9ef036dbe62a","type":"text","text":"Speedtest 測試\n[robinmanuelthiel/speedtest: Check internet bandwidth from a Docker container and save the results to an InfluxDB](https://github.com/robinmanuelthiel/speedtest)","x":980,"y":186,"width":409,"height":114}, - {"id":"ef9431e16c90f57f","x":971,"y":340,"width":518,"height":281,"type":"text","text":"# Connect to SMB folder\n```shell\nsudo apt-get install cifs-utils\n\nsudo apt-get install cifs-utils\n# Fill below\nusername=your_username \npassword=your_password\n\nsudo mkdir /mnt/sambashare\nsudo nano /etc/fstab\n# Fill\n//samba_server_ip/share_name /mnt/sambashare cifs credentials=/home/pi/.smbcredentials,uid=pi,gid=pi 0 0\n\nsudo systemctl daemon-reload\nsudo mount -a\n\n# Check smb folder\n```"} + {"id":"d0711febf5985ed5","type":"text","text":"# 安裝nginx-certbot\n教學: [iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天](https://ithelp.ithome.com.tw/m/articles/10301801\n\nGithub: [JonasAlfredsson/docker-nginx-certbot: Automatically create and renew website certificates for free using the Let's Encrypt certificate authority.](https://github.com/JonasAlfredsson/docker-nginx-certbot)","x":980,"y":-130,"width":440,"height":240}, + {"id":"b77234a9cdf72aad","type":"text","text":"# 安裝 docker\n[[00. Inbox/Linux/Docker|Docker]]","x":980,"y":-280,"width":440,"height":120}, + {"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":980,"y":140,"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":980,"y":313,"width":440,"height":207}, + {"id":"ef9431e16c90f57f","type":"text","text":"","x":971,"y":640,"width":518,"height":281}, + {"id":"6875474760fafe7c","type":"text","text":"![[raspi-config]]","x":460,"y":-200,"width":360,"height":140} ], "edges":[ {"id":"9683c15c63c167c0","fromNode":"6e59f6b9f36b24e2","fromSide":"right","toNode":"e94c9e71b9aeaa89","toSide":"left"},