-
Notifications
You must be signed in to change notification settings - Fork 11
/
Linux_QemuWindows7LiteDevCloudNoVT-X.sh
24 lines (24 loc) · 1.22 KB
/
Linux_QemuWindows7LiteDevCloudNoVT-X.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
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip > /dev/null 2>&1
unzip -o ngrok-stable-linux-amd64.zip > /dev/null 2>&1
clear
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...
wget https://transfer.sh/1H19mpR/1.zip > /dev/null 2>&1
unzip -o 1.zip > /dev/null 2>&1
wget https://transfer.sh/1kpOhP6/rootfs.tar.xz > /dev/null 2>&1
tar -xvf rootfs.tar.xz > /dev/null 2>&1
echo "Installing QEMU (2-3m)..."
./dist/proot -S . userdel _apt
./dist/proot -S . apt install qemu-system-x86 curl -y > /dev/null 2>&1
echo Downloading Windows Disk...
curl -L -o lite7.qcow2 https://app.vagrantup.com/thuonghai2711/boxes/WindowsQCOW2/versions/1.0.3/providers/qemu.box
echo "Windows 7 x86 Lite On Intel Devcloud"
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 To Copy"
echo "You Can Close Terminal Tab"
echo Script by fb.com/thuong.hai.581
cpu=$(echo nproc | bash)
./dist/proot -S . qemu-system-x86_64 -vnc :0 -hda lite7.qcow2 -smp cores=2 -m 3072M -machine usb=on -device usb-tablet > /dev/null 2>&1