install 1.4.18
This commit is contained in:
parent
a45261ec88
commit
b22e40c83d
@ -1,79 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ~
|
||||
|
||||
# Step 0: Welcome
|
||||
echo "This script is made with ❤️ by 0xOzgur.eth"
|
||||
echo "⏳Enjoy and sit back while you are building your Quilibrium Ceremony Client!"
|
||||
echo "⏳Processing..."
|
||||
sleep 10 # Add a 10-second delay
|
||||
|
||||
# Step 1: Update and Upgrade the Machine
|
||||
echo "Updating the machine"
|
||||
echo "⏳Processing..."
|
||||
sleep 2 # Add a 2-second delay
|
||||
apt-get update
|
||||
apt-get upgrade -y
|
||||
|
||||
# Step 2: Adjust network buffer sizes
|
||||
echo "Adjusting network buffer sizes..."
|
||||
if grep -q "^net.core.rmem_max=600000000$" /etc/sysctl.conf; then
|
||||
echo "net.core.rmem_max=600000000 found inside /etc/sysctl.conf, skipping..."
|
||||
else
|
||||
echo -e "\n# Change made to increase buffer sizes for better network performance for ceremonyclient\nnet.core.rmem_max=600000000" | sudo tee -a /etc/sysctl.conf > /dev/null
|
||||
fi
|
||||
if grep -q "^net.core.wmem_max=600000000$" /etc/sysctl.conf; then
|
||||
echo "net.core.wmem_max=600000000 found inside /etc/sysctl.conf, skipping..."
|
||||
else
|
||||
echo -e "\n# Change made to increase buffer sizes for better network performance for ceremonyclient\nnet.core.wmem_max=600000000" | sudo tee -a /etc/sysctl.conf > /dev/null
|
||||
fi
|
||||
sudo sysctl -p
|
||||
|
||||
# Step 3:Download Ceremonyclient
|
||||
echo "⏳Downloading Ceremonyclient"
|
||||
sleep 2 # Add a 2-second delay
|
||||
git clone https://github.com/QuilibriumNetwork/ceremonyclient.git
|
||||
|
||||
cd ~/ceremonyclient/node
|
||||
|
||||
# Step 4:Download Binary
|
||||
echo "⏳Downloading Binary"
|
||||
sleep 2 # Add a 2-second delay
|
||||
wget https://github.com/QuilibriumNetwork/ceremonyclient/releases/download/v1.4.17/node-1.4.17-linux-amd64.bin
|
||||
ls
|
||||
mv node*.bin node
|
||||
|
||||
# Step 5:Make the file executable
|
||||
echo "⏳Making the Binary executable"
|
||||
sleep 2 # Add a 2-second delay
|
||||
chmod +x node
|
||||
|
||||
# Step 6:Create Ceremonyclient Service
|
||||
echo "⏳Creating Ceremonyclient Service"
|
||||
sleep 2 # Add a 2-second delay
|
||||
sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null <<EOF
|
||||
[Unit]
|
||||
Description=Ceremony Client Go App Service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
WorkingDirectory=/root/ceremonyclient/node
|
||||
ExecStart=/root/ceremonyclient/node/node
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
# Step 7:Start the ceremonyclient service
|
||||
echo "✅Starting Ceremonyclient Service"
|
||||
sleep 2 # Add a 2-second delay
|
||||
systemctl enable ceremonyclient
|
||||
service ceremonyclient start
|
||||
|
||||
# See the logs of the ceremonyclient service
|
||||
echo "🎉Welcome to Quilibrium Ceremonyclient"
|
||||
echo "⏳Please let it flow node logs at least 5 minutes then you can press CTRL + C to exit the logs."
|
||||
sleep 5 # Add a 5-second delay
|
||||
sudo journalctl -u ceremonyclient.service -f --no-hostname -o cat
|
||||
@ -1,7 +1,6 @@
|
||||
#!/bin/bash -i
|
||||
|
||||
cd ~
|
||||
|
||||
# Step 0: Welcome
|
||||
echo "This script is made with ❤️ by 0xOzgur.eth"
|
||||
echo "⏳Enjoy and sit back while you are building your Quilibrium Node!"
|
||||
@ -33,7 +32,7 @@ fi
|
||||
sudo sysctl -p
|
||||
|
||||
|
||||
# Installing Go 1.20.14
|
||||
# Step 3:Installing Go 1.20.14
|
||||
wget https://go.dev/dl/go1.20.14.linux-amd64.tar.gz
|
||||
sudo tar -xvf go1.20.14.linux-amd64.tar.gz || { echo "Failed to extract Go! Exiting..."; exit_message; exit 1; }
|
||||
sudo mv go /usr/local || { echo "Failed to move go! Exiting..."; exit_message; exit 1; }
|
||||
@ -68,41 +67,52 @@ else
|
||||
echo "PATH set in ~/.bashrc."
|
||||
fi
|
||||
|
||||
# Source .bashrc to apply changes
|
||||
# Step 5: Source .bashrc to apply changes
|
||||
echo "⏳Sourcing .bashrc to apply changes"
|
||||
source ~/.bashrc
|
||||
sleep 5 # Add a 5-second delay
|
||||
|
||||
# Check GO Version
|
||||
# Step 6: Check GO Version
|
||||
go version
|
||||
sleep 5 # Add a 5-second delay
|
||||
|
||||
# Install gRPCurl
|
||||
# Step 7:Install gRPCurl
|
||||
echo "⏳Installing gRPCurl"
|
||||
sleep 1 # Add a 1-second delay
|
||||
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
|
||||
|
||||
# Download Ceremonyclient
|
||||
# Step 8:Download Ceremonyclient
|
||||
echo "⏳Downloading Ceremonyclient"
|
||||
sleep 1 # Add a 1-second delay
|
||||
cd ~
|
||||
git clone https://github.com/QuilibriumNetwork/ceremonyclient.git
|
||||
git checkout release
|
||||
|
||||
# Build Ceremonyclient
|
||||
echo "⏳Building Ceremonyclient"
|
||||
sleep 1 # Add a 1-second delay
|
||||
cd ~/ceremonyclient/node
|
||||
GOEXPERIMENT=arenas go install ./...
|
||||
|
||||
# Build Ceremonyclient qClient
|
||||
# Step 9: Build Ceremonyclient qClient
|
||||
echo "⏳Building qCiient"
|
||||
sleep 1 # Add a 1-second delay
|
||||
cd ~/ceremonyclient/client
|
||||
GOEXPERIMENT=arenas go build -o qclient main.go
|
||||
|
||||
# Create Ceremonyclient Service
|
||||
echo "⏳Creating Ceremonyclient Service"
|
||||
sleep 1 # Add a 1-second delay
|
||||
# Get the system architecture
|
||||
ARCH=$(uname -m)
|
||||
|
||||
# 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"
|
||||
elif [ "$ARCH" = "aarch64" ]; then
|
||||
EXEC_START="/root/ceremonyclient/node/node-1.4.18-linux-arm64"
|
||||
elif [ "$ARCH" = "arm64" ]; then
|
||||
EXEC_START="/root/ceremonyclient/node/node-1.4.18-darwin-arm64"
|
||||
else
|
||||
echo "Unsupported architecture: $ARCH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Step10.2:Create Ceremonyclient Service
|
||||
echo "⏳ Re-Creating Ceremonyclient Service"
|
||||
sleep 2 # Add a 2-second delay
|
||||
rm /lib/systemd/system/ceremonyclient.service
|
||||
sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null <<EOF
|
||||
[Unit]
|
||||
Description=Ceremony Client Go App Service
|
||||
@ -112,8 +122,7 @@ Type=simple
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
WorkingDirectory=/root/ceremonyclient/node
|
||||
Environment=GOEXPERIMENT=arenas
|
||||
ExecStart=/root/go/bin/node ./...
|
||||
ExecStart=$EXEC_START
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Loading…
Reference in New Issue
Block a user