Skip to content

Instantly share code, notes, and snippets.

@JacobPlaster
Last active March 6, 2022 00:51
Show Gist options
  • Save JacobPlaster/2a8774f4bc51658d4433fa413ac08d17 to your computer and use it in GitHub Desktop.
Save JacobPlaster/2a8774f4bc51658d4433fa413ac08d17 to your computer and use it in GitHub Desktop.
Install cardano node on Linux

Install Cardano

Download source code

git clone https://github.com/input-output-hk/cardano-sl.git   
cd cardano-sl
git checkout master

Install Nix package manager:

sh <(curl https://nixos.org/nix/install) --daemon
## reset terminal after instillation

Grab Nix binaries:

nix-build   --option substituters "https://hydra.iohk.io https://cache.nixos.org"   --option trusted-substituters ""   --option trusted-public-keys "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="   default.nix

Build Cardano-SL:

nix-build -A connectScripts.mainnet.wallet -o connect-to-mainnet

Disable client tls auth:

vim ./connect-to-mainnet
// add --no-client-auth to exec that starts the node, like this

Stat node:

./connect-to-mainnet

To change the wallet/node address just edit the connect-to-mainnet file and change the --wallet-address. To create the inital wallet (required in coin config) run getAddress rpc func

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment