Posts

Docker

參考資料 《Docker —— 從入門到實踐》 Docker 簡介 安裝 Ubuntu sudo apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.

Docker 實作 PoW

安裝 ca_geth docker docker pull calee0219/ca_geth 更好的版本 XD geth-node docker pull blakeberg/geth-node 搭建基于以太坊的私有链环境 以太坊上搭建私鏈群 以太坊私網建立 detail info do transaction 建立自己的 Ethereum 私鏈做研究 Creating a Private Chain/Testnet How To Create A Private Ethereum Chain 快速安裝 使用 calee0219/ca_geth docker 這樣就可以開始挖 CACoin 啦~ docker run ca_geth -t /root/init_start.

Ether Explorer 架設

explorer 提供類似 EtherScan 的功能 用 pulling 的方式更新,效能較差 UI 好看 安裝 前處理 需要先有 npm, bower sudo apt-get install nodejs sudo apt-get install npm sudo apt-get install bower geth 需要開 rpc

Ethstats 佈署

分別需要兩個 repo api 的: https://github.com/cubedro/eth-net-intelligence-api 前端的: https://github.com/cubedro/eth-netstats 什麼是 netstats ethereum 監控網路節點狀態的視覺化網頁呈現 任何人都可以在EthStats仪表板上添加他们的节点 展示重要信息,诸如现在的区块,散表难度,gas价格和gas花费等 架構: 後端在每一台 node 上,主動利用 instance-api 以 WebSocket 提供資訊給前端,前端統一在一台 server 接受推播 後端可自己自由架設 api 部份架設 需求

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 檢視分割磁碟區 sudo apt install gparted sudo gparted link ln -s TARGET(src) LINK_NAME(dst) # soft link

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 --permanent --zone=public --remove-interface=ens34 firewall-cmd --permanent --zone=internal --add-interface=ens34 Allow / Deney port sudo firewall-cmd --zone=public --add-port=12345/tcp --permanent sudo firewall-cmd --zone=public --remove-port=12345/tcp --permanent Introduction to FirewallD on CentOS

GitHub 入門

GitHub 註冊 首先到 GitHub 點下網站上的Sign Up 依網站要求輸入相關資料 帳號開通後即完成!! 安裝Git Windows 首先到 Git for windows下載Git for windows安裝檔 執行安裝檔安裝Git 安裝完後, 電腦上應該會出現一個Git Bash程式, 按下並執行Git Bash Linux sudo apt-get install git // debian or ubuntu sudo yum install git-core //fedora sudo dnf install git // fedora 24 or upper MAC brew install git or

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 chain -E: rename rule -A: append rule -I: insert rule to number -R: replace -D: delete LIST -L: list -S: Specification -n: user number to show -v: verbose -x: show msg –line number: show line number DST-NAT sudo sysctl net.

Jupyter 設定

Install pip install jupyter sudo pip3 install --upgrade pip sudo pip3 install jupyter Error ModuleNotFoundError: No module named '_sqlite3' ModuleNotFoundError: No module named 'pysqlite2' Used start cd /要用來存資料的資料夾/ jupyter notebook 參數 --ip --port --no-browser --help config 環境設定 ipython --ipython-dir= # override the default IPYTHONDIR directory, ~/.

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 --enableldap --enableldapauth --ldapserver=ldaps://ldaps.