Note

MikroTik RouterBoard 設定

Wiki Reset 斷電時 按(插)住 reset 鍵,接電,等到燈光閃爍後,放開 /system reset-configuration 連接 下載官網給的 WinBox 點開後,在 connect to 的地方打入 MAC address,按 Connect To RoMON,等他自己找到 routerboard Login 打 …

chia-an-lee

MariaDB (MySQL)

安裝 sudo apt install mariadb-server sudo mysql # 第一次進入 使用者 change password find here SET PASSWORD = PASSWORD('new_password'); 新增使用者 find here GRANT ALL PRIVILEGES ON *.* TO …

chia-an-lee

Linux 小指令

Change default editor For global sudo update-alternatives --config editor # 然後選擇數字 For one user select-editor or in .bashrc export EDITOR='vim' export VISUAL='vim' Add groups …

chia-an-lee

Linux 上的 NVIDIA 驅動

Nvidia driver on Ubuntu find here 到 這裡 查看最新版本 nvidia release 34x: 傳統架構版本 387: 新版短期 384: 新版長期 刪除舊版 sudo apt-get purge nvidia* 安裝新版 sudo add-apt-repository ppa:graphics-drivers sudo …

chia-an-lee

Linux 上密碼相關設定

Password Policy 密碼品質檢查,這個功能是透過 pam 時做,避免 user 弱密碼導致 ssh 或其他服務被破解 (man pam_pwquality)

chia-an-lee

LDAP

freeIPA OpenLDAP Server NFS NIS LDAP Client NFS NIS LDAP 需要下載 sudo yum update && yum install openldap openldap-clients nss-pam-ldapd 複製 server 端的 CAe 產生 config authconfig …

chia-an-lee

Jupyter 設定

Install pip install jupyter sudo pip3 install --upgrade pip sudo pip3 install jupyter Error ModuleNotFoundError: No module named '_sqlite3' ModuleNotFoundError: No module named …

chia-an-lee

iptables 使用小記

iptables 參考 iptables [-t table] command CHAIN [NUM] match criteria -j ACTION CHAIN -N: (new) new a chain -X: delete chain -F: flush all chain -Z: zero the pkg counter -P: policy of …

chia-an-lee

GitHub 入門

GitHub 註冊 首先到GitHub 點下網站上的Sign Up 依網站要求輸入相關資料 帳號開通後即完成!! 安裝Git Windows 首先到Git for windows下載Git for windows安裝檔 執行安裝檔安裝Git 安裝完後, 電腦上應該會出現一個Git Bash程式, 按下並執行Git Bash Linux sudo …

chia-an-lee

firewalld 設定

firewalld sudo firewall-cmd --get-default-zone sudo firewall-cmd --set-default-zone=internal sudo firewall-cmd --get-active-zones sudo firewall-cmd --list-all-zones 換腳 firewal-cmd …

chia-an-lee