每月彙整:十二月 2022

Hinet Wifi 設定

中華電信 HiNet 光世代全屋通 Wi-Fi 5_4T4R https://iqmore.tw/cht-hinet-wi-fi-5-4t4r-arcadyan-we410443-tc-review?fbclid=IwAR1EOJsxsmpT-lnbgdzaGLwY7BpyoHpwmKflBAWyixI3-JzihOTIycBd-YU https://www.ptt.cc/bbs/Broad_Band/M.1656086917.A.A3A.html?fbclid=IwAR0EJ_HlClVjPtD2No0o2qL2lwkKHVaQpwInqPCkG8epSD4J5fM6XjfdjZo

發表於 Hinet, Network | 發表迴響

Block location List

https://www.ip2location.com/free/visitor-blocker

發表於 未分類 | 發表迴響

SELinux基础

https://www.youtube.com/watch?v=bVa5VQ38CwU SELinux 1:域domain 對進程進行限制, 2:上下文 context 對系統資源限制 ps -Z 看 domain , ls -Z 看 context systemcdtl_u : object_r : httpd_exec-t :s0  用戶:角色 :類型:mls,mcs restonrecon -R -v /var/www #恢復默認上下文 chcon –reference=/etc/named.conf.orlg /etc/named.conf #改變上下文 getenforce :看當前SELinux 工作狀態 setenforce[0|1] :設置當前SELinux 當前工作狀態

發表於 linux | 發表迴響

linux ip 別名

https://www.youtube.com/watch?v=O8dZ7c-E7ng ethtool -i enp5s0 systemctl disable NetowrkManager –now ip addr add 192.168.1.10/24 dev enp5s0 eth5s0:1 加入 固定ip vi /etc/syconfig-scripts ifcfg-ehp5s0:0 DEVICE=enp5s0:0 IPADDR=192.168.1.99 PREFIX=24 ONPARENT=yes systemctl restart network ———————————– 模式0:平衡 (2張網卡一起走) 模式1:主動被備份 (網卡故障備用) 模式3:廣播 示範 bonding 1 /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 IPADDR=192.168.1.200 PREFIX=24 … 繼續閱讀 →

發表於 linux | 發表迴響

python exe

1.安裝 pip install pyinstaller 參數 pyinstaller -h #help -F #打包成EXE -icon #圖標 -w #視窗化 -c #console -D #創建目錄 ,含EXE 及依賴性文件 python -b test.py 可以使__pycache__ 資料夾不出現 # win10 64bit 下編譯無法在 win764bit 上使用,要64 +32 bit 可用需在 python32 下使用 https://medium.com/pyladies-taiwan/python-%E5%B0%87python%E6%89%93%E5%8C%85%E6%88%90exe%E6%AA%94-32a4bacbe351

發表於 python | 發表迴響

synology 指令修改

1.更改 Synology Nas 密碼 synouser –setpw admin "password" 2.移除 Synolgy Nas Block IP 先進入 sqlite3 /etc/synoautoblock.db [刪除BlockIP] delet From AutoBlockIP where IP="BlockIP"; [查看] select * FROM AutoBlockIP; 跳出 .exit

發表於 未分類 | 發表迴響