- Download the binaries according to your OS from https://github.com/input-output-hk/cardano-node/releases/latest
- Extract
cardano-nodeandcardano-cli(& other executables according to your needs, such asbech32etc.) to~/.local/bin - Download the configuration files for each network from https://book.world.dev.cardano.org/environments.html
In the ./local/bin there are:
cardano-cli-1-35-2
cardano-cli-1-35-4
cardano-cli-1-35-7
...
cardano-node-1-35-2
cardano-node-1-35-4
cardano-node-1-35-7
(just rename the previously downloaded cardano-cli and node files)
CARDANO_NODE_SOCKET_PATH="/home/ariady/cardano/node.socket"
CARDANO_MM="764824073"
CARDANO_TM="1097911063"
Preview:
cardano-node run \
--topology ~/cardano-src/cardano-node/configuration/cardano/1-35-7/preview/topology.json \
--database-path ~/path-to/cardano-preview/db \
--socket-path ~/cardano/node.socket \
--host-addr 0.0.0.0 \
--port 13572 \
--config ~/cardano-src/cardano-node/configuration/cardano/1-35-7/preview/config.json
Preprod:
cardano-node run \
--topology ~/cardano-src/cardano-node/configuration/cardano/1-35-7/preprod/topology.json \
--database-path ~/path-to/cardano-preprod/db \
--socket-path ~/cardano/node.socket \
--host-addr 0.0.0.0 \
--port 13571 \
--config ~/cardano-src/cardano-node/configuration/cardano/1-35-7/preprod/config.json
NOTE: Clear the db folder. The port number is arbitrary.