vault backup: 2024-01-18 19:38:09

This commit is contained in:
2024-01-18 19:38:09 +08:00
parent 075027d183
commit 728f0f5728
2 changed files with 34 additions and 8 deletions

26
00. Inbox/Linux/smb.md Normal file
View File

@@ -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
```

View File

@@ -1,17 +1,17 @@
{ {
"nodes":[ "nodes":[
{"id":"e94c9e71b9aeaa89","type":"group","x":440,"y":-360,"width":400,"height":900,"label":"設定"}, {"id":"e94c9e71b9aeaa89","type":"group","x":440,"y":-360,"width":400,"height":1180,"label":"設定"},
{"id":"6e59f6b9f36b24e2","type":"text","text":"![[安裝]]","x":-80,"y":-37,"width":383,"height":177},
{"id":"d624199752cf24de","type":"text","text":"![[更新與安裝工具]]","x":460,"y":-340,"width":360,"height":120}, {"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":"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":"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":"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":"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":"安裝[[00. Inbox/Linux/Docker|Docker]]","x":980,"y":-340,"width":340,"height":180}, {"id":"b77234a9cdf72aad","type":"text","text":"# 安裝 docker\n[[00. Inbox/Linux/Docker|Docker]]","x":980,"y":-280,"width":440,"height":120},
{"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\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":"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超簡單命令`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":"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","type":"text","text":"","x":971,"y":640,"width":518,"height":281},
{"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":"6875474760fafe7c","type":"text","text":"![[raspi-config]]","x":460,"y":-200,"width":360,"height":140}
], ],
"edges":[ "edges":[
{"id":"9683c15c63c167c0","fromNode":"6e59f6b9f36b24e2","fromSide":"right","toNode":"e94c9e71b9aeaa89","toSide":"left"}, {"id":"9683c15c63c167c0","fromNode":"6e59f6b9f36b24e2","fromSide":"right","toNode":"e94c9e71b9aeaa89","toSide":"left"},