Hi All,
im using putty on win 7 to ssh to my pi
if i us ip address it works but if i use host name raspberrypi i got host not found
what can i do to fix this? thanks Beau
Re: host name ?
It doesn't work because 'raspberrypi' is not a valid hostname.
Richard S.
Richard S.
Re: host name ?
how do i find the do find hostname ?
thanks Beau
thanks Beau
-
- Posts: 2
- Joined: Mon Jul 23, 2012 7:36 pm
Re: host name ?
To get your Raspberry Pi to show it's hostname on a windows network you need to first enable NetBIOS over TCP/IP on your nic. To do this right click on the network connection and selection properties. Select Internet Protocol Version 4 (TCP/IPv4) and click the properties button. In the next dialog click on the advanced button which will bring up the Advanced TCP/IP dialog. Select the WINS tab and enable NetBIOS over TCP/IP.
On the Raspberry Pi you need to install samba and winbind
$ sudo apt-get install samba
$ sudo apt-get install winbind
Edit /etc/nsswitch.conf to enable wins
change 'hosts: files dns' TO 'hosts: files wins dns'
To change the hostname
edit /etc/hostname
FYI 'raspberrypi' works just fine as a host name
$ sudo reboot
On the Raspberry Pi you need to install samba and winbind
$ sudo apt-get install samba
$ sudo apt-get install winbind
Edit /etc/nsswitch.conf to enable wins
change 'hosts: files dns' TO 'hosts: files wins dns'
To change the hostname
edit /etc/hostname
FYI 'raspberrypi' works just fine as a host name
$ sudo reboot
Re: host name ?
Doesn't Windows have a HOST file? Might be simpler just to add an entry to that, e.g.
192.168.1.13 raspberrypi
192.168.1.13 raspberrypi
Re: host name ?
You can find a Windows hosts file by typing in the run line
%systemroot%\system32\drivers\etc\
Open and edit in notepad but best to put a static IP on the Pi
%systemroot%\system32\drivers\etc\
Open and edit in notepad but best to put a static IP on the Pi
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)
Re: host name ?
samba an winbind worked great
thanks beau
thanks beau
Re: host name ?
@quardinator thank you very much.