From 13b29e917806c085ab0aa29959362e48f0836912 Mon Sep 17 00:00:00 2001 From: DevAnaZ <71500526+developeranaz@users.noreply.github.com> Date: Tue, 15 Aug 2023 11:14:55 +0530 Subject: [PATCH 1/9] Update vnc.sh --- vnc.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vnc.sh b/vnc.sh index cc3d7ae..17f7874 100644 --- a/vnc.sh +++ b/vnc.sh @@ -40,6 +40,5 @@ curl -L https://url-x.it/HTJ5qt7 #Activating screen #pushing docker ubuntu desktop using screen (you can change resolution from below code) -screen -d -m docker run -p 8080:80 -e RESOLUTION=1920x1080 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc - +screen -d -m docker run -p 8080:80 -e RESOLUTION=1920x1080 -v /dev/shm:/dev/shm developeranaz/ubuntu-desktop-lxde-vnc-cs:latest ./ngrok http 8080 From 322335a13bb6e4c9823fca0d2143b2f3e5b75d14 Mon Sep 17 00:00:00 2001 From: DevAnaZ <71500526+developeranaz@users.noreply.github.com> Date: Tue, 15 Aug 2023 12:10:45 +0530 Subject: [PATCH 2/9] Create checkifalive.sh --- checkifalive.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 checkifalive.sh diff --git a/checkifalive.sh b/checkifalive.sh new file mode 100644 index 0000000..f529158 --- /dev/null +++ b/checkifalive.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +while true; do + if curl -s http://localhost:8080 >/dev/null; then + echo "Site is Online" + echo "Go to " + curl http://localhost:4040/api/tunnels/ |sed 's/"/\n/g' |grep 'http:\|https:' |sort -u + + break + else + clear + echo "wait still working on it ." + sleep 1 + clear + echo "wait still working on it .." + sleep 1 + clear + echo "wait still working on it ..." + sleep 1 + fi +done From f220758b0e7a8f8a46edb332b37e774dce727a38 Mon Sep 17 00:00:00 2001 From: DevAnaZ <71500526+developeranaz@users.noreply.github.com> Date: Tue, 15 Aug 2023 12:16:21 +0530 Subject: [PATCH 3/9] Update vnc.sh --- vnc.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vnc.sh b/vnc.sh index 17f7874..af7e96d 100644 --- a/vnc.sh +++ b/vnc.sh @@ -35,10 +35,10 @@ sudo apt update -y #installing screen sudo apt-get install screen -y -#Tracker -curl -L https://url-x.it/HTJ5qt7 - #Activating screen #pushing docker ubuntu desktop using screen (you can change resolution from below code) screen -d -m docker run -p 8080:80 -e RESOLUTION=1920x1080 -v /dev/shm:/dev/shm developeranaz/ubuntu-desktop-lxde-vnc-cs:latest -./ngrok http 8080 +screen -d -m ./ngrok http 8080 +curl "https://raw.githubusercontent.com/developeranaz/cloudshell-novnc-automation/developeranaz-patch-1/checkifalive.sh" >checkifalive.sh +chmod +x checkifalive.sh +./checkifalive.sh From 389e08feef02d6ee64d82d711af292c98355386f Mon Sep 17 00:00:00 2001 From: DevAnaZ <71500526+developeranaz@users.noreply.github.com> Date: Tue, 15 Aug 2023 12:21:00 +0530 Subject: [PATCH 4/9] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a33f443..f93e379 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,11 @@ Google Cloudshell Free VPS with Docker-novnc and Ngrok - AUTOMATION #### Go To https://shell.cloud.google.com and use the below commands -## Before starting script give root permission -$ ``sudo su`` ------- ## 1.cloning git repository -$ ``git clone 'https://github.com/developeranaz/cloudshell-novnc-automation'`` +$ ``` +sudo su; curl 'https://raw.githubusercontent.com/developeranaz/cloudshell-novnc-automation/developeranaz-patch-1/vnc.sh' |bash +``` ------ ## 2.change dir From 9f7768481759e9b3280ad69a61f633d4f6913e6b Mon Sep 17 00:00:00 2001 From: DevAnaZ <71500526+developeranaz@users.noreply.github.com> Date: Tue, 15 Aug 2023 12:22:02 +0530 Subject: [PATCH 5/9] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f93e379..3153bf2 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,10 @@ Google Cloudshell Free VPS with Docker-novnc and Ngrok - AUTOMATION ## 1.cloning git repository -$ ``` +$ +``` sudo su; curl 'https://raw.githubusercontent.com/developeranaz/cloudshell-novnc-automation/developeranaz-patch-1/vnc.sh' |bash + ``` ------ From 65c6ff9d5ae46291504c5e03fbf74d5c30316452 Mon Sep 17 00:00:00 2001 From: DevAnaZ <71500526+developeranaz@users.noreply.github.com> Date: Tue, 15 Aug 2023 12:32:22 +0530 Subject: [PATCH 6/9] Update vnc.sh --- vnc.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vnc.sh b/vnc.sh index af7e96d..cb453f2 100644 --- a/vnc.sh +++ b/vnc.sh @@ -3,11 +3,6 @@ #Author Anaz #orgin-repository : https://github.com/developeranaz/cloudshell-novnc-automation -#making ngrok directory -mkdir ngrok - -#changing directory to ngrok -cd ngrok #removing all existing files rm * From 69688e8628ae24ee151cfdd0a146c7787c4a850e Mon Sep 17 00:00:00 2001 From: DevAnaZ <71500526+developeranaz@users.noreply.github.com> Date: Tue, 15 Aug 2023 12:33:30 +0530 Subject: [PATCH 7/9] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3153bf2..c40353f 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,7 @@ Google Cloudshell Free VPS with Docker-novnc and Ngrok - AUTOMATION ## 1.cloning git repository $ ``` -sudo su; curl 'https://raw.githubusercontent.com/developeranaz/cloudshell-novnc-automation/developeranaz-patch-1/vnc.sh' |bash - +mkdir ngrok; cd ngrok; curl 'https://raw.githubusercontent.com/developeranaz/cloudshell-novnc-automation/developeranaz-patch-1/vnc.sh' > vnc.sh; chmod +x vnc.sh; bash vnc.sh ``` ------ From 3599c4657cfceb293807ea4f25ba7cfe434e4cd7 Mon Sep 17 00:00:00 2001 From: DevAnaZ <71500526+developeranaz@users.noreply.github.com> Date: Wed, 16 Aug 2023 22:16:33 +0530 Subject: [PATCH 8/9] Update checkifalive.sh --- checkifalive.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/checkifalive.sh b/checkifalive.sh index f529158..108d29f 100644 --- a/checkifalive.sh +++ b/checkifalive.sh @@ -9,13 +9,16 @@ while true; do break else clear - echo "wait still working on it ." + echo "Wait, Your machine is currently loading." sleep 1 clear - echo "wait still working on it .." + echo "Wait, Your machine is currently loading.." sleep 1 clear - echo "wait still working on it ..." + echo "Wait, Your machine is currently loading..." + sleep 1 + clear + echo "Wait, Your machine is currently loading...." sleep 1 fi done From 66dc5b85cebc6acdec2a985835fe52436af40e0f Mon Sep 17 00:00:00 2001 From: DevAnaZ <71500526+developeranaz@users.noreply.github.com> Date: Sun, 20 Aug 2023 07:41:53 +0530 Subject: [PATCH 9/9] Update checkifalive.sh Pop message --- checkifalive.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkifalive.sh b/checkifalive.sh index 108d29f..6859cce 100644 --- a/checkifalive.sh +++ b/checkifalive.sh @@ -4,8 +4,8 @@ while true; do if curl -s http://localhost:8080 >/dev/null; then echo "Site is Online" echo "Go to " - curl http://localhost:4040/api/tunnels/ |sed 's/"/\n/g' |grep 'http:\|https:' |sort -u - + curl -s http://localhost:4040/api/tunnels/ |sed 's/"/\n/g' |grep 'http:\|https:' |sort -u + echo "Tunnel Successful. To restart or reload System Run `pkill screen; pkill ngrok; pkill supervisord; pkill containerd`" break else clear