2023年2月7日 星期二
OMV創建LXC後連線方式
2023年2月5日 星期日
AriaNg WebUI 出現413錯誤
若出現413錯誤訊息
Request Entity Too Large
Your request was dropped because it was too long.
刪除cookie,重新整理頁面即回復正常
Docker容器無法強制開啟,並出現AppArmor錯誤、無法加載 docker-default 配置文件的解決方式
當Docker容器無法透過指令開啟時
docker start "CONTAINER ID"
並出現錯誤訊息
Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded: running `apparmor_parser apparmor_parser --version` failed with output: error: exec: "apparmor_parser": executable file not found in $PATH
可能是apparmor套出現問題,重新安裝apparmor套件
apt install apparmor -y
並同意安裝套件維護者所提供的版本
參考網址
https://stackoverflow.com/questions/58393628/docker-error-response-from-daemon-apparmor-enabled-on-system-but-the-docker-de
2023年1月29日 星期日
FireFox常用Add-ons紀錄
1.新同文堂
繁體簡體中文轉換工具
https://addons.mozilla.org/zh-TW/firefox/addon/new_tongwentang/
2.Download Manager (S3)
用下載列檢視並管理下載檔案
https://addons.mozilla.org/zh-TW/firefox/addon/s3download-statusbar/
3.AdBlocker Ultimate
免費且更加完善的廣告過濾器。能夠徹底移除所有廣告
https://addons.mozilla.org/zh-TW/firefox/addon/adblocker-ultimate/
4.Tampermonkey
網頁腳本管理器。
https://addons.mozilla.org/zh-TW/firefox/addon/tampermonkey/
5.Simple Tab Groups
建立、編輯、及快速切換分頁群組
https://addons.mozilla.org/zh-TW/firefox/addon/simple-tab-groups/
6.Video DownloadHelper
從數百個類似 YouTube 的網站下載和轉換網絡視頻的簡單方法。
https://addons.mozilla.org/zh-TW/firefox/addon/video-downloadhelper/
7.Video Speed Controller
使用快速快捷方式加快、減慢、前進和倒回任何 HTML5 影片。
https://addons.mozilla.org/zh-TW/firefox/addon/videospeed/
8.Copy ShortURL
偵測或建立目前頁面的縮址。
https://addons.mozilla.org/zh-TW/firefox/addon/copy-shorturl/
9.Dark Reader
黑色主題,適用於任何網站。關愛眼睛,使用Dark Reader進行夜間和日間瀏覽。
https://addons.mozilla.org/zh-TW/firefox/addon/darkreader/
10.TWP - Translate Web Pages
使用Google或Yandex即時翻譯你的網頁。
https://addons.mozilla.org/zh-TW/firefox/addon/traduzir-paginas-web/
11.側邊翻譯
便捷翻譯,無憂閲讀
https://addons.mozilla.org/zh-TW/firefox/addon/edge_translate
12.Flagfox
顯示描述目前伺服器位置的國旗
https://addons.mozilla.org/zh-TW/firefox/addon/flagfox/
13.JavaScript Switcher
在 URL 欄中添加一個切換按鈕,用於為每個域單獨切換 JavaScript(打開或關閉)
https://addons.mozilla.org/zh-TW/firefox/addon/quick-js-switcher/
14.User Agent Switcher
修改瀏覽器的 User-Agent 字符串
https://addons.mozilla.org/zh-TW/firefox/addon/uaswitcher/
15.Aria2 下載器整合元件
取代內建的下載器。當開啟時偵測下載連結,導引到本擴充套件並傳送到Aria2
https://addons.mozilla.org/zh-TW/firefox/addon/aria2-integration/
16.MeTube Downloader
透過套件選單將可下載影片的連結傳送至MeTube服務
https://addons.mozilla.org/en-US/firefox/addon/metube-downloader/
17.ShopBack Button
Your all-in-one shopping button - Earning Cashback and Discover best deals!
https://addons.mozilla.org/zh-TW/firefox/addon/shopback-cashback-button/
2023年1月26日 星期四
Linux系統掛載nfs目錄
首先更新系統
apt update
apt upgrad
安裝NFS客戶端
apt install nfs-common
創建掛載目標資料夾(例如建立名為test資料夾在/mnt下)
mkdir /mnt/test
掛載指令為
mount [NFS _IP]:/[NFS_export] [Local_mountpoint]
例如
mount 192.168.100.100:/test /mnt/test
df -h
2023年1月19日 星期四
內網測速 iperf3 指令
Linux安裝命令
apt install iperf3
Windows安裝方式
在iperf3官網下載最新版本的Iperf
https://iperf.fr/iperf-download.php 
將壓縮檔裡的cygwin1.dll和Iperf3.exe
這兩個檔案複製到C:\Windows\System32即完成安裝
使用方式
先將一台電腦設定為伺服端,輸入
iperf3 -s
在要測速的電腦輸入
iperf3 -c "伺服端ip"
即可跑出目前兩台間連線速度
2023年1月18日 星期三
Linux安裝speedtest測速
首先更新系統
apt update
apt upgrad
安裝speedtest
apt install speedtest-cli
安裝完成後輸入
speedtest
即可執行測速
2022年12月18日 星期日
PVE tools安裝
項目網址(GitHub)
https://hub.fastgit.org/ivanhao/pvetools
先刪除企業版更新源
hrm /etc/apt/sources.list.d/pve-enterprise.list
安裝pvetools
export LC_ALL=en_US.UTF-8
apt update && apt -y install git && git clone https://github.com/ivanhao/pvetools.git
啟動pvetools
cd pvetools
./pvetools.sh
參考網址:
https://blog.csdn.net/MiddleWeek/article/details/123949422
https://www.jianshu.com/p/c779c7be4502
2022年5月3日 星期二
windows 4k 格式化
在windows安裝畫面
在選擇磁碟畫面按下「 shift+F10 」開啟命令提示字元
開啟磁碟公用程式
diskpart
列出電腦中所有硬碟裝置
list disk
選擇目標磁碟編號 (注意:如果有2顆以上的硬碟,需確認編號)
select disk 0
清除目前磁碟中現存的磁區
clean
建立一個符合4K對齊的磁碟格式
create partition primary align=1024
將分割區定為使用中
active
格式化磁碟,叢集為4096的格式
format fs=ntfs unit=4096 quick
離開磁碟公用程式
exit
參考資料:
【教學】ssd優化-(1)-4k對齊-【以win7為例】:https://ofeyhong.pixnet.net/blog/post/86252265
2022年4月2日 星期六
OMV 安裝 omv-extras
使用ssh登入後
輸入指令:
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash
如果無法解析網址
參考omv-firstaid在設定網路介面指定DNS
修改 /etc/resolv.conf 文件,新增DNS主機
輸入:
nameserver 8.8.8.8 nameserver 網關IP
存檔離開
若resolv.conf不斷重置原始資料則安裝resolvconf
輸入指令:
sudo apt install resolvconf
修改 /etc/resolvconf/resolv.conf.d/head 文件,新增DNS主機
參考網址:
https://wiki.omv-extras.org/
http://dns-learning.twnic.net.tw/bind/intro4.html