SAMBA Native for MorphOS
  • Yokemate of Keyboards
    Yokemate of Keyboards
    magnetic
    Posts: 2129 from 2003/3/1
    From: Los Angeles
    Hi guys

    Recently there has been rumours of a developer porting Samba over to MOS, anyone have any information on this?

    magnetic
    Pegasos 2 Rev 2B3 w/ Freescale 7447 "G4" @ 1ghz / 1gb Nanya Ram
    Quad Boot: MorphOS 2.7 | Amiga OS4.1 U4 | Ubuntu PPC GNU/Linux | OS X 10.4
  • »25.06.07 - 06:44
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    dIGIMAN
    Posts: 273 from 2005/11/7
    Would be great if its true.

    I never got my hands on a working MOS native version
  • »25.06.07 - 08:11
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 108 from 2005/4/3
    From: Netherlands
    Hi,

    Me too, i use the 68K Samba files. I like to see Samba ported to MorphOS.

    grts, Amigaharry
    http://www.angelfire.com/amiga/ex
  • »26.06.07 - 06:19
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    dIGIMAN
    Posts: 273 from 2005/11/7
    Quote:


    takemehomegrandma wrote:
    I'm no samba user so I wouldn't know, but what is this?

    http://www.morphos-news.de/software.php?lg=en&md=comm&sd=tcp


    Well, i know the about that port.
    Somehow, when decrunching it, i am not even able to run the main executables smbd/nmbd.
    Only when killing the first byte with an hexeditor, otherwise its not executable.

    Well, atleast for me...
  • »26.06.07 - 09:54
    Profile Visit Website
  • Cocoon
    Cocoon
    micken
    Posts: 42 from 2004/6/7
    The rumour might come from bbrv. They blogd about me and samba. I have started with a new port , hopefully usefull this time. I am looking into porting olsens clib2. clib2 gives us all features we need to get samba working. Actualy clib2 was first created with samba in mind. However clib2 is in it's current stage dependent on os4 or m68k amigaos. It uses the interface library calls on os 4 and inline assmbler on m68k to emulate this feature.

    This may lead to porting from scratch. Last time I tried I made it with ixemul and I experinced that it did not woked as expected. The only thing that iexemul lacks to be able to build samba is fcntl recordlocking. If someone is skilled enough on unix recordlocking code , it might be possible to update iexemul. However as I said , ixemul probably isn't the right way to go.

    So , this leads to implement some unix functions with libnix. Olsen made that with the sas/c runtime, but that was very dependent on the UFB structure in sas/c.

    I am looking after other people that are interested to code on a mos samba port,so if you want to join me please give me a message.

    Ohh I forgot that my old crapy "port" will soon be on aminet. Someone uploaded it a few days ago but I asked him to remove it. This time a very big disclaimer will be added to the aminet readme file, together with a call for help with samba :)

    And one more thing . I haven't got any morphos compatible hw right now so I'm stucked with crosscompilers. However this might soon change :)

    [ Edited by micken on 2007/6/26 13:34 ]
    MorphOS hangaround :)
  • »26.06.07 - 13:24
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 108 from 2005/4/3
    From: Netherlands
    Hi all,

    The archive "samba-3.0.4-morphos.tar", i can't get it running.
    So i use 68K samba. A MorphOS port of SMBFS would be great too.

    Grts, Amigaharry
    http://www.angelfire.com/amiga/ex
  • »26.06.07 - 16:18
    Profile Visit Website
  • Cocoon
    Cocoon
    micken
    Posts: 42 from 2004/6/7
    If you follow the readme you should be able to get it running.

    If it doesn't work with inetd , try it from a shell.

    But please keep in mind that smbd will loop with 99%cpu when a client disconnect:( You can use the "taskmanager?"(I don't remember the name but it comes with morphos) and quit the process.
    MorphOS hangaround :)
  • »27.06.07 - 08:03
    Profile
  • Just looking around
    saragaglia
    Posts: 12 from 2004/9/3
    > A MorphOS port of SMBFS would be great too.

    Some time ago, i compiled a MOS version of SMBFS. Performances and behaviour was not very different from the 68k version.
  • »27.06.07 - 09:39
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Saragaglia,

    it's not very suprising the natively compiled version is not faster as this kind of program just spends 99% of its time waiting for slow network i/o (and 1% building/decoding the frames). :)
  • »27.06.07 - 13:22
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    dIGIMAN
    Posts: 273 from 2005/11/7
    Quote:


    micken wrote:
    If you follow the readme you should be able to get it running.

    If it doesn't work with inetd , try it from a shell.



    Thats what i did, but like i mentioned,
    smbd/nmbd isnt executable on my machine,
    when decrunching the archive.

    However, im quite happy that you are trying to do a port again :)
  • »27.06.07 - 15:18
    Profile Visit Website
  • Just looking around
    saragaglia
    Posts: 12 from 2004/9/3
    Quote:


    Fab wrote:
    Saragaglia,

    it's not very suprising the natively compiled version is not faster as this kind of program just spends 99% of its time waiting for slow network i/o (and 1% building/decoding the frames). :)

    Yes I agree. I just wanted to confirm this...
    In fact, in my system, playing music with ANR from my SMBFS device was not very efficient (sound often cut, and chronic short freeze).
    I have first done some cache tests (mosnet and SMBFS), and then I tried to find some issue modifying SMBFS a little bit. I think SMBFS has some limitations (multiple-access issues), but I cannot really conclude it is responsible for the freeze issue.
  • »27.06.07 - 16:33
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Wishmaster
    Posts: 342 from 2003/6/29
    Extract the archive with tar -xzf name.tar
    Then you can start the programs.
    Pegasos PPC
  • »27.06.07 - 16:44
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    dIGIMAN
    Posts: 273 from 2005/11/7
    Quote:


    Wishmaster wrote:
    Extract the archive with tar -xzf name.tar
    Then you can start the programs.


    No, i cant.

    45.Ram Disk:TEST/TEST-3> tar -xzf
    dh3:stuff/Downloads/samba-3.0.4-morphos.tgz
    45.Ram Disk:TEST/TEST-3> samba/
    45.Ram Disk:TEST/TEST-3/samba> sbin/
    45.Ram Disk:TEST/TEST-3/samba/sbin> nmbd
    nmbd: Unknown command
    45.Ram Disk:TEST/TEST-3/samba/sbin> dir
    nmbd smbd
    swat
    45.Ram Disk:TEST/TEST-3/samba/sbin> smbd
    smbd: Unknown command
    45.Ram Disk:TEST/TEST-3/samba/sbin>
  • »27.06.07 - 18:19
    Profile Visit Website
  • Cocoon
    Cocoon
    micken
    Posts: 42 from 2004/6/7
    Quote:


    45.Ram Disk:TEST/TEST-3> tar -xzf
    dh3:stuff/Downloads/samba-3.0.4-morphos.tgz
    45.Ram Disk:TEST/TEST-3> samba/
    45.Ram Disk:TEST/TEST-3/samba> sbin/
    45.Ram Disk:TEST/TEST-3/samba/sbin> nmbd
    nmbd: Unknown command
    45.Ram Disk:TEST/TEST-3/samba/sbin> dir
    nmbd smbd
    swat
    45.Ram Disk:TEST/TEST-3/samba/sbin> smbd
    smbd: Unknown command
    45.Ram Disk:TEST/TEST-3/samba/sbin>


    Sorry but I can't test this anymore.

    Try to set the executable flag with protect or from ambient.
    MorphOS hangaround :)
  • »27.06.07 - 18:34
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    dIGIMAN
    Posts: 273 from 2005/11/7
    Quote:


    micken wrote:
    Quote:


    45.Ram Disk:TEST/TEST-3> tar -xzf
    dh3:stuff/Downloads/samba-3.0.4-morphos.tgz
    45.Ram Disk:TEST/TEST-3> samba/
    45.Ram Disk:TEST/TEST-3/samba> sbin/
    45.Ram Disk:TEST/TEST-3/samba/sbin> nmbd
    nmbd: Unknown command
    45.Ram Disk:TEST/TEST-3/samba/sbin> dir
    nmbd smbd
    swat
    45.Ram Disk:TEST/TEST-3/samba/sbin> smbd
    smbd: Unknown command
    45.Ram Disk:TEST/TEST-3/samba/sbin>


    Sorry but I can't test this anymore.

    Try to set the executable flag with protect or from ambient.





    Nah, the protection flags are set all right.
    Like i said, killing the first byte of the executable, makes it run(and crash)

    Its strange but dont worry, we are rather looking forward(to the new port) and not backward
  • »27.06.07 - 20:00
    Profile Visit Website
  • Butterfly
    Butterfly
    Yvan
    Posts: 79 from 2003/3/28
    From: Zurich Switzer...
    Quote:


    dIGIMAN wrote:
    Quote:


    takemehomegrandma wrote:
    I'm no samba user so I wouldn't know, but what is this?

    http://www.morphos-news.de/software.php?lg=en&md=comm&sd=tcp


    Well, i know the about that port.
    Somehow, when decrunching it, i am not even able to run the main executables smbd/nmbd.
    Only when killing the first byte with an hexeditor, otherwise its not executable.

    Well, atleast for me...




    Strange, I installed this port a few years ago and it works great for me. I use it with Miami. Okay installation was not easy at all but the daemons are up and running.
  • »28.06.07 - 07:49
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    dIGIMAN
    Posts: 273 from 2005/11/7
    Quote:



    Strange, I installed this port a few years ago and it works great for me. I use it with Miami. Okay installation was not easy at all but the daemons are up and running.


    Ok, i found my problem and want to let u know.

    smbd and nmbd reported unknown command.
    Thats because they seem to execute command, which they didnt found, thats why that message.

    The files never had a problem.

    During startup i assing amitcp: somewhere else, during my swap from mosnet to amitcp again, so amitcp:samba was never found and caused this message....arg

    [ Edited by dIGIMAN on 2007/6/28 22:18 ]
  • »28.06.07 - 08:09
    Profile Visit Website
  • Cocoon
    Cocoon
    micken
    Posts: 42 from 2004/6/7
    Some lame news :

    I have just compiled samba 1.9 with ixemul :)
    No problems here I suspect that this was the last relase that supported system without fcntl recordlocking..

    EDiT: link changed to the tgz package.

    mos samba 1.9

    Extract to AMITCP:
    No config included.
    Use at your own risk.

    I have no idea if it works:)

    Have fun !

    [ Edited by micken on 2007/6/29 8:58 ]
    MorphOS hangaround :)
  • »28.06.07 - 20:32
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    dIGIMAN
    Posts: 273 from 2005/11/7
    Quote:


    micken wrote:
    Some lame news :

    I have just compiled samba 1.9 with ixemul :)
    No problems here I suspect that this was the last relase that supported system without fcntl recordlocking..



    mos samba 1.9

    Extract to AMITCP:
    No config included.
    Use at your own risk.

    I have no idea if it works:)

    Have fun !




    9.Work:stuff/Downloads> lha t samba-1.9.lha
    LhA Freeware Version 2.7.6
    Copyright ? 1991-94 by Stefan Boberg.
    Copyright ? 1998,1999 by Jim Cooper and David Tritscher.
    Copyright ? 2000-2004 by Ralph Schmidt and Harry Sintonen.

    Testing integrity of archive 'samba-1.9.lha':
    Testing: ( 0/ 0) samba/
    Testing: ( 0/ 0) samba/bin/
    *** Error on file 'addtosmbpass' : Unknown compression (need newer LhA
    version)
    WARNING: Skipping corrupt/extraneous data
    3 files tested, 1 file failed.

    Operation not entirely successful.
  • »29.06.07 - 08:13
    Profile Visit Website
  • Cocoon
    Cocoon
    micken
    Posts: 42 from 2004/6/7
    Quote:


    9.Work:stuff/Downloads> lha t samba-1.9.lha
    LhA Freeware Version 2.7.6
    Copyright ? 1991-94 by Stefan Boberg.
    Copyright ? 1998,1999 by Jim Cooper and David Tritscher.
    Copyright ? 2000-2004 by Ralph Schmidt and Harry Sintonen.

    Testing integrity of archive 'samba-1.9.lha':
    Testing: ( 0/ 0) samba/
    Testing: ( 0/ 0) samba/bin/
    *** Error on file 'addtosmbpass' : Unknown compression (need newer LhA
    version)
    WARNING: Skipping corrupt/extraneous data
    3 files tested, 1 file failed.

    Operation not entirely successful.


    Ok have , I have unix lha here I have made a tgz archive here:

    samba 1.9 morphos

    [ Edited by micken on 2007/6/30 19:05 ]
    MorphOS hangaround :)
  • »29.06.07 - 08:56
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    dIGIMAN
    Posts: 273 from 2005/11/7
    Ok have , I have unix lha here I have made a tgz archive here:

    samba 1.9 morphos



    Thanks alot!!!!
    On the first test, this version works much better than any Samba i had b4.
    The Shares do what they should do.
    B4 i had a random behaivor on shares, sometimes working, sometimes not...

    The only problem, but i had this with all versions,
    deleting files on a samba share mostly doesnt work.


    [ Edited by dIGIMAN on 2007/6/29 20:51 ]
  • »29.06.07 - 20:50
    Profile Visit Website
    • Acolyte of the Butterfly
      Acolyte of the Butterfly
      walkero
      Posts: 102 from 2006/3/1
      Hello to all. Is there a guide how to install Samba with MOSNET? I was looking for that, but I can't find something. Can you help?
    • »30.06.07 - 01:16
      Profile Visit Website
    • Cocoon
      Cocoon
      micken
      Posts: 42 from 2004/6/7
      Quote:


      walkero wrote:
      Hello to all. Is there a guide how to install Samba with MOSNET? I was looking for that, but I can't find something. Can you help?


      You can start samba direct from cli. Just make a assign someware named AMITCP: and place samba inside , asuming you are using my ports.
      MorphOS hangaround :)
    • »30.06.07 - 17:24
      Profile
    • Cocoon
      Cocoon
      micken
      Posts: 42 from 2004/6/7
      EDIT !!!

      The download location has changed to:
      http://web.telia.com/~u18234045/samba-1.9-morphos.tgz

      The source for the original 1.9 port is availble from aminet:
      http://aminet.net/comm/net/samba-1.9.16p9.lha

      Thanks to Andrew Tridgell who made the amiga port.

      If this works well , someone might be interested in making a aminet package. Just be sure to put a reference to the source code and write a readme file.

      The 3.0.4 "port" (hack) is now on aminet again together with the nondebug update.

      [ Edited by micken on 2007/6/30 19:04 ]
      MorphOS hangaround :)
    • »30.06.07 - 17:37
      Profile