How to Plot and Upload Farmer Data in one Terminal/SSH Session Using tmux by 8BitZach#3375
OS: Ubuntu Server 20.04 LTS - SSH/Terminal Tut
Note: tmux should be installed by default on Ubuntu Server 20.04 LTS
- Login to Terminal using a connected monitor or through an SSH session.
- Type in: "tmux", there should now be a green bar at the bottom of the screen with an [0] at the beginning. The number inside of the brackets is the session number you are using.
- Change the directory you are working into the chives-blockchain directory. Ex: "cd ~/chives-blockchain
- Type in ". ./activate" followed by "chives farm uploadfarmerdata &" - the & indicates the upload will run in the background so you can use this same terminal for other commands by hitting the "enter" hey after the upload information is displayed.
- Now chives is uploading farmer data to the https://community.chivescoin.org/ portal.
- To detach the tmux session, you need to click ctrl+b then d. The command will continue to run in the detached tmux session.
- Type in: "tmux" again and now you should see a [1] instead of [0] indicating we are now in tmux session 1.
- Navigate to your plotting software, in my example I will use MadMaxx. Ex: "cd ~/chia-plotter/build" and run your plotting command (I recommend using df -h to display used/free disk space in Linux)
- Once your plotting command is running successfully, detach this new tmux session, you need to click ctrl+b then d. Plotting will now continue running in the background.
To re-connect to any detached tmux session, type "tmux attach -t sessionnumber" Ex: "tmux attach -t 0" and to detach from the session, you are able to press ctrl+b then d as we had done after running the uploadfarmerdata command, and plotting tmux sessions.