{"id":13598255,"url":"https://github.com/qrush/unix","last_synced_at":"2025-04-12T18:45:45.276Z","repository":{"id":44357961,"uuid":"523729","full_name":"qrush/unix","owner":"qrush","description":"Mirror of the Restoration of 1st Edition UNIX kernel sources from pdf document.","archived":false,"fork":false,"pushed_at":"2021-07-20T13:05:29.000Z","size":12381,"stargazers_count":869,"open_issues_count":0,"forks_count":225,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-03T21:12:40.755Z","etag":null,"topics":["c","make","unix"],"latest_commit_sha":null,"homepage":"https://code.google.com/archive/p/unix-jun72/","language":"C","has_issues":false,"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/qrush.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}},"created_at":"2010-02-18T03:43:56.000Z","updated_at":"2025-04-03T19:58:14.000Z","dependencies_parsed_at":"2022-08-12T11:03:17.127Z","dependency_job_id":null,"html_url":"https://github.com/qrush/unix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qrush%2Funix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qrush%2Funix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qrush%2Funix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qrush%2Funix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qrush","download_url":"https://codeload.github.com/qrush/unix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248617403,"owners_count":21134190,"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","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":["c","make","unix"],"created_at":"2024-08-01T17:00:50.943Z","updated_at":"2025-04-12T18:45:45.248Z","avatar_url":"https://github.com/qrush.png","language":"C","readme":"**Welcome to the 1st Edition UNIX repository. Here you will find the kernel\nsource code and userland binaries which will allow you to run 1e UNIX on\na PDP-11 simulator.**\n\n### Contents\n- [Build Instructions](https://github.com/qrush/unix#Build-Instructions)\n- [Running 1st Edition UNIX](https://github.com/qrush/unix#Running-1st-Edition-UNIX)\n- [Documentation](https://github.com/qrush/unix#Documentation)\n- [Repository Layout](https://github.com/qrush/unix#Repository-Layout)\n\n\n## Build Instructions\nUnless otherwise noted, file and directory names refer to this repository.\n\n1. Download the source code for the Simh simulator from here:\n   http://simh.trailing-edge.com/. Make sure that you download\n   version 3.8-0 or later; earlier versions need patches to work.\n\n2. Unpack Simh somewhere. Make the BIN/ directory in Simh at the top level.\n   Do make pdp11 to make the pdp11 simulator in the BIN/ directory. Copy\n   the BIN/pdp11 executable into the tools/ directory.\n\n2. Return to the 1st Edition top-level directory. Do a make. This will do\n   several things.  It will build tools/mkfs, tools/ml and tools/apout/apout.\n   These tools are required to build the filesystems for 1e UNIX, and the\n   kernel. It will create kernel sources with some necessary patches, assemble\n   the kernel and build a bootable Simh memory image which is installed into\n   the images directory.  Finally, the make will build the rf0.dsk, rk0.dsk\n   and tape images and install these in the images directory. You can also do\n   a \"make clean\" to clean out the images/ and build/ directories. A \"make\n   clobber\" will clean out the images/, build/  and tools/ directories.\n\n## Running 1st Edition UNIX\n\n1. Run ./simh.cfg which starts the pdp11 simulator. You should see this:\n\n     PDP-11 simulator V3.8-0\n     ./simh2.cfg\u003e #!tools/pdp11\n     Unknown command\n     Disabling CR\n     Disabling XQ\n     RF: buffering file in memory\n     TC0: 16b format, buffering file in memory\n     Listening on port 5555 (socket 7)\n\n   You will receive a login: prompt:\n\n2. Type in root followed by \u003cRETURN\u003e. You should receive a # prompt.\n\n3. Type in an ls -l command. You should see something like this:\n\n   total    6\n    43 sdrwr-  2 root    620 Jan  1 00:00:00 bin\n    42 sdrwr-  2 root    250 Jan  1 00:00:00 dev\n   104 sdrwr-  2 root    110 Jan  1 00:00:00 etc\n   114 sdrwr-  2 root     50 Jan  1 00:00:00 tmp\n    41 sdrwr-  7 root     70 Jan  1 00:00:00 usr\n\n4. To change directories, use chdir, e.g. chdir /usr. The only editor installed\n   is `ed'. You can find an ed tutorial in notes/edtut.txt.\n\n5. To log in multiple times, telnet to localhost port 5555.  The system\n   is configured to allow 8 remote logins.\n\n6. To shut the system down, enter ctrl-E to stop the simulator, and q to quit.\n   You do not need to sync the system before shutdown.\n\n## Documentation\n\nThe manuals for 1st Edition UNIX are available here:\nhttps://www.bell-labs.com/usr/dmr/www/1stEdman.html, and\nhttp://www.bitsavers.org/pdf/bellLabs/unix/UNIX_ProgrammersManual_Nov71.pdf\n\nSome documentation of the internals of the 1st Edition UNIX are available here:\nhttp://www.bitsavers.org/pdf/bellLabs/unix/PreliminaryUnixImplementationDocument_Jun72.pdf\n\nDetails of the PDP-11/20 architecture and its peripherals can be found at:\nhttp://www.bitsavers.org/pdf/dec/pdp11/handbooks/PDP1120_Handbook_1972.pdf\nhttp://www.bitsavers.org/pdf/dec/pdp11/handbooks/PDP11_PeripheralsHbk_1972.pdf\n\nThe C compiler from 2nd Edition UNIX is also installed and works, but the\nlanguage is a very early dialect of C. The closest reference to the language\nat this point in time is this, but it is probably 2 years too late:\nhttps://www.bell-labs.com/usr/dmr/www/cman74.pdf\n\nThe userland binaries come from a period somewhere between the 1st and 2nd\nEdition of UNIX. You may find the 2e manuals useful too:\nhttp://www.bitsavers.org/pdf/bellLabs/unix/Unix_2nd_Edition_Manual_Jun72.pdf\n\n## Repository Layout\n\npages/\t\t- OCR'd pages from the PreliminaryUnixImplementation document\nrebuilt/\t- kernel source rebuilt from the OCR'd pages, as asm files\npatches/\t- patches to rebuilt/ files to get kernel to run\nfs/\t\t- userland binaries and files, used to make rf0.dsk and rk0.dsk\nsrc/\t\t- source code for userland: there is not much available\ntools/\t\t- tools and scripts to build the kernel and filesystem\nbuild/\t\t- build area: patched kernel files, patched filesystems\nimages/\t\t- final disk and tape images to be used by the Simh simulator\nmisc/\t\t- misc. files, e.g. the Simh patch for KE11A support\nnotes/\t\t- notes on the work done to get 1e UNIX to run again\ndiffs/\t\t- Differences between pages/* and the high quality OCR\n                  done by James Markevitch.  Includes headers and footers.\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqrush%2Funix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqrush%2Funix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqrush%2Funix/lists"}