From 1c0d9586dba531079af6248856ab3adb39f2450e Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Thu, 6 Jun 2024 01:18:57 +0300 Subject: [PATCH 1/7] Update version to v1.4.19 --- README.md | 4 ++-- install/install_docker.sh | 2 +- install/install_quilibrium_service.sh | 2 +- profile/.bash_profile | 8 ++++---- profile/.profile | 8 ++++---- quilibrium_for_dummies.sh | 2 +- update.sh | 6 +++--- updateDocker.sh | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index f61b0c4..dbe92f1 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,14 @@ After first run, when you need to reach your node, you need to run only; **Autoinstaller Script for Quilibrium as a Service** -Use below command to install v1.4.18 +Use below command to install v1.4.19 wget -O - https://raw.githubusercontent.com/0xOzgur/QuilibriumTools/main/install/install_quilibrium_service.sh | bash **Autoupdater** -If you need to update your node from previous version to 1.4.18, apply below command +If you need to update your node from previous version to 1.4.19, apply below command wget -O - https://raw.githubusercontent.com/0xOzgur/QuilibriumTools/main/update.sh | bash diff --git a/install/install_docker.sh b/install/install_docker.sh index 95b22ba..7bb4229 100644 --- a/install/install_docker.sh +++ b/install/install_docker.sh @@ -60,7 +60,7 @@ git checkout release # Step 7:Build Docker Container echo "⏳Building Ceremonyclient Container" sleep 2 # Add a 2-second delay -docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium:1.4.18 . +docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium:1.4.19 . # Step 8:Run Ceremonyclient Container echo "✅Running Ceremonyclient Container" diff --git a/install/install_quilibrium_service.sh b/install/install_quilibrium_service.sh index 094c2e7..160a972 100644 --- a/install/install_quilibrium_service.sh +++ b/install/install_quilibrium_service.sh @@ -86,7 +86,7 @@ git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclien git checkout release # Set the version number -VERSION="1.4.18" +VERSION="1.4.19" # Get the system architecture # ARCH=$(uname -m) diff --git a/profile/.bash_profile b/profile/.bash_profile index d709cad..9a027cc 100644 --- a/profile/.bash_profile +++ b/profile/.bash_profile @@ -28,15 +28,15 @@ OS=$(uname -s) # Determine the node binary name based on the architecture and OS if [ "$ARCH" = "x86_64" ]; then if [ "$OS" = "Linux" ]; then - NODE_BINARY='node-1.4.18-linux-amd64' + NODE_BINARY='node-1.4.19-linux-amd64' elif [ "$OS" = "Darwin" ]; then - NODE_BINARY='node-1.4.18-darwin-amd64' + NODE_BINARY='node-1.4.19-darwin-amd64' fi elif [ "$ARCH" = "aarch64" ]; then if [ "$OS" = "Linux" ]; then - NODE_BINARY='node-1.4.18-linux-arm64' + NODE_BINARY='node-1.4.19-linux-arm64' elif [ "$OS" = "Darwin" ]; then - NODE_BINARY='node-1.4.18-darwin-arm64' + NODE_BINARY='node-1.4.19-darwin-arm64' fi fi diff --git a/profile/.profile b/profile/.profile index 0c3ef83..5db3d54 100644 --- a/profile/.profile +++ b/profile/.profile @@ -24,15 +24,15 @@ OS=$(uname -s) # Determine the node binary name based on the architecture and OS if [ "$ARCH" = "x86_64" ]; then if [ "$OS" = "Linux" ]; then - NODE_BINARY='node-1.4.18-linux-amd64' + NODE_BINARY='node-1.4.19-linux-amd64' elif [ "$OS" = "Darwin" ]; then - NODE_BINARY='node-1.4.18-darwin-amd64' + NODE_BINARY='node-1.4.19-darwin-amd64' fi elif [ "$ARCH" = "aarch64" ]; then if [ "$OS" = "Linux" ]; then - NODE_BINARY='node-1.4.18-linux-arm64' + NODE_BINARY='node-1.4.19-linux-arm64' elif [ "$OS" = "Darwin" ]; then - NODE_BINARY='node-1.4.18-darwin-arm64' + NODE_BINARY='node-1.4.19-darwin-arm64' fi fi diff --git a/quilibrium_for_dummies.sh b/quilibrium_for_dummies.sh index 64b43ea..b07c197 100644 --- a/quilibrium_for_dummies.sh +++ b/quilibrium_for_dummies.sh @@ -6,7 +6,7 @@ source ~/.bashrc clear # Set the version number -VERSION="1.4.18" +VERSION="1.4.19" # Determine the ExecStart line based on the architecture ARCH=$(uname -m) diff --git a/update.sh b/update.sh index dd1014a..d039b7e 100644 --- a/update.sh +++ b/update.sh @@ -2,7 +2,7 @@ # Step 0: Welcome echo "This script is made with ❤️ by 0xOzgur.eth @ https://quilibrium.space" -echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.18!" +echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.19!" echo "The script is prepared for Ubuntu machines. If you are using another operating system, please check the compatibility of the script." echo "⏳Processing..." sleep 5 # Add a 5-second delay @@ -14,7 +14,7 @@ apt install cpulimit -y apt install gawk -y #incase it is not installed # Step 1:Download Binary -echo "⏳ Downloading New Release v1.4.18" +echo "⏳ Downloading New Release v1.4.19" cd ~/ceremonyclient git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git || git remote set-url origin https://git.quilibrium-mirror.ch/agostbiro/ceremonyclient.git git pull @@ -72,7 +72,7 @@ sudo systemctl enable ceremonyclient sudo service ceremonyclient start # See the logs of the ceremonyclient service -echo "🎉 Welcome to Quilibrium Ceremonyclient v1.4.18" +echo "🎉 Welcome to Quilibrium Ceremonyclient v1.4.19" 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 diff --git a/updateDocker.sh b/updateDocker.sh index 9519488..6a026fb 100644 --- a/updateDocker.sh +++ b/updateDocker.sh @@ -2,7 +2,7 @@ # Step 0: Welcome echo "This script is made with ❤️ by 0xOzgur.eth" -echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.18!" +echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.19!" echo "⏳Processing..." sleep 10 # Add a 10-second delay @@ -10,7 +10,7 @@ sleep 10 # Add a 10-second delay service ceremonyclient stop # Step 1:Download Binary -echo "⏳ Downloading New Release v1.4.18" +echo "⏳ Downloading New Release v1.4.19" cd ~/ceremonyclient git pull git checkout release @@ -18,7 +18,7 @@ git checkout release # Step 7:Build Docker Container echo "⏳Building Ceremonyclient Container" sleep 2 # Add a 2-second delay -docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium -t quilibrium:1.4.18 . +docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium -t quilibrium:1.4.19 . # Step 8:Run Ceremonyclient Container echo "✅Running Ceremonyclient Container" From 956585ed4e36f358a87cc4d5f1286671bb5889bf Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Fri, 7 Jun 2024 00:13:01 +0300 Subject: [PATCH 2/7] gitignore --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8eeea1e..1f99410 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ ssh.bat visibility/ visibility/visibility.py -visibility/peerlist.xml \ No newline at end of file +visibility/peerlist.xml +quilibrium_for_pros.sh +backup.sh \ No newline at end of file From 7a00f8ffdf9d23d14376d0fbfa224ceb33977096 Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Fri, 7 Jun 2024 12:19:06 +0300 Subject: [PATCH 3/7] v1.4.19 update --- .gitignore | 1 + install/install.sh | 6 +++--- quilibrium_for_dummies.sh | 8 ++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 1f99410..38dedd7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ visibility/ visibility/visibility.py visibility/peerlist.xml quilibrium_for_pros.sh +backup_ozgur.sh backup.sh \ No newline at end of file diff --git a/install/install.sh b/install/install.sh index e94835d..c6126d2 100644 --- a/install/install.sh +++ b/install/install.sh @@ -55,10 +55,10 @@ sudo sysctl -p # 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; } +wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz +sudo tar -xvf go1.22.4.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; } -sudo rm go1.20.14.linux-amd64.tar.gz || { echo "Failed to remove downloaded archive! Exiting..."; exit_message; exit 1; } +sudo rm go1.22.4.linux-amd64.tar.gz || { echo "Failed to remove downloaded archive! Exiting..."; exit_message; exit 1; } # Step 4: Set Go environment variables diff --git a/quilibrium_for_dummies.sh b/quilibrium_for_dummies.sh index b07c197..6f0adb4 100644 --- a/quilibrium_for_dummies.sh +++ b/quilibrium_for_dummies.sh @@ -16,18 +16,18 @@ OS=$(uname -s) if [ "$ARCH" = "x86_64" ]; then if [ "$OS" = "Linux" ]; then NODE_BINARY="node-$VERSION-linux-amd64" - GO_BINARY="go1.20.14.linux-amd64.tar.gz" + GO_BINARY="go1.22.4.linux-amd64.tar.gz" elif [ "$OS" = "Darwin" ]; then NODE_BINARY="node-$VERSION-darwin-amd64" - GO_BINARY="go1.20.14.linux-amd64.tar.gz" + GO_BINARY="go1.22.4.linux-amd64.tar.gz" fi elif [ "$ARCH" = "aarch64" ]; then if [ "$OS" = "Linux" ]; then NODE_BINARY="node-$VERSION-linux-arm64" - GO_BINARY="go1.20.14.linux-arm64.tar.gz" + GO_BINARY="go1.22.4.linux-arm64.tar.gz" elif [ "$OS" = "Darwin" ]; then NODE_BINARY="node-$VERSION-darwin-arm64.tar.gz" - GO_BINARY="go1.20.14.linux-arm64.tar.gz" + GO_BINARY="go1.22.4.linux-arm64.tar.gz" fi fi From a062172f1a8ab201057da9a8dc2d5adce190151f Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Fri, 7 Jun 2024 19:51:22 +0300 Subject: [PATCH 4/7] Version info added --- quilibrium_for_dummies.sh | 75 +++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 38 deletions(-) diff --git a/quilibrium_for_dummies.sh b/quilibrium_for_dummies.sh index 6f0adb4..be7b645 100644 --- a/quilibrium_for_dummies.sh +++ b/quilibrium_for_dummies.sh @@ -16,18 +16,18 @@ OS=$(uname -s) if [ "$ARCH" = "x86_64" ]; then if [ "$OS" = "Linux" ]; then NODE_BINARY="node-$VERSION-linux-amd64" - GO_BINARY="go1.22.4.linux-amd64.tar.gz" + GO_BINARY="go1.20.14.linux-amd64.tar.gz" elif [ "$OS" = "Darwin" ]; then NODE_BINARY="node-$VERSION-darwin-amd64" - GO_BINARY="go1.22.4.linux-amd64.tar.gz" + GO_BINARY="go1.20.14.linux-amd64.tar.gz" fi elif [ "$ARCH" = "aarch64" ]; then if [ "$OS" = "Linux" ]; then NODE_BINARY="node-$VERSION-linux-arm64" - GO_BINARY="go1.22.4.linux-arm64.tar.gz" + GO_BINARY="go1.20.14.linux-arm64.tar.gz" elif [ "$OS" = "Darwin" ]; then - NODE_BINARY="node-$VERSION-darwin-arm64.tar.gz" - GO_BINARY="go1.22.4.linux-arm64.tar.gz" + NODE_BINARY="node-$VERSION-darwin-arm64" + GO_BINARY="go1.20.14.linux-arm64.tar.gz" fi fi @@ -417,45 +417,44 @@ while true; do clear echo "This script is made with ❤️ by 0xOzgur.eth @ https://quilibrium.space" echo "Welcome to Quilibrium for Dummies!" - + echo " - _____ _ _ _ _ _ - / ___ \ (_) (_) | (_) - | | | |_ _ _| |_| | _ ____ _ _ _ ____ - | | |_| | | | | | | || \ / ___) | | | | \ - \ \____| |_| | | | | |_) ) | | | |_| | | | | - \_____)\____|_|_|_|____/|_| |_|\____|_|_|_| + _____ _ _ _ _ _ + / ___ \ (_) (_) | (_) + | | | |_ _ _| |_| | _ ____ _ _ _ ____ + | | |_| | | | | | | || \ / ___) | | | | \ + \ \____| |_| | | | | |_) ) | | | |_| | | | | + \_____)\____|_|_|_|____/|_| |_|\____|_|_|_| - ___ - / __) - | |__ ___ ____ - | __) _ \ / ___) - | | | |_| | | - _| \___/|_| + ___ + / __) + | |__ ___ ____ + | __) _ \ / ___) + | | | |_| | | + _| \___/|_| - _____ _ - (____ \ (_) - _ \ \ _ _ ____ ____ _ ____ ___ - | | | | | | | \| \| |/ _ )/___) - | |__/ /| |_| | | | | | | | ( (/ /|___ | - |_____/ \____|_|_|_|_|_|_|_|\____|___/ + _____ _ + (____ \ (_) + _ \ \ _ _ ____ ____ _ ____ ___ + | | | | | | | \| \| |/ _ )/___) + | |__/ /| |_| | | | | | | | ( (/ /|___ | + |_____/ \____|_|_|_|_|_|_|_|\____|___/ " - echo "Welcome you Dummy! What would you like to do today?" - + echo "Welcome you Dummy!" + echo "Please follow insturctions very carefully" + echo "Please install prerequisites first, then install node, lastly configure grpcurl." + echo "Do not forget to restart the node after configuration." + echo "Quilibrium Version: $VERSION" + echo "" echo "Please choose an option:" - - echo "1) Install Prerequisites" - echo "2) Install Node" - echo "3) Configure grpCurl" - echo "4) Update Node" + echo "" + echo "1) Install Prerequisites 4) Update Node 8) Restart Node" + echo "2) Install Node 5) Check Visibility 9) Stop Node" + echo "3) Configure grpCurl 6) Node Info e) Exit" + echo "4) Update Node 7) Node Logs" echo "5) Check Visibility" - echo "6) Node Info" - echo "7) Node Logs" - echo "8) Restart Node" - echo "9) Stop Node" - echo "e) Exit" - + echo "" read -p "Enter your choice: " choice case $choice in @@ -471,6 +470,6 @@ echo " e) break ;; *) echo "Invalid option, please try again." ;; esac - + echo "" read -n 1 -s -r -p "Press any key to continue" done \ No newline at end of file From 57f852f1ac2ded7e8668f42a9195ae357a3ea73d Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Fri, 7 Jun 2024 19:52:18 +0300 Subject: [PATCH 5/7] V19 ready --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 38dedd7..f984c43 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,7 @@ visibility/visibility.py visibility/peerlist.xml quilibrium_for_pros.sh backup_ozgur.sh -backup.sh \ No newline at end of file +backup.sh +backup/backup.sh +backup/backup_ozgur.sh +quilibrium_for_pros.sh \ No newline at end of file From e0120dac9cd3c2f5c30c31827433d4769648775a Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sat, 8 Jun 2024 10:50:43 +0300 Subject: [PATCH 6/7] Menu fix --- quilibrium_for_dummies.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/quilibrium_for_dummies.sh b/quilibrium_for_dummies.sh index be7b645..e417b59 100644 --- a/quilibrium_for_dummies.sh +++ b/quilibrium_for_dummies.sh @@ -449,11 +449,10 @@ echo " echo "" echo "Please choose an option:" echo "" - echo "1) Install Prerequisites 4) Update Node 8) Restart Node" - echo "2) Install Node 5) Check Visibility 9) Stop Node" - echo "3) Configure grpCurl 6) Node Info e) Exit" - echo "4) Update Node 7) Node Logs" - echo "5) Check Visibility" + echo "1) Install Prerequisites 5) Check Visibility 9) Stop Node" + echo "2) Install Node 6) Node Info e) Exit" + echo "3) Configure grpCurl 7) Node Logs " + echo "4) Update Node 8) Restart Node" echo "" read -p "Enter your choice: " choice From 240e1cfc8d3afa4e6d5f44fbe151b4e1f675a7c9 Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sat, 8 Jun 2024 13:44:51 +0300 Subject: [PATCH 7/7] Branch update for v.1.4.19 --- install/install.sh | 2 +- install/install_docker.sh | 2 +- install/install_quilibrium_service.sh | 2 +- quilibrium_for_dummies.sh | 4 +-- update.sh | 2 +- updateDocker.sh | 2 +- update_arm64.sh | 49 +++++++++++++++++++++++++++ 7 files changed, 56 insertions(+), 7 deletions(-) create mode 100644 update_arm64.sh diff --git a/install/install.sh b/install/install.sh index c6126d2..743f75e 100644 --- a/install/install.sh +++ b/install/install.sh @@ -116,7 +116,7 @@ else done fi cd ~/ceremonyclient/ -git checkout release +git checkout release-cdn # Build Ceremonyclient qClient echo "⏳Building qCiient" diff --git a/install/install_docker.sh b/install/install_docker.sh index 7bb4229..9cdc3d4 100644 --- a/install/install_docker.sh +++ b/install/install_docker.sh @@ -55,7 +55,7 @@ echo "⏳Downloading Ceremonyclient" sleep 2 # Add a 2-second delay git clone https://source.quilibrium.com/quilibrium/ceremonyclient.git cd ~/ceremonyclient -git checkout release +git checkout release-cdn # Step 7:Build Docker Container echo "⏳Building Ceremonyclient Container" diff --git a/install/install_quilibrium_service.sh b/install/install_quilibrium_service.sh index 160a972..aab0834 100644 --- a/install/install_quilibrium_service.sh +++ b/install/install_quilibrium_service.sh @@ -83,7 +83,7 @@ else fi cd ~/ceremonyclient/ git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git || git remote set-url origin https://git.quilibrium-mirror.ch/agostbiro/ceremonyclient.git -git checkout release +git checkout release-cdn # Set the version number VERSION="1.4.19" diff --git a/quilibrium_for_dummies.sh b/quilibrium_for_dummies.sh index e417b59..4d0deb1 100644 --- a/quilibrium_for_dummies.sh +++ b/quilibrium_for_dummies.sh @@ -169,7 +169,7 @@ else fi cd ~/ceremonyclient/ git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git || git remote set-url origin https://git.quilibrium-mirror.ch/agostbiro/ceremonyclient.git -git checkout release +git checkout release-cdn @@ -294,7 +294,7 @@ echo "⏳ Downloading New Release v$VERSION" cd ~/ceremonyclient git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git || git remote set-url origin https://git.quilibrium-mirror.ch/agostbiro/ceremonyclient.git git pull -git checkout release +git checkout release-cdn # Get the current user's home directory HOME=$(eval echo ~$HOME_DIR) diff --git a/update.sh b/update.sh index d039b7e..4973ce8 100644 --- a/update.sh +++ b/update.sh @@ -18,7 +18,7 @@ echo "⏳ Downloading New Release v1.4.19" cd ~/ceremonyclient git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git || git remote set-url origin https://git.quilibrium-mirror.ch/agostbiro/ceremonyclient.git git pull -git checkout release +git checkout release-cdn # Get the current user's home directory HOME=$(eval echo ~$HOME_DIR) diff --git a/updateDocker.sh b/updateDocker.sh index 6a026fb..3ca1a17 100644 --- a/updateDocker.sh +++ b/updateDocker.sh @@ -13,7 +13,7 @@ service ceremonyclient stop echo "⏳ Downloading New Release v1.4.19" cd ~/ceremonyclient git pull -git checkout release +git checkout release-cdn # Step 7:Build Docker Container echo "⏳Building Ceremonyclient Container" diff --git a/update_arm64.sh b/update_arm64.sh new file mode 100644 index 0000000..f4931b5 --- /dev/null +++ b/update_arm64.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +# Set the version number +VERSION="1.4.18" + +# Step 0: Welcome +echo "This script is made with ❤️ by https://quilibrium.space @ 0xOzgur.eth for scalepod.io" +sleep 2 # Add a 2-second delay + +# Stop the ceremonyclient service +service ceremonyclient stop + +# Step 1:Download Binary +cd ~/ceremonyclient +git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git +git pull +git checkout release-cdn + +# Get the current user's home directory +HOME=$(eval echo ~$HOME_DIR) + +# Use the home directory in the path +NODE_PATH="$HOME/ceremonyclient/node" +EXEC_START="$NODE_PATH/node-$VERSION-linux-arm64" + +# Step 3:Re-Create Ceremonyclient Service +rm /lib/systemd/system/ceremonyclient.service +sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null <