Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haileys/doslinux
Run Linux programs on DOS
https://github.com/haileys/doslinux
dos linux wsl
Last synced: 4 days ago
JSON representation
Run Linux programs on DOS
- Host: GitHub
- URL: https://github.com/haileys/doslinux
- Owner: haileys
- License: other
- Created: 2020-09-20T12:27:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-14T04:33:32.000Z (over 2 years ago)
- Last Synced: 2024-12-01T12:07:02.152Z (11 days ago)
- Topics: dos, linux, wsl
- Language: C
- Homepage:
- Size: 77.1 KB
- Stars: 1,538
- Watchers: 37
- Forks: 41
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - haileys/doslinux - Run Linux programs on DOS (C)
- jimsghstars - haileys/doslinux - Run Linux programs on DOS (C)
README
# DOS Subsystem for Linux
A WSL alternative for users who prefer an MS-DOS environment. DOS Subsystem for Linux integrates a real Linux environment into MS-DOS systems, allowing users to make use of both DOS and Linux applications from the DOS command prompt.
![](https://user-images.githubusercontent.com/179065/178898715-7e30135c-7afd-4f37-83cc-cf49a4d46d79.gif)
## Building
* You will need a cross toolchain targeting `i386-linux-musl` on `PATH`.
https://github.com/richfelker/musl-cross-make is a tool that can build one for you with minimal hassle. Set `TARGET` to `i386-linux-musl`.
* Build the prequisites (Linux and Busybox) by running `J=xxx script/build-prereq`, replacing `xxx` with the desired build parallelism.
* You will need a hard drive image `hdd.base.img` with an installed copy of MS-DOS on the first partition.
* Run `make`
This will produce a new hard drive image `hdd.img` with DOS Subsystem for Linux installed. Invoke `C:\doslinux\dsl ` to run Linux commands. `C:\doslinux` can also be placed on your DOS `PATH` for greater convenience.