diff --git a/install/install_quilibrium_service.sh b/install/install_quilibrium_service.sh index fdec658..1f93528 100644 --- a/install/install_quilibrium_service.sh +++ b/install/install_quilibrium_service.sh @@ -43,13 +43,19 @@ git checkout release # Get the system architecture ARCH=$(uname -m) +# Get the current user's home directory +HOME_DIR=$(eval echo ~$USER) + +# Use the home directory in the path +PATH="$HOME_DIR/ceremonyclient/node" + # Step10.1:Determine the ExecStart line based on the architecture if [ "$ARCH" = "x86_64" ]; then - EXEC_START="/root/ceremonyclient/node/node-1.4.18-linux-amd64" + EXEC_START="$PATH/node-1.4.18-linux-amd64" elif [ "$ARCH" = "aarch64" ]; then - EXEC_START="/root/ceremonyclient/node/node-1.4.18-linux-arm64" + EXEC_START="$PATH/node-1.4.18-linux-arm64" elif [ "$ARCH" = "arm64" ]; then - EXEC_START="/root/ceremonyclient/node/node-1.4.18-darwin-arm64" + EXEC_START="$PATH/node-1.4.18-darwin-arm64" else echo "Unsupported architecture: $ARCH" exit 1 diff --git a/profile/.bash_profile b/profile/.bash_profile index d47885e..feb6541 100644 --- a/profile/.bash_profile +++ b/profile/.bash_profile @@ -22,7 +22,16 @@ alias wttr='curl wttr.in' neofetch -alias peer-count='cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerInfo | grep peerId | wc -l && cd ~' +alias dpeer-count='cd ~/ceremonyclient/ && docker compose exec node grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerManifests | grep peerId | wc -l' +alias dnode-info='cd ~/ceremonyclient/ && docker compose exec node node -node-info && cd ~' +alias ddb-console='cd ~/ceremonyclient/ && - docker compose exec node node --db-console && cd ~' +alias dbalance='cd ~/ceremonyclient/ && docker compose exec node node -balance && cd ~' +alias dlog='cd ~/ceremonyclient/ && docker compose logs -f -n, --tail 100 && cd ~' +alias dstart='cd ~/ceremonyclient/ && docker compose up -d && cd ~' +alias drestart='cd ~/ceremonyclient/ && docker compose down && docker compose up -d && cd ~' +alias dstop='cd ~/ceremonyclient/ && docker compose down && cd ~' + +alias peer-count='cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerManifests | grep peerId | wc -l && cd ~' alias node-info='cd ~/ceremonyclient/node && ./node-1.4.18-linux-amd64 -node-info && cd ~' alias db-console='cd ~/ceremonyclient/node && ./node-1.4.18-linux-amd64 --db-console && cd ~' alias balance='cd ~/ceremonyclient/node && ./node-1.4.18-linux-amd64 -balance && cd ~' diff --git a/profile/.profile_binary b/profile/.profile_binary index 8cd490f..78060e1 100644 --- a/profile/.profile_binary +++ b/profile/.profile_binary @@ -18,7 +18,7 @@ alias wttr='curl wttr.in' neofetch -alias peer-count='cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerInfo | grep peerId | wc -l && cd ~' +alias peer-count='cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerManifests | grep peerId | wc -l && cd ~' alias PeerManifests='cd ~/ceremonyclient/node && ./node-1.4.18-linux-amd64 -node-info && cd ~' alias db-console='cd ~/ceremonyclient/node && ./node-1.4.18-linux-amd64 --db-console && cd ~' alias balance='cd ~/ceremonyclient/node && ./node-1.4.18-linux-amd64 -balance && cd ~' diff --git a/profile/.profile_docker b/profile/.profile_docker index 6d91198..50bdeff 100644 --- a/profile/.profile_docker +++ b/profile/.profile_docker @@ -18,7 +18,7 @@ alias wttr='curl wttr.in' neofetch -alias dpeer-count='cd ~/ceremonyclient/ && docker compose exec node grpcurl -plaintext -max-msg-sz 5000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerInfo | grep peerId | wc -l' +alias dpeer-count='cd ~/ceremonyclient/ && docker compose exec node grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerManifests | grep peerId | wc -l' alias dnode-info='cd ~/ceremonyclient/ && docker compose exec node node -node-info && cd ~' alias ddb-console='cd ~/ceremonyclient/ && - docker compose exec node node --db-console && cd ~' alias dbalance='cd ~/ceremonyclient/ && docker compose exec node node -balance && cd ~' @@ -27,7 +27,7 @@ alias dstart='cd ~/ceremonyclient/ && docker compose up -d && cd ~' alias drestart='cd ~/ceremonyclient/ && docker compose down && docker compose up -d && cd ~' alias dstop='cd ~/ceremonyclient/ && docker compose down && cd ~' -alias peer-count='cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerInfo | grep peerId | wc -l && cd ~' +alias peer-count='cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerManifests | grep peerId | wc -l && cd ~' alias node-info='cd ~/ceremonyclient/node && ./node-1.4.18-linux-amd64 -node-info && cd ~' alias db-console='cd ~/ceremonyclient/node && ./node-1.4.18-linux-amd64 --db-console && cd ~' alias balance='cd ~/ceremonyclient/node && ./node-1.4.18-linux-amd64 -balance && cd ~'