首页    管理页面    写新日志    退出


«July 2025»
12345
6789101112
13141516171819
20212223242526
2728293031


公告

Welcome to Lin's Space !

Just enjoy yourself .

Contact me:

jerry585@gmail.com


我的分类(专题)

日志更新

最新评论

留言板

我的相册

链接

Blog信息
blog名称:Lin's Space
日志总数:20
评论数量:99
留言数量:0
访问次数:240667
建立时间:2007年5月15日




[Linux]Installing Minix on Vmware(我已经安上了)(续)
软件技术,  电脑与网络

Great Void 发表于 2007/6/17 22:10:53

# make ping 500)this.width=500'>  # make /usr/bin/ping # cd /etc # elvis inet.conf eth0      LANCE       0    { default;};   To save and quit, first press escape and then”:wq” (which means save and quit) # halt 500)this.width=500'>  d0p0s0>servers=inet d0p0s0>LANCE0=pci dop0s0>boot If things go fine, you shall see the screen shown below. 500)this.width=500'> If want to install two nics, just add one more nic in virtual machine, and then login Minix:   Note: You have to first, Power Off the Minix machine if you want to add Hardware to it (in this case NIC) Simply Right Click on the Machine name (Minix1) and go to Settings. From there add another Ethernet Adapter and Select NAT and say Finish 500)this.width=500'> # elvis /etc/inet.conf eth0 LANCE 0 { default;}; eth1 LANCE 1; # halt d0p0s0>servers=inet d0p0s0>LANCE0=pci d0p0s0>LANCE1=pci dop0s0>off 1.        return windows, Open VM->Settings editor, select floppy, unmark “connected at power on”. 2.        when power on, just enter ‘=’, Minix will bootup. 3.        if want to create another Minix virtual machine, just follow the first 13 steps, close VWware, using the existing hard disk file, such as “minix1-flat.vmdk”, which should be 200MB big, to overwrite the other disk file, such as “minix2-flat.vmdk”, you will be all set for a new minix2. APPENDIX: Using FTP Transfer Data:   Using ftp client installed in XP, such as leapFTP, to transfer files between Minix and host machine.   Virtual Consoles   Hold down the ALT key and press the left or right arrow key, F1, or F2. This switches the console between two login sessions.   Screen Dump   Screen Dump patch is already been installed if you use image file:http://web.syr.edu/~mshang/other-flat.zip If you install minix from scratch, download a patch from:http://minix1.hampshire.edu/pub/contrib/vmw-p01.tar.Z   This patch enables Minix guests on VMware to print the contents of the console screen to host's clipboard when F4 key is pressed.    Show Full Path In Minix Prompt   If you use image file: http://web.syr.edu/~mshang/other-flat.zip, just edit /.profile, change hostname to the one you want.   Login Minix, ftp paser.c, var.h to /usr/src/commands/ash overwriting the old ones. # cd /usr/src/commands/ash # make # cp sh /bin/. # cd / # elvis .profile   add one line as:   PS1=”Minix6[\u \w]# ” # reboot after login as root, if you are in /usr/src, you will find the Minix prompt becomes: Minix6[root /usr/src/]# Here Minix6 is hostname, root is current login user name, /usr/src is current working directory.   Configure Minix As A Router   Minix1 with 2 NICs, NIC1: 192.168.1.1; NIC2: 192.168.2.1Minix2 with 1 NIC, NIC3: 192.168.1.2;Minix3 with 1 NIC, NIC4: 192.168.2.2.Minix1 (Configured as Router):#add_route -I /dev/ip0 -i -g 0.0.0.0 -d 192.168.1.0 -m 1#add_route -I /dev/ip1 -i -g 0.0.0.0 -d 192.168.2.0 -m 1#add_route -I /dev/ip0 -i -g 192.168.1.1 -d 0.0.0.0 -m 1#add_route -I /dev/ip1 -i -g 192.168.2.1 -d 0.0.0.0 -m 1#add_route -I /dev/ip0 -g 192.168.1.1#add_route -I /dev/ip1 -g 192.168.2.1#irdpd -b &## pr_routes -I /dev/ip0ent #   if               dest         gateway dist  pref  mtu flags   0  ip0         0.0.0.0/0    192.168.1.1    1     0    0 static# pr_routes -I /dev/ip1ent #   if               dest         gateway dist  pref  mtu flags   1  ip1         0.0.0.0/0    192.168.2.1    1     0    0 static# pr_routes -I /dev/ip0 -ient #   if               dest         gateway dist  pref  mtu flags   0  ip0    192.168.1.0/24        0.0.0.0    1     0    0 static   2  ip0         0.0.0.0/0    192.168.1.1    1     0    0 static# pr_routes -I /dev/ip1 -ient #   if               dest         gateway dist  pref  mtu flags   1  ip1   192.168.2.0/24         0.0.0.0    1     0    0 static   3  ip1         0.0.0.0/0  192.168.2.1    1     0    0 static#Minix2:#add_route -I /dev/ip0 -g 192.168.1.1 -d 192.168.2.0 -m 2## pr_routes -I /dev/ip0ent #   if               dest         gateway dist  pref  mtu flags   1  ip1      192.168.2.0/24          192.168.2.1    1     0    0 static# pr_routes -I /dev/ip0 -ient #   if               dest         gateway dist  pref  mtu flagsMinix3:#add_route -I /dev/ip0 -g 192.168.2.1 -d 192.168.1.0 -m 2## pr_routes -I /dev/ip0ent #   if               dest         gateway dist  pref  mtu flags   1  ip1      192.168.1.0/24          192.168.1.1    1     0    0 static# pr_routes -I /dev/ip0 -ient #   if               dest         gateway dist  pref  mtu flagsthen Minix2 could ping or telnet Minix3 by using Minix1 as a router. Some mistakes in the manual of add_routes, please check add_route.c to find the correct usage of it.  


阅读全文(2671) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.031 second(s), page refreshed 144777568 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号