Simple NetBIOS responder for Linux. Makes your device reachable by name from any Windows Host. Based on http://www.mostang.com/~davidm/nbnsd/
Contains simple installer for Raspbian.
You can download prebuild binaries on the releases page.
# on arm
wget https://github.com/cfstras/nbnsd/releases/download/v1.1/nbnsd.arm -O /usr/bin/nbnsd
chmod a+x /usr/bin/nbnsd
wget https://raw.githubusercontent.com/cfstras/nbnsd/master/nbnsd.service -O /etc/systemd/system/nbnsd.service
systemctl daemon-reload
systemctl enable --now nbnsdSetup with compile:
make
sudo make install # installs systemd service
systemctl enable nbnsd.service
systemctl start nbnsd.serviceYou might want to modify the service file -- the packaged one adds a fallback
hostname using the CPU serial number as found in /proc/cpuinfo on many SoC
boards such as Raspberry Pis.
You can remove the ExecStartPre= line, and the -m -n "${MACHINE_HOST}" arguments.
If you want to enable NetBIOS-resolving on your Linux box, follow these steps:
- install
smbclientandsamba - in
/etc/nsswitch.conf, addwinsto thehostsline. - in
/etc/samba/smbd.conf, uncomment the linename resolve order = wins lmhosts bcast - enable and start
winbindd,smbd, andnmbd.