小明的網誌

一個工程師的故事

By

gitea 加上 indexer 後遇到問題

為了讓 gitea 能搜尋 repository 裡的任何檔案, 所以開啟 indexer 功能, 參考: Repository indexer
加完後, 就爛了

Read More

By

把 wordpress 用到的 php 弄到 8.2.x, 紀錄遇到的問題及解決方法

問題1:

Too few arguments to function WP_Widget::__construct(), 0 passed in /usr/share/nginx/html/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected

Read More

By

synology 開後自動修改 /volume1 參數

cat <<HERE > /usr/local/etc/rc.d/chg_volume1_mount-opt.sh
#!/bin/sh
# nosuid,nodev,noexec
mount -o noatime,nosuid,nodev,noexec,remount /volume1
HERE

chown root:root /usr/local/etc/rc.d/chg_volume1_mount-opt.sh
chmod 700 /usr/local/etc/rc.d/chg_volume1_mount-opt.sh

By

弄了一個無互動的自動裝 Debian 的步驟

緣由

在 P 社, 曾利用 ansible + cobbler 弄了自動重灌, 但想把它 改為 shell script 直接處理, 結果差不多被我弄出來, 完成度大概 90%

Read More

By

修改 Debian console 解析度為 640×480 + disable ipv6

緣由

維護 Debian 主機時, 常需要接 KVM/IPKVM, 但若 KVM/IPKVM 有這樣狀況, 無法讓 console 畫面顯示正常, 唯有更改解析度

Read More

By

PowerCLI for VMWare vCenter

緣由

有時 VMWare Guest OS 會有狀況要 power reset, 都只能登入 vcenter 裡進行操作
但我記得 VMWare 一樣有怪怪的 SDK 可以用, 它真的怪, 整合 powershell, 唉, 先頂著用

Read More

By

設定 docker 版本的 sshd server

情境說明/緣由

  • 為了保護 Linux host, 避免被攻陷
  • 方便工程師上傳程式碼: 配合 scp, rsync over ssh 等
  • 過程能加密

Read More

Verified by MonsterInsights