Hardware Reference
In-Depth Information
Samba requires two daemons, smbd for the sharing services and nmbd for the NetBIOS
name requests, which are controlled by the smb service. (You can use a third daemon,
winbindd , to help the Linux machine understand the Windows user and group infor-
mation on Windows NT 2000 and Windows Server 2003 systems.)
Let's Samba!
Samba is also a Brazilian dance style popularized by Carmen Miranda, or
as you may know her, “the person who inspired the Bugs Bunny cartoons
in which he wears a hat made of fruit.” Despite thorough experimentation
on the authors' part, there is no evidence that dancing the samba with your
Raspberry Pi will do anything but make you look silly.
The name was borrowed for the software we're discussing here by grepping
a UNIX system's dictionary for words that had the letters S, M, and B. You
can try this yourself by running grep -i ^s.*m.*b /usr/share/dict/words ,
although as of a 1998 message about the history of Samba , creator Andrew
Trigdell notes, “Strangely enough, when I repeat that now I notice that Sam-
ba isn't in /usr/dict/words on my system anymore!” We're just glad he
didn't go with “Sulphmethemoglobin.”
We'll assume you're using a USB external hard drive with your Raspberry Pi for this
project (and it's likely you'll want to if you're bothering with Samba). If you're starting
from scratch, consider formatting it as either FAT32 or NTFS (if you're borrowing it
from a Windows machine, it probably already is). It's not really necessary, but it will
be handy later if you decide to no longer use it with the Raspberry Pi and want to use
that drive with the Windows machine.
Locate said drive (or USB flash drive or just the SD card—whatever you're intending
to share):
$ fdisk -l
The output will look something like this:
Disk /dev/mmcblk0: 7822 MB, 7822376960 bytes
4 heads, 16 sectors/track, 238720 cylinders, total 15278080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d4f0f
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 4096 147455 71680 c W95 FAT32 (LBA)
/dev/mmcblk0p2 151552 15278079 7563264 83 Linux
 
Search WWH ::




Custom Search