24 of 35
Windows file sharing access to the Asus using Samba
With ftpd-topfield installed, you now have ftp access to files on the Toppy, but no mechanism for
transferring files to and from the Asus – this is necessary if you want to install rt2mei.
Samba can be used for this – it basically shares directories using the same protocol as Windows File
and Printer Sharing (the SMB protocol, using NetBIOS over TCP/IP, also known as NBT).
This allows you to browse your Network Places in Windows Explorer to navigate through the Asus
filing system, and you can map the Asus shared drives as Windows drives.
Samba comes preinstalled as part of Oleg's firmware, but the web interface is not comprehensive
enough to configure it properly.
There is a macsat guide at
http://www.macsat.com/macsat/content/view/27/29/ covering Samba
configuration, which formed the basis of my configuration. However the configuration in this guide is
a little different. The log files are stored in the /tmp directory structure (which is based in RAM) and
the startup script contains additional lines to stop any previously-running instances (which means
the script can be repeatedly called to restart Samba, for instance if you change the configuration
file.
One important point here is that you must set a Host Name in the web configuration interface – go
to the LAN section under IP Config if you haven't done this already, enter a Host Name, and don't
forget to Apply, Finish and Save & Restart.
Set up the Samba configuration file
Create a directory for the Samba configuration file, and create the file
mkdir /opt/etc/samba
touch /opt/etc/samba/smb.conf
Edit the configuration file to be as follows:
/opt/etc/samba/smb.conf
[global]
workgroup = WORKGROUP
guest account = nobody
security = share
browseable = yes
guest ok = yes
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = no
[opt]
path = /opt
writeable = yes
browseable = yes
force user = admin
Replace WORKGROUP with the name of the workgroup you are using on the windows network.
You can add as many additional shares as you like, following the structure of the [opt] section.
Note that the section name (opt) is the folder name as it will be seen by your Windows PC,
and this is mapped to the Asus folder defined by the path variable.
For instance, if you wanted to share the Asus /tmp folder, which is where logs are stored, and
where the rt2mei output is stored (see later) you would add to the bottom of smb.conf:
[tmp]
path = /tmp
writeable = yes
browseable = yes
force user = admin
Comments to this Manuals