-
Install Debian (optional)
wsl --install debian wsl --setdefault Debian wsl
-
Install Dependencies
sudo apt install -y curl wget git build-essential software-properties-common
-
Install Rust
curl https://sh.rustup.rs -sSf | sh
-
Install Solana CLI
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
-
Generate Private Key with Vanity Address
cd ~ solana-keygen grind --starts-and-ends-with YOUR::1 --ignore-case >> seed.txt cp ~/*.json $HOME/.config/solana/id.json
-
Get DEVNET Gas
solana config set --url d solana airdrop 1
-
Install
cargo install [email protected]
-
Start Mining
ore --rpc https://api.devnet.solana.com --keypair ~/.config/solana/id.json mine --buffer-time 2
To turn off the screen in Windows, you can use the following command in PowerShell:
(Add-Type '[DllImport("user32.dll")]public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)