If you're already familiar with NetBSD, this information may not be particulary new or useful to you. It's not particularly Atari-specific. I do however use this for my own reference when I install NetBSD/atari.
While the current Samba 3.0 and 3.3 packages in pkgsrc currently work great on NetBSD/atari, Samba 3.5 does not. This has been noted in a Samba bug.
- Make sure to run through the pkgsrc configuration described in the packages section.
- cd /usr/pkgsrc/net/samba33
- sudo make install
- su to root when install is finished.
- cd /etc/rc.d
- cp /usr/pkg/share/examples/rc.d/winbindd .
- cp /usr/pkg/share/examples/rc.d/smbd .
- cp /usr/pkg/share/examples/rc.d/samba .
- cp /usr/pkg/share/examples/rc.d/nmbd .
- Test the configuration, pressing enter when prompted: /usr/pkg/bin/testparm /usr/pkg/etc/samba/smb.conf
- To allow a particular user to log in, set their smb password: smbpasswd -a [username]
- vi /etc/rc.conf
- Add:
- samba=YES
- smbd=YES
- nmbd=YES
- winbindd=YES
- Save and exit vi.
- sh /etc/rc.d/samba start
- sh /etc/rc.d/samba status
- Should see the PIDs for nmbd, smbd, and winbindd are up and running.
- From a Windows box try browsing to \\[atari name or ip]\[user name] and it should display an authentication dialog.
- Log in with [machine name]\[user name] and your password.
- Browse to the share named after your username.
- Observe it's possible to copy a file to the share and back.
- sh /etc/rc.d/samba stop
- To reboot and have Samba run automatically: shutdown -r now