📄 example.txt
字号:
+-------------------------------------------------------+
| Setup is now done with the migration to disk, so it |
| wants me to type 'halt' and 'boot hd3'. It says |
| "please", so I comply: |
+-------------------------------------------------------+
Please insert the installation ROOT floppy and type 'halt' to exit Minix.
You can type 'boot hd3' to try the newly installed Minix system. See
"TESTING" in the usage manual.
# halt
System Halted
fd0>boot hd3
Minix 2.0.0 Copyright 1997 Prentice-Hall, Inc.
Executing in 32-bit protected mode
at-hd0: Conner Peripherals 240MB - CP2251
Memory size = 8010K MINIX = 295K RAM disk = 1024K Available = 6692K
Tue Oct 1 16:39:24 MET 1996
/dev/hd3c is read-write mounted on /usr
Starting standard daemons: update.
Login as root and run 'setup /usr' to install floppy sets.
Minix Release 2.0 Version 0
noname login:
+-------------------------------------------------------+
| Type 'root' and 'setup /usr'. ENTER, ENTER, input |
| floppy 1 of the USR.TAZ set, and ENTER. |
+-------------------------------------------------------+
noname login: root
# setup /usr
What is the size of the images on the diskettes? [all]
What floppy drive to use? [0]
Please insert input volume 1 and hit return
created directory: local/lib
created directory: local/man
created directory: local/src
created directory: man
Can't make directory mdec: File exists
+-------------------------------------------------------+
| Usage(8) warns about this "File exists" message, and |
| that it doesn't matter. Otherwise this would go |
| wrong: |
+-------------------------------------------------------+
mdec/boot, 050 tape blocks
mdec/bootblock, 01 tape blocks
mdec/extboot, 01 tape blocks
+-------------------------------------------------------+
| Lots of files installed, I add floppy 2 and 3 of |
| USR.TAZ when it asks for them. When done I type |
| "setup /usr" again for SYS.TAZ, and once more for |
| CMD.TAZ. Five floppies later and I'm done. |
+-------------------------------------------------------+
src/commands/talkd/talk.h, 03 tape blocks
src/commands/talkd/talkd.c, 03 tape blocks
src/commands/talkd/talkd.h, 01 tape blocks
/tmp/LAST, 0 tape blocks
Done.
+-------------------------------------------------------+
| As an example I give the system the name "finiah", |
| but seeing one of Michael Temari's network programs |
| extracted inspires me to make a network kernel. Log |
| in as 'bin' and bring <minix/config.h> into the one |
| true editor of the aging computer geek: |
+-------------------------------------------------------+
# echo finiah >/etc/hostname.file
# ^D
Minix Release 2.0 Version 0
finiah login: bin
! vi /usr/include/minix/config.h
+-------------------------------------------------------+
| I change the following parameters for more processes, |
| a bigger cache, no 2nd level cache, networking, only |
| the AT/IDE disk driver and 4 pseudo ttys for remote |
| login: |
+-------------------------------------------------------+
#define NR_PROCS 40
#if (MACHINE == IBM_PC && _WORD_SIZE == 4)
#define NR_BUFS 1024 /* # blocks in the buffer cache */
#define NR_BUF_HASH 2048 /* size of buf hash table; MUST BE POWER OF 2*/
#endif
#define ENABLE_CACHE2 0
#define ENABLE_NETWORKING 1 /* enable TCP/IP code */
#define ENABLE_AT_WINI 1 /* enable AT winchester driver */
#define ENABLE_BIOS_WINI 0 /* enable BIOS winchester driver */
#define ENABLE_ESDI_WINI 0 /* enable ESDI winchester driver */
#define ENABLE_XT_WINI 0 /* enable XT winchester driver */
#define ENABLE_ADAPTEC_SCSI 0 /* enable ADAPTEC SCSI driver */
#define NR_PTYS 4 /* # pseudo terminals (0 to 64) */
+-------------------------------------------------------+
| The main kernel Makefile is in /usr/src/tools. The |
| command 'make hdboot' compiles a new image and puts |
| it in /minix/, next to the distribution kernel: |
+-------------------------------------------------------+
! cd tools/
! make hdboot
+-------------------------------------------------------+
generic/tcp_send.o generic/udp.o
exec cc -c -m -I. -I.. -I/usr/include putk.c
exec cc -o inet -i inet.a putk.o
install -S 10k inet
exec cc -O -D_MINIX -D_POSIX_SOURCE init.c -o init
install -S 192w init
installboot -image image ../kernel/kernel ../mm/mm ../fs/fs ../inet/inet init
text data bss size
54432 9000 38624 102056 ../kernel/kernel
12544 1176 32072 45792 ../mm/mm
28816 2196 1101676 1132688 ../fs/fs
66480 7420 94400 168300 ../inet/inet
6828 2032 1356 10216 init
------ ------ ------ -------
169100 21824 1268128 1459052 total
exec sh mkboot hdboot
cp image /dev/hd3a:/minix/2.0.0r0
Done.
+-------------------------------------------------------+
| Shut the system down to return to the boot monitor. |
| The 2nd level cache is no longer needed, so I set the |
| RAM disk size to zero. The NE2000 card of the note- |
| book is at I/O address 300, IRQ 5. Save and boot. |
+-------------------------------------------------------+
! shutdown
Broadcast message from bin@finiah (console)
Tue Oct 1 18:08:49 1996...
The system will shutdown NOW
System Halted
hd3a>unset ramsize
hd3a>DPETH0=300:5
hd3a>save
hd3a>boot
+-------------------------------------------------------+
| The new boot messages show that things have changed. |
| The ethernet driver has found an NE2000, the larger |
| block cache has made the kernel (MINIX) larger, and |
| the RAM disk is done away with. One of my other PC's |
| has seen fit to answer the RARP request (here is my |
| ethernet address, what is my IP address?) of my |
| notebook, but the notebook doesn't yet know how to |
| translate 127.36.93.27 to its own name yet. |
+-------------------------------------------------------+
Minix 2.0.0 Copyright 1997 Prentice-Hall, Inc.
Executing in 32-bit protected mode
ne2000: NE2000 at 300:5
at-hd0: Conner Peripherals 240MB - CP2251
Memory size = 8010K MINIX =1441K RAM disk = 0K Available = 6569K
Tue Oct 1 18:12:41 MET 1996
/dev/hd3c is read-write mounted on /usr
Starting standard daemons: update.
Starting network daemons: rarpd nonamed irdpd talkd.
Starting network services: shell login telnet ftp.
Minix Release 2.0 Version 0
127.36.93.27 login: root
#
+-------------------------------------------------------+
| Let's be lazy and make this machine get its naming |
| information from its neighbour. To make it stand on |
| its own I would have to create an /etc/ethers and an |
| /etc/hosts. Reboot and all is well. |
+-------------------------------------------------------+
# echo nameserver 127.36.93.25 >/etc/resolv.conf
# shutdown -r
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -