Skip to contentSkip to conversation

tcp/ip + samba + dosemu

DISCUSSION Rafał Cygnarowski 3 participants 11 messages Jun 20, 2006 – Jun 23, 2006 6 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi!

I was trying to run samba client under dosemu (I really need it!). I was trying many combinations without success :( Becouse I need to run database clarion under dosemu I would like to use LanManager (ftp://ftp.microsoft.com/bussys/Clients/LANMAN/) to connect with samba resources (I heard that LanManager is best solution for samba under dos).

Also I tried to use Waterloo TCP/IP utils - unfortunatelly without success either. Results of these tries are below (I suppose these tcp/ip utils will be useless for me, but even these do not work for me :( ).

-- dosemu.conf network configuration --
$_pktdriver = (on)
$_vnet = "tap"
$_netdev = "tap0"

-- this is how I setting up tap0 --
-bash-3.1# tunctl -t tap0
Set 'tap0' persistent and owned by uid 0 -bash-3.1# ifconfig tap0 192.168.1.1 up -bash-3.1# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.060 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.050 ms

--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.050/0.055/0.060/0.005 ms

-- Waterloo configuration --
tcp.cfg
my_ip=192.168.1.1
netmask=255.255.255.0

-- tcpinfo output --
C:\WAT>tcpinfo
Reading Waterloo TCP configuration file.

Ethernet Address : 64:62:b1:90:78:78

IP Address : 192.168.1.1
Network Mask : 255.255.255.0

Gateways : NONE
Cookieserver : NONE DEFINED

Nameserver : NONE DEFINED

Domain : "(null)"
[...]

-- ping output --
C:\WAT>ping 192.168.1.1
Pinging [192.168.1.1]

PING: Cannot resolve host's hardware address

Ping Statistics
Sent : 1
Received : 0
Success : 0 %
There was no response from 192.168.1.1

-- this is how it looks under tcpdump --
[root@honorata etc]# tcpdump -i tap0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on tap0, link-type EN10MB (Ethernet), capture size 96 bytes 14:44:11.161484 arp who-has 192.168.1.1 tell 192.168.1.1 14:44:11.387501 arp who-has 192.168.1.1 tell 192.168.1.1 14:44:11.662562 arp who-has 192.168.1.1 tell 192.168.1.1
[...]

I'm using "MS-DOS Version 6.20" under dosemu, kernel 2.6.16.20 and dosemu-1.3.3.

Any help appreciated.
I'm running out of time and ideas :(

Signature · 6 lines
Rafał Cygnarowski
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Rafał Cygnarowski escreveu:

Quoted 5 lines
Quoted 4 lines

1) You want a lan to share some resources, so the best way of doing it in dosemu is: mount your resource in a regular Linux directory, then from inside dosemu you share that direcory as a dos drive letter. You don't need lan in dos do do this, use Linux's

It's not so simple :( I just catn't do this that way. Shared resources are databases witch require file locking. Samba resources are not redistributable so I can't eg. "lredir" mounted by linux directories...

I don't undertand this
FWIK, there is no driver for MS client that uses packet driver, AND you only have one pkt in doemu.

Quoted 9 lines
Quoted 4 lines

2) Too use wat/tcp you will need to activate dosemu's packet driver. It already has one built in, but it has to be enabled and configured. There is a tutorial in dosemu's site. I had a better one, but I lost it when all my machines were stolen, including my backups...

I thought I already did it!? What I'm doing wrong then? Is that:

Quoted 3 lines
Quoted 3 lines

$_pktdriver = (on)
$_vnet = "tap"
$_netdev = "tap0"

That is not all of it, you have to install a bridge, ebtables and tuntap :(

Alain

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 5 lines
Quoted 3 lines

It's not so simple :( I just catn't do this that way. Shared resources are databases witch require file locking. Samba resources are not redistributable so I can't eg. "lredir" mounted by linux directories...

I don't undertand this

What's unclear for you?

Quoted 2 lines

FWIK, there is no driver for MS client that uses packet driver, AND you only have one pkt in doemu.

That's why I'm looking for help.

Quoted 1 line

That is not all of it, you have to install a bridge, ebtables and tuntap :(

Can you point me some good resource describing this? Google returns nothing useful for 'tuntap ebtables dosemu'...

Signature · 6 lines
Rafał Cygnarowski
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw

Rafał Cygnarowski escreveu:

Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

It's not so simple :( I just catn't do this that way. Shared resources are databases witch require file locking. Samba resources are not redistributable so I can't eg. "lredir" mounted by linux directories...

I don't undertand this

What's unclear for you?

FWIK, locks work with samba and dosemu. Have you tested it? I remember that it worked ;-)

Quoted 4 lines
Quoted 3 lines

FWIK, there is no driver for MS client that uses packet driver, AND you only have one pkt in doemu.

That's why I'm looking for help.

it is just my opinion: try to get it working as above and use the packet driver for wattcp

Quoted 2 lines
Quoted 1 line

That is not all of it, you have to install a bridge, ebtables and tuntap :(

Can you point me some good resource describing this? Google returns nothing useful for 'tuntap ebtables dosemu'...

In dosemu's manual: http://dosemu.sourceforge.net/docs/README/1.1.3.7/x991.html
But this is a bit better:
http://www.cs.iitm.ernet.in/~raturi/final/README.html

The problem in fact is not dosemu, you need to have a functional tap0, that is part of one thing called tuntap. And then to make it work you will need a bridge, which is closesely related to ebtables.

It took me a long time to learn it, and I lost all of it when all my machines were stolen...

BTW, use the list for discussion so more people may help ;-)

Alain

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw

By pure chance I found this file with info on tuntap and bridge. I am just adding some commments. This was for Mandriva 2005, may need some updating.

- TUN/TAP

# rpm -ivh tun-1.1-6.col31.i386.rpm
(it issued some error message, but apparently not important)
# modprobe tun
- in file /etc/modules.conf: add this:
alias char-major-10-200 tun
- get from pbone.net rpm.pbone.net:
# rpm -ivh uml-utilities-20040406-1mdk.i586.rpm
=> there you will find tunctl
- on CD4: /Mandrake/RPMS4/ (update this!)
# rpm -ivh bridge-utils-0.9.6-2mdk.i586.rpm
=> here is brctl, which is the program to configure a bridge

IIRC these programs have readme files...

As I said the script to set it all was lost :(

Alain

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw

Rafał Cygnarowski escreveu:

Quoted 4 lines
Quoted 2 lines

FWIK, locks work with samba and dosemu. Have you tested it? I remember that it worked ;-)

Of course it works, but not when fs is redistributed. That's the point!
To avoid redistribution I have to run smb client under dosemu and problem I have is to run it at all.

So here is what I don't understand: what is "when fs is redistributed"?

I assume you have a samba server with the files and a samba client on your machine, ok?

Alain

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw

Rafał Cygnarowski escreveu:

Quoted 9 lines
Quoted 7 lines
Quoted 3 lines

Of course it works, but not when fs is redistributed. That's the point! To avoid redistribution I have to run smb client under dosemu and problem I have is to run it at all.

So here is what I don't understand: what is "when fs is redistributed"?

I assume you have a samba server with the files and a samba client on your machine, ok?

Yes, I have samba server which shares files (database files) and DOS program which uses those files.

So far so good :)

Quoted 1 line

Now my problem is to get to those files in a safe way (which seems to be using smb client under dos - of course end points run linux so dos have to run under dosemu).

Why is it not safe to run samba client under Linux? and doseemu on top of that?

Quoted 1 line

I have similar configurations already running, but I use Novell Netware (and MarsNW) with ipx and Novell Client. Unfrotunatelly this time I can't use Novell and have to solve dosemu to samba connectivity problem.

What go wrong if you use a linux-samba client on every machine and use dosemu with lredir? Have you tried it?

Alain
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw
Quoted 6 lines
Quoted 3 lines

Now my problem is to get to those files in a safe way
(which seems to be using smb client under dos - of course end points run linux so dos have to run under dosemu).

Why is it not safe to run samba client under Linux? and doseemu on top of that?

Locks are not "inherited". When dos under dosemu try to lock file or region of file these locks are not passed to samba server.

Quoted 7 lines
Quoted 4 lines

I have similar configurations already
running, but I use Novell Netware (and MarsNW) with ipx and Novell Client. Unfrotunatelly this time I can't use Novell and have to solve dosemu to samba connectivity problem.

What go wrong if you use a linux-samba client on every machine and use dosemu with lredir? Have you tried it?

I use http://www.burtonsys.com/download/TESTLOCK.ZIP for lock tests. Results of such solution are below:

test        result   (test description)
-------     -------  ----------------------------------------------------- Test #1     Passed.  (Creating & modifying & deleting files) Test #2     FAILED!  (Examining & modifying file attributes) Test #3     FAILED!  (Enforced exclusive access, and share errors) Test #4     Passed.  (Shared read access to files)
Test #5     FAILED!  (Shared modify access to files)
Test #6     Passed.  (File commit)
Test #7     FAILED!  (File region locking, and lock errors) ^^^^^^^^^^^^^^^^^^^
Test #8     not run  (Adjacent region locks, and lock/write conflicts) Test #9     Passed.  (Appending & verifying new file sizes [NT 3.5 bug]) Test #10    Passed.  (Appending & verifying file sizes w/ closes) Test #11    Passed.  (Appending & verifying file sizes w/ file commits) Semaphore   Passed.  (semaphore-file kludge)
Test #3-A   Passed.  (Enforced exclusive access & share errors, 2-session) Test #5&6-A FAILED!  (Shared modify access & file commit, 2-session) Test #7-A   FAILED!  (File region locking, 2-session) ^^^^^^^^^^^^^^^^^^^

The same test on the same resource with client directly connected to samba (eg. on XP) passes all tests.

Signature · 6 lines
Rafał, Cygnarowski
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#13 lore raw

There is a file locking problem in FreeDOS which I believe that was fixed, so i suggest:

1) use the latest FreeDOS kernel from http://fdos.org/kernel/
2) test with MS-DOS. The test you reffer to bellow was with which DOS?

