[minx_vmd.hlp] - How to put Minix-vmd on a PC and get on the Internet - 03 Mar 2001 Tom Butz 100372.1036@compuserve.com ========================================================================== NOTE: Minix-vmd can read/write MS-DOS floppies, though it's quicker to connect two PCs using a null-modem cable and MS-DOS' INTERSVR.EXE and INTERLNK.EXE. Either way, you have to do a chmod 777 ppp.drv under Minix-vmd, for example, as MS-DOS disregards Minix-vmd execution bits (for an executable program such as ppp.drv). OR: use Kermit on both sides. In case you're not familiar with Kermit: it's a program available for most computers, to get them talking to each other. On both computers, type kermit, then set line COM1 [/dev/tty00 under Linux or Minix] OR set line COM2 [/dev/tty01 under Linux or Minix] set speed 9600 set file type binary On computer 1, type server, on computer 2, type send READ.ME The above would transfer file READ.ME from computer 2 to computer 1. [get READ.ME would have done it from 1 to 2] C or quit terminates Kermit. A) What you need (apart from a PC with at least a 386-CPU) ---------------- 1) Two 1.44MB floppies (#1 for file ROOT and #2 for file NETUSR) 2) MS-DOS program PART.EXE or something similar 3) ppp.drv Claudio Tantignone's Minix WWW-site 4) LYNX-271.TGZ Claudio Tantignone's Minix WWW-site 5) URLGET.TAR Claudio Tantignone's Minix WWW-site (or Michael Temari's?) 6) smr and popclient, see below, under H) Download files from http://minix1.hampshire.edu/ Copy files ROOT and NETUSR to floppies like so (under Linux): cp ROOT /dev/fd0 cp NETUSR /dev/fd0 [There are also MS-DOS programs, like RAWRITE.EXE, to do the job]. Never write-protect these two floppies. B) How to create your Minix-vmd system -------------------------------------- Boot PC using floppy #1 (the one with ROOT on it) Wait till = appears on the screen push = When the system asks you to finish the name of the device to mount as /usr: /dev/ take out floppy #1 (the one with ROOT on it) put in floppy #2 (the one with NETUSR on it) and type fd0 Wait till login: appears on the screen type root Wait till # appears on the screen type setup Follow instructions on screen. My file-table: hd1 DOS 0 1 1 101 15 37 hd2 Minix 102 0 0 684 15 37 hd2a Minix 102 0 0 105 5 32 hd2b Minix 105 5 33 145 10 24 hd2c Minix 145 10 25 684 15 37 Use PART.EXE to set up DOS-partition as primary and active; then set up Minix-vmd-partition as secondary type Minix 1.4b+ (type 81). Format partition(s) using PART.EXE. You need to change the Minix-vmd-partition's type to MS-DOS if you want to format it, too, and, of course, back to Minix 1.4b+ (type 81) afterwards. The numbers mean, from left to right: 1st cylinder/head/sector last cylinder/head/sector To access hd2's 'subdisks', that's hd2a/b/c, type a '>' next to the heading 'Num' in Minix-vmd's 'fdisk' The above is based on my CONNER 203 MB harddisk with the following specifications: cylinders=685, heads=16, sectors=38 C) Installing USR.TGZ, SRC.TGZ, LYNX-271.TGZ, URLGET.TAR and ppp.drv -------------------------------------------------------------------- Copy them and any other packages to the MS-DOS partition using INTERLNK.EXE/INTERSVR.EXE or floppies or Kermit. Boot PC using floppy with ROOT on it Wait till = appears on the screen push type boot hd2a Wait till = appears on the screen push = log in as root cd /usr mcopy hd1:USR.TGZ - | gzcat | tar xvfp - mcopy hd1:SRC.TGZ - | gzcat | tar xvfp - mcopy hd1:LYNX-271.TGZ - | gzcat | tar xvfp - cd /opt mcopy hd1:URLGET.TAR tar xvfp URLGET.TAR cd urlget make cp urlget /usr/local/bin/ cd /usr/local/bin mcopy hd1:ppp.drv chmod 777 ppp.drv D) Installing ELM.TGZ, HTTPD.TGZ, MH.TGZ, VMAIL.TGZ (all optional) ------------------------------------------------------------------ Copy them and any other packages to the MS-DOS partition using INTERLNK.EXE/INTERSVR.EXE or floppies or Kermit. They're there to be used at a later stage. Boot PC using floppy with ROOT on it Wait till = appears on the screen push type boot hd2a Wait till = appears on the screen push = log in as root cd /opt mcopy hd1:ELM.TGZ pkgadd -x ELM.TGZ elm mcopy hd1:HTTPD.TGZ pkgadd -x HTTPD.TGZ httpd mcopy hd1:MH.TGZ pkgadd -x MH.TGZ mh mcopy hd1:VMAIL.TGZ pkgadd -x VMAIL.TGZ vmail E) Set-up for PPP-connection ---------------------------- Create file /etc/resolv.conf with the following line in it: nameserver 203.96.152.4 (where the numbers are the IP-address of your nameserver). Create /dev/psip using major and minor numbers used for /dev/psip1. Create /dev/psip2 using exactly the same details as for /dev/psip. Do chmod 777 for par038.sh and ppp038.sh (both in /usr/). See G). F) Make Minix-vmd bootable from harddisk hd2a --------------------------------------------- cp /usr/mdec/boot /boot installboot -i /minix kernel mm fs init installboot -d /dev/hd2a /usr/mdec/bootblock boot Use PART.EXE to set DOS C: inactive and Minix-vmd's 'part' to make hd2a active. Amend Minix-vmd boot-monitor like so: minix(=,Minix-vmd) {boot} dos(d,MS-DOS) {boot hd1} save Boot PC without floppy Wait for messages to appear on screen Push = [for Minix-vmd] OR Push d [for MS-DOS] G) Connect to Internet Service Provider Paradise.net.nz using PPP ----------------------------------------------------------------- cd /usr /usr/par038.sh [dial-up connection, type in name and password] /usr/ppp038.sh [ppp-connection with dynamic IP-address] lynx [WWW-browser] OR telnet pop3.paradise.net.nz 110 | tee pop3.log [to receive mail] OR telnet smtp.paradise.net.nz 25 | tee smtp.log [to send mail] OR telnet news.paradise.net.nz 119 | tee news.log [to get news] OR telnet gateway.compuserve.com 23 | tee cs.log [for CompuServe, classic text-based interface] OR urlget http://minix1.hampshire.edu > minix1.htm [this fetches the web-page and writes it to file minix1.htm - check file minix1.htm like so: lynx minix1.htm] 'term' apparently won't support more than 38400 bps. Of course it helps if you're familiar with 'telnet', though there are plenty of programs around to do mail and news for you. Following is the par038.sh-script: --------------------------------- #!/bin/sh # par038.sh - establish dial-up connection with Paradise.net.nz # # Push when you can see the CONNECT-message # wait till system asks for your username, type it and push # wait till system asks for your password, type it and push # wait till system tells you something about MRU etc, then # push and hold down and push ] # let go of # type q # type /usr/ppp038.sh and push # wait till the ppp-ready-message appears on the screen, then # type lynx and push . # term 8 38400 /dev/tty00 -atdt086727234 Following is the ppp038.sh-script: --------------------------------- #!/bin/sh # ppp038.sh # make ppp-connection with ISP Paradise.net.nz # # inet starts up the Internet daemon # Refer to par038.sh for detailed instructions # inet ppp.drv -b 38400 -a -d -v /dev/tty00 & lynx has a configuration-file. Where is it? Find it like so: find / -name lynx.cfg If your Internet Service Provider doesn't use a proxy-server, leave lynx.cfg as is. The defaults will work fine. H) Send/receive email using 'smr'/'popclient' ------------------------------------------ * Get SMR09D.Z from Claudio Tantignone's site (see above), then... cd /opt mcopy hd1:SMR09D.Z - | gzcat | tar xvfp - cd smr make cp smr /usr/local/bin/ * Get POPCLIENT.Z from Claudio Tantignone's site (see above), then... cd /opt mcopy hd1:POPCLIEN.Z - | gzcat | tar xvfp - cd pop compile according to instructions in file /opt/pop/README.minix cp popclient /usr/local/bin/ NOTE: MSDOS can't have a name like POPCLIENT.Z (too long), so it needs to be shortened to POPCLIEN.Z * Change file /usr/src/.profile for user 'root' like so (the things between the ##############################s go in there - and they're examples, of course)... # Login shell profile. # Erase character, erase line, and interrupt keys. stty sane erase '^H' kill '^U' intr '^?' # Required for SMR #################################### SMRRELAYHOST=smtp.paradise.net.nz export SMRRELAYHOST SMRLOCALHOST=paradise.net.nz export SMRLOCALHOST SMRLOCALUSER=thomas.butz export SMRLOCALUSER TTY=tty00 export TTY SPEED=38400 export SPEED ################################### #[original file /usr/src/.profile continues]