This guide will walk you through configuring Samba/CIFS shares on your Ubuntu (12.04) server. If all goes well, your Windows computers (as well as Macs) will be able to connect without issue. This guide has steps on how steps on how to set it up in the Desktop and in shell (ubuntu server). You do not need to do both.