Posts

Image
Copying Files from Windows to Linux using PuTTY   Reference : https://it.cornell.edu/managed-servers/transfer-files-using-putty You will need to have PuTTY installed on the Windows machine. PuTTY comes with some additional command-line tools. One is called "pscp" for PuTTY Secure Copy. This is the tool we'll use to copy the file from Windows to Linux.  From the command-prompt, browse to the Windows folder with the file to send.      pscp c:\info.txt userid@server.example.com:/tmp/info.txt      real example:      pscp plot-k32-2021-06-19-16* steve@192.168.1.145:/mnt/hdd-02 Note: You will be prompted for the password of the remote (Linux) system. You can pass that along as a part of the command also.     pscp -pw myPassword0!88 *.plot steve@192.168.1.135:/mnt/ext-01
Image
 Bash Script to pull Latest Chia price from CoinMarketCap This Bash script will pull down the latest price for XCH from the CoinMarketCap and display it. Here is the script: #!/bin/bash # Get current price from CoinMarketCap content=`curl -s https://coinmarketcap.com/currencies/chia-network/` value=`echo $content | cut -d'$' -f 6 | cut -d'<' -f 1` echo "$value"
Image
 Bash Script to Monitor and delete old "OG" plots to make room for new NFT plots This script uses crontab to monitor a folder containing the old non-poolable plots for Chia, aka OG plots. This only works if you have kept different types of plots in separate folders. The script does not check the plot type so be warned that if you use a folder with NFT plots, those will be deleted also. The script will delete plots when the amount of free space drops below 110,000,000 (110 GB).  Here is the script, called "drivemon.sh". #!/bin/bash drv=$1 free=`df --output=target,avail $drv | grep -v "Mount" | cut --fields 2 --delimiter=\ ` if [[ $free -lt 110000000 ]]; then # if free space is less than 110GB _and_ there are  # OG plots on the drive, delete the oldest plot. ogcount=`ls $drv/*.plot | wc -l` if [[ $ogcount -gt 0 ]]; then     rm "$(ls -t $drv/*.plot | tail -1)"   fi fi And the entry into crontab. (adjust the drive to match your needs) cr
Image
  My Plotting Builds for Chia RIG #1 (average 25 plots / day) CATEGORY DESC QTY Case Fractal Design Meshify 2 XL Black ATX Flexible Light Tinted Tempered Glass Window Full Tower Computer Case 1 Motherboard ASUS ROG Strix B550-F Gaming AMD AM4 Zen 3 Ryzen 5000 & 3rd Gen Ryzen ATX Gaming Motherboard (PCIe 4.0, 2.5Gb LAN, BIOS Flashback, HDMI 2.1, Addressable Gen 2 RGB Header and Aura Sync) 1 Processor AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked Desktop Processor 1 Cooler Noctua NH-U12S, Premium CPU Cooler withNF-F12 120mm Fan 1 RAM "OLOy DDR4 RAM 64GB (2x32GB) 3600 MHz CL18 1.35V 288-Pin Desktop Gaming UDIMM (MD4U323618DJDA)" 1 Power Supply CORSAIR HX Series, HX750, 750 Watt, 80+ Platium Certified, Fully Modular Power Supply 1 Graphics "MSI GAMING GeForce GT 710 1GB GDRR3 64-bit HDCP Support DirectX 12 OpenGL 4.5 Heat Sink Low Profile Graphics Card (GT 710 1GD3H LPV1)" 1 Cable DiLinKer M.2 to U.2 (SFF-8639) PCIe NVMe SSD Cable-PCIe NVMe U.2 (SFF-863
Image
Build your own Chia Plugin for Glances on Ubuntu Linux First you need to ensure glances is installed.  Glances Auto Install script To install the latest Glances production ready version, just enter the following command line: $ sudo apt install glances or $ curl -L https://bit.ly/glances | /bin/bash or $ wget -O- https://bit.ly/glances | /bin/bash Source:  https://nicolargo.github.io/glances/ To run Glances normally: $ glances We will want to make sure Chia's python virtual environment is running BEFORE we launch glances. To make this simplier, I added an alias to my .bashrc file. You don't have to use an alias, but will you will need to manually start the virtual environment first. $ nano .bashrc # at the bottom of your .bashrc file add an alais for glances alias gl="cd ~/chia-plugin && glances --fs-free-space --fahrenheit --process-short-name --enable-plugin sensors,chia" With that alias, now you can just run the command below to launch Glances with your P
Image
How to setup a Chia Harvester To get a Harvester computer setup, follow these steps. These steps assume you already have a FULL NODE computer running. HOME will be your user folder on a machine. Linux /home/<username> Windows C:\Users\<username> FULL NODE will be the machine you are running as a full node. HARVESTER will be the machine you want to run as a harvester, and not a full node. Step 1 . Make a  copy  of the  ca  folder on the FULL NODE and put it on the HARVESTER. I used a thumb drive to do this, but I have seen other use secure copy (scp) on the command line. Linux ~/.chia/mainnet/config/ssl/ca Windows C:\Users\<username>\.chia\mainnet\config\ssl\ca Step 2 . Edit the “config.yaml” file on the FULL NODE and make the following change. farmer: -> logging: -> log_level: Change "WARNING" to "INFO" ("DEBUG" with 1.1.6) Linux ~/.chia/mainnet/config/config.yaml Windows C:\Users\<username>\.chia\mainnet\config\conf