Linux - Cardano Node Installation
Komplett Guide fir eng Cardano-Node op Debian 12 ze installéieren mam NIX-Paketmanager, inklusiv Service-Konfiguratioun a Iwwerwaachung.
Wichteg Hiweiser
Bedenkt dës wichteg Punkten virum Setup
Hardware-Ufuerderungen
Op d'mannst 8GB RAM an 100GB Späicher fir optimal Node-Performance
NIX-Daemon erfuerderlech
Den NIX-Daemon muss korrekt installéiert a gestart sinn
Späicherplaz
Op d'mannst 50GB fräie Späicherplaz fir d'Blockchain-Daten erfuerderlech
Synchronisatiounszäit
Éischt Synchronisatioun kann 24-48 Stonnen daueren jee no Internet-Verbindung
Netzwierk-Stabilitéit
Stabil Internet-Verbindung fir kontinuéierlech Synchronisatioun néideg
Setup Schrëtt
Install system dependencies
sudo apt update && sudo apt install -y git tmux curlInstall NIX package manager
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemonRestart system
rebootA restart is required after NIX installation
Edit NIX configuration
Restart NIX daemon
systemctl restart nix-daemon.serviceCreate Cardano user
sudo useradd -m -s /bin/bash cardanoSwitch to Cardano user
sudo -i -u cardanoClone Cardano Node repository
git clone https://github.com/IntersectMBO/cardano-nodeChange to Cardano Node directory
cd cardano-nodeDisplay available versions
git tag | sort -VCheckout current stable version
git switch -d tags/10.4.1Install Cardano Node and CLI in NIX profile
nix profile install .#cardano-node .#cardano-cliThis can take 30-60 minutes as all dependencies are compiled
Create symlink for Cardano Node
sudo ln -sf /home/cardano/.nix-profile/bin/cardano-node /usr/local/bin/cardano-nodeCreate symlink for Cardano CLI
sudo ln -sf /home/cardano/.nix-profile/bin/cardano-cli /usr/local/bin/cardano-cliAdjust the path according to your NIX profile
Switch to Cardano user
sudo -i -u cardanoCreate configuration directories
mkdir -p ~/cardano-config ~/cardano-dbChange to configuration directory
cd ~/cardano-configDownload official configuration files
curl -O -J "https://book.play.dev.cardano.org/environments/mainnet/{config,db-sync-config,submit-api-config,topology,byron-genesis,shelley-genesis,alonzo-genesis,conway-genesis,checkpoints}.json"Create systemd service file
Reload systemd manager
systemctl daemon-reloadEnable Cardano Node service
systemctl enable cardano-nodeStart Cardano Node service
systemctl start cardano-nodeFollow service logs
journalctl -u cardano-node -fCheck synchronization progress
cardano-cli query tip --socket-path /home/cardano/cardano-db/node.socket --mainnetInitial blockchain synchronization can take 24-48 hours
Zousätzlech Tipps
Nëtzlech Kommandoen an Tipps fir besser Gestioun
Zousätzlech Ressourcen
Offiziell Dokumentatioun an hëllefräich Linken
Installation ofgeschloss!
Är Cardano-Node ass erfollegräich installéiert a leeft als Systemd-Service. D'Blockchain-Synchronisatioun leeft am Hannergrond a kann 24-48 Stonnen daueren.