Computing.Net > Forums > Linux > Netware Client for Linux Solution

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Netware Client for Linux Solution

Reply to Message Icon

Name: James Leone
Date: March 10, 2002 at 20:49:21 Pacific
Comment:

I first want to thank Victor Baldassi who posted a message on the novellfans.com board.


This is how you do it, and it does not work on Caldera. In fact, as far as I know, Caldera does not currently even have a functional Netware client for any current Kernel.

By the way, if you try this with Caldera Open Linux 3.1 it will freeze on boot up. Also, the Netware Client on the Ftp site does not work with any recent kernel.

First, you need to have three packages installed on your Linux Machine.

1. NCPFS
2. IPXUTILS
3. MARS-NWE

I have found that the easiest way to obtain these packages for Mandrake or Red Hat is to go to www.redhat.com, click on downloads and search for Netware.

Once downloaded, install the packages. I prefer to download the RPM's so its easy to install. If you try to download the Mars-Nwe source, you had better know German, so stick with the distributions. Frankly, Mandrake is the best, hands down.

Now, what you want to do is configure your Linux desktop to automatically start up Mars-NWE every time it boots up.
In Mandrake, go into the control center, go into systems and services. If Mars-Nwe is installed you will see it listed. Make sure that the start up on boot is checked off.

Now, you aren't done yet.

The next thing you want to do is edit the /etc/rc.d/rc.local file and add some lines.

I usually use emacs to edit files. It is a package available with most distributions.

At the shell, type emacs /ect/rc.d/rc.local

add these lines:

ipx_configure --auto_interface=on --auto_primary=on
ipx_interface delall
ipx_interface add -p eth0 802.3
ipx_interface check eth0 802.3

ncpmount -S server -V volume -U user -P password /mountpointdirectory

mine is: ncpmount -S BAM -V SYS -U James -P sesame /mnt/bam

To explain, you just type ncpmount then -S then the name of server you log into (mine is BAM) then -V then the name of the volume you want to access (mine is sys) -U then the name of the user (mine is James) -P then the the password (mine is sesame) then the directory on the hard drive you want to access the netware files from (I just double click on the /mnt/bam subdirectory and I see the files on the Netware server.

That's it.

Any questions, just email. jleone@pacbell.net



Sponsored Link
Ads by Google

Response Number 1
Name: James Leone
Date: April 17, 2002 at 17:16:12 Pacific
Reply:

Update: I am working on adding support to Lycoris, which is very promising and probably will be very easy to configure.

Thanks to Torben Lange for providing the following information:

Right now, you will need to download RPM packages for NCPFS and IPXUTILS. To install MARS-NWE, you will need to download additional packages from here to satisfy some package dependencies:

http://linux.s390.org/download/rpm2html/s390/mars-nwe-0.99pl17-4.s390.html

Specifically: /sbin/chkconfig
/sbin/service

On another topic, I was recently contacted by Caldera, and they said that their NKFS package has been open sourced, and is available for download, but must be compiled into the kernel. I still don't know if it is a current version.

I have not done this myself, and cannot provide any support for it.


0

Response Number 2
Name: Update 2/ QA
Date: April 26, 2002 at 10:39:11 Pacific
Reply:

Question:

Thanks for your PERFECT document , i am through with the novell volume
mapping.

Just a query is like i want to run dos application using Novell so how
i can do that?

ANy emulation software like RDP for Windows-TSE.

One problem is it doesn't allow me to use ncpmount command for users and
when i make user as SU , it doesn't mount the novell volume it says that
it is already mounted on /mnt/vcare vcare is my novell server name) ,
any Idea about this type of problem.

Thanks a lot once again , i will write to you when i complete with user
customization

Regards

K D

Response:

On your second question, I am working on that problem.

There are two modifications to my post that you need to know.

1. Don't specify the Netware Volume and it will mount all Netware volumes.

2. I made a slight mistake on the post, so I am going to change my post a
bit. The problem is that when it loads up from rc.d it loads the folders up
as owned by root. (Thanks for pointing this out).

I would suggest that you eliminate the ncpmount line from rc.d and have the
individuals run it themselves.

Which brings us to user friendliness.

There is a GUI for the netware client at www.darkrock.net called gtknw.

It has one bug, so I am going to tell you how to fix it. I started hacking it
yesterday.

After you untar the file (just type this in the shell in the directory you
downloaded the file....

gzip -dc gtknw-0.1.tar.gz | tar xvf -

This unzips the file)

cd gtknw0.1

This changes the directory)

You will need to replace one file in the src folder (callbacks.c) with my
hacked version of it...email jleone@pacbell.net to get it.

then type while in the GTK directory...

There will be a pause between each command...

./configure
make
make install (must be as root)
make clean

now, to test the program, type this in the command prompt:

/usr/local/gtknw/gtknw

You should see a netware login prompt

Fill every thing out as ncpmount would, but leave context blank.

For this gui to work, your users must have a password.

I am going to try to add some features to this client made by Darkrock at
www.darkrock.net, but I need to learn c++.

1. change the requirement to hack rc.d by adding the 4 IPX_ type commands
into this client.
2. Eliminate the requirement that the user have a password.

Now on to your querstion about DOS:

I run DOS applications within linux. Some work better than others.

I don't know how to set this up on my own. SuSE Linux 7.3 already had the
DOS EMU and Freedos packages configured in such a way that it was on the
menu bar and it worked bu going into emulators and selecting Xdos.

As far as Windows applications, Codeweavers Cross Over Office
(codeweavers.com) can run a few of my accounting applications in Linux.
Don't expect everthing to run. It is designed to run Microsoft Office, but
some other applications will end up running as a result. It is not very good
at running files off the network though.

Anyway, I am a CPA - and I am working very hard to actually be able to say,
I don't need Windows as a server or on my desktop!

James Leone
> > K.Dinesh
> >
> > James Leone wrote:
> >
> > > Hello,
> > >
> > > The answer to the question 'do I need to recompile my kernel to support
> the
> > > IPX protocol?' depends upon which distribution you are using and how old
> it
> > > is. Most of the newer distributions have IPX already compiled in the
> kernel.
> > > If yours does not, the answer is yes.
> > >
> > > However, if you just bought your distribution, the answer is most likely
> no.
> > >
> > > The script in the post I wrote requires a script for each client. You
> are in
> > > control as to where you place the novell volume, and it most certainly
> does
> > > not need to replace or displace the home directory. Just specify the
> mount
> > > as a folder within the home directory.
> > >
> > > Testing out the script will not damage your workstation.
> > >
> > > The bottom line is, just do what the post says. After you get more
> advanced,
> > > make modifications. If it doesn't work, let me know what error messages
> you
> > > get, so I can figure out a solution for you.
> > >
> > > James Leone
> > >
> > > ----- Original Message -----
> > > From: "vcare"
> > > To:
> > > Sent: April 23, 2002 3:40 AM
> > > Subject: NeTware On Linux
> > >
> > > > AS you have stated in your e-mail on Computing.net i am writing some
> of
> > > > my queries.
> > > > Being new to linux cross environment wit Novell i may ask you some
> > > > stupid questions forgive me for that.
> > > > I am using LTSP in my environment so my all users are connecting to
> one
> > > > server. using NFS .
> > > >
> > > > I want to mount the Volume of Novell user wise , do i have to write
> > > > login scripts for every user so his Novell directory is displaced as
> his
> > > > home directory ?
> > > >
> > > > do i need to recompile my Kernel to support the IPX protocol ?
> > > >
> > > > Your suggestions are welcome
> > > >
> > > > Regards
> > > > K.Dinesh
> > > >
> > > >
> >
> >
>


0

Response Number 3
Name: James Leone
Date: April 27, 2002 at 16:03:17 Pacific
Reply:

Lycoris Follow Up:

Question:

Good Afternoon James.

My name is Todd and I just read your "Netware Client for Linux Solution" from Computing.Net. I noticed that you are currently adding support to Lycoris. I have download Lycoris (build 44) but haven't installed it yet. I was just curious what the current status is for the support for Lycoris.

Thank you for your time.

Todd


Answer:

Hi Todd,


Although I and one other person that uses Lycoris tried to set up Mars NWE for a number of hours, we were not sucessful because we could not solve the /usr/sbin dependency that is required to install Mars NWE. Because I had to move on to another project, this is where my work stopped.

I tried to use the Lycoris downloads, as well as Red Hat to no avail.

I sent an email to Lycoris requsting that they add Mars NWE to the distribution. I hope that they will add this package to builds after 44.

James Leone


0

Response Number 4
Name: James Leone
Date: April 27, 2002 at 16:15:25 Pacific
Reply:

Follow up on GUI hack useability:

Question:

Dear James,

Thanks for the file and it is working properly. It will be good for users to logon and enter their password , Network admin
doesn't have to keep the track. I need other help, i want to run dos applications which are on Novell server, how i can do that?

Regards
Dinesh K,

Answer:

I am glad it is working!!

:)

Now, about running the dos applications,I just want to make sure that I understand you correctly.

You have dos files stored on the netware server that you would like to access from Linux using the Netware Client to access them, correct?

If so, you have to get a DOS emulator such as freedos running in Linux.

Freedos can open dos files in a mounted share. I don't know how SuSE got FreeDOS package installed under the DosEMU package, it just worked for me.

I will try to look into it, but it may be about a week until I know if I am able to figure it out.

James Leone


0

Response Number 5
Name: James Leone
Date: April 28, 2002 at 08:54:18 Pacific
Reply:

Update support for SuSE Linux, Question about Now-well gui front end.


Question:

I have SuSE Linux and I can't edit rc.d. What should I do?


Also, I just came across this. It is a Novell Client for Linux called Now-Well. As far as I can tell, it hasn't been updated in 3 years. Thought that you might be interested.


http://now-well.sourceforge.net/linux/now-well/index.htm


Answer:

I believe that Now-well is a GUI front end. You still need to use the instructions I layed out above to log into the Netware 4 server.

I tried Now-well before with a Novell 4.11 server without the "IPX" modifications to the rc.d folder and it didn't work on its own, but I am willing to bet that it will work with the "IPX" modifications.

I am going to look into Now-Well to see if I can add the additional features to allow it to work.

Although I can't say weather I can support Now-well yet, I can say that I can support a similar front end from www.darkrock.net called gtknw.

It doesn't work on its own, but I hacked it to get it to work. You can email me for the hack, but you should download the tar file from Darkrock.net.

SuSE Linux:


I have SuSE Linux. Here is how you get my modifications it to work in SuSE.

Edit the /etc/init.d/nwe file with a text editor and go down to the line that says "echo -n "Starting Mars NWE."

Insert four lines after this:

ipx_configure --auto_interface=on --auto_primary=on
ipx_interface delall
ipx_interface add -p eth0 802.3
ipx_interface check eth0 802.3

The next line should read "checkproc $NWSERV_BIN


James


0

Related Posts

See More



Response Number 6
Name: James Leone
Date: June 21, 2002 at 19:59:09 Pacific
Reply:

Follow up:

Administrators on a local area network with multiple workstations should be cautious about the method for logging into a Novell 4.11 server.

I have found that if there are multiple workstations logged into the server from within Windows, and there are multiple log ins and logouts of linux netware clients, that my server will start to drop connections with the server.

I have noticed that the connections do not clear immediately upon log out during the multiple reboots described previously.

Because our license is limited to a certain number of logged in users, I have not determined if this problem arose because of the delay phenominon coupled with the license limit, or if it would take place regardless.

Our server has not yet applied service pack 9.

As I get more information, I will continue to post.


James Leone


0

Response Number 7
Name: James Leone
Date: June 23, 2002 at 11:21:12 Pacific
Reply:

Follow up:

a) I have sent the hacked GTK to a few
people and it has worked for them. I also
hope to contact the writer soon to let him
know....

b) Groupwise/Border Manager:

I received an email from...I don't have the
name now but I will acknowledge in next
post...

I received an email from ...X... that asked
if he could surf the net if Novell was his
gateway using groupwise/border manager.

It appears that he cannot.

So far I have no solution yet, but my first
suggestion is to try to install Groupwise
into WINE. I will try that soon, post my
results and give proper acknowledgement to
mr. x. No promices on when this will be
done.


0

Response Number 8
Name: James Leone
Date: June 24, 2002 at 20:20:27 Pacific
Reply:

Follow Up: Denial of Service Problem Solved

I want to thank Steve Nichols from Linuxsa for his help with my finding the answer...


As stated in the previous post, we would start to have denial of service problems when a number of Linux partitions would log into the Netware 4.11 server.


I found that the file /etc/nwserver.conf needed to be changed from its default setting for section 4:

4 0x22 eth0 ethernet_ii 1
# 4 0x0 * AUTO 1


I changed it to read:

# 4 0x22 eth0 ethernet_ii 1
4 0x0 * AUTO 1

After this, the problem disappeared.


You might be able to also specify your net number instead of using auto...but I only know that it appeared to work for me on a single client network. The configuration would be as follows:


4 0x[net number here] eth0 ethernet_ii 1
# 4 0x0 * AUTO 1


Hope this helps!


James Leone


0

Response Number 9
Name: James Leone
Date: July 16, 2002 at 10:17:57 Pacific
Reply:

UPDATE - NEW GUI LOGIN FRONT END.

THANK YOU TO SDUKAS DUKAS.

******************************************

Hi SDUKAS,

Well, now is as good as ever a time for me to update my progress.

But first, but first, here is the callbacks.c file you asked for.

Second, a caveat, I made the post specifically for Netware 4, so I would
be very happy to know that it is of help to Netware 5 users. Could you
write back and let me know what the additional procedures you had to
take, if any, to get it working?

Also please note that you should modify your /etc/nwserv.conf file to
prevent denial of service, please see my last post on computing.net.


********************ANOTHER GUI FRONT-END OPTION**********************

My update is about an additional option for logging into the netware server.

Attached are some shell scripts that do the same thing as GTK, and is
faster and easier to set up. It does not require compilation or that you
use a novell login password for it to work, as does GTKNW. This does not
mean that the Novell login password can be circumvented, it just means
that if you don't use a Novell login password, you can still use the
script to log into the Netware server. This is not true of GTKNW as far
as I know.

Note that the scripts are just a GUI front end, you still have to set up
all of the background tweaks as described in the post. To be clear, it
just replaces GTK as a means to log into the netware server.

The bottom line is that you have a choice of Netware clients. If you use
the shell scripts, you do not need the callbacks.c file.

The attachment labeled "Netware Client for Linux" is just an icon. If
you want the netware client to automatically start when KDE loads up,
place the icon in /home/linux-local-username/.kde/Autostart. (the /.kde
folder is hidden, so you can go to view/show hidden files in konqueror
so it will show up.)

If you would rather not autostart the client, just place the icon on the
desktop and edit it by right clicking ang going to properties. Click on
the execute tab and change the 'username' part in the 'command:' box to
the local-user's user name. For example, mine reads
sh /home/james/novell.sh. A user will log into the server by clicking on it.

This icon calls up the shell script I made, which is attached next. It
is called novell.sh
Note that this file must also be edited. Store the shell script in the
local Linux user's home directory. Right click on the shell script and
open with kwrite or some other type of editor.

Basically the script automates the ncpmount command. It won't work the
way it is now, you have to edit it. Note that if you do not use a
password, keep the -n in the script and delete the "-P PASSWORD" part.
Replace the word "SERVERNAME" with the name of your server, and
"USERNAME" with your Novell login name. Note that the Novell login name
could differ from your local Linux user name.

I have also made a 'my computer' icon which is just a folder on the
desktop with an icon associated with it. Inside of it, place the
'F:\SERVER\VOLUME' attachment and rename it by right clicking on it.
Also click on the URL tab and remane the mounted path.

Once the netware volume is mounted, simply click on this icon and you
can access files easily without having to cd to the mounted volume.

James Leone

SDUKAS DUKAS wrote:

>Hi, my name is Stavros Dukas
>I'm an XXXXXXXXXXXXXXXXXX. I am working on a project to
>see whether it is possible to switch our Windows workstations to Linux
>workstations. We are running Novell 5 as our main server so of course
>looking for a good clone of the Novell client that would allow the
>employees to have a smoother transition into the Linux environment. I
>saw your post about the GTKNW client on the computing,net forum and want
>to try it out. So if you still have that modified callbacks.c file I
>would really appreciate it if you could send it to me. Also if you know
>of any other possibilities in mind that could be of any help it would
>also be appreciated. Thank you in advance.
>


--------------070104060704020106060109
Content-Type: text/plain;
name="callbacks.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="callbacks.c"

#ifdef HAVE_CONFIG_H
# include
#endif

#include
#include
#include
#include

#include "callbacks.h"
#include "interface.h"
#include "support.h"

void quick_message(gchar *title, gchar *message)
{
GtkWidget *dialog, *label, *okay_button;

/* Create the widgets */

dialog = gtk_dialog_new();
label = gtk_label_new (message);
okay_button = gtk_button_new_with_label("Ok");

gtk_window_set_title( GTK_WINDOW(dialog), title );
gtk_window_set_position( GTK_WINDOW (dialog), GTK_WIN_POS_CENTER );

/* Ensure that the dialog box is destroyed when the user clicks ok. */

gtk_signal_connect_object (GTK_OBJECT (okay_button), "clicked",
GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(dialog));
gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->action_area),
okay_button);

/* Add the label, and show everything we've added to the dialog. */

gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox),
label);
gtk_widget_show_all (dialog);
}

extern char iusername[1024], iserver[1024], icontext[1024], imountpoint[1024];
char ipassword[1024];

void on_window1_destroy (GtkObject *object,
gpointer user_data)
{
exit(0);
}

gboolean on_entry1_focus_out_event (GtkWidget *widget,
GdkEventFocus *event,
gpointer user_data)
{
bzero( iusername, 1024 );
strcpy( iusername, (char *)gtk_entry_get_text( (GtkEntry*)widget ) );
return FALSE;
}

void on_button1_clicked (GtkButton *button,
gpointer user_data)
{
char command[1024];

bzero( command, 1024 );
sprintf( command, "ncpmount -S %s -U %s -P %s %s", iserver, iusername, ipassword, imountpoint );
if( system( command ) )
{
bzero( command, 1024 );
sprintf( command, "Could not mount server \"%s\"\non %s using %s.%s\n\n\t- Check it's not already mounted\n\t- Check the login information is correct", iserver, imountpoint, iusername, icontext );
quick_message( "WARNING: Login Unsucessful", (gchar *)command );
}
else
{
bzero( command, 1024 );
sprintf( command, "Server \"%s\" has now been\nmounted on \"%s\" ", iserver, imountpoint );
quick_message( "Login Sucessful", (gchar *)command );
write_config();
exit(0);
}
}

void on_button2_clicked (GtkButton *button,
gpointer user_data)
{
exit(0);
}

void on_button3_clicked (GtkButton *button,
gpointer user_data)
{
quick_message( "About gtk Netware Client", "gtk Netware Client 0.1\n\nwritten by\nChris Ross (chris@darkrock.co.uk)\n"
"http://www.darkrock.co.uk\n\nDistributed under the GPL" );
}

gboolean on_entry4_focus_out_event (GtkWidget *widget,
GdkEventFocus *event,
gpointer user_data)
{
bzero( icontext, 1024 );
strcpy( icontext, (char *)gtk_entry_get_text( (GtkEntry*)widget ) );
return FALSE;
}

gboolean on_entry3_focus_out_event (GtkWidget *widget,
GdkEventFocus *event,
gpointer user_data)
{
bzero( iserver, 1024 );
strcpy( iserver, (char *)gtk_entry_get_text( (GtkEntry*)widget ) );
return FALSE;
}

gboolean on_entry2_focus_out_event (GtkWidget *widget,
GdkEventFocus *event,
gpointer user_data)
{
bzero( ipassword, 1024 );
strcpy( ipassword, (char *)gtk_entry_get_text( (GtkEntry*)widget ) );
return FALSE;
}

gboolean on_entry5_focus_out_event (GtkWidget *widget,
GdkEventFocus *event,
gpointer user_data)
{
bzero( imountpoint, 1024 );
strcpy( imountpoint, (char *)gtk_entry_get_text( (GtkEntry*)widget ) );
return FALSE;
}

--------------070104060704020106060109
Content-Type: text/plain;
name="Netware Client for Linux"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Netware Client for Linux"

[Desktop Entry]
Comment[en_US]=Netware Client
Encoding=UTF-8
Exec=sh /home/username/novell.sh
Icon=NewNovellLogo
MimeType=
Name[en_US]=Netware Client for Linux
Path=
ServiceTypes=
SwallowExec=
SwallowTitle=
Terminal=true
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=

--------------070104060704020106060109
Content-Type: text/plain;
name="novell.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="novell.sh"

#!/bin/bash
/usr/bin/ncpmount -S SERVERNAME -U USERNAME -P PASSWORD /path/to/mounted/netware/volume(s)/ -n

--------------070104060704020106060109
Content-Type: text/plain;
name="F:\SERVER\VOLUME"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="F:\SERVER\VOLUME"

[Desktop Entry]
Encoding=UTF-8
Icon=network_advanced
Type=Link
URL=/PATH/TO/MOUNTED/NETWARE/VOLUME

--------------070104060704020106060109--


0

Response Number 10
Name: James Leone
Date: July 22, 2002 at 13:27:53 Pacific
Reply:

Follow up:

I want to thank Jurgen Landrie for pointing out the issues with Novell's Border Manager. I am still hoping to come up with a solution, but I myself do not have Border Manager, and we don't use it on our LAN.


James Leone


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Netware Client for Linux Solution

Netware Client for Linux II www.computing.net/answers/linux/netware-client-for-linux-ii/12876.html

Netwhere Client for Linux Released! www.computing.net/answers/linux/netwhere-client-for-linux-released/17376.html

groupwise client for linux www.computing.net/answers/linux/groupwise-client-for-linux/15221.html