s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
Next
Previous
Contents
5. Setting up the IntranetAn Intranet cannot be complete without sharing the resources on the different platforms. You will need support for other filesystems, so that you can access the data available on them. This document provides instructions to connect Linux to the following popular filesystems. These filesystems can be compiled into the Linux kernel or added as modules, depending on the version of Linux. If you are not familiar with compiling the kernel you can refer to the Kernel HOWTO http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html and the Module HOWTO http://sunsite.unc.edu/mdw/HOWTO/Module-HOWTO.html for compiling the kernel with modules.
5.1 NCPFSTo share the files on the Netware server you will need support for NCP (ncpfs). NCPFS works with kernel version 1.2.x and 1.3.71 upwards. It does not work with any earlier 1.3.x kernel. It cannot access the NDS database in Netware 4.x, but can make use of the bindery. If you are using Netware 4.x you can enable bindery support for specific containers using the command
In the above example two containers have bindery support enabled.
You will need to download the NCP filesystem utilities using the URL ftp://sunsite.unc.edu/pub/Linux/system/filesystems/ncpfs/ncpfs.tgz (currently ncpfs-2.0.10) from Sunsite.
InstallationTo install the ncpfs utilities, type
to expand the files into its own directory. In this case you will get a directory ncpfs-2.0.10 Change your directory to this ncpfs directory before proceeding with the installation. Read the README and edit the Makefile if necessary.
The installation of ncpfs depends on the kernel version you are using. For kernel 1.2, you should simply type 'make'. Subsequently typing 'make install' will install the executables and man pages. If you use Kernel 1.3.71 or later, you might have to recompile your kernel. With these kernels, the kernel part of ncpfs is already included in the main source tree. To check if the kernel needs to be recompiled type
It should show you a line saying that the kernel knows ncpfs.
If ncpfs is not there, you can either recompile the kernel or add ncpfs as a module. For recompiling the kernel you should type 'make config' and when it asks you for
simply answer 'y'. Probably you do not need the full internal net that
you are asked for next. Once the kernel is successfully installed, reboot, check
Mounting NCPFSTo check the installation type
You should be able to see a list of your Netware servers. Now we are ready to share files from the Netware server.
Suppose we need to access HTML files from directory On the Linux machine create a new directory
to mount the netware file system. Typing the command
will show you a list of all the files in MYDOM_NW/VOL1:\HOME\HTMLDOCS (using Netware file notation). If you have any problems please read the IPX HOWTO at
http://sunsite.unc.edu/mdw/HOWTO/IPX-HOWTO.html for more insights into the IPX system.
5.2 SMBFSTo share the files on the Windows server you will need support for SMB (smbfs). You will need to download the SMB filesystem utilities from ftp://sunsite.unc.edu/pub/Linux/system/filesystems/smbfs/smbfs.tgz (currently smbfs-2.0.1) from Sunsite.
InstallationTo install the smbfs utilities, type
to expand the files into its own directory. In this case you will get a directory smbfs-2.0.1 Change your directory to this smbfs directory before proceeding with the installation. Read the README and edit the Makefile if necessary.
The installation of smbfs depends on the kernel version you are using. For kernel 1.2, you should simply type 'make'. Subsequently typing 'make install' will install the executables and man pages. If you use Kernel 2.0 or later, you might have to recompile your kernel. With these kernels, the kernel part of smbfs is already included in the main source tree. To check if the kernel needs to be recompiled type
It should show you a line saying that the kernel knows smbfs.
If smbfs is not there, you can either recompile the kernel or add smbfs as a module. For recompiling the kernel you should type 'make config' and when it asks you for
adding SMB filesystem support
simply answer yes. Once the kernel is successfully installed, reboot, check
Mounting SMBFSIn our example let us assume that the WinNT server is called 'MYDOM_NT' and is sharing its directory
to mount the SMB (windows share) file system. If this does not work try
Typing the command
will show you a list of all the files in bsol;bsol;MYDOM_NT\PUB\HTMLDOCS (using Windows file notation).
5.3 NFSFirst you will need a kernel with the NFS file system either compiled in or available as a module. Suppose you have a Unix host running NFS with the name MYDOM_UNIX and an IP address of 172.16.0.4. You can check the directories that are being exported (shared) by this host by typing the command
Once we know the exported directories you can mount them by entering a appropriate mount command. I recommend that you create a subdirectory under '/mnt' (say) 'MYDOM_UNIX' and use that as your mount point.
The rsize and wsize may have to be changed depending on your environment.
If you have any problems please read the NFS HOWTO at http://sunsite.unc.edu/mdw/HOWTO/NFS-HOWTO.html for more insights into the NFS system.
Next Previous Contents |