LDP/LDP/retired/PLD-Guide/admin-manual/sysconfig.xml

246 lines
7.1 KiB
XML
Raw Normal View History

2002-03-24 01:10:27 +00:00
<chapter>
<title>System configuration</title>
2002-03-26 22:20:23 +00:00
<section id="modules">
<title>Device support (kernel modules config)</title>
2002-03-24 01:10:27 +00:00
<para>
2002-03-26 22:20:23 +00:00
PLD contains highly modularized kernel.
All kernel-supported device drivers that can be compiled as a module
are compiled in this way.
</para>
2002-03-24 01:10:27 +00:00
<para>
2002-03-26 22:20:23 +00:00
To support devices available in the system, proper modules must be
loaded into the kernel. That can be done primarily in four ways:
<orderedlist>
<listitem>
<para>
They can be loaded by hand with <command>modprobe</command> or
<command>insmod</command> command (the least convenient method)
</para>
</listitem>
<listitem>
<para>
They can be loaded at boot-up by some extra script
(e.g. /etc/rc.d/init/rc.local).
</para>
</listitem>
<listitem>
<para>
Some devices (mainly disk interfaces)
2016-10-24 13:36:28 +00:00
need support at a very, very early stage of system boot-up.
2002-05-02 08:56:02 +00:00
Modules for these devices must be loaded from
2002-03-26 22:20:23 +00:00
so-called <emphasis>initrd</emphasis>
(see more in <xref linkend="bootloaders"/>)
</para>
</listitem>
<listitem>
<para>
Finally, they can be loaded automatically, when they are
needed, by <command>kmod</command> daemon.
</para>
</listitem>
</orderedlist>
The latter method is most convenient, although not every device can be
supported like that.
</para>
<para>
2002-03-28 21:12:06 +00:00
Kmod needs information what module should be associated to particular
devices.
2002-03-26 22:20:23 +00:00
</para>
2002-03-28 21:12:06 +00:00
<note>
<para>
During installation process the installer takes care about
setting proper <emphasis>initrd</emphasis>, and may also
put some entries into <filename>/etc/modules.conf</filename>.
(e.g. aliases for network devices), but in general this
file should be filled in by the administrator.
</para>
</note>
2002-03-26 22:20:23 +00:00
<para>
2002-03-28 21:12:06 +00:00
Some typical settings in <filename>/etc/modules.conf</filename>:
2002-03-24 01:10:27 +00:00
</para>
2002-03-28 21:12:06 +00:00
<programlisting>
# Use kernel module 3c509 (3Com 509/509b adapter) as a driver for
# first ethernet device (eth0):
alias eth0 3c509
# Use kernel module aic7xxx to handle SCSI hostadapter:
scsi_hostadapter aic7xxx
</programlisting>
2002-03-24 01:10:27 +00:00
<para>
2002-03-26 22:20:23 +00:00
See
<citerefentry>
<refentrytitle>modules.conf</refentrytitle>
<manvolnum>5</manvolnum>
</citerefentry>
for details.
2002-03-24 01:10:27 +00:00
</para>
</section>
2002-04-26 15:41:36 +00:00
<section id="disks">
2002-03-24 01:10:27 +00:00
<title>Disks</title>
<para>
</para>
<literallayout>
fstab:
disks
removable media: CD, diskettes etc
user access
automounter
2002-03-26 22:20:23 +00:00
LVM?
journaling?
raid?
2002-03-24 01:10:27 +00:00
</literallayout>
</section>
<section id="inittab">
<title>Init control: /etc/inittab</title>
<para>
2002-03-28 21:12:06 +00:00
The file <filename>/etc/inittab</filename> is read by
<command>init</command> process to control
2002-05-02 08:56:02 +00:00
system behavior in particular runlevel. Full description
2002-03-26 22:20:23 +00:00
of this file can be found in
<citerefentry>
<refentrytitle>inittab</refentrytitle>
<manvolnum>5</manvolnum>
</citerefentry>
</para>
<para>
What this file usually contains:
2002-03-24 01:10:27 +00:00
<itemizedlist>
<listitem>
<para>
<emphasis>Default runlevel</emphasis> - the runlevel used
when init is invoked without parameters (e.g. during system startup).
2002-03-28 21:12:06 +00:00
Runlevels are described in <xref linkend="runlevels"/>.
2002-03-26 22:20:23 +00:00
Default runlevel is given in the form:
<programlisting>id:3:initdefault:</programlisting>
Here the digit 3 indicates use of runlevel 3. This can be changed
to any other valid runlevel.
2002-03-24 01:10:27 +00:00
</para>
</listitem>
<listitem>
<para>
2002-03-26 22:20:23 +00:00
Instructions to run getty on consoles. They look like that:
2002-03-28 21:12:06 +00:00
<programlisting>1:12345:respawn:/sbin/mingetty --noclear tty1</programlisting>
2002-03-26 22:20:23 +00:00
One of possible situations when this needs to be changed is
when we want console on serial port (see e.g. <xref linkend="installer-serial"/>).
2002-03-24 01:10:27 +00:00
</para>
</listitem>
<listitem>
<para>
2002-03-28 21:12:06 +00:00
Invocation of proper init scripts. These are lines like this:
2002-03-26 22:20:23 +00:00
<programlisting>
si::sysinit:/etc/rc.d/rc.sysinit
l0:0:wait:/etc/rc.d/rc 0
</programlisting>
2002-03-28 21:12:06 +00:00
This rarely needs to be changed.
2002-03-24 01:10:27 +00:00
</para>
</listitem>
<listitem>
<para>
Handling special events like Ctrl-Alt-Del keystroke.
2002-03-26 22:20:23 +00:00
The line looks like this:
<programlisting>
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
</programlisting>
The command run at Ctrl-Alt-Del event can be replaced here,
e.g. one can change <command>shutdown -r</command>
to <command>shutdown -h</command> to get the halt instead reboot.
2002-03-24 01:10:27 +00:00
</para>
</listitem>
</itemizedlist>
</para>
</section>
2002-04-26 15:41:36 +00:00
<section id="etc-sysconfig">
2002-03-24 01:10:27 +00:00
<title>Basic system configuration: <filename>/etc/sysconfig</filename></title>
<section>
2002-03-24 01:10:27 +00:00
<title>Intro</title>
<para>
2002-03-24 01:10:27 +00:00
Directory <filename>/etc/sysconfig</filename> contains several files
that are used by rc-scripts (system startup scripts located in
/etc/rc.d). Those files defines basic properties of the system.
</para>
</section>
<section>
<title>console</title>
<para>
2002-03-24 01:10:27 +00:00
File <filename>/etc/sysconfig/console</filename>
contains basic console settings.
</para>
2002-03-24 01:10:27 +00:00
<para>
2002-05-02 08:56:02 +00:00
After modifying config file, issue
2002-03-24 01:10:27 +00:00
<programlisting>/etc/rc.d/init.d/console restart</programlisting>
if you want the changes to take effect.
</para>
</section>
<section>
2002-03-24 01:10:27 +00:00
<title>mouse</title>
<para>
File <filename>/etc/sysconfig/mouse</filename> contains
mouse settings for service <command>gpm</command> (General Purpose Mouse).
This service provides mouse support for console based
applications and may be also used by X Window System.
<!-- (see <xref linkend="x-repeater"/>) -->
</para>
<para>
2002-05-02 08:56:02 +00:00
After modifying config file, issue
2002-03-24 01:10:27 +00:00
<programlisting>/etc/rc.d/init.d/gpm restart</programlisting>
if you want the changes to take effect.
</para>
</section>
<section>
2002-03-24 01:10:27 +00:00
<title>clock</title>
<para>
2002-03-24 01:10:27 +00:00
File <filename>/etc/sysconfig/clock</filename> contains
clock settings.
Its content is used by /etc/rc.d/rc.sysinit script
at very early stage of system bootup.
This file contains very general clock properties.
Setting clock can be done with <command>date</command>
and <command>hwclock</command> commands.
</para>
</section>
<section>
2002-03-24 01:10:27 +00:00
<title>system</title>
<para>
2002-03-24 01:10:27 +00:00
Its content is used by rc-scripts at very early stage of system bootup.
2002-05-02 08:56:02 +00:00
It contains some basic settings, e.g. system behavior in case of kernel
2002-03-24 01:10:27 +00:00
panic, etc.
</para>
</section>
2002-03-24 01:10:27 +00:00
</section>
2002-04-26 15:41:36 +00:00
<section id="printing">
2002-03-24 01:10:27 +00:00
<title>Printing</title>
<para>
</para>
</section>
2002-04-26 15:41:36 +00:00
<section id="x-window">
2002-03-24 01:10:27 +00:00
<title>X Window</title>
<para>
</para>
</section>
</chapter>
2002-03-24 01:10:27 +00:00
<!-- Keep this comment at the end of the file
Local variables:
mode: xml
sgml-omittag:nil
sgml-shorttag:nil
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-default-dtd-file:"../dbxbook4.1.2.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
sgml-declaration:nil
sgml-validate-command:"rxp -sxV %s %s"
sgml-parent-document:("PLD-Guide.xml" "book" "section")
End:
-->