Skip to content

cfstras/nbnsd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nbnsd Build Status

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.

Downloads

You can download prebuild binaries on the releases page.

Quick install

# 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 nbnsd

Build & install

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.

Tips

If you want to enable NetBIOS-resolving on your Linux box, follow these steps:

  • install smbclient and samba
  • in /etc/nsswitch.conf, add wins to the hosts line.
  • in /etc/samba/smbd.conf, uncomment the line name resolve order = wins lmhosts bcast
  • enable and start winbindd, smbd, and nmbd.

License

MIT

About

Simple NetBIOS responder for Linux.

Topics

Resources

Stars

Watchers

Forks

Languages

  • C 97.0%
  • Makefile 3.0%