by jake

How can I setup netware services / mount netware servers in linux?

This very basic (written in less than two minutes) how-to applys to RedHat Linux. (it's not hard to get debian working in a similar way with .debs)

The purpose of it is to show how to mount a netware client (with optional server) in a very simple manner.

You must have these two kernel modules installed as well (but don't forget your network card):
	ipx
	ncpfs

I was running the 2.4.X kernel tree.

You can check by running lsmod:

[root@localhost]# lsmod
Module                  Size  Used by
nls_iso8859-1           2880   2  (autoclean)
ncpfs                  40336   1  (autoclean)
ipx                    15904   6  (autoclean)
ide-cd                 27104   0  (autoclean)
cdrom                  27392   0  (autoclean) [ide-cd]
appletalk              20048  13  (autoclean)
autofs                 11136   1  (autoclean)
3c59x                  25312   1  (autoclean)
ipchains               38944   0  (unused)

Assuming that you have the kernel modules installed go on.

Get the packages:
	ncftp ftp.redhat.com
	cd /pub/redhat/linux/7.1/en/os/i386/RedHat/RPMS/ 
	get ipx*
	get ncpfs*
	get mars*

Install the packages:

For redhat users:
[root@localhost /root]# rpm -ivhU ipxutils-2.2.0.18-3.i386.rpm 
Preparing...                ########################################### [100%]
   1:ipxutils               ########################################### [100%]

[root@localhost /root]# rpm -ivhU ncpfs-2.2.0.18-3.i386.rpm 
Preparing...                ########################################### [100%]
   1:ncpfs                  ########################################### [100%]

[root@localhost /root]# rpm -ivhU mars-nwe-0.99pl20-4.i386.rpm 
Preparing...                ########################################### [100%]
   1:mars-nwe               ########################################### [100%]

For debian users:
[root@debian /root]# apt-get install ncpfs ipx 

Then for debian users you need to get this source rpm http://www.redhat.com/swr/i386/mars-nwe-0.99pl20-10.i386.html and convert it using alien if you want a simple package for mars.

(for info setting up mars see this article: http://www.pcquest.com/content/networking/100080111.asp)

Configure the interface:

 * This is the simple way to configure the interface and more complicated ways are availiable  *

[root@localhost /root]# ipx_configure --auto_interface=on --auto_primary=on

Check to see if its working:

[root@localhost /root]# cat /proc/net/ipx_interface 
Network    Node_Address   Primary  Device     Frame_Type
00000006   006008AC3C7A   Yes      eth0       802.2    
0002FADE   006008AC3C7A   No       eth0       802.3    

Show the other servers on the network:

[root@localhost /root]# slist

Known NetWare File Servers                          Network   Node Address
--------------------------------------------------------------------------
NWSRV                                               00280601  000000000001

Mount a server:

Make the directory to mount to:

[root@localhost /root]# mkdir /mnt/netware

Mount the actual file server to the mount point just created:

* Note that this can be done semi-interactivly by dropping the -P option *

[root@localhost /mnt]# ncpmount -S nwsrv /mnt/netware -U admin -P nwclass

Now unmount the server (cleanly):

[root@localhost /mnt]# ncpumount /mnt/netware/


 


 
Read more of   The Yak's Frequently Questioned Answers   (mod.2008-11-08)

429.   why does my 802.11g network seem to die around Uniden 2.4ghz phones?   [jake/2006-05-19]
409.   What is a nice tip for automating updates on debian systems?   [jake/2004-03-30]
360.   How can I keep my Alcohol-Laced Yak Beverage cold on a hot, sunny day?   [goodwill/2003-06-02]
352.   Where can I see an example of looping code in G and in C?   [jake/2003-02-26]
285.   I use gnome, my soundcard died, lots of things need sound to run! what do i do?   [jesse/2001-11-13]
266.   Why won't sites with 24.x.x.x IPs respond to HTTP requests?   [rupe/2001-08-13]
212.   Where can you get free juice / ice cream in SFO, April 2001?   [rupe/2001-04-17]
198.   What tiny laptop does strick travel with?   [strick/2001-03-13]
186.   Where can I find some neat open source artwork?   [rupe/2001-02-28]
82.   Can Mice Fly ?   [philbert2k/2000-04-27]
76.   How can I run my 486 25 at 247 mhz?   [jj/2000-04-16]