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://github.com/raw/cfstras/nbnsd/master/nbnsd.service -O /etc/systemd/system/nbnsd.service
systemctl daemon-reload
systemctl enable --now nbnsd
Setup with compile:
make
sudo make install # installs systemd service
systemctl enable nbnsd.service
systemctl start nbnsd.service
You 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
smbclient
andsamba
- in
/etc/nsswitch.conf
, addwins
to thehosts
line. - in
/etc/samba/smbd.conf
, uncomment the linename resolve order = wins lmhosts bcast
- enable and start
winbindd
,smbd
, andnmbd
.