{"id":19137499,"url":"https://github.com/dsaurus/os","last_synced_at":"2026-02-10T02:34:10.496Z","repository":{"id":105699917,"uuid":"151724330","full_name":"DSaurus/OS","owner":"DSaurus","description":"NKU OS course","archived":false,"fork":false,"pushed_at":"2018-10-09T17:24:44.000Z","size":11,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-29T04:37:23.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DSaurus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-05T13:24:45.000Z","updated_at":"2018-10-09T17:24:45.000Z","dependencies_parsed_at":"2023-06-13T00:30:50.856Z","dependency_job_id":null,"html_url":"https://github.com/DSaurus/OS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DSaurus/OS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSaurus%2FOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSaurus%2FOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSaurus%2FOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSaurus%2FOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DSaurus","download_url":"https://codeload.github.com/DSaurus/OS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSaurus%2FOS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267663078,"owners_count":24123995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T06:38:36.045Z","updated_at":"2026-02-10T02:34:10.457Z","avatar_url":"https://github.com/DSaurus.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"OS Lab1 WSL配置\n====================\n\nWSL(Windows Subsystem for Linux)简介\n----------------------\n[维基百科](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux)\n\n\nWSL配置\n----------------------\n\n- 在开始菜单输入 windows feature 打开启用或关闭 windows 功能\n- 滑动滚动条到最后，将适用于 Linux 的 windows 子系统选项打勾\n- 确定后会提示重启系统，重启即可\n- 从[这里](https://aka.ms/wsl-ubuntu-1604)下载 ubuntu16.04 安装包，不要双击打开，你需要把它解压到一个固定的目录下，注意该目录就是 linux 根目录所在目录，固定后就不能移动或删除了\n- 解压后，**以管理员权限**打开 ubuntu.exe ，按照提示即可完成 WSL 的安装（设置 ubuntu 的用户名和密码时，直接按 Ctrl + C 后重新运行可以直接使用无密码的 root 账户，避免了 sudo 和权限控制的麻烦）\n- 安装后想要使用 WSL，若从未安装过其他版本的 WSL，可以直接使用 win+R，输入 bash，或者在 cmd 里输入 bash，**若曾经安装过其他版本的 WSL，需再次双击下载好的 ubuntu.exe 运行**\n\nWSL下的 qemu 配置过程\n----------------------\n\n下列过程都在WSL环境下执行(win+R，输入 bash 即可进入WSL环境)\n\n- 执行下列操作\n\n```shell\nsudo apt update\nsudo apt install build-essential -y\nsudo apt install binutils -y\nsudo apt install libgtk2.0-dev -y\nsudo apt install g++-multilib -y\nsudo apt install libsdl-dev -y\n```\n\n- 接下来要配置 qemu 了，首先从操作系统官网上下载 lab1 的压缩包，里面包含 resource, src, doc。 然后需要进入 qemu 目录。\n- windows 下和 linux 下目录的对应关系如下。按照这个对应关系，可以使用 `cd` 命令找到并进入qemu目录。\n  ```\n   C:\\ 对应 Linux 下的 /mnt/c/ ， 其他同理\n   Linux 下的 / 对应 \u003cWSL安装目录\u003e/rootfs/\n  ```\n- 在 qemu 目录下执行 `./configure --disable-kvm --disable-werror --prefix=/usr/local/qemu --target-list=\"i386-softmmu x86_64-softmmu\"`\n- 如果一切正确，就可以执行`make`指令，之后执行`sudo make install`指令，配置结束。\n\nWSL下的 lab1 配置过程\n----------------------\n- 首先打开lab1的目录（/src/lab1_1)，进入conf目录，用文本编辑器打开 env.mk，修改最后一行为 QEMU=/usr/local/qemu/bin/qemu-system-i386 (整个一行不要有额外的空格，#为注释标记，要去掉)\n- 在WSL下进入lab1的目录，执行`make qemu-nox`，如果以上步骤正确的话，会看到qemu的输出\n- 如何退出qemu: `ctrl+A x` \n- 以后所有的指令 x 都要用 `make-x-nox` 或者 `make-x-nox-gdb`\n\n其他问题\n---------------------\n建议不要在windows目录下，对该目录使用git进行操作，最好在WSL环境下使用git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsaurus%2Fos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsaurus%2Fos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsaurus%2Fos/lists"}