Blog

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

file system

fstab mount NTFS find here /etc/fstab UUID=989CE0C49CE09E4E /home/calee/stg ntfs-3g defaults 0 0 Find UUID it’s a symbolic link to /dev/sd_ find here ls -l /dev/disk/by-uuid 檢視分割磁碟 …

chia-an-lee

Ethstats 佈署

分別需要兩個 repo api 的: https://github.com/cubedro/eth-net-intelligence-api 前端的: https://github.com/cubedro/eth-netstats 什麼是 netstats ethereum 監控網路節點狀態的視覺化網頁呈現 任何人都可以在EthStats仪表板上添加他们的节 …

chia-an-lee