-
Notifications
You must be signed in to change notification settings - Fork 215
/
vnc.sh
45 lines (32 loc) · 1.3 KB
/
vnc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
#This script isn't Advanced
#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 *
#removing all existing folders
rm -r *
#downloading ngrok stable from official webserver
wget 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip'
#unzipping ngrok-stable-linux-amd64.zip in selected folder
unzip ngrok-stable-linux-amd64.zip
#asking ngrok auth token
echo " Go to ngrok.io in any browser & signin or signup, copy the ngrok auth token and paste here, ngrok token only (example - 4OXX56rxxxI00QGKnXXXXZ0_3xSAyW24irP0A0ie0bo0B),Readme - https://github.com/developeranaz/cloudshell-novnc-automation Ngrok Auth token: "
read input_token
echo "You entered: $input_token"
./ngrok authtoken $input_token
#orgin-repository : https://github.com/developeranaz/cloudshell-novnc-automation
#updating system
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 dorowu/ubuntu-desktop-lxde-vnc
./ngrok http 8080