forked from mediabots/Linux-to-Windows-with-QEMU
-
Notifications
You must be signed in to change notification settings - Fork 98
/
Linux_QemuWindowsXPColabNoVT-X.sh
18 lines (18 loc) · 1.01 KB
/
Linux_QemuWindowsXPColabNoVT-X.sh
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
read -p "Paste authtoken here (Copy and Ctrl+V to paste then press Enter): " CRP
./ngrok authtoken $CRP
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 litexp.qcow2 https://app.vagrantup.com/thuonghai2711/boxes/WindowsQCOW2/versions/1.1.0/providers/qemu.box
echo "Windows XP x86 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 fb.com/thuong.hai.581
sudo qemu-system-x86_64 -vnc :0 -hda litexp.qcow2 -smp cores=2 -m 8192M -machine usb=on -device usb-tablet > /dev/null 2>&1