# Sentry node How-to run mainnet node: https://github.com/haqq-network/mainnet <!-- enable laddr: ```sh sed -i 's#priv_validator_laddr = ""#priv_validator_laddr = "tcp://0.0.0.0:11010"#g' ~/.haqqd/config/config.toml ``` --> # Horcrux node ### Locales locale-gen en_US.UTF-8 dpkg-reconfigure locales ### Create user sudo adduser haqq sudo usermod -aG sudo haqq chmod 700 /home/haqq ### Update/upgrade and deps ```sh sudo apt-get update && sudo apt-get upgrade -y && \ sudo apt-get install curl git make gcc liblz4-tool build-essential jq -y ``` ### Install Go ```sh bash <(curl -s https://raw.githubusercontent.com/haqq-network/mainnet/master/install_go.sh) && \ source $HOME/.bash_profile ``` ### Build and install horcrux binary from source ```sh git clone -b v3.1.0 https://github.com/strangelove-ventures/horcrux.git ``` ```sh cd horcrux && make install ``` ### Horcrux config config: ```sh mkdir ~/.horcrux/ && \ nano ~/.horcrux/config.yaml ``` config link: https://gist.github.com/kioqq/584e61b9651ec767596451602ad7d69f ```sh nano ~/.horcrux/ecies_keys.json ``` copy/paste from private message ```sh nano ~/.horcrux/haqq_11235-1_shard.json ``` copy/paste from private message ### Horcrux as service ```sh sudo nano /etc/systemd/system/horcrux.service ``` **copy/paste** ```sh [Unit] Description="MPC Signer node" After=network-online.target [Service] User=haqq ExecStart=/home/haqq/go/bin/horcrux start Restart=always RestartSec=3 LimitNOFILE=4096 [Install] WantedBy=multi-user.target ``` **Start service:** ```sh sudo systemctl enable horcrux.service && \ sudo systemctl start horcrux.service ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up