Sharing Files with Windows

Configure the Server

To easily share and transfer files and folders on the server with a Windows PC I used the Samba tool included in the ClarkConnect install. First you have to configure Samba:

This can be done from the ClarkConnect web interface, go to:  Software - File Services  - Windows Files Sharing

Under 'Configure Windows Network':

Click 'Advanced configuration options' to reveal more settings, then:

In the 'Server Status' box:

Note - As I'm using a separate drive for all my shares, I disabled all the listed 'Common Shares' that are set up as standard by ClarkConnect.

 

The next task is to tell Samba which directory(s) you want to share with the PC. For this example I'm going to share the entire disk that I have mounted at "/mnt/HardDrive" with all users on my window PC.

 

The simplest way to do this is to manually edit the Samba configuration file, use WinSCP to log into your box and navigate to /etc/samba/, then double click on the file 'smb.conf' and add the following lines to the bottom of the file:

[Shares]
comment = Black Box Share Directory
path = /mnt/HardDrive
browseable = yes
guest only = yes
writable = yes
public = yes


(you may want to change the name of the shared drive (contained within the [ ]), 'comment' and drive 'path' details to suit your system)

 

See here for an example

 

You could set up multiple shares for specific directories, by repeating the above lines with individual names and paths. This could be useful if you want to assign personal directories for each user (Google for more advance tutorials if you want to set up more complicated file shares).

 

The final step is to restart Samba for all theses changes to take effect, this can be done from the ClarkConnect web interface by pressing 'stop' and then 'start' in the 'Server Status' box (found in the Software - File Services  - Windows Files Sharing).
 

Finding your server in Windows


In Windows XP you should now be able to see 'Shares' in your Windows 'My Network Places', where you will be able to navigate, copy and write files to the remote drive.

 

In Windows Vista you will see your server name appear in the 'Network' window, again you should be able to navigate, copy and write files to the remote drive.

 

If you want, you can 'map' the network drive to assign a drive letter, I've set mine to the Z: Drive...