""\\Localhost is not accesible. You might not have permission to use this network resource and blah blah.. at the end say you are not connected because a duplicate name exists in the network. Go to System in Control Panel to change the computer name and try again"
'localhost' is a hostname that every TCP/IP machine will have access to. It should resolve 'localhost' to 127.0.0.1 - which the windows machine will think is itself. You'll need to configure a proper hostname on your linux machine, configure a proper machine name in smb.conf, and restart samba.
-id