old-www/HOWTO/NFS-Root-Client-mini-HOWTO/clientroot.html

1207 lines
20 KiB
HTML

<HTML
><HEAD
><TITLE
>Creating the client's root directory</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
REL="HOME"
TITLE=" NFS-Root-Client Mini-HOWTO "
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Preface"
HREF="preface.html"><LINK
REL="NEXT"
TITLE="Creating more clients"
HREF="moreclients.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>NFS-Root-Client Mini-HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="preface.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="moreclients.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="CLIENTROOT"
>3. Creating the client's root directory</A
></H1
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN52"
>3.1. Creating the directory tree</A
></H2
><P
>First of all, you need to create the directory structure itself. I created all the clients under <TT
CLASS="FILENAME"
>/clients/hostname</TT
> and I will use it for my examples listed below. This, however, can be changed to anything else. The first stage, then, is to create the relevant directories in the root directory. You should create the following directories: </P
><P
><TT
CLASS="FILENAME"
>bin</TT
>
,
<TT
CLASS="FILENAME"
>dev</TT
>
,
<TT
CLASS="FILENAME"
>etc</TT
>
,
<TT
CLASS="FILENAME"
>home</TT
>
,
<TT
CLASS="FILENAME"
>lib</TT
>
,
<TT
CLASS="FILENAME"
>mnt</TT
>
,
<TT
CLASS="FILENAME"
>proc</TT
>
,
<TT
CLASS="FILENAME"
>sbin</TT
>
,
<TT
CLASS="FILENAME"
>server</TT
>
,
<TT
CLASS="FILENAME"
>tmp</TT
>
,
<TT
CLASS="FILENAME"
>usr</TT
>
,
<TT
CLASS="FILENAME"
>var</TT
></P
><P
> and any other directories you might want to have on your system.</P
><P
>The <TT
CLASS="FILENAME"
>local</TT
>, <TT
CLASS="FILENAME"
>proc</TT
>, and <TT
CLASS="FILENAME"
>dev</TT
> directories will be used separately on each machine while the rest of the directories will be either partly or completely shared with the rest of the clients.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN74"
>3.2. Creating the minimal file system needed for boot</A
></H2
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN76"
>3.2.1. Creating the <TT
CLASS="FILENAME"
>dev</TT
> dir.</A
></H3
><P
>Although the <TT
CLASS="FILENAME"
>dev</TT
> dir can be shared, it is better to create a separate one for each client. You can create your client's <TT
CLASS="FILENAME"
>dev</TT
> directory with the appropriate MAKEDEV scripts, however in most cases it is simpler just to copy it from the server:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# cp -a /dev /clients/hostname</PRE
></TD
></TR
></TABLE
><P
>You should keep in mind that <TT
CLASS="FILENAME"
>/dev/mouse</TT
>, <TT
CLASS="FILENAME"
>/dev/cdrom</TT
> and <TT
CLASS="FILENAME"
>/dev/modem</TT
> are symbolic links to actually devices, and therefore you should be sure that they are linked correctly to fit the client's hardware.</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN87"
>3.2.2. Copying the necessary binaries.</A
></H3
><P
>Although we mount everything from the server, there is a minimum that we need to copy to each client. First of all, we need "init", our system will not be able to run anything before init'ing (as the author found out in the hard way ;-). So first, you should copy <TT
CLASS="FILENAME"
>/sbin/init</TT
> to your client's <TT
CLASS="FILENAME"
>sbin</TT
> dir and then so that <TT
CLASS="FILENAME"
>rc.S</TT
> will run, you should copy <TT
CLASS="FILENAME"
>/bin/sh</TT
> to the client's <TT
CLASS="FILENAME"
>bin</TT
> directory. Also, in order to mount everything you need to copy <TT
CLASS="FILENAME"
>/sbin/mount</TT
> to the client's <TT
CLASS="FILENAME"
>sbin</TT
> directory. This is the minimum, assuming the first line in your <TT
CLASS="FILENAME"
>rc.S</TT
> is <B
CLASS="COMMAND"
>mount -av</B
>. However, I recommend copying a few more files: <TT
CLASS="FILENAME"
>update</TT
>, <TT
CLASS="FILENAME"
>ls</TT
>, <TT
CLASS="FILENAME"
>rm</TT
>, <TT
CLASS="FILENAME"
>cp</TT
> and <TT
CLASS="FILENAME"
>umount</TT
>, so that you will have the basic tools in case the client has problems mounting. If you choose to leave your swap on line before mount, you should also copy the <TT
CLASS="FILENAME"
>swapon</TT
> binary. </P
><P
>Since most of these binaries are by default dynamically linked, you will also need to copy a fair part of <TT
CLASS="FILENAME"
>/lib</TT
>: </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# cp -a /lib/ld* /lib/libc.* /lib/libcursses.* /client/hostname/lib</PRE
></TD
></TR
></TABLE
><P
>Hardlinking the binaries themselves, instead of copying them, should be considered. Please read my comments on this in <A
HREF="preface.html#OVERVIEW"
>Section 2.1</A
> of this Howto.</P
><P
>Please notice, all of the information above assumes that the kernel has been given the network parameters while booting up. If you plan to use rarp or bootp, you will probably need the relevant binaries for these as well.</P
><P
>Generally, you will need the minimum of files that will enable you to configure the network and run <TT
CLASS="FILENAME"
>rc.S</TT
> up to the point where it mounts the rest of the file system. Make sure you looked into your <TT
CLASS="FILENAME"
>/etc/init</TT
> and <TT
CLASS="FILENAME"
>rc.S</TT
> files, making sure there are no "surprises" in any of them, which will require other files to be accessed, before the first mount will take place. If you do, however, find such files, you can either copy them as well, or remove the relevant parts from your <TT
CLASS="FILENAME"
>init</TT
> and your <TT
CLASS="FILENAME"
>rc.S</TT
> files. </P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN117"
>3.2.3. The <TT
CLASS="FILENAME"
>var</TT
> directory</A
></H3
><P
>The var directory, in most cases, should be separate for each client. However, a lot of the data can be shared. Create under the server directory a directory called <TT
CLASS="FILENAME"
>var</TT
>. We will mount the server's <TT
CLASS="FILENAME"
>var</TT
> directory there. To create the local <TT
CLASS="FILENAME"
>var</TT
> directory, simply type:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# cp -a /var /clients/hostname/</PRE
></TD
></TR
></TABLE
><P
>Now, you have a choice as to what you want to separate, and what you want to share. Any directory/file that you want to share, simply remove it from the client's <TT
CLASS="FILENAME"
>var</TT
> dir, and symlink it to the <TT
CLASS="FILENAME"
>/server/var/</TT
> directory. However please note that you should either symlink it to <TT
CLASS="FILENAME"
>/server/var</TT
> or to <TT
CLASS="FILENAME"
>../server/var</TT
> but NOT to <TT
CLASS="FILENAME"
>/clients/hostname/server/var</TT
> as this will not work when the root changes. </P
><P
>Generally, I would recommend separating <TT
CLASS="FILENAME"
>/var/run</TT
>, <TT
CLASS="FILENAME"
>/var/lock</TT
>, <TT
CLASS="FILENAME"
>/var/spool</TT
>, and <TT
CLASS="FILENAME"
>/var/log</TT
>. </P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN136"
>3.2.4. The rest of the directories</A
></H3
><P
></P
><UL
><LI
><P
><TT
CLASS="FILENAME"
>etc</TT
> is explained thoroughly in the next section. </P
></LI
><LI
><P
><TT
CLASS="FILENAME"
>mnt</TT
> and <TT
CLASS="FILENAME"
>proc</TT
> are for local purposes. </P
></LI
><LI
><P
><TT
CLASS="FILENAME"
>usr</TT
> and <TT
CLASS="FILENAME"
>home</TT
> are merely mount points. </P
></LI
><LI
><P
><TT
CLASS="FILENAME"
>tmp</TT
> is up to you. You can create a different <TT
CLASS="FILENAME"
>tmp</TT
> directory for each client, or create some <TT
CLASS="FILENAME"
>/clients/tmp</TT
> directories, and mount it for each client under <TT
CLASS="FILENAME"
>/tmp</TT
>. I would recommend that you provide each client with a separate <TT
CLASS="FILENAME"
>tmp</TT
> directory. </P
></LI
></UL
><P
></P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN158"
>3.3. Building the <TT
CLASS="FILENAME"
>etc</TT
> directory and configuring the clients</A
></H2
><P
>Please Note - <DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Note: </B
>this section refers to building the etc directory which is mostly shared among the clients. If your diskless clients have separate system administrators, it's best to set up for each client a separate etc directory.</P
></BLOCKQUOTE
></DIV
></P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN164"
>3.3.1. Building a clients wide <TT
CLASS="FILENAME"
>etc</TT
> directory</A
></H3
><P
></P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN168"
>3.3.2. Creating a client's <TT
CLASS="FILENAME"
>etc</TT
> directory</A
></H3
><P
>Although we separate the <TT
CLASS="FILENAME"
>etc</TT
> directories of the clients, we still want to share a large portion of the files there. Generally, I think sharing the etc files with the server's <TT
CLASS="FILENAME"
>/etc</TT
> is a bad idea, and therefore I recommend creating a <TT
CLASS="FILENAME"
>/clients/etc</TT
> directory, which will hold the information needed for the clients. To start with, simply copy the contents of the server's <TT
CLASS="FILENAME"
>etc</TT
> to the <TT
CLASS="FILENAME"
>/clients/etc</TT
> directory.</P
><P
>You should add to this directory all of the non-machine-specific configuration files, for instance <TT
CLASS="FILENAME"
>motd</TT
>, <TT
CLASS="FILENAME"
>issue</TT
>, etc. and not the clientspecific ones.(i.e. <TT
CLASS="FILENAME"
>inittab</TT
> or <TT
CLASS="FILENAME"
>fstab</TT
>)</P
><P
>The most important changes will be in your <TT
CLASS="FILENAME"
>rc.d</TT
> directory. First, you should change <TT
CLASS="FILENAME"
>rc.inet1</TT
> to be suitable for your local setup. I pass all my network parameters to the kernel through the LILO/Loadlin, therefore I remove almost everything from <TT
CLASS="FILENAME"
>rc.inet1</TT
> file. The only thing I leave there is the <B
CLASS="COMMAND"
>ifconfig</B
> and <B
CLASS="COMMAND"
>route</B
> of the localhost. If you use rarp or bootp, you will have to build it accordingly.</P
><P
>Secondly, you should edit your <TT
CLASS="FILENAME"
>rc.S</TT
>. First, remove all the parts that are responsible for the fsck check as fsck will occur when the server boots up. Then, you should find the line that mounts your fstab. This should look something like: </P
><P
><B
CLASS="COMMAND"
>mount -avt nonfs</B
></P
><P
>The <I
CLASS="EMPHASIS"
>-t nonfs</I
> is there since normal clients first run <TT
CLASS="FILENAME"
>rc.S</TT
> and only later on use <TT
CLASS="FILENAME"
>rc.inet1</TT
> to configure the Ethernet. As this will cause no NFS partitions to be mounted this line should be deleted. Therefore, change it to <I
CLASS="EMPHASIS"
>mount -av</I
>. If you need to run rarp/bootp to configure your network, do it in <TT
CLASS="FILENAME"
>rc.S</TT
> (or call the appropriate script from <TT
CLASS="FILENAME"
>rc.S</TT
>), before the mount, and make sure your physical <TT
CLASS="FILENAME"
>bin</TT
> and <TT
CLASS="FILENAME"
>sbin</TT
> directories have the necessary files available.</P
><P
>After the <B
CLASS="COMMAND"
>mount -av</B
> is performed, you will have a working file system. Build a general fstab, so that you can later copy it to each client. Your fstab should look something like this: </P
><P
><DIV
CLASS="TABLE"
><P
><B
>Table 1. fstab</B
></P
><TABLE
BORDER="0"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>server:/clients/hostname</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>nfs</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>default</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>server:/bin</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/bin</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>nfs</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>default</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>server:/usr</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/usr</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>nfs</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>default</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>server:/sbin</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/sbin</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>nfs</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>default</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>erver:/home</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/home</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>nfs</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>default</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>server:/lib</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/lib</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>nfs</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>default</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>server:/clients/etc</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/server/etc</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>nfs</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>default</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>server:/clients/var</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/server/var</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>nfs</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>default</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>none</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/proc</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>proc</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>default</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
></TR
></TBODY
></TABLE
></DIV
></P
><P
>Please notice, that the keyword <I
CLASS="EMPHASIS"
>default</I
> might not work on all versions of mount. You might change it to <TT
CLASS="OPTION"
>rw</TT
> or <TT
CLASS="OPTION"
>ro</TT
> or remove all of the <TT
CLASS="OPTION"
>default 1 1</TT
> part.</P
><P
>Also, make sure your server's <TT
CLASS="FILENAME"
>/etc/exports</TT
> looks like this: </P
><P
><DIV
CLASS="TABLE"
><P
><B
>Table 2. /etc/exports</B
></P
><TABLE
BORDER="0"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/clients/hostname</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>hostname.domainname(rw,no_root_squash)</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/clients/etc</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>hostname.domainname(ro,no_root_squash)</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/clients/var</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>hostname.domainname(ro,no_root_squash)</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/usr</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>hostname.domainname(ro,no_root_squash)</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/sbin</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>hostname.domainname(ro,no_root_squash)</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/bin</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>hostname.domainname(ro,no_root_squash)</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/lib</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>hostname.domainname(ro,no_root_squash)</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/home</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>hostname.domainname(rw,no_root_squash)</TD
></TR
></TBODY
></TABLE
></DIV
></P
><P
>Other than the first line, which should be separate for each host, the rest of the lines can be replaced with a hostmask to fit all your hosts (like pc*.domain - keep in mind though, that * will substitue only strings without a dot in them). I suggest that you make most of the directories read only, but this is up to you. The <TT
CLASS="OPTION"
>no_root_squash</TT
> will make sure root users on the clients have actual root permissions on the nfsd as well. Check out man exports(5). If you want users to be able to run <B
CLASS="COMMAND"
>passwd</B
> from the clients also, make sure the <TT
CLASS="FILENAME"
>/etc</TT
> has <TT
CLASS="OPTION"
>rw</TT
> and not <TT
CLASS="OPTION"
>ro</TT
> permissions. However, this is not advisable. </P
><P
>Please note another thing concerning the <TT
CLASS="FILENAME"
>rc.S</TT
> file. In Slackware, by default, it creates a new <TT
CLASS="FILENAME"
>/etc/issue</TT
> and <TT
CLASS="FILENAME"
>/etc/motd</TT
> every time it runs. This function MUST be disabled if these files are mounted ro from the server, and I would recommend that they should be disabled in any case.</P
><P
>Lastly, if you want to have the same userbase on the server as on the clients, you should choose between 1), using NIS (Yellow Pages - check the yp-howto), and then each client will have a separate <TT
CLASS="FILENAME"
>/etc/passwd</TT
> and <TT
CLASS="FILENAME"
>/etc/group</TT
> as it receives it from the NIS server. 2) In most cases, a simple symbolic link will suffice. Therefore, you will need to either hardlink <TT
CLASS="FILENAME"
>/clients/etc/passwd</TT
> to <TT
CLASS="FILENAME"
>/etc/passwd</TT
>, or if you prefer a symlink, link <TT
CLASS="FILENAME"
>/etc/passwd</TT
> to <TT
CLASS="FILENAME"
>/clients/etc/passwd</TT
> (and not the other way around, since the clients do not mount the server's <TT
CLASS="FILENAME"
>etc</TT
> directory). Do the same for <TT
CLASS="FILENAME"
>/etc/group</TT
>. </P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN326"
>3.3.3. Creating a client's <TT
CLASS="FILENAME"
>etc</TT
> directory</A
></H3
><P
>Generally, most of the files in the client's etc should be symlinked to the <TT
CLASS="FILENAME"
>/server/etc</TT
> directory. However, some files are different for each machine, and some just have to be there when the kernel loads. The minimum you need from the <TT
CLASS="FILENAME"
>etc</TT
> dir is as follows: </P
><P
><P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><TT
CLASS="FILENAME"
>resolv.conf</TT
></TD
></TR
><TR
><TD
><TT
CLASS="FILENAME"
>hosts</TT
></TD
></TR
><TR
><TD
><TT
CLASS="FILENAME"
>inittab</TT
></TD
></TR
><TR
><TD
><TT
CLASS="FILENAME"
>rc.d/rc.S</TT
></TD
></TR
><TR
><TD
><TT
CLASS="FILENAME"
>fstab</TT
></TD
></TR
></TBODY
></TABLE
><P
></P
></P
><P
>Since these 5 files can be identical on all clients, you can simply hardlink them or copy them again. However, with the <TT
CLASS="FILENAME"
>rc.S</TT
> and <TT
CLASS="FILENAME"
>fstab</TT
> file it is advised to keep a separate copy for each client. You will also need a separate <TT
CLASS="FILENAME"
>etc/HOSTNAME</TT
> for each client. I personally recommend having all of the <TT
CLASS="FILENAME"
>rc.d</TT
> files separate for each client, as configuration and hardware might vary from one to another.</P
><P
>For each client, add to the <TT
CLASS="FILENAME"
>fstab</TT
> the proper swap line:</P
><P
><DIV
CLASS="TABLE"
><P
><B
>Table 3. fstab</B
></P
><TABLE
BORDER="0"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
>/dev/swap_partition</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>swap</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>swap</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>default</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>1</TD
></TR
></TBODY
></TABLE
></DIV
></P
><P
>The rest of the <TT
CLASS="FILENAME"
>/etc</TT
> files of the client, you can either hardlink to the <TT
CLASS="FILENAME"
>/clients/etc/*</TT
> files, or symlink them to the <TT
CLASS="FILENAME"
>/server/etc</TT
> (which is the mount point of <TT
CLASS="FILENAME"
>/clients/etc/</TT
>).</P
><P
>Make sure your machine can resolve properly, either through a named or through <TT
CLASS="FILENAME"
>etc/hosts</TT
>. It is not a bad idea to keep the server's IP in the <TT
CLASS="FILENAME"
>etc/hosts</TT
>, instead of counting on resolving. If you will count only on named resolving, a problem in the named will prevent your clients from booting up. </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN371"
>3.4. Booting Up</A
></H2
><P
>Now, all you have to do is to boot up your machine, cross your fingers and hope everything works as it should :-).</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="preface.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="moreclients.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Preface</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Creating more clients</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>