NMBD
From WL-HDD Wiki
| WL-HDD Contents |
|---|
| What is the WL-HDD |
| Features |
| Pro's/con's |
| Reviews |
| Hacking |
| Inserting the HDD |
| Hacking Guides |
| Basic setup guides |
| Packages guides |
| Requests |
| Troubleshooting |
| This Wiki |
| Credits |
| Editing help |
| Contact Me |
Prerequisites
To complete this guide, the following is assumed:
| You are running Oleg's firmware (1.9.2.7-6b or later) |
| You have harddisk partitions up and running with an extended filesystem mounted to /opt |
| You have installed the Ipkg package system. |
| You have configured your partitions to automount. |
You have setup and successfully run Samba on your LAN (using the guest account) and you have some shares already setup in smb.conf. |
Changing your smb.conf file
Before trying to run nmbd, it is necessary to modify your smb.conf file so that nmbd gets the right settings.
nano /opt/etc/samba/smb.conf
Make sure the workgroup line is set to the name of your local workgroup. In this case, it is MSHOME
Also, you need to include the server string line. In this case, the name 'asus' has been chosen. This is what is displayed in 'My Network Places' under the 'View Workgroup Computers' section (the Wl-HDD is displayed as a computer icon).
Here is an example smb.conf, designed to run with user security. Samba with Users shows you how to do this.
[global] workgroup = MSHOME guest account = ftp security = user browseable = yes guest ok = yes guest only = no log level = 1 max log size = 100 encrypt passwords = yes smb passwd file=/opt/etc/samba/smbpasswd dns proxy = no server string = asus [share1] path=/path/to/share writeable= yes browseable= yes
Now save your changes and exit:
Ctrl + O Ctrl + X
Now we need to setup nmbd so that it starts after boot:
To do this, we just add a line to the startup script in init.d:
echo "/usr/sbin/nmbd -D -l /opt/var/log/nmbd.log -s /opt/etc/samba/smb.conf">>/opt/etc/init.d/S97Samba
Now kill all samba processes:
killall smbd
And start samba again:
/opt/etc/init.d/S97Samba
See it in action
Browse to 'My Network Places' in windows. Click on 'My Workgroup Computers'.
Your device should be displayed under the name that you chose. You may need to refresh.
Categories: Samba | Basic setup | Tips and tricks | DNS
