Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Cyber Angels

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 140 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

HOWTO Home

Current HOWTO: The Linux Intranet Server HOWTO


The Linux Intranet Server HOWTO: Setting up the Intranet Next Previous Contents

5. Setting up the Intranet

An 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 NCPFS

To 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 Set Bindery Context at the console as:


  set Bindery Context = CORP.MYDOM;WEBUSER.MYDOM
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.

Installation

To install the ncpfs utilities, type

   zcat ncpfs.tgz | tar xvf -
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

   cat /proc/filesystems
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

The IPX protocol (CONFIG_IPX) [N/y/?]

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 /proc/filesystems and if everything is OK proceed with the installation of the ncpfs utilities. Change directory to the location holding your downloaded ncpfs files, and type 'make'. After the compilation is finished type 'make install' to install the various utilities and man pages.

Mounting NCPFS

To check the installation type

   ipx_configure --auto_interface=on --auto_primary=on

....wait for 10 seconds and type

   slist
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 \home\htmldocs on volume VOL1: on the server MYDOM_NW, I recommend that you create a new user (say) 'EXPORT' with password 'EXP123' on this server to whom you grant appropriate access rights to this directory using SYSCON or NWADMIN.

On the Linux machine create a new directory /mnt/MYDOM_NW. Now type the command

   ncpmount -S MYDOM_NW -U EXPORT -P EXP123 /mnt/MYDOM_NW
to mount the netware file system. Typing the command
   ls /mnt/MYDOM_NW/vol1/home/htmldocs
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 SMBFS

To 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.

Installation

To install the smbfs utilities, type

   zcat smbfs.tgz | tar xvf -
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

   cat /proc/filesystems
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 /proc/filesystems and if everything is OK proceed with the installation of the smbfs utilities. Change directory to the location holding your downloaded smbfs files, and type 'make'. After the compilation is finished type 'make install' to install the various utilities and man pages.

Mounting SMBFS

In our example let us assume that the WinNT server is called 'MYDOM_NT' and is sharing its directory C:\PUB\HTMLDOCS with a share name of 'HTMLDOCS' without a password. On the Linux machine create a new directory /mnt/MYDOM_NT. Now type the command

   smbmount //MYDOM_NT/HTMLDOCS /mnt/MYDOM_NT -n

to mount the SMB (windows share) file system. If this does not work try

   smbmount //MYDOM_NT/COMMON /mnt/MYDOM_NT -n -I 172.16.0.3

Typing the command

   ls /mnt/MYDOM_NT
will show you a list of all the files in bsol;bsol;MYDOM_NT\PUB\HTMLDOCS (using Windows file notation).

5.3 NFS

First 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


   showmount -e 172.16.0.4
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.

   mount -o rsize=1024,wsize=1024 172.16.0.4:/pub/htmldocs /mnt/MYDOM_UNIX
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

The Linux Tutorial completely respects the rights of authors and artists to decide for themselves if and how their works can be used, independent of any existing licenses. This means if you are the author of any document presented on this site and do no wish it to be displayed as it is on this site or do not wish it to be displayed at all, please contact us and we will do our very best to accommodate you. If we are unable to accommodate you, we will, at your request, remove your document as quickly as possible.

If you are the author of any document presented on this site and would like a share of the advertising revenue, please contact us using the standard Feedback Form.


  
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial welcomes your suggestions and ideas.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.34 Seconds