Networking: Using Samba with A1200+Peg1+PC
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Spidey
    Posts: 568 from 2003/2/24
    From: Netherlands
    Hello and a happy New Year to all! :-D

    I read previous threads about networking with Samba and now I'm trying it too.

    The Setup:
    - Wireless router
    - PC with Win98
    - Peg 1
    - A1200 with 10mbit PCMCIA card


    Accomplishment this far:
    - PC recognises my Peg in Network environment
    - Samba is installed on Peg and A1200


    Problems:
    - I can't connect to the pc with SMBFS from my Peg1.
    The error-message is: "Unknown host 'webcomp' (1, Unknown host)'"
    But I can see this host with "smbclient -L webcomp"
    (webcomp is the hostname of my PC)

    - I can't access the A1200 from either the PC or Peg1.
    The error-message is: "Invalid packet length! (90724 bytes)"
    Can this be something with the 10mbit of the A1200 and the 100mbit of the Peg and PC?

    I hope I was clear enough :-)

    What am I missing here?

    Thanks,

    Spidey
  • »01.01.04 - 15:45
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    nels664868
    Posts: 117 from 2003/12/28
    From: Fort Myers, Fl...
    There is a file called "lmhosts" in samba that must be configured with your pc's name and IP address
    example

    192.168.0.1 peecee.mygroup
    Ask Dr. Stupid,
    Dear Dr. Stupid,
    Why do we have to go to school?
    That's a very good question. It's becuse your parents are
    ALIENS!!! When your at school they shed there human skins and
    breathe drier lint! hahahaha!
  • »01.01.04 - 21:23
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Spidey
    Posts: 568 from 2003/2/24
    From: Netherlands
    Hi nels664868,

    Yes :-)

    I just saw this at the Dutch Amiga.NL.
    It isn't mentioned in the install description of Samba (or have I misread something?).
    Anyway, I configured the hosts in the Genesis Prefs and now I can "mount" the other shares :-)

    I still had the error with the A1200 (Invalid packet length).
    I changed the portnumber of the service swat and now all computers are functioning perfectly.
    I still don't know if this was causing that error though.

    Thanks,

    Spidey
  • »01.01.04 - 23:07
    Profile Visit Website
  • Caterpillar
    Caterpillar
    logain
    Posts: 21 from 2003/4/15
    Hello Spidey,

    Maybe this helps..

    http://groups.yahoo.com/group/amigasamba/message/1125

    :-)
  • »02.01.04 - 03:27
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Spidey
    Posts: 568 from 2003/2/24
    From: Netherlands
    Hi logain,

    Thank you very much for this link! :-D

    I've got everything running fine now, but I still get this error of invalid packet length after I've used smbfs to mount a share.

    The problem is that the smbd-server isn't up and running. When I type "smbd" in a CLI-window I get as result:

    "smbd: Version 2.0.7 : Must have effective user id of zero to run."

    Perhaps something to do with the user "pcguest" with UID=10 I made?

    Spidey
  • »02.01.04 - 23:30
    Profile Visit Website
  • Caterpillar
    Caterpillar
    logain
    Posts: 21 from 2003/4/15
    Have you included the 3 strings in inetd.conf as described in the docs?
    Did you try to start Genesis as User: root?

    If everything runs well on your Pegasos, compare your ENV-Variables (USER, LOGNAME, etc), smb.conf and the AMITCP:db/ entries. You can easily check those ENV-variables in MorphOS with command 'env'.
  • »03.01.04 - 03:34
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Spidey
    Posts: 568 from 2003/2/24
    From: Netherlands
    Hi logain,

    Have you included the 3 strings in inetd.conf as described in the docs?
    Yes I have

    Did you try to start Genesis as User: root?
    I guess I did (Can you start it with different users?) :-)

    If everything runs well on your Pegasos, compare your ENV-Variables (USER, LOGNAME, etc), smb.conf and the AMITCP:db/ entries. You can easily check those ENV-variables in MorphOS with command 'env'.
    I don't know of a command "env" my friend but I checked the LOGNAME and USER in ENV: and they have as variable "root" in them.

    Ok, I just did the following as experiment:

    - I mounted the share on my pc with smbfs WITHOUT the user-part:
    -> smbfs volume= pc workgroup=spidey service=//webcomp/share
    - Checked if nmbd and snmbd were running with command Status and they did.

    Next I mounted the share again, but now with the user-part:
    -> smbfs volume=pc workgroup=spidey user=pcguest service=//webcomp/share
    - Checked again, and guess what: the service smbd has stopped.

    Strange enough I can still start it again, while yesterday it produced errors?? (very confused Spidey now :-?)

    A question: If I mount a share with my Peg, the other computers can't access that share until I release it with the Peg. Is there an option with which I still can access it with other computers while mounted on the Peg?

    Spidey
  • »04.01.04 - 15:11
    Profile Visit Website