{"id":967,"date":"2016-08-23T22:41:51","date_gmt":"2016-08-23T14:41:51","guid":{"rendered":"http:\/\/twitter.ols3.net\/?p=967"},"modified":"2016-08-23T22:43:40","modified_gmt":"2016-08-23T14:43:40","slug":"%e4%be%86%e7%8e%a9-pdp-11-%e9%85%8d%e5%82%99%e7%ac%ac%e4%b8%83%e7%89%88%e7%9a%84-unix","status":"publish","type":"post","link":"https:\/\/twitter.ols3.net\/?p=967","title":{"rendered":"\u4f86\u73a9 PDP-11 \u914d\u5099\u7b2c\u4e03\u7248\u7684  UNIX"},"content":{"rendered":"<p>\u958b\u6a5f\u9032\u5165 PDP-11\uff1a<\/p>\n<p><a href=\"http:\/\/twitter.ols3.net\/wp-content\/uploads\/2016\/08\/pdp-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-968\" src=\"http:\/\/twitter.ols3.net\/wp-content\/uploads\/2016\/08\/pdp-11.png\" alt=\"pdp-11\" width=\"714\" height=\"399\" srcset=\"https:\/\/twitter.ols3.net\/wp-content\/uploads\/2016\/08\/pdp-11.png 714w, https:\/\/twitter.ols3.net\/wp-content\/uploads\/2016\/08\/pdp-11-300x168.png 300w\" sizes=\"(max-width: 714px) 100vw, 714px\" \/><\/a><\/p>\n<p>\u7528 UNIX 7ed \u4e2d\u7684 cc \u7de8\u8b6f\u548c\u57f7\u884c C \u8a9e\u8a00\u7684\u7a0b\u5f0f\uff1a<\/p>\n<p><a href=\"http:\/\/twitter.ols3.net\/wp-content\/uploads\/2016\/08\/pdp-11-c.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-969\" src=\"http:\/\/twitter.ols3.net\/wp-content\/uploads\/2016\/08\/pdp-11-c.png\" alt=\"pdp-11-c\" width=\"717\" height=\"366\" srcset=\"https:\/\/twitter.ols3.net\/wp-content\/uploads\/2016\/08\/pdp-11-c.png 717w, https:\/\/twitter.ols3.net\/wp-content\/uploads\/2016\/08\/pdp-11-c-300x153.png 300w\" sizes=\"(max-width: 717px) 100vw, 717px\" \/><\/a><\/p>\n<blockquote><p>Turn your PC into a PDP-11 running Seventh Edition UNIX. This way you can run UNIX just like Dennis Ritchie and Ken Thompson did back in 1979. This is a sanos port of <a href=\"http:\/\/simh.trailing-edge.com\/\" target=\"_top\">Bob Supnik&#8217;s PDP-11 simulator<\/a>. I have made an ISO image with sanos, the PDP-11 simulator, and the <a href=\"http:\/\/simh.trailing-edge.com\/kits\/uv7swre.zip\" target=\"_top\">UNIX V7 kit<\/a> from The Computer History Simulation Project. Just put the CD-ROM in your PC and boot. Then your PC is turned into a PDP-11 running UNIX V7! This is great fun if you&#8217;re a nostalgic UNIX geek.<\/p>\n<p>If your want to try the UNIX V7 demo first download and unzip the <a href=\"http:\/\/www.jbox.dk\/downloads\/pdp11.zip\">ISO image<\/a>. You can burn this image to a CD-ROM using your favorite CD-burner program and then boot the computer from the CD-ROM. You can also try it out using VMware by setting pdp11.iso as the ISO image for the CD-ROM device. You can get the source I have used to build the image <a href=\"http:\/\/www.jbox.dk\/downloads\/pdp11-src.zip\">here<\/a>.<\/p>\n<p>When you boot from the CD-ROM, sanos boots and starts the PDP-11 simulator. The simulator then boots UNIX V7 from the image.<\/p>\n<ul>\n<li>At the boot prompt type: b<\/li>\n<li>At the @ prompt type: boot&lt;enter&gt;<\/li>\n<li>At the : prompt type: rl(0,0)rl2unix&lt;enter&gt;<\/li>\n<li>At the # prompt type &lt;ctrl-d&gt;<\/li>\n<li>Login as root with password root<\/li>\n<\/ul>\n<div class=\"fragment\">\n<pre>KDF11B-BH ROM V0.9\r\n\r\n  512KB MEMORY\r\n9 STEP MEMORY TEST\r\n  STEP 1 2 3 4 5 6 7 8 9\r\nTOTAL MEMORY ERRORS =     0\r\nCLOCK ENABLED\r\n\r\nType ? for HELP\r\nEnter one of [Boot, Diagnose, Help, List, Map]:b\r\nTRYING UNIT DL0\r\n\r\nBOOTING FROM DL0\r\n@boot\r\nNew boot, known devices are hp ht rk rl rp tm vt\r\n:rl(0,0)rl2unix\r\nmem = 177856\r\n# Restricted rights: Use, duplication, or disclosures\r\nis subject to restrictions stated in your contract with\r\nWestern Electric Company, Inc.\r\nThu Sep 22 19:44:08 EDT 1988\r\n\r\nlogin: root\r\nPassword: \r\n#\r\n<\/pre>\n<\/div>\n<p>Your UNIX V7 system is now up and running. You can use your ordinary UNIX commands like cat, ls, man, etc.<\/p>\n<p>You can try to compile and run a simple C program:<\/p>\n<div class=\"fragment\">\n<pre class=\"\"># cd \/usr\/src\r\n# cat hello.c\r\n# cc -o hello hello.c\r\n# hello<\/pre>\n<\/div>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u958b\u6a5f\u9032\u5165 PDP-11\uff1a \u7528 UNIX 7ed \u4e2d\u7684 cc \u7de8\u8b6f\u548c\u57f7\u884c C \u8a9e\u8a00\u7684\u7a0b\u5f0f\uff1a Turn your  &hellip; <a href=\"https:\/\/twitter.ols3.net\/?p=967\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u4f86\u73a9 PDP-11 \u914d\u5099\u7b2c\u4e03\u7248\u7684  UNIX<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131,130],"tags":[],"_links":{"self":[{"href":"https:\/\/twitter.ols3.net\/index.php?rest_route=\/wp\/v2\/posts\/967"}],"collection":[{"href":"https:\/\/twitter.ols3.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/twitter.ols3.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/twitter.ols3.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/twitter.ols3.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=967"}],"version-history":[{"count":2,"href":"https:\/\/twitter.ols3.net\/index.php?rest_route=\/wp\/v2\/posts\/967\/revisions"}],"predecessor-version":[{"id":971,"href":"https:\/\/twitter.ols3.net\/index.php?rest_route=\/wp\/v2\/posts\/967\/revisions\/971"}],"wp:attachment":[{"href":"https:\/\/twitter.ols3.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/twitter.ols3.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/twitter.ols3.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}