THIS GUIDE IS FOR EDUCATIONAL PURPOSE ONLY. IT COMES WITH NO WARRANTY AND SHOULD BE USED AT YOUR OWN RISKS. MAKE THE APPROPRIATE BACKUPS!!! THIS GUIDE ASSUME YOU FOLLOWED https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node
Written by QCPOL (https://qcpol.stakepool.quebec)
sudo apt update -y
sudo apt upgrade -y
sudo apt autoremove -yghcup install ghc 9.6.6
ghcup set ghc 9.6.6
ghcup rm ghc 8.10.7ghcup install cabal 3.12.1.0
ghcup set cabal 3.12.1.0
ghcup rm cabal 3.8.1.0UTxO-HD (source)
sudo apt-get install liblmdb-dev -y
cd $HOME/cardano-my-node
jq '. += {LedgerDB: {SnapshotInterval: 4320, NumOfDiskSnapshots: 2, QueryBatchSize: 100000, Backend: "V2InMemory"}}' ${NODE_CONFIG}-config.json > tmp && mv tmp ${NODE_CONFIG}-config.jsoncd $HOME/cardano-my-node
jq '. += {ConsensusMode: "PraosMode", MinNodeVersion: "10.4.0", UseTraceDispatcher: false}' ${NODE_CONFIG}-config.json > tmp && mv tmp ${NODE_CONFIG}-config.jsoncd $HOME/git
git clone https://github.com/IntersectMBO/cardano-node.git cardano-node-10.5.1
cd cardano-node-10.5.1
git fetch --all --recurse-submodules --tags
git checkout tags/10.5.1
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
echo "with-compiler: ghc-9.6.6" >> cabal.project.local
rm -rf $HOME/git/cardano-node-10.5.1/dist-newstyle/build/x86_64-linux/ghc-9.6.6
cabal update
cabal build cardano-node cardano-submit-apicd $HOME/git
git clone https://github.com/IntersectMBO/cardano-cli.git cardano-cli-10.11.1.0
cd cardano-cli-10.11.1.0
git fetch --all --recurse-submodules --tags
git checkout tags/cardano-cli-10.11.1.0
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
echo "with-compiler: ghc-9.6.6" >> cabal.project.local
rm -rf $HOME/git/cardano-cli-10.11.1.0/dist-newstyle/build/x86_64-linux/ghc-9.6.6
cabal update
cabal build cardano-clisudo systemctl stop cardano-node
sudo systemctl stop cardano-submit-apisudo cp $(find $HOME/git/cardano-cli-10.11.1.0/dist-newstyle/build -type f -name "cardano-cli") /usr/local/bin/cardano-cli
sudo cp $(find $HOME/git/cardano-node-10.5.1/dist-newstyle/build -type f -name "cardano-node") /usr/local/bin/cardano-node
sudo cp $(find $HOME/git/cardano-node-10.5.1/dist-newstyle/build -type f -name "cardano-submit-api") /usr/local/bin/cardano-submit-apisudo systemctl start cardano-node
sudo systemctl start cardano-submit-api