Quickshare Folder using SMB and Discover SMB Shares on the Command Line

Gnome 'Share this folder'

Right click the folder you want to share in Gnome → sharing options → Share this folder (maybe this requires the installation of package samba, after installation log out and on again).

Allow SMB Connections In Your Firewall

After configuring firestarter to allow SMB, sudo iptables-save contains:

-A INBOUND -p tcp -m tcp --dport 137:139 -j ACCEPT 
-A INBOUND -p udp -m udp --dport 137:139 -j ACCEPT 
-A INBOUND -p tcp -m tcp --dport 445 -j ACCEPT 
-A INBOUND -p udp -m udp --dport 445 -j ACCEPT

Discovering SMB Shares On Your Network

To find SMB shares, scan the local network (here for machines with an open port 139:

nmap -p 139 "192.168.1.*"

Find the computer name (should be the first one listed):

nmblookup -A <ip address>

Displays a list of shares on the machine. If you didn't set a password for the share, just hit enter when prompted for a password:

smbclient -L //<computer name>/ -I <ip address>

The smbclient itself is similar to the standard FTP client. Type ? at the prompt for help.

smbclient //<computer name>/<share name> -I <ip address>

Add -U <username> for passworded shares.