xv6 setup on native Linux machines ---------------------------------- 1. Execute `sudo apt-get update` to update your sources. 2. Execute `sudo apt install -y make qemu-system-i386 gcc-11 tar` to install the essentials 2.1 NOTE: THIS WILL CHANGE YOUR DEFAULT GCC version! Execute `sudo ln -s /usr/bin/gcc-11 /usr/bin/gcc` 3. Execute `curl https://www.cse.iitb.ac.in/~puru/courses/xv6-public.tar.gz --output xv6.tar.gz` to get the xv6 source 4. Execute `tar -xvzf xv6.tar.gz` to uncompress the source. It will be uncompressed to directory named `xv6-public` 5. Navigate to the xv-public directory by `cd xv6-public` 6. Execute `make qemu-nox` or `make qemu` 7. Now after a successful build a new terminal would be visibile, running xv6. 8. Execute `ls` to display the currently available files. 9. Execute `echo "helloworld! > hw.txt` 10. Execute `cat hw.txt` 11. Execute `wc hw.txt` To exit qemu press `Ctrl-A x` Note: These steps presume Ubuntu 24.04.1