2003-09-04 10:20:13 +08:00
|
|
|
<sect2>
|
2003-09-27 03:39:35 +08:00
|
|
|
<title>Configuring <application>NCPFS</application></title>
|
2003-09-04 10:20:13 +08:00
|
|
|
|
|
|
|
<sect3><title>Config files</title>
|
|
|
|
<para><filename>~/.nwclient</filename></para>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>A config file <filename>~/.nwclient</filename> should be placed
|
2003-09-24 00:38:50 +08:00
|
|
|
in the home directory of each user that intends to use <application>ncpfs
|
|
|
|
</application>. The permissions on this file should be set to 600, for obvious
|
|
|
|
security reasons. The configuration file should contain a single line
|
2003-09-04 10:20:13 +08:00
|
|
|
per server that the user will use. Each line should contain
|
2003-09-05 06:39:32 +08:00
|
|
|
the server name, the user name, and optionally the password. Below is a
|
2003-09-04 10:20:13 +08:00
|
|
|
sample <filename>.nwclient</filename> file.</para>
|
|
|
|
|
2003-09-24 00:38:50 +08:00
|
|
|
<screen><userinput># Begin example <filename>~/.nwclient</filename> config file
|
2003-09-04 10:20:13 +08:00
|
|
|
|
|
|
|
Server1/User1 Password
|
|
|
|
Server2/User1
|
|
|
|
Server2/Guest1 -
|
|
|
|
|
2003-09-24 00:38:50 +08:00
|
|
|
# End example .nwclient config file</userinput></screen>
|
2003-09-04 10:20:13 +08:00
|
|
|
|
|
|
|
<para>The syntax for the <filename>.nwclient</filename> file is simple,
|
|
|
|
<userinput>server_name/user_name password</userinput>. Be extremely
|
|
|
|
careful when creating or editing this file as the client utilities are
|
|
|
|
very picky about syntax. There should always be a space immediately
|
|
|
|
after the username. If this space is substituted by a tab or multiple
|
|
|
|
spaces, you will not get the expected results when attempting to use
|
2003-09-27 03:39:35 +08:00
|
|
|
the <application>NCPFS</application> tools. If no password is supplied,
|
2003-09-24 00:38:50 +08:00
|
|
|
the client utilities will ask for a password when it is needed. If no
|
|
|
|
password is needed, for instance when using a guest account, a single '-'
|
|
|
|
should be put in place of a password.</para>
|
2003-09-04 10:20:13 +08:00
|
|
|
|
|
|
|
<para>It should be noted that the ncpmount is not intended to mount
|
|
|
|
individual volumes because each mountpoint creates a separate client
|
|
|
|
connection to the Novell server. Mounting each individual volume
|
|
|
|
separately would be unwise, as mounting all volumes on a server
|
2003-09-05 06:39:32 +08:00
|
|
|
under one mount point uses only one client connection.</para>
|
2003-09-04 10:20:13 +08:00
|
|
|
|
2003-09-24 00:38:50 +08:00
|
|
|
<para>If you need to set up the <acronym>IPX</acronym> protocol at boot,
|
|
|
|
you can create the following scripts. These scripts assume <acronym>IPX
|
|
|
|
</acronym> will be set up on <emphasis role="strong">eth0</emphasis>
|
2003-09-04 10:20:13 +08:00
|
|
|
and the network frame type is 802.2. You should confirm that these
|
|
|
|
are the correct settings and adjust as necessary.</para>
|
|
|
|
|
2003-09-24 00:38:50 +08:00
|
|
|
<screen><userinput><command>cat > /etc/sysconfig/network-devices/ifup-ipx0 << "EOF"</command>
|
2003-09-04 10:20:13 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Begin /etc/sysconfig/network-devices/ifup-ipx0
|
|
|
|
|
|
|
|
source /etc/sysconfig/rc || exit
|
|
|
|
source $rc_functions || exit
|
|
|
|
|
|
|
|
echo "Setting up the IPX protocol on eth0..."
|
2003-09-05 06:39:32 +08:00
|
|
|
/bin/ipx_interface add eth0 802.2 &&
|
|
|
|
/bin/ipx_configure --auto_interface=on --auto_primary=on
|
2003-09-04 10:20:13 +08:00
|
|
|
evaluate_retval
|
|
|
|
|
|
|
|
# End /etc/sysconfig/network-devices/ifup-ipx0
|
2003-09-24 00:38:50 +08:00
|
|
|
<command>EOF
|
|
|
|
cat > /etc/sysconfig/network-devices/ifdown-ipx0 << "EOF"</command>
|
2003-09-04 10:20:13 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Begin /etc/sysconfig/network-devices/ifdown-ipx0
|
|
|
|
|
|
|
|
source /etc/sysconfig/rc || exit
|
|
|
|
source $rc_functions || exit
|
|
|
|
|
2003-10-03 10:46:08 +08:00
|
|
|
echo "Stopping IPX on the eth0 interface..."
|
2003-09-05 06:39:32 +08:00
|
|
|
/bin/ipx_configure --auto_interface=off --auto_primary=off &&
|
|
|
|
/bin/ipx_interface del eth0 802.2
|
2003-09-04 10:20:13 +08:00
|
|
|
evaluate_retval
|
|
|
|
|
|
|
|
# End /etc/sysconfig/network-devices/ifdown-ipx0
|
2003-09-24 00:38:50 +08:00
|
|
|
<command>EOF
|
2003-09-04 10:20:13 +08:00
|
|
|
echo "ONBOOT=yes" > /etc/sysconfig/network-devices/ifconfig.ipx0
|
|
|
|
chmod 755 /etc/sysconfig/network-devices/ifup-ipx0
|
2003-09-24 00:38:50 +08:00
|
|
|
chmod 755 /etc/sysconfig/network-devices/ifdown-ipx0</command></userinput></screen>
|
2003-09-04 10:20:13 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|