ssh authorized_key 失效

使用 VSCode 遠端開發時發現把 public key 加入 authorized_key 還是失效,之後才知道可以加上參數進行檢查,於事先在"命令提示字元執行ssh`: ssh -i [private key path name] -v gw@192.168.19.38 結果發現真的有問題: : : debug1: Next authentication method: publickey debug1: Offering public key: id_rsa-dmgw RSA...

nextcloud 使用者檔案 重建索引 (docker)

建立nextcloud如果覺的檔案在網頁上顯示的內容與實際檔案有出入時可以透過occ來重新建立檔案的索引。 假設nextcloud建立在/var/www/html之中: cd /var/www/html sudo -u www-data php occ files:scan [使用者名稱] 重建完成後會看到如下: +---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 13...

flutter 指定 android sdk 路徑

指令: flutter --android-sdk "[路徑] 範例: C:\Users\danny>flutter config --android-sdk "D:\3106_AndroidSDK" Setting "android-sdk" value to "D:\3106_AndroidSDK". You may need to restart any open editors for them to read new settings. 記得指定完成後執行flutter doctor...

Enable Serial Terminal 開啟Serial 終端

Raspberry Pi SoC 後期有內建2組UART,所以會做一個相容, tty UART Type map Serial0 mini UART ttyS0 Serial1 PL011 ttyAMA0 Kernel Open /boot/cmdline.txt console=serial0,115200 root=PARTUUID=d82c2881-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait EDIT console=serial0,115200...

2022-12-27 tar 去掉路徑結構

產生測試資料 cd /tmp mkdir 11/22/33 -p touch 11/f1 touch 11/22/f2 touch 11/22/33/f3 目錄結構 tree tmp tmp └── 11 ├── 22 │   ├── 33 │   │   └── f3 │   └── f2 └── f1 壓縮 一般來說我們會使用zcf指定tar完成後再gzip,我們看看2個指令的差別...

2022-12-22 man 指定語言 語系

man 透過 --locale=語系 指定要看的語系說明,但不清楚語系名稱時進入usr/share/man查詢: ls -la /usr/share/man danny@EDY-G41MT-D3:/usr/share/man$ ls -la total 484 drwxr-xr-x 36 root root 4096 Sep 23 08:53 . drwxr-xr-x 347 root root 12288 Dec 3 17:01 .. drwxr-xr-x 5 root root 4096 Feb 7 2020 cs...