How to set up a POOL in a few minutes - and register using CNTOOLS

hmm did u ran the . “${HOME}/.bashrc” command?

I did. And running through the cnode stuff then gives me a bunch of errors that I’m sure is rooted to the initial errors


This is what happens when I run prereqs

Try to search through comments, I think someone posted a resolution to this issue

Alright, did a preliminary searches for both ghcup and ghcup: command not found and I could not find anything that seems to match up with my problem. Because it seems like the shell scripts for prereqs is simply not installing everything I need for whatever reason

is this the first attempt? or u tried before another guide?

I deployed one successfully using the Stakepool247 guide but I wanted CNTools to simplify SPO.

aa ok, then I think u will need a fresh/clean OS before to try this guide… can u reinstall the OS?
and also to use import wallet option you will need to run the commands which I gave u above… after you will run the prereqs.sh script

ghcup install cabal 3.2.0.0
ghcup set cabal 3.2.0.0
check the version
cabal - -version. (U should see 3.2.0.0)
Now stop the node and rebuild
sudo systemctl stop cnode
cd ~/git
cd cardano-node

git fetch --tags --all
git checkout 1.27.0

echo -e “package cardano-crypto-praos\n flags: -external-libsodium-vrf” > cabal.project.local

$CNODE_HOME/scripts/cabal-build-all.sh -o

!!! but please replace the characters ["] the forum changes the format and you will receive errors

I’m deploying using AWS. So just use a fresh instance, run the command you just gave, then run the prereqs?

nope, first step - run prereqs.sh (be careful also to run the . “${HOME}/.bashrc” command)
and 2nd step - the above commands

Alright, I’ll report back from a fresh OS install

I ran through up to using ./prereqs.sh and I get this issue when I run it
image
Is this something that the bashrc scripts solves? GHCup and Cabal are not installed because of this issue.

ok, try to run the . “${HOME}/.bashrc” command and after that try the commands for step2

Thanks for this guide, Alex.
I don’t have advanced knowledge in linux as well as IT.
What do i need to setup a Cardano Stake Pool from begining?
For example :

  • First, install Ubuntu (20.04 or…)
  • Second, choose server (google cloud, aws, google cloud, digitalocean,…)
  • Third, follow your guide…
  • u will need ubuntu 18.04 or 20.04
  • at least 2 servers (bare metal or vps) - 1 Producer and 1 Relay
  • follow the script.. updated:

STEP 1 - downloading the prerequisites:

this step will create the folder structure and it will download the necessary files and scripts to operate the POOL

mkdir "$HOME/tmp"
cd "$HOME/tmp"
curl -sS -o prereqs.sh https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/prereqs.sh
chmod 755 prereqs.sh
./prereqs.sh 
. "${HOME}/.bashrc"

*check if this command (. “${HOME}/.bashrc”) was configured *

STEP2 - building the node :

this commands will actually build/compile the node and will take around 40-45 minutes.


ghcup - -version (should be 8.10.2)

ghcup install ghc 8.10.2

ghcup set ghc 8.10.2

- check again the version
ghcup - -version

ghcup install cabal 3.2.0.0
ghcup set cabal 3.2.0.0

cd ~/git
git clone https://github.com/input-output-hk/cardano-node
cd cardano-node

git fetch --tags --all
git checkout 1.27.0

echo -e "package cardano-crypto-praos\n  flags: -external-libsodium-vrf" > cabal.project.local
$CNODE_HOME/scripts/cabal-build-all.sh -o
2 Likes

Thanks Alex.
I’ll try. :muscle:

Hey it’s me again. Sorry for not replying earlier, Cardano forums have a lockout time when my account was new. But I am having a new problem. When I try to import my wallet through a mnemonic, I get this error. I tried this
ERROR: need ‘bech32’ (command not found)
try ‘sudo apt install bech32’
please install with your packet manager of choice(apt/yum etc…) and relaunch CNTools
ERROR: cardano-address and/or bech32 executables not found in path!
Please run updated prereqs.sh and re-build cardano-node

But it results in the same error. I noticed that it may have something to do with $PATH but that doesn’t lead into the Cabal directory, which is where Bech32 is. Any idea what might have happened?
Capture

cd ~/.cabal/bin

ls -l

What do u have here?


This is what I get

ghcup - -version

ghcup install ghc 8.10.2

ghcup set ghc 8.10.2

Check again the ghc version

ghcup - -version

ghcup install cabal 3.2.0.0
ghcup set cabal 3.2.0.0

- check the version
cabal - -version ( need 3.2.0.0)

- stop the node
sudo systemctl stop cnode

cd ~/git
cd cardano-node

git fetch --tags --all
git checkout 1.27.0

echo -e “package cardano-crypto-praos\n flags: -external-libsodium-vrf” > cabal.project.local

$CNODE_HOME/scripts/cabal-build-all.sh -o


- start the node
sudo systemctl start cnode

Check again inside cabal folder

cd ~/.cabal/bin
ls -l