Introduction

 

The SmpDemo is written for the Linux OS. To run the demo you must do following steps:

 

  1. Change to the ./SmbDemoLinux/ directory.
     
  2. Compile the demo with make.
     
  3. If samba is runnig, shutdown this service. service smb stop
     
  4. 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.
     
  5. Add next you must start the Explorer on your Windows-PC.
     
  6. Be sure that the Windows-PC and the SmbDemo uses the same workgroup.
    ( see at Start --> Settings --> System Settings --> System --> Computername )
     
  7. Input the //NameOfClient in the addressbar of the Explorer.
     
  8. 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.