Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

138 total results found

Linux 啟用Trash 回收桶

Linux 相關

安裝Trash 回收桶以避免RM 誤刪除檔案 安裝Trash-Cli apt install trash-cli 指令 刪除檔案 trash 123.txt 查看回收桶 trash-list 清空回收桶 trash-empty 回收桶檔案路徑為~/.local/share/Trash/files/ RM指令取代Trash 建立/etc/profile.d/00-aliases.sh  alias rm='trash'

Linux Looking Glass IP網頁檢測

Linux 相關

運行環境 Debian 12 PHP 8 下載Looking Glass 使用hybula修改版本,建議使用PHP 8 NGINX範例 server { listen 80; listen [::]:80; server_name _; root /var/www/html/lookingglass/; index index.php ; location / { try_files $uri $uri/ =404; } location ...

Linux SSH KEY 免密碼登入

Linux 相關

建立Key ssh-keygen 複製到Server上 ssh-copy-id -i your_key_path username@server_host 手動複製 cat ~/.ssh/id_rsa.pub | ssh user@192.168.0.100 'mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys' 驗證ssh username@se...

LS-WVL 安裝 Debian12

Buffalo LS-WVL

下載檔案 initrd.buffalo uImage.buffalo acp_commander.jar 1.acp_commander安裝 準備一台已經運行原廠Buffalo的LS WVL設備 將initrd.buffalo和uImage.buffalo複製到acp_commander.jar同目錄 運行指令尋找設備IP java -jar acp_commander.jar -f 複製安裝檔到設備 java -jar acp_commander.jar -t <device ip a...

LINUX
LS-WVL

LS-WVL Debian 安裝後選項

Buffalo LS-WVL

Triggerhappy 按鈕 apt install triggerhappy 監聽按鈕 thd --dump /dev/input/event* 建立關機功能 echo "SW_LID 0 poweroff" > /etc/triggerhappy/triggers.d/gpf.conf 修改/lib/systemd/system/triggerhappy.service,把ExecStart user的nobody改成root,不然無權限執行poweroff ExecStart=/usr/...

Linux X11 Forwarding 圖形轉發

Linux 相關

Windows安裝 xming等套件後開啟 安裝X11相關套件 apt install x11-apps apt install xauth 修改SSH設定 X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes systemctl restart sshd Putty連接 選擇ssh x11 enable,輸入IP後SSH連接,確認DISPLAY有輸出 root@x11:# echo $DISPLAY localhost:1...

LS-WVL Linux使用LSUpdater更新

Buffalo LS-WVL

LSUpdater為windows軟體,要在Linux使用需安裝wine和x11轉發 LSUpdater為32位元,需載入i386多重架構 dpkg --add-architecture i386 apt update apt install wine32:i386 root@x11:~# dpkg --print-foreign-architectures i386 wine LSUpdater.exe x11即可跳出視窗程式 若wine有錯誤則重置設定 rm -rf ~/.wine ...

Linux TAB鍵自動補全

Linux 相關

若系統tab命令補全失效,安裝以下套件 apt-get install bash-completion 重啟 shell echo "source /etc/bash_completion" >> ~/.bashrc source /etc/bash_completion

LS-WVL 使用NUT (Network UPS Tools)監控UPS

Buffalo LS-WVL

運行環境 LS-WVL刷Debian 12 安裝套件 apt install -y nut 設定 編輯/etc/nut/nut.conf ,修改MODE=netclient,確認權限為root nut none: Nut 未設定standalone: 獨立模式, 一般在只有一個 UPS 且只負責本地系統(不提供網路服務)的情況下使用.netserver:  Nut Server.netclient: 客戶端模式, 只啟動 nut-monitor, 用於連接遠端的 Nut 服務. root@LS...

LINUX
LS-WVL
UPS

LS-WVL 透過Synology排程使用SMART抓取硬碟資訊

Buffalo LS-WVL

由於不想在LS Debian內直接寄送mail,使用synology內建任務排程登入LS Debian後執行創建好的讀取硬碟bash檔並寄送mail LS-WVL設定 下載S.M.A.R.T.(硬碟監控)和mdadm(RAID 管理工具) apt install smartmontools mdadm -y 在使用者資料夾內新增執行檔案,以下範例為輸出RAID狀態和硬碟資訊 root@LS-WVL885:~# cat /home/user/raid_check.sh #!/bin/bash times...

Nginx 代理的網站 MSIE 錯誤

NGINX

問題 登入bookstack編輯文章時,發現無法上傳圖片並報錯 <html> <head><title>500 Internal Server Error</title> </head> <body> <center> <h1>500 Internal Server Error</h1></center> <hr><center>nginx</center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error p...

LibreNMS LINE Messaging API 設定

LibreNMS LibreNMS 警報相關設定

運行環境 Librenms 25.9.0 LINE Messaging API 申請 先在LINE Developers新增一個channel並選擇Messaging API 設定警報傳送 Type選擇LINE Messaging API Access token輸入Channel access token userID輸入Channel 內的user ID 設定好後點選右邊Test,LINE有出現測試訊息則成功

LibreNMS Mdadm RAID監控

LibreNMS LibreNMS 應用程式設定

使LibreNMS可監控Mdadm RAID狀態 安裝jq套件 apt install jq 下載mdadm script wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/mdadm -O /etc/snmp/mdadm chmod +x /etc/snmp/mdadm 確認可執行 root@LS-WVL885:~# /etc/snmp/mdadm {"data":[{"name":"md0","...

LibreNMS Mdadm RAID監控警報

LibreNMS LibreNMS 警報相關設定

啟用Mdadm 確認已安裝Mdadm監控   新增警報規則 Severity:警報等級 Max alert :最多通知幾次 Delay :延遲多久再來通知 Interval :通知間隔 Transports:選擇傳送類別 新增警報範本 {{ $alert->title }} 設備名稱: {{ $alert->sysName }} 等級: {{ $alert->severity }} 運行時間: {{ $alert->uptime_short }} 警示時間: {{ $alert-...

LibreNMS 硬碟使用率監控警報

LibreNMS LibreNMS 警報相關設定

新增警報規則 範例監控"/"根目錄使用率超過80% Severity:警報等級 Max alert :最多通知幾次 Delay :延遲多久再來通知 Interval :通知間隔 Transports:選擇傳送類別 新增警報範本 {{ $alert->title }} 設備名稱: {{ $alert->sysName }} 等級: {{ $alert->severity }} 運行時間: {{ $alert->uptime_short }} 警示時間: {{ $alert->times...

LibreNMS CPU使用率監控警報

LibreNMS LibreNMS 警報相關設定

新增警報規則 Severity:警報等級 Max alert :最多通知幾次 Delay :延遲多久再來通知 Interval :通知間隔 Transports:選擇傳送類別 由於多核心CPU預設一顆CPU觸發就會警報,故修改使用平均使用率計算 官方解決範本https://docs.librenms.org/Alerting/Rules/#advanced,不過有GROUP語法錯誤告警 以下為自訂修改版本搭配警報範本使用,Override SQL記得開啟 SELECT devices.de...

LibreNMS 自訂Custom OID

LibreNMS

因LS-WVL SNMP無溫度輸出,使用自訂Custom OID紀錄溫度 /sys/class/thermal/thermal_zone0/temp為LS-WVL溫度值 編輯/etc/snmp/snmpd.conf extend擴展記得included .1.3.6.1.4.1.8072.1.3 extend cpuTemp /bin/awk '{printf "%.2f",$1/1000}' /sys/class/thermal/thermal_zone0/temp 確認snmpwalk可以抓到cpuT...

Synology 使用Docker架設LibreNMS

Synology Synology Docker相關

運行環境 DSM 7.2 安裝LibreNMS 確認已安裝Portainer,在docker內新增資料夾librenms並且在裡面分別新增data、db、redis資料夾 修改資料夾權限使docker能夠寫入執行 chmod 755 /volume1/docker/librenms -R 進入Portainer,點選堆棧(Stack),並添加堆棧 名稱填寫librenms,並貼到編輯器中,指令內PUID和PGID於Shell內執行id並自行替換 user1@synology:~$...

PVE 安裝Synology 黑群暉

Proxmox PVE Proxmox Virtual Environment

安裝 建立虛擬機 於PVE內建立VM 作業系統:不使用任何媒體 系統:架構選Q35 磁碟:刪除 CPU:核心自行設置,類別選host 記憶體:自行設置 網路:自行設置(VirtIO) 完成建立虛擬機 下載RR 下載最新版RR引導,並上傳ISO映像 進入PVE shell,導入RR映像 命令為導入VM編號 映像檔位置 磁碟儲存位置 qm importdisk 500 /mnt/pve/space3/template/iso/rr.img space3 虛擬機有出現剛剛導入...

Synology 使用Docker架設Vaultwarden密碼管理

Synology Synology Docker相關

Vaultwarden為官方的 Bitwarden 社群版本,使用SQLite非常輕量,適合個人架設使用 運行環境 DSM 7.1 安裝Vaultwarden 確認已安裝Portainer,在docker資料夾新增vaultwarden,裡面新增vw-data 進入Portainer,新增堆棧(Stack)並部屬 services: app: image: vaultwarden/server:latest container_name: vaultward...