Originally Posted by
lovejoy
Hi Richard,
The first thing is to ensure that your Mac can see the Pi over the network, so with your terminal open issue a ping command which will send a call to the Pi and if they can see each other, the Pi will respond, so type:
ping <IP address of your pi>
e.g.
ping 192.168.0.10
The Mac will now send ping commands every second or so until you tell it to stop (ctrl + c). A successful response will look something like:
Richard$ ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10): 56 data bytes
64 bytes from 192.168.0.10: icmp_seq=0 ttl=64 time=0.062 ms
64 bytes from 192.168.0.10: icmp_seq=1 ttl=64 time=0.121 ms
Those time measurements at the end tell you how long it took from sending the request to returning the response, and all is good if you can see this.
If you see something like:
Richard$ ping 192.168.0.4
PING 192.168.0.4 (192.168.0.4): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Then your Mac cannot see the Pi, so you can't go any further until you can get ping responses. If this is the case then the problem will lie somewhere in your network configuration:
1. Check that the IP address of the Pi is what you think it is - If the network configuration is set to DHCP then it may change every time the Pi is rebooted. It is for this reason, I always use static IP addresses so you know where everything is. Volumio has DHCP switched on by default, but you can easily set up a static IP configuration in the Network page of the web interface.
2. Ensure the Mac and the Pi are sharing the same subnet, i.e. if your Mac is on 192.168.0.something, then your Pi will also want to be on 192.168.0.something. If any of the first three numbers (octets) differ, then they occupy different subnets and will have trouble seeing each other, unless you start getting into more complex routing methods (which you don't want to do).
3. Following on from 2. check the netmask value (this usually appears underneath the IP address for each device). Firstly, this value should be the same on every device. If it is different then you may start to get problems. Most commonly this value should be 255.255.255.0. A netmask is a pretty good descriptive term. You are applying a mask over the network to each device - The holes in the mask - i.e. the zero - means that the device can see everything else no matter what the value is in this octet, whereas the 255 values mean that if the octet number for that field differs from the one being used by that device for any other device, it is masked and one won't see the other.
Following these rules should get to a point where you can ping, so once you've got there, you should be able to log into your Pi with the command
ssh -l pi <IP address of your Pi>
upon which you will be asked for your Pi password.
Hope that helps,
Rich