Contact @coolkhz
Configuration Environment#
Switch User#
sudo -i
Switch to the root
user
Install Rust#
// Execute the following two commands to configure the temporary source
export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
// Install the rust environment
curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh
// Execute the following command to configure the environment variables
. "$HOME/.cargo/env"
// Configure the source
vim ~/.cargo/config
// Paste the following configuration and save it
[source.crates-io]
replace-with = 'rsproxy-sparse'
[source.rsproxy]
registry = "https://rsproxy.cn/crates.io-index"
[source.rsproxy-sparse]
registry = "sparse+https://rsproxy.cn/index/"
[registries.rsproxy]
index = "https://rsproxy.cn/crates.io-index"
[net]
git-fetch-with-cli = true
Install Solana#
// Download the program
wget https://mirror.ghproxy.com/https://github.com/solana-labs/solana/releases/download/v1.17.28/solana-release-x86_64-unknown-linux-gnu.tar.bz2
// Extract the compressed package
tar jxf solana-release-x86_64-unknown-linux-gnu.tar.bz2
// Set the environment variable (note your own directory)
export PATH="/root/solana-release/bin:$PATH"
// Check if the installation is successful
solana --version
Download and Install ORZ#
// Pull the program
git clone https://github.com/OrzSupply/orz-cli.git
// Open the program directory
cd orz-cli
// Compile the program
cargo build --release
// Change permissions
chmod +x target/release/orz
Configure Wallet#
Put your wallet private key [125.13.......34.17]
in a directory as a json file.
Here is an example /root/keys/
Install node/npm/pm2#
curl -o- https://mirror.ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
export NVM_DIR="$HOME/.nvm"
source /root/.bashrc
nvm install node
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
npm install pm2@latest -g
Configure sh and other script monitoring#
Configure ore-sh script#
Create multiple sh startup scripts
1.sh
/root/orz-cli/target/release/orz --keypair /root/keys/1.json --rpc <RPC your rpc link> --priority-fee 1000 mine --threads 4
2.sh
/root/orz-cli/target/release/orz --keypair /root/keys/2.json --rpc <RPC your rpc link> --priority-fee 1000 mine --threads 4
Create as many sh
as there are wallets, and pay attention to the difference in private key files.
Create start.sh
startup script file
vim start.sh
// Paste the code below (note the path), then save and exit.
pm2 start 1.sh --name orz1
pm2 start 2.sh --name orz2
After configuring, execute ./start.sh