how to Install windows in github codespaces
- make a blank codespace
- type in terminal
ls -a
then typeclear
- type in terminal
sudo apt update
- then type in
sudo apt install qemu-kvm qemu-system-x86 openbox firefox tigervnc-standalone-server
when it asks to download 950 mb type y - after that then git clone
git clone https://www.github.com/novnc/noVNC
- type
cd noVNC
- and
ls
- then type
sudo vncserver -SecurityType none -xstartup "openbox" -rfbport 5900
- now you are half way through
- don't click "open in browser" close the popup
- then in terminal type in
sudo ./utils/novnc_proxy --vnc 127.0.0.1:5900 --listen localhost:6080
- now click the popup that says open in browser
in the webpage click vnc.html
then press connect if the screen is black then you might be already connected when you open the html file
left click then click open browser
search up
Windows 11
click the link that says windows 11 - download windows 11 (DOWNLOAD THE ISO NOT THE EXECUTABLE) in the vm
- the download goes very fast in the vm it took me 30 seconds
- while the windows 11 iso is downloading go back to the codespace and make a new terminal
- type
sudo apt install konsole
- when asking "do you want to download 389 mb?" type
y
- watch this but it runs in 2 times speed https://www.youtube.com/watch?v=PQv-1-qI9zg
- once konsole has downloaded close firefox and leftclick and open the emulator terminal
- type
ls
- then type
cd Downloads
make sure the "D" for the Dowloads is capitalized - then type
df -h
after that typeqemu-img create disk.img 10G
- in the emulator terminal first type
cd Downloads
then typels
copy the windows iso name then typeqemu-system-x86-64 --enable-kvm -m 4G -smp 2 -pflash /usr/share/OVMF/OVMF_CODE.fd -hdd disk.img - cdrom drive Win11_22H2_English_x64v2.iso