Tiny Core Base > Raspberry Pi
samba4 not working
DrRob:
Hi,
I'm trying to set up samba4 server, but it's not working. Here are my steps:
* Download and flash piCore-9.0.3 to an SD card
* Transfer SD card to Pi (an original model B) and boot
* Find out the IP address of the Pi
* ssh to the pi (user: tc, password: piCore)
* resize the second partition (see the README)
* filetool.sh -b (to save the generated ssh host key)
* sudo reboot (so the kernel can see the enlarged partition)
* ssh in again
* resize the filesystem (see the README)
* add "mount /mnt/sda1" to /opt/bootlocal.sh (the files I want to share are on a USB memory stick)
* mount /mnt/sda1
* tce-load -wi samba4
* install my smb.conf to /usr/local/etc/samba (it makes a directory from /mnt/sda1 available via a share)
* add /usr/local/etc/samba to /opt/.filetool.lst
* sudo adduser and sudo smbpasswd -a for a couple of users that are referenced in the smb.conf
* filetool.sh -b (to save the setup so far)
* sudo reboot (just in case...)
* how are you supposed to set up the samba service to run automatically? For now I'm running it manually, with debugging on...
* sudo smbd -i -d20
* ...results in lots of debug, ending with "waiting for connections". So far, so good.
* Attempt to connect to the share from a Macbook, using the IP address of the Pi
* A pause of a couple of seconds, then more debug output from samba, ending with "Server exit (failed to receive smb request)" and "Terminated" twice. :-(
I'll attach a gzip'd file containing the debug output.
What am I doing wrong?
Thanks,
Rob.
Misalf:
--- Code: ---sudo /usr/local/etc/init.d/samba start
--- End code ---
DrRob:
/usr/local/etc/init.d/samba doesn't exist...
Misalf:
Oh, you're right. I modified my copy to include that script.
What it basically does is
--- Code: ---mkdir -p /var/lib/samba
mkdir -p /usr/local/etc/samba/private
/usr/local/sbin/nmbd -D
/usr/local/sbin/smbd -D
--- End code ---
DrRob:
Thanks for that, but unfortunately smbd still crashes when I try to open the share. :-(
(nmbd is fine.)
Navigation
[0] Message Index
[#] Next page
Go to full version