• Aucun résultat trouvé

5.S. Setting the Date

Dans le document Workstation Manual (Page 89-94)

Set the correct system date and time by using date( 1):

:/1= date 1II/fnmddAAmm[.,,]

1111 here is the last two digits of the year; mm specifies month; dd designates day of the month;

AA is hour (on a 24-hour clock); the next mm is minutes elapsed; and the optional." specifies seconds. The system echoes the date set hack to you.

5.9. Editing the /etc/hosts and /.rhosts Files

Now you must edit the / etc/ AolI, file on both the remote host and target machines, to make them aware of each other's existence. Also, edit f.rAolI, on the remote host only. Proceed as follows:

1. On the remote host machine, edit the I etel Aolt, file, and add an entry for the target machine. There must be an entry for the remote host as well; if it's not there, add it.

Entries in I etel hod' consist of each machine's full Internet address (network number and host number), and the machine's name. For example, assuming your remote host is called 'krypton,' and your target is 'gaia,' the entries might look like this:

192.9.200.1 krypton 192.9.200.23 gaia

Here, 192.9.200 is being used for the network number; the remote host's host number is 1, and the target's host number is 23.

By now, you probably know your network number, and have a host number ready to assign your target - if you're confused, see the earlier section, Determining Network In/ormation.

2. Still on the remote host machine, edit the J.rAo,t,file, adding an. entry (hostname only) for the target machine. This will allow you to perform remote processes 'on' the remote host 'from' the target machine at the super-user level (for example, the remote extract in the next phase of installation). If the file does not exist, create it.

3. Now move to the target machine, and edit leteIAo,t, (which should be nearly empty). Add the same two lines discussed

in

etep 1: one entry for the remote host and one for the target machine.

4. Run iJeonfig on the target machine:

*

/etc/ifconB" ecO 1I0ur_target_name

5.10. Loading the Root File System

Now you must mount the distribution tape on the remote host's tape drive. Then run the rztr (remote extract) shell script on the target machine to copy the root file system across the Ether-net. Again, use xy for the Xylogics disk controller, or ip for the Interphase disk controller to replace d;,k, and mt for the nine-track tape, or &1" for the Archive quarter-inch tape to replace tape:

5-8 Revision H of 12 March 1984

Sun 100/150 Installation Manual Installing UNIX on Systems without Tape Support

#=

disc=dilk tape=tape host==Ierver_name rxtr [ .. .incredible amounts of messages ... ]

Root filesystem extracted

:/I:

The extraction process takes ten to twenty minutes. The next job is to configure your system and load the / ulr file system.

5.11. Booting the UNIX System in Single-User State

Now type a couple of sync commands to flush all I/O activity to the disks, then get back to the monitor by typing 'SET-UP-A' or 'ERASE-EOF-A'. The monitor responds by displaying a message like:

Abort at lome addrell

When you see, the monitor> sign, boot the UNIX system in single-user state:

>

b vmunix-s

[ . ' . .incredible amounts of messages ... )

#=

5.12. Using Setup to Configure Your System

At this point you invoke the letup program to configure your system.

Setup is essentially a system configurator in two parts: it consists of an interactive (ront-end which gathen the information necessary to configure your system by conducting a dialogue with you, and a non-interactive back-end which uses this information to do the actual configuration.

During the dialogue, letup does consistency and error checking to ensure that the configuration will work- If erron are detected, they are reported to you, and you are asked to enter corrected information.

For standalone systems booting from a remote tape drive, the ,etup dialogue runs as follows. In the example, what you might type in is shown in boldrace type like this; whatever is simply displayed on the workstation monitor is shown in Roman type like this. Italic item, are vari-ables which you must substitute.

We invoke the ,etup program by typing the ,etup command. Setup begill5 by requesting global information:

:/1= setup

Sun Microsystems Configuration System Global Information

1) network disk server 2) standalone

3) ~tandalone with remote tape

Enter the number for your environment: 3

You have a standalone system with remote tape; is this correct! (y/n): y

Note that the program a5ks you to verify configuration information after each 'phase' of configuration is complete. it is extremely difficult to undo system configuration, so be careful with your responses: 'y' casts things in concrete, and in' allows you to start the phase over again. You can also type 'q' to any prompt to quit the ,etup program and return to the shell-this allows you to annihilate what you have done and start over, if you have to.

