<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1"> <TITLE>Auto Install for Mandrakelinux</TITLE> <META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.0 (Linux)"> <META NAME="AUTHOR" CONTENT="David Eastcott"> <META NAME="CREATED" CONTENT="20040221;10385500"> <META NAME="CHANGEDBY" CONTENT="David Eastcott"> <META NAME="CHANGED" CONTENT="20040502;8530300"> <META NAME="CLASSIFICATION" CONTENT="DrakX Auto Install Reference"> <META NAME="KEYWORDS" CONTENT="DrakX Autoinstall"> <STYLE> <!-- @page { size: 8.5in 11in; margin: 1in } P { margin-left: 0.5in; margin-bottom: 0.08in; page-break-before: auto } P.western { font-size: 10pt; font-weight: medium } P.text-body-indent-western { margin-left: 0.2in; font-size: 10pt; font-weight: medium } P.text-body-indent-cjk { margin-left: 0.2in } P.text-body-indent-ctl { margin-left: 0.2in } H1 { margin-bottom: 0.08in; page-break-before: always } H1.western { font-family: "Times" } H1.cjk { font-family: "Mincho"; font-size: 16pt } H1.ctl { font-family: "Lucidasans"; font-size: 16pt } H2 { margin-bottom: 0.08in; page-break-before: auto } H2.western { font-family: "Times"; font-style: normal } H2.cjk { font-family: "Mincho"; font-size: 14pt; font-style: italic } H2.ctl { font-size: 14pt; font-style: italic } H3 { margin-bottom: 0.08in; page-break-before: auto } H3.western { font-family: "Times" } H3.cjk { font-family: "Mincho" } H4 { margin-left: 0.5in; margin-bottom: 0.08in; page-break-before: auto } H4.western { font-family: "Times"; font-style: normal } H4.cjk { font-family: "Mincho"; font-size: 11pt; font-style: italic } H4.ctl { font-size: 11pt; font-style: italic } TD P { margin-left: 0.5in; margin-bottom: 0.08in; page-break-before: auto } TD P.western { font-size: 10pt; font-weight: medium } TH P { margin-left: 0.5in; margin-bottom: 0.08in; page-break-before: auto } TH P.western { font-size: 10pt; font-style: italic } TH P.cjk { font-style: italic } TH P.ctl { font-style: italic } P.headings-special-western { margin-top: 0.3in; margin-bottom: 0.1in; font-size: 10pt; font-weight: bold; page-break-after: avoid } P.headings-special-cjk { margin-top: 0.3in; margin-bottom: 0.1in; page-break-after: avoid } P.headings-special-ctl { margin-top: 0.3in; margin-bottom: 0.1in; page-break-after: avoid } P.closecode-western { margin-left: 1in; margin-bottom: 0in; font-family: "Courier", monospace; font-size: 9pt; font-weight: medium } P.closecode-cjk { margin-left: 1in; margin-bottom: 0in } P.closecode-ctl { margin-left: 1in; margin-bottom: 0in } P.coderef-western { margin-left: 1in; margin-bottom: 0.08in; font-family: "Courier", monospace; font-size: 10pt; font-weight: medium } P.coderef-cjk { margin-left: 1in; margin-bottom: 0.08in } P.coderef-ctl { margin-left: 1in; margin-bottom: 0.08in } --> </STYLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0"> <TR><TH COLSPAN="3" ALIGN="CENTER"> Auto Install for Mandrakelinux</TH></TR><TR> <TD WIDTH="10%" ALIGN="LEFT" VALIGN="BOTTOM"> <A HREF="section8.html">Prev</A></TD><TD WIDTH="80%" ALIGN="CENTER" VALIGN="BOTTOM"></TD> <TD WIDTH="10%" ALIGN="RIGHT" VALIGN="BOTTOM"> <A HREF="section10.html">Next</A></TD></TR></TABLE><HR ALIGN="LEFT" WIDTH="100%"> <H1 CLASS="western"><A NAME="Setting_up_a_Simple_NFS_Server"></A>Setting up a Simple NFS Server</H1> <P CLASS="western">The following is a simple example, you should adjust it as required for your environment and security requirements. After setting up a NFS Server, you will be able to use the 'network' install for Manual Installations and for NFS Automated / Replay installs.</P> <P CLASS="headings-special-western">Step 1</P> <P CLASS="western" STYLE="margin-left: 0.8in">On the designated server machine, make sure that NFS is installed and running. For this example, my server's name is <FONT FACE="Courier, monospace">'fileserver.eastcott.net'</FONT>.</P> <P CLASS="headings-special-western">Step 2 </P> <P CLASS="western" STYLE="margin-left: 0.8in">As <FONT FACE="Courier, monospace">root</FONT> on <FONT FACE="Courier, monospace">'fileserver'</FONT>:</P> <P CLASS="western" STYLE="margin-left: 1in">a) create a directory using: <FONT FACE="Courier, monospace">mkdir /nfscd</FONT></P> <P CLASS="western" STYLE="margin-left: 1in">b) change the permissions to <FONT FACE="Courier, monospace">0755</FONT> using: <FONT FACE="Courier, monospace">chmod 755 /nfscd</FONT></P> <P CLASS="western" STYLE="margin-left: 1in">c) change ownership of the directory to a regular user <user.group> using:</P> <P CLASS="western" STYLE="margin-left: 1.2in"><FONT FACE="Courier, monospace">chown user.group /nfscd</FONT></P> <P CLASS="headings-special-western">Step 3 </P> <P CLASS="western" STYLE="margin-left: 0.8in">As the regular user who owns <FONT FACE="Courier, monospace">/nfscd</FONT>: (Assumes that the CD-ROM is mounted as <FONT FACE="Courier, monospace">/mnt/cdrom</FONT>.)</P> <P CLASS="western" STYLE="margin-left: 1in">a) insert the MDK Install CD (1 of ...) into your CD-ROM, and mount it.</P> <P CLASS="western" STYLE="margin-left: 1in">b) copy the CD-ROMs contents to the new directory using: </P> <P CLASS="western" STYLE="margin-left: 1.2in"><FONT FACE="Courier, monospace">cp -a /mnt/cdrom /nfscd</FONT></P> <P CLASS="western" STYLE="margin-left: 1in">c) un-mount the first disk, then insert and mount the second CD.</P> <P CLASS="western" STYLE="margin-left: 1in">d) again, copy the files using: </P> <P CLASS="western" STYLE="margin-left: 1.2in"><FONT FACE="Courier, monospace">cp -a /mnt/cdrom /nfscd</FONT></P> <P CLASS="western" STYLE="margin-left: 1in">e) un-mount and remove the CD.</P> <P CLASS="western" STYLE="margin-left: 1in">f) repeat if you have more disks.</P> <P CLASS="headings-special-western">Step 4</P> <P CLASS="western" STYLE="margin-left: 0.8in">Rename the directory <FONT FACE="Courier, monospace">/nfscd/cdrom</FONT> to <FONT FACE="Courier, monospace">/nfscd/cdrom10.0</FONT> using:</P> <P CLASS="western" STYLE="margin-left: 1in"><FONT FACE="Courier, monospace">mv /nfscd/cdrom /nfscd/cdrom10.0</FONT></P> <P CLASS="headings-special-western">Step 5 </P> <P CLASS="western" STYLE="margin-left: 0.8in">As <FONT FACE="Courier, monospace">root</FONT>:</P> <P CLASS="western" STYLE="margin-left: 1in">a) modify your <FONT FACE="Courier, monospace">/etc/exports</FONT> files to contain the the line:</P> <P CLASS="western" STYLE="margin-left: 1.2in; margin-bottom: 0.15in"><FONT FACE="Courier, monospace">/nfscd/cdrom10.0 *.eastcott.net(ro,root_squash)</FONT></P> <TABLE WIDTH=847 BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=60> <COL WIDTH=787> <TR VALIGN=TOP> <TD WIDTH=60> <P CLASS="western" STYLE="margin-left: 0in"><IMG SRC="AutoInstall-10.0.3_html_1412bb95.png" NAME="Graphic70" ALIGN=LEFT WIDTH=30 HEIGHT=30 BORDER=0><BR CLEAR=LEFT><BR> </P> </TD> <TD WIDTH=787> <P CLASS="western">If you the NFS server can not do a reverse name look up because the DNS server does not have an IP to name entry for your computer, then you may have to change the above line to use the IP form:</P> </TD> </TR> </TABLE> <P CLASS="western" STYLE="margin-left: 1.2in; margin-top: 0.15in; margin-bottom: 0.08in"> <FONT FACE="Courier, monospace">/nfscd/cdrom10.0 192.168.5.0/255.255.255.0(ro,root_squash)</FONT></P> <P CLASS="western" STYLE="margin-left: 1in">b) then update the NFS exports using: <FONT FACE="Courier, monospace">exportfs -r </FONT> </P> <P CLASS="headings-special-western">Step 6 </P> <P CLASS="western" STYLE="margin-left: 0.8in">On a different computer:</P> <P CLASS="western" STYLE="margin-left: 1in">a) test that the NFS volume can be mounted (probably as root) using: </P> <P CLASS="western" STYLE="margin-left: 1.2in"><FONT FACE="Courier, monospace">mount -t nfs fileserver:/nfscd/cdrom10.0 /mnt/nfs</FONT></P> <P CLASS="western" STYLE="margin-left: 1in">b) un-mount it.</P> <P CLASS="headings-special-western">Step 7 </P> <P CLASS="western" STYLE="margin-left: 0.8in">Create a test auto install disk (see <A HREF="section7.html#Network_Auto_Install_Diskette_Set"><B><I>Network Auto Install Diskette Set</I></B></A>)</P> <P CLASS="western" STYLE="margin-left: 0.8in">Adjust the <FONT FACE="Courier, monospace">syslinux.cfg</FONT> file for your network, adjust the <FONT FACE="Courier, monospace">auto_inst.cfg</FONT> file to your requirements. Then install the disk in a target computer, re-boot it and verify that you can do an install.</P> <P CLASS="western"><BR><BR> </P> <P CLASS="western" STYLE="margin-bottom: 0.15in">Problems that you may encounter include:</P> <TABLE WIDTH=847 BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=91> <COL WIDTH=756> <TR VALIGN=TOP> <TD WIDTH=91 HEIGHT=65> <P CLASS="western" ALIGN=RIGHT>a)</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0.2in">The install fails with an error message indicating it can not find the install files. This may be caused because the <FONT FACE="Courier, monospace">'syslinux.cfg'</FONT> file directory parameter is incorrect, you forgot to re-export the NFS volumes after changing the <FONT FACE="Courier, monospace">/etc/exports</FONT> file.</P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=91 HEIGHT=65> <P CLASS="western" ALIGN=RIGHT>b)</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0.2in">The install fails with an indication similar to Permission Denied. This is usually because the directory and file permissions are set incorrectly on NFS server. All directories in the export volume should have the permissions of a least <FONT FACE="Courier, monospace">555</FONT>, and all the distribution files should have permissions of at least <FONT FACE="Courier, monospace">444</FONT>.</P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=91 HEIGHT=30> <P CLASS="western" ALIGN=RIGHT>c)</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0.2in">The install fails with an error similar to unable to execute <FONT FACE="Courier, monospace">install2</FONT>. This is again a permissions problem.</P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=91 HEIGHT=48> <P CLASS="western" ALIGN=RIGHT>d)</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0.2in">The install completes, but not all the packages were installed. This may be because you did not copy all the required CDs and retain the required directory hierarchy.</P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=91> <P CLASS="western"><BR> </P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0.2in">The last three problems are usually solved by deleting the <FONT FACE="Courier, monospace">/nfscd</FONT> directory and its contents, then repeating steps 2 through 5 again.</P> </TD> </TR> </TABLE> <HR ALIGN="LEFT" WIDTH="100%"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0"> <TR><TD WIDTH="33%" ALIGN="LEFT" VALIGN="TOP"><A HREF="section8.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="section10.html">Next</A></TD></TR> <TR><TD WIDTH="33%" ALIGN="LEFT" VALIGN="TOP">Creating an Updated Installation CD Set</TD> <TD WIDTH="34%" ALIGN="CENTER" VALIGN="TOP"> </TD> <TD WIDTH="33%" ALIGN="RIGHT" VALIGN="TOP">Network and Connection Examples</TD></TR></TABLE> </BODY> </HTML>