1. install requirement file
1.1 requirement file install
#If you are thinking of installing fact0rn node, modify install.sh to delete comments, change your RPC ID and password, and run install.sh
sh install.sh
1.2 example file copy
server : cp mine.server.simple.example.sh mine.sh
client : cp mine.server.simple.example.sh mine.sh
cp centralmn.example.sh centralmn.sh

2. chage parameter
  mine.sh, and etc
% ex : chage scriptPubKey in mine.sh

3. seting master & slave
   3.1 master
      #----- Miners in client (slave) mode must set the address of the master.#####
      export MINER_MODE="SERVER CLIENT" #Default SERVER  ["SERVER" "CLIENT"]
      export CADO_SERVER_URL="http://127.0.0.1:24242"   
   3.2 slave
      # must be set CADO_SERVER_URL for master
      export MINER_MODE="CLIENT" #Default SERVER  ["SERVER" "CLIENT"]
      export CADO_SERVER_URL="http://127.0.0.1:24242"   

4. run miner 
  sh miner.sh
     
5. If it is for the purpose of collecting minor information centrally, do the following.
   5.1 Run the collection process of the server you are collecting.
   sh centralmn.sh
   5.2 Modify the information of each master miner's mine.sh as follows.
   export CENTRAL_MN_IP={Collection Server IP}
   export CENTRAL_MN_PORT=19201

6. Additional GPU operation server execution
   6.1 run GPU operation server
   # Important : requirement cuda
   cd gpu-server
   sh gpuecm.sh
   6.2 Modify the information of each master miner's mine.sh as follows.
   export GPUECM_SERVER_IP="192.168.0.11 192.168.0.12 192.168.0.13"
   export GPUECM_SERVER_PORT="19302 19302 19302"

7. Additional msieve GPU seting(20% performance improvement)
   7.1 Modify the information of each miner's mine.sh as follows. (only master)
      export USE_MSIEVE="True"
      export SENTENCE_IN_CADO_NFS_FOR_STOPPING_PROCESS="Info:Filtering - Merging: Starting"
   7.2 This is a setup where the msieve process can work as a background.
      export USE_DUAL_PROCESS="True" 