Next, letup establishes your workstation's identity: name and address:

Host Information

Enter your hostname: your _holtncame

Network numbers may be either class A, B or C Their formats are:

Class A: nnn ( 0

<=

nnn

<=

127)

Class B: nnn.bl (128

<=

nnn

<=

191) Class C: nnn.bl.b2 (192

<=

nnn

<-

255)

bl and b2 are one byte «()'255) quantites

Enter your network number (default is 192.9.200): <RETURN>

Your network number is 192.9.200; is this correct! (yIn): y Enter your host number

This is a number between 1 and 255: your_holt_number Your hostname and host number are:

your _Aoltncame: your _ho, t_number Is this correct! (y In): y

Note that you use your network and host numbers here. See the section above, Determining Network Information, if you need explanation of these.

The la5t phase of ,etup configuration requests information about your remote host's tape sub-system:

5-10 Revision H of 12 March 1984

Sun 100/150 Installation Manual Installing UNIX on Systems without Tape Support

Tape Information

~) 1/4" SCSI tape (st) 2) 1/2" Magnetic tape (mt) 3) 1/4" Archive tape (ar)

Enter the number for the type of tape: (1-3): 3

You have specified a 1/4" Archive tape; is this correct! (y In): y Enter the name of the remote host that the

1/4" Archive tape is attached to: ,erver_name

Enter the host number for ,erve,_name: , ',_ho,t_number

The 1/4" Archive tape is attached to ,erver _name with host number, ',_hod_number Is this correct! (yIn): y

When this last phase has been completed, ,etup asks you whether you want to institute the configuration you have designed and, if you confirm, proceeds to edit several of the database files:

You have completed the configuration questions.

Continuing will destroy any existing files under lusr and any client partitions if you are a server.

Do you want to begin configuration! (yIn): y Updating /etc/hosts

[ ... A few lines of configuration messages . . . ]

If your distribution is on two 1/4-inch tape cartridges, ,etup will prompt you to change to the second cartridge very shortly after it begins its back-end routine. Insert the second cartridge and type 'RETURN' to continue the routine; it takes approximately 25 minutes to complete.

When ,etup is done with its back-end work, your shell prompt returns. You can then continue your installation by booting the full UNIX system, as described below.

5.13. Booting the Full UNIX System

Finally, you boot the full UNIX system. You must first halt the system, using the

I etcl

halt com-mand. This shuts down the system in an orderly manner, and returns control to the monitor:

*

/etc/halt

Syncing disks . . .. done

>

and now you can simply boot the UNIX system:

>b

Boot: d;Ik(O,O,O)vmunix Load: dilk(O,O,O)boot Boot: di,k(O,O,O)vmunix

Size: 266240+ 32768+ 35316 bytes

Sun UNIX 4.2 (GENERIC) #145: Tue Feb 21 20:35:13 PDT 1984 Copyright (c) 1984 by Sun Microsystems, Inc.

[ ... Several lines of configuration messages ... ] gaia login: root

You can now use the

*

UNIX system on this machine.

5.14. Loading the Manuals, Demos, and Games Directories

The seventh file on the distribution tape(s) contains tar images of the / ",r/ man directory (online manual pages), /"'f/demo directory (demonstration programs), and /",r/game, direc-tory (games). If these have been loaded on your remote host, you can load all or part of these files if you want to. Space may be a consideration: /",r/man consumes 2.1 MBytes, /",r/demo consumes 3.75 MBytes, and / ",r/ gamel takes 1.8 MBytes.

1) Become super-user.

2) Mount the 1/2" distribution tape or insert the first 1/4" cartridge.

3) Type the following on your target machine:

5-12

#:

cd IusI'

:#

reh Iei've, _name mt -I / dey / nr tapeO rew

'#

reh lerver_name mt -I /dev/nrtapeO

'1'8

Then type the following command, specifying only the directories you want (man and/or demo and/or sames). If you are using a 1/2" tape, use 20 for blkJactor; use 128 if you are using a 1/4" tape:

'#

reh lerver_name dd it /dev/nrtapeO bl==blkJactorb

I

tar xlpB - man demo gaml

Revision H of 12 March 1984

Chapter 6

Dans le document Workstation Manual (Page 89-94)