Introduction
The SmpDemo is written for the Linux OS. To run the demo you must do
following steps:
- Change to the
./SmbDemoLinux/
directory.
- Compile the demo with
make.
- If samba is runnig, shutdown this service.
service smb
stop
- Start the SmbDemo with the correct prrameters:
i.e.:
./SmbDemo
-i 192.168.0.123
-s 255.255.255.0
-h NameOfClient
-w WORKGROUP
If you don't know your IP address use
ifconfig
to show your ip addresses. (don't use 127.0.0.1).
If currently a other smb server is running (such as samba or tinysmb) the demo
will exit with
"NMB-Erro 1". Check that the ports 137, 138 and 139 aren't used by other
programms.
Use netstat
-l --numeric-ports
to view the uesed ports.
- Add next you must start the
Explorer on your Windows-PC.
- Be sure that the Windows-PC and the SmbDemo
uses the same workgroup.
( see at Start --> Settings --> System Settings --> System --> Computername )
- Input the
//NameOfClient
in the addressbar of the Explorer.
- Now you must see the
C_Drive
and the
C_Mirror
share in the Explorer.
If you want that the user must input a password,
to get access to the shares, you
must change the
SHARE macro in
SmbDemo.cpp
to zero.
Copyright © 2007 Anton Zechner