每月彙整:六月 2021

Ubuntu家目錄資料夾的中文改為英文

export LANG=en_US xdg-user-dirs-gtk-update 在按 updatenames

發表於 未分類 | 發表迴響

Linux解決Failed to set time: Automatic time synchronization is enabled

手動調整時間 會出現Failed to set time: Automatic time synchronization is enabled 先關閉自動 ntp timedatectl set-ntp no 調整為 2021-03-01 14:10:40 timedatectl set-time "2021-03-01 14:10:40 調整完再開機 timedatectl set-ntp yes

發表於 未分類 | 發表迴響

cmd check myip

REM 主選單 :MENU cls For /f "tokens=2 delims=: " %%A in (‘nslookup myip.opendns.com. resolver1.opendns.com 2^>NUL^|find "Address:"‘) Do (Set ExtIP=%%A) @Echo. Echo External IP is : %ExtIP% REM 若有變動則寫入IP.log 檔中 if not "%ExtOldIP%" == "%ExtIP%" ( Echo Time:%time:~0,8% External IP is: … 繼續閱讀 →

發表於 未分類 | 發表迴響

route

route add 其他常用route 指令 ● route add 用來加入路由路徑 例如:route add 192.168.0.0 mask 255.255.0.0 192.168.1.1 if 0×2 metric 20 指出 Network Destination、Netmask、Gateway、Interface 和 metric。 ● route -p add 用來永久加入路由路徑,使用-p 參數可以保留路徑設定,不會因為電腦重開機而消失。 例如:route -p add 192.168.0.0 mask 255.255.0.0 192.168.1.1 if 0×2 metric 20。 … 繼續閱讀 →

發表於 未分類 | 發表迴響

win10 考用簡單看ip

curl curlmyip.org

發表於 未分類 | 發表迴響

Proxmox:spice

qm showcmd xxx >> /tmp/vm-xxx.sh vi /tmp/vm-xxx.sh find addr=127.0.0.1 chang addr=0.0.0.0 args: -device AC97,addr=0×18 -spice ‘port=61001,disable-ticketing,seamless-migration=on’ remote-viewer.exe spice://procmox_ip:61001 -f full-scren=f11 ctrl+alt+end=ctrl+all+del args: -spice ‘port=6999,addr=0.0.0.0,seamless-migration=on,password=password’

發表於 未分類 | 發表迴響

Block Team View Using Mikrotik Firewall Rules

/ip firewall filter add chain=forward action=add-dst-to-address-list protocol=tcp address-list=Team View address-list-timeout=1d dst-port=5938 /ip firewall filter add chain=forward action=drop src-address-list=Team View /ip firewall filter add chain=forward action=drop dst-address-list=Team View

發表於 未分類 | 發表迴響

mikrotik block L7 youtube facebook

Block L7 ^.(youtube.com|facebook.com).*$ ^.+(youtube.com|facebook.com).*$

發表於 未分類 | 已標籤 | 發表迴響

windows openssl

https://slproweb.com/products/Win32OpenSSL.htmll 選擇Win64 OpenSSL Light 加到環境Path,C:\Program Files\OpenSSL-Win64\bin 這樣一般終端機視窗 。shell 也能使用,要用管理者權限開啟 mkdir a cd a openssl.exe genrsa -out .key 2048 (檔案要保留) for linux——–>openssl req -new -out .csr -key .key (我是在windows 用linux 指令,也可以) for windows—->openssl.exe req -new -key .key -out .csr -config openssl.cfg … 繼續閱讀 →

發表於 未分類 | 已標籤 | 發表迴響