2000-11-02 19:40:45 +03:00
|
|
|
.\" $NetBSD: postinstall,v 1.16 2000/11/02 16:40:45 mbw Exp $
|
1999-01-13 11:18:44 +03:00
|
|
|
.\"
|
2000-10-04 04:44:24 +04:00
|
|
|
.\" Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
1999-01-13 11:18:44 +03:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
Once you've got the operating system running, there are a few
|
1999-12-13 18:32:46 +03:00
|
|
|
things you need to do in order to bring the system into a properly
|
1999-01-13 11:18:44 +03:00
|
|
|
configured state, with the most important ones described below.
|
2000-10-10 16:10:08 +04:00
|
|
|
.(enum
|
1999-01-13 11:18:44 +03:00
|
|
|
Configuring
|
|
|
|
.Pa /etc/rc.conf
|
|
|
|
.Pp
|
2000-04-13 19:46:43 +04:00
|
|
|
If you or the installation software haven't done any configuration of
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pa /etc/rc.conf ,
|
|
|
|
the system will drop you into single user mode on first reboot with the
|
|
|
|
message
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pp
|
1999-01-13 11:18:44 +03:00
|
|
|
.Dl /etc/rc.conf is not configured. Multiuser boot aborted.
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pp
|
|
|
|
and with the root file system
|
|
|
|
.Pq Pa /
|
|
|
|
mounted read-write. When the system
|
|
|
|
asks you to choose a shell, simply press
|
|
|
|
.Key RETURN
|
|
|
|
to get to a prompt. If you are asked for a terminal type, respond with
|
2000-11-02 19:40:45 +03:00
|
|
|
.ie r_hp300 \{\
|
|
|
|
.Ic hp300h
|
|
|
|
for a local console, or whatever is appropriate for your serial console.
|
|
|
|
.\}
|
|
|
|
.el .ie r_pmax \{\
|
1999-05-04 07:35:03 +04:00
|
|
|
the correct terminal type as discussed in the
|
|
|
|
.Sx Once you've booted the diskimage
|
|
|
|
section.
|
|
|
|
.\}
|
2000-11-02 19:40:45 +03:00
|
|
|
.el .ie r_sparc \{\
|
|
|
|
.Ic sun
|
|
|
|
for a local console, or whatever is appropriate for your serial
|
|
|
|
console (some systems display garbage with a
|
|
|
|
.Ic sun
|
|
|
|
terminal type, you may need to use
|
|
|
|
.Ic sun-ss5 )
|
|
|
|
.\}
|
1999-05-04 07:35:03 +04:00
|
|
|
.el \{\
|
1999-01-13 11:18:44 +03:00
|
|
|
.Ic vt220
|
|
|
|
(or whatever is appropriate for your terminal type)
|
1999-05-04 07:35:03 +04:00
|
|
|
.\}
|
2000-10-29 15:32:23 +03:00
|
|
|
and press
|
2000-11-02 19:40:45 +03:00
|
|
|
.Key RETURN .
|
|
|
|
At this point, you need to configure at least
|
1999-01-13 11:18:44 +03:00
|
|
|
one file in the
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pa /etc
|
|
|
|
directory. Change to the
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pa /etc
|
|
|
|
directory and take a look at the
|
|
|
|
.Pa /etc/rc.conf
|
|
|
|
file. Modify it to your tastes, making sure that you set
|
|
|
|
.Li rc_configured=YES
|
|
|
|
so that your changes will be enabled and a multi-user boot can
|
2000-10-04 04:44:24 +04:00
|
|
|
proceed.
|
|
|
|
Default values for the various programs can be found in
|
|
|
|
/etc/defaults/rc.conf, where some in-line documentation may be found.
|
|
|
|
More complete documentation can be found in
|
|
|
|
.Xr rc.conf 5 .
|
|
|
|
.Pp
|
|
|
|
If your
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pa /usr
|
2000-10-29 15:32:23 +03:00
|
|
|
directory is on a separate partition and you do not know how to use
|
|
|
|
.Ic ed ,
|
|
|
|
you will have to mount your
|
|
|
|
.Pa /usr
|
|
|
|
partition to gain access to
|
|
|
|
.Ic ex
|
|
|
|
or
|
|
|
|
.Ic vi .
|
|
|
|
Do the following:
|
|
|
|
.Pp
|
|
|
|
.Dl # Ic "mount /usr"
|
2000-11-02 19:40:45 +03:00
|
|
|
.ie r_hp300 .Dl # Ic "export TERM=hp300h"
|
|
|
|
.el .ie r_pmax .Dl # Ic "export TERM=termtype"
|
|
|
|
.el .ie r_sparc .Dl # Ic "export TERM=sun"
|
|
|
|
.el .Dl # Ic "export TERM=vt220"
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pp
|
1999-01-13 11:18:44 +03:00
|
|
|
If you have
|
|
|
|
.Pa /var
|
2000-10-04 04:44:24 +04:00
|
|
|
on a separate partition, you need to repeat
|
1999-01-13 11:18:44 +03:00
|
|
|
that step for it. After that, you can edit
|
|
|
|
.Pa /etc/rc.conf
|
|
|
|
with
|
|
|
|
.Xr vi 1 .
|
|
|
|
When you have finished, type
|
|
|
|
.Ic exit
|
|
|
|
at the prompt to
|
|
|
|
leave the single-user shell and continue with the multi-user boot.
|
|
|
|
.Pp
|
|
|
|
Other values that need to be set in
|
|
|
|
.Pa /etc/rc.conf
|
|
|
|
for a networked environment are
|
|
|
|
.Ar hostname No and possibly
|
|
|
|
.Ar defaultroute ,
|
|
|
|
furthermore add an
|
|
|
|
.Ar ifconfig_int
|
|
|
|
for your interface
|
|
|
|
.Aq int ,
|
2000-11-02 19:40:45 +03:00
|
|
|
.ie r_macppc \{\
|
|
|
|
where your on-board interfaces may be one of
|
|
|
|
.Li mc0 , bm0 , No or Li gm0
|
|
|
|
.\}
|
|
|
|
.el along the lines of
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pp
|
2000-11-02 19:40:45 +03:00
|
|
|
.ie \n[hp300]:\n[pmax]:\n[sparc] \{\
|
|
|
|
.Dl ifconfig_le0="inet 123.45.67.89 netmask 255.255.255.0"
|
|
|
|
.\}
|
|
|
|
.el .ie r_macppc .Dl ifconfig_mc0="inet 123.45.67.89 netmask 255.255.255.0"
|
|
|
|
.el .Dl ifconfig_de0="inet 123.45.67.89 netmask 255.255.255.0"
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pp
|
1999-01-13 11:18:44 +03:00
|
|
|
or, if you have
|
2000-10-29 15:32:23 +03:00
|
|
|
.Ar myname.my.dom
|
|
|
|
in
|
|
|
|
.Pa /etc/hosts :
|
|
|
|
.Pp
|
2000-11-02 19:40:45 +03:00
|
|
|
.ie \n[hp300]:\n[pmax]:\n[sparc] \{\
|
|
|
|
.Dl ifconfig_le0="inet myname.my.dom netmask 255.255.255.0"
|
|
|
|
.\}
|
|
|
|
.el .ie r_macppc .Dl ifconfig_mc0="inet myname.my.dom netmask 255.255.255.0"
|
|
|
|
.el .Dl ifconfig_de0="inet myname.my.dom netmask 255.255.255.0"
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pp
|
1999-01-13 11:18:44 +03:00
|
|
|
To enable proper hostname resolution, you will also want to add an
|
|
|
|
.Pa /etc/resolv.conf
|
|
|
|
file or (if you are feeling a little more adventurous) run
|
|
|
|
.Xr named 8 .
|
|
|
|
See
|
|
|
|
.Xr resolv.conf 5
|
|
|
|
or
|
|
|
|
.Xr named 8
|
|
|
|
for more information.
|
1999-05-04 07:35:03 +04:00
|
|
|
.Pp
|
|
|
|
Other files in
|
|
|
|
.Pa /etc
|
2000-04-13 19:46:43 +04:00
|
|
|
that may require modification or setting up include
|
1999-05-04 07:35:03 +04:00
|
|
|
.Pa /etc/mailer.conf ,
|
|
|
|
.Pa /etc/nsswitch.conf
|
|
|
|
and
|
|
|
|
.Pa /etc/wscons.conf .
|
2000-11-02 00:22:45 +03:00
|
|
|
.ie r_arm32 \{\
|
|
|
|
.Pp
|
|
|
|
For Digital DNARD machines you will need to edit
|
|
|
|
.Pa /etc/ttys
|
|
|
|
and change the console terminal type from vt100 to pc3.
|
|
|
|
.\}
|
1999-01-13 11:18:44 +03:00
|
|
|
.It
|
|
|
|
Logging in
|
|
|
|
.Pp
|
|
|
|
After reboot, you can log in as
|
|
|
|
.Li root
|
|
|
|
at the login prompt. There
|
|
|
|
is no initial password, but if you're using the machine in a
|
|
|
|
networked environment, you should create an account for yourself
|
2000-10-29 15:32:23 +03:00
|
|
|
(see below) and protect it and the
|
|
|
|
.Dq root
|
|
|
|
account with good passwords.
|
2000-01-17 18:14:19 +03:00
|
|
|
Unless you have connected an unusual terminal device as the console
|
2000-10-29 15:32:23 +03:00
|
|
|
you can just press
|
|
|
|
.Key RETURN
|
|
|
|
when it prompts for
|
2000-01-17 18:14:19 +03:00
|
|
|
.Li Terminal type? [...]
|
|
|
|
.
|
1999-01-13 11:18:44 +03:00
|
|
|
.It
|
|
|
|
Adding accounts
|
|
|
|
.Pp
|
|
|
|
Use the
|
2000-08-04 18:51:36 +04:00
|
|
|
.Xr useradd 8
|
1999-01-13 11:18:44 +03:00
|
|
|
command to add accounts to your system,
|
2000-10-29 15:32:23 +03:00
|
|
|
.Em do not
|
|
|
|
edit
|
|
|
|
.Pa /etc/passwd
|
1999-01-13 11:18:44 +03:00
|
|
|
directly. See
|
2000-08-04 18:51:36 +04:00
|
|
|
.Xr useradd 8
|
1999-01-13 11:18:44 +03:00
|
|
|
for more information on the process of how to add a new user to the system.
|
|
|
|
.It
|
|
|
|
The X Window System
|
|
|
|
.Pp
|
|
|
|
If you have installed the X window system, look at the files in
|
|
|
|
.Pa /usr/X11R6/lib/X11/doc
|
|
|
|
for information.
|
1999-05-04 07:35:03 +04:00
|
|
|
.if \n[arm32]:\n[i386] \{\
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pp
|
1999-05-04 07:35:03 +04:00
|
|
|
You will need to set up a configuration file, see
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pa /usr/X11R6/lib/X11/XF86Config.eg
|
1999-05-04 07:35:03 +04:00
|
|
|
for an example. See
|
1999-01-13 11:18:44 +03:00
|
|
|
.Lk http://www.xfree86.org/
|
|
|
|
and the XFree86 manual page for more information.
|
|
|
|
.\}
|
|
|
|
.Pp
|
|
|
|
Don't forget to add
|
|
|
|
.Pa /usr/X11R6/bin
|
|
|
|
to your path in your shell's dot file so that you have access to the X binaries.
|
|
|
|
.It
|
2000-10-04 04:44:24 +04:00
|
|
|
Installing third party packages
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pp
|
2000-10-29 15:32:23 +03:00
|
|
|
If you wish to install any of the software freely available for
|
|
|
|
.Ul
|
|
|
|
systems
|
1999-12-13 18:32:46 +03:00
|
|
|
you are strongly advised to first check the
|
1999-01-13 11:18:44 +03:00
|
|
|
.Nx
|
1999-12-13 18:32:46 +03:00
|
|
|
package system. This automatically handles any changes necessary to
|
|
|
|
make the software run on
|
1999-01-13 11:18:44 +03:00
|
|
|
.Nx ,
|
1999-12-13 18:32:46 +03:00
|
|
|
retrieval and installation of any other packages on which the software
|
|
|
|
may depend, and simplifies installation (and deinstallation), both
|
|
|
|
from source and precompiled binaries.
|
2000-10-10 16:10:08 +04:00
|
|
|
.(bullet
|
1999-12-13 18:32:46 +03:00
|
|
|
More information on the package system is at
|
|
|
|
.Lk http://www.netbsd.org/Documentation/software/packages.html
|
|
|
|
.It
|
|
|
|
A browsable listing of available packages is at
|
|
|
|
.Lk ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/README.html
|
|
|
|
.It
|
1999-01-13 11:18:44 +03:00
|
|
|
Precompiled binaries can be found at
|
|
|
|
.Lk ftp://ftp.netbsd.org/pub/NetBSD/packages/
|
1999-12-13 18:32:46 +03:00
|
|
|
.It
|
1999-01-13 11:18:44 +03:00
|
|
|
Package sources for compiling packages can be obtained by
|
|
|
|
retrieving the file
|
|
|
|
.Lk ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/pkgsrc.tar.gz
|
2000-04-14 14:17:44 +04:00
|
|
|
They are typically extracted into
|
2000-04-13 22:24:13 +04:00
|
|
|
.Pa /usr/pkgsrc
|
2000-04-14 14:17:44 +04:00
|
|
|
(though other locations work fine), as with the command:
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pp
|
|
|
|
.Dl # Ic "mkdir /usr/pkgsrc; tar -C /usr/pkgsrc -zxpf pkgsrc.tar.gz"
|
|
|
|
.Pp
|
2000-04-14 14:17:44 +04:00
|
|
|
After extracting, then see the
|
|
|
|
.Pa README
|
|
|
|
file in the extraction directory (e.g.
|
|
|
|
.Pa /usr/pkgsrc/README )
|
2000-04-13 22:24:13 +04:00
|
|
|
for more information.
|
2000-10-10 16:10:08 +04:00
|
|
|
.bullet)
|
1999-01-13 11:18:44 +03:00
|
|
|
.It
|
|
|
|
Misc
|
2000-10-10 16:10:08 +04:00
|
|
|
.(bullet
|
1999-01-13 11:18:44 +03:00
|
|
|
Edit
|
2000-05-05 23:05:29 +04:00
|
|
|
.Pa /etc/mail/aliases
|
1999-01-13 11:18:44 +03:00
|
|
|
to forward root mail to the right place (run
|
|
|
|
.Xr newaliases 1
|
|
|
|
afterwards.)
|
|
|
|
.It
|
|
|
|
The
|
2000-05-03 21:09:13 +04:00
|
|
|
.Pa /etc/mail/sendmail.cf
|
1999-01-13 11:18:44 +03:00
|
|
|
file will almost definitely need to be adjusted;
|
|
|
|
files aiding in this can be found in
|
|
|
|
.Pa /usr/share/sendmail .
|
|
|
|
See the
|
|
|
|
.Li Tn README
|
|
|
|
file there for more information.
|
|
|
|
.It
|
|
|
|
Edit
|
|
|
|
.Pa /etc/rc.local
|
|
|
|
to run any local daemons you use.
|
|
|
|
.It
|
|
|
|
Many of the
|
|
|
|
.Pa /etc
|
|
|
|
files are documented in section 5 of the manual; so just invoking
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pp
|
|
|
|
.Dl # Ic man 5 Ar filename
|
|
|
|
.Pp
|
1999-01-13 11:18:44 +03:00
|
|
|
is likely to give you more information on these files.
|
2000-10-10 16:10:08 +04:00
|
|
|
.bullet)
|
|
|
|
.enum)
|