In this tutorial we will see how to enable file sharing between Windows 7 and Ubuntu 11.10/11.04. Under Ubuntu 11.04/11.10, file sharing will be possible with the help of Samba, so you need to install it as instructed below.

Detecting Your Computer Workgroup Name (Windows 7)

1. Open the command line window using the run dialog box (press Windows Logo + R and run cmd):

2. Run now this command:

net config workstation

3. In Workstation domain, you will find the used workgroup name, write it down or just memorize it:

Installing & Configuring Samba

1. Under Ubuntu 11.10/11.04, open the terminal and run this command to install samba:

sudo apt-get install system-config-samba

2. Using the dash, open samba:

3. Head to Preferences > Server Settings:

4. Enter now the Windows workgroup name and click OK:

Enabling File Sharing in Windows 7

1. Open the start menu, search and open "manage advanced sharing settings":

2. Display the options for "Home or Work" and make sure these options are selected:

  • Turn on network discovery
  • Turn on file and printing sharing
  • Turn on sharing so anyone with network access can read and write files in the Public folders
When you finish, click Save changes.

Restart now both systems (Windows 7 and Ubuntu 11.04/11.10). Then all shared contents will begin to appear on both systems:

If you receive errors while connecting to Windows 7 shared files and folders from Ubuntu, then open the terminal and run this command to add your user account to Samba:

sudo smbpasswd username -a

Replace username with your account username. You can now start adding folders you want to share with Windows 7 by opening Samba and clicking the Add button.

That's it!

Post a Comment