Using OS : 2012-08-16-wheezy-raspbian
After a lot of reading and lot of ups and down finally got this thing to work
Follow these Steps
1. Install Samba
$sudo apt-get install samba
2. Install Winbind
$sudo apt-get install winbind
3. In /etc/samba/smb.conf, Edit the workgroup variable to match your home network workgroup (as defined in windows):
workgroup = HOMENETWORK
4. In /etc/nsswitch.conf, change the following line:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 wins
Note: The extra wins added in the end.
Note: files, dns and wins are the important entries here.
Note: The order of files, dns and wins is important.
Installing samba makes it work Windows to Linux
Installing winbind and changing the config files makes it work Linux to Windows.
All Credits To : Darkness on Raspberry Pi Forum for this suggestion.
Read More : Raspberry Pi • View topic – Debian DHCP configuration
There are various guides online that suggest us to add the “send host-name “mypiname“;” line to /etc/dhcp/dhclient.conf
but this somehow never worked for me only the above mentioned steps works perfectly.
Raspberry Pi • View topic – Debian DHCP configuration
Linux change my hostname / computer system name
Configuring Linux Static DHCP Clients by Sending Host Name
Send hostname to DHCP server on Ubuntu/XUbuntu | Lucid Tips