The problem may not be in dosemu ;-)

Alain

Rafał Cygnarowski escreveu:

Quoted 64 lines
Quoted 11 lines
Quoted 5 lines

Now my problem is to get to those files in a safe way

(which seems to be using smb client under dos - of course end points run

linux so dos have to run under dosemu).

Why is it not safe to run samba client under Linux? and doseemu on top

of that?

Locks are not "inherited". When dos under dosemu try to lock file or region

of file these locks are not passed to samba server.

Quoted 6 lines
Quoted 5 lines

I have similar configurations already

running, but I use Novell Netware (and MarsNW) with ipx and Novell

Client. Unfrotunatelly this time I can't use Novell and have to solve

Quoted 7 lines
Quoted 1 line

dosemu to samba connectivity problem.

What go wrong if you use a linux-samba client on every machine and use

dosemu with lredir? Have you tried it?

I use http://www.burtonsys.com/download/TESTLOCK.ZIP for lock tests. Results of such solution are below:

test result (test description)

------- ------- -----------------------------------------------------

Test #1 Passed. (Creating & modifying & deleting files)

Test #2 FAILED! (Examining & modifying file attributes)

Test #3 FAILED! (Enforced exclusive access, and share errors)

Test #4 Passed. (Shared read access to files)

Test #5 FAILED! (Shared modify access to files)

Test #6 Passed. (File commit)

Test #7 FAILED! (File region locking, and lock errors)

^^^^^^^^^^^^^^^^^^^

Test #8 not run (Adjacent region locks, and lock/write conflicts)

Test #9 Passed. (Appending & verifying new file sizes [NT 3.5 bug])

Test #10 Passed. (Appending & verifying file sizes w/ closes)

Test #11 Passed. (Appending & verifying file sizes w/ file commits)

Semaphore Passed. (semaphore-file kludge)

Test #3-A Passed. (Enforced exclusive access & share errors, 2-session)

Quoted 14 lines

Test #5&6-A FAILED! (Shared modify access & file commit, 2-session)

Test #7-A FAILED! (File region locking, 2-session)

^^^^^^^^^^^^^^^^^^^

The same test on the same resource with client directly connected to samba (eg. on XP) passes all tests.

Signature · 3 lines
Rafał Cygnarowski

[email protected]

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#14 lore raw
Quoted 5 lines · Alain M.

There is a file locking problem in FreeDOS which I believe that was fixed, so i suggest:

1) use the latest FreeDOS kernel from http://fdos.org/kernel/
2) test with MS-DOS. The test you reffer to bellow was with which DOS?

First of all - I use MS-DOS 6.20. FreeDOS is not enought stable for my installations.

Quoted 1 line

The problem may not be in dosemu ;-)

There is no problem with DOS, DosEMU or Samba locking. It's just *NORMAL* DOS, DosEMU and Samba behaviour. But to use them all at the same time I *MUST* be able to run some Samba client under DosEMU. And question is: HOW?! Have ANYONE succeed with this?

Signature · 6 lines
Rafał Cygnarowski
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#16 lore raw
Quoted 2 lines

I don't belive that you con run MS-CLIENT in dosemu, there is no driver for pkt.

I'm trying to run it in this way (to get NDIS over ODI over PKTDRV):
lsl.com
pdether
odihlp

but here I should call netbind which never binds. I suppose it's my fault becouse I just don't know what to write to net.cfg, protocol.ini and system.ini files of MS-CLIENT.

Quoted 2 lines

If you can make it work with a novel server, you could try it :) there is an IPX server for Linux. (never tried)

I'm already using MarsNW but this time I can't.

Quoted 2 lines

BTW: FreeDOS is much better then it was... specially in a controled environment as dosemu, you could test is (under cntroled conditions)

Maybe... but it does change anything for me now :(

Signature · 6 lines
Rafał Cygnarowski
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html