-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwin8vnc
19 lines (18 loc) · 995 Bytes
/
win8vnc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip > /dev/null 2>&1
unzip ngrok-stable-linux-amd64.zip > /dev/null 2>&1
./ngrok authtoken 2B0VEr6AyDAjZXG5nPTjTlYPThV_2mowSDFwvTxAwieqhtYi3
nohup ./ngrok tcp 5900 &>/dev/null &
echo Please wait for installing...
sudo apt update -y > /dev/null 2>&1
echo "Installing QEMU (2-3m)..."
sudo apt install qemu-system-x86 curl -y > /dev/null 2>&1
echo Downloading Windows Disk...
curl -L -o android.qcow2 https://app.vagrantup.com/thuonghai2711/boxes/WindowsQCOW2/versions/1.1.0/providers/qemu.box
echo "Windows 8 x86 Lite On Google Colab"
echo Your Vnc IP Address:
curl --silent --show-error http://127.0.0.1:4040/api/tunnels | sed -nE 's/.*public_url":"tcp:..([^"]*).*/\1/p'
echo "Note: Use Right-Click Or Ctrl+C To Copy"
echo "Please Keep Colab Tab Open, Maximum Time 12h"
echo Script by Jia
sudo qemu-system-x86_64 -vnc :0 -hda android.qcow2 -smp cores=4 -m 8192M -machine usb=on -device usb-tablet > /dev/null 2>&1
sleep 43200