Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
It won't show up with a ping yet because it is not on the network.

Run "sudo raspi-config" to get the options menu then pick the network options and setup your wifi there.

I'm back!!! And glad. How sad have I become!

I tried the command above but unable to find WiFi option. See below. Also, and pls don't laugh at this, should I be using the IP address I would see in Mac / system Prefs / Network (which would be my routers IP I guess)? Or would the Pi have its own IP address?

When I ping pi I get a different IP address to the one on the macs network preferences.
 

Attachments

  • IMG_3138.JPG
    IMG_3138.JPG
    43.6 KB · Views: 149

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
That's very strange. I have all.of them Except network options.

Time to reinstall???
[doublepost=1527963131][/doublepost]Erm, found this on top.right hand corner :rolleyes: Shall I turn it on and enter my wifis password???

Picture not uploading. But it's an option to turn on/off wifi. Mine was set to on. I've gone in and enabled it.

Are we almost there?
 
Last edited:

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
If you go to the Mac and do ping raspberrypi do you see the Pi's IP?

Right, disconnected from TV and now on my Mac. Ethernet NOT connected to hopefully all over wifi.

Went in to terminal and entered ping raspberrypi. Got the following:

ping raspberrypi

PING raspberry (**.***.***.**): 56 data bytes

Request timeout for icmp_seq 0

Request timeout for icmp_seq 1

Request timeout for icmp_seq 2

Request timeout for icmp_seq 3

Request timeout for icmp_seq 4

Request timeout for icmp_seq 5

Request timeout for icmp_seq 6

Request timeout for icmp_seq 7

Request timeout for icmp_seq 8
^C

--- raspberrypi ping statistics ---

10 packets transmitted, 0 packets received, 100.0% packet loss
 

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
I'll give it a try. Although I did have SSH setup previously and that still didn't work.

I had a bit of a brain-wave (no, really, I did!!). Just how good it is I don't know!!!

I went in to my routers settings and checked what devices are on my wifi. The Pi is on there and I got an IP address. It's totally different though to the one I get when I ping raspberrypi. Would this help decipher the multiple issues I'm having?

Edit: No good. Just to make sure I'm doing this right:

* connect ethernet and power cable to Pi. Power on. Let it boot up.
* go in to Terminal. enter ping raspberrypi This should give me the Pi's IP address, which should be the same as when I go in to my routers setting and find the Pi, next to which there is an IP address.
* I should NOT be getting the following show:

ING raspberry (**.***.***.**): 56 data bytes

Request timeout for icmp_seq 0

Request timeout for icmp_seq 1

Request timeout for icmp_seq 2

Request timeout for icmp_seq 3

Request timeout for icmp_seq 4

Request timeout for icmp_seq 5

Request timeout for icmp_seq 6

Request timeout for icmp_seq 7

^C

--- raspberrypi ping statistics ---

9 packets transmitted, 0 packets received, 100.0% packet loss
[doublepost=1527965602][/doublepost]
I'll give it a try. Although I did have SSH setup previously and that still didn't work.

I had a bit of a brain-wave (no, really, I did!!). Just how good it is I don't know!!!

I went in to my routers settings and checked what devices are on my wifi. The Pi is on there and I got an IP address. It's totally different though to the one I get when I ping raspberrypi. Would this help decipher the multiple issues I'm having?

Edit: No good. Just to make sure I'm doing this right:

* connect ethernet and power cable to Pi. Power on. Let it boot up.
* go in to Terminal. enter ping raspberrypi This should give me the Pi's IP address, which should be the same as when I go in to my routers setting and find the Pi, next to which there is an IP address.
* I should NOT be getting the following show:

ING raspberry (**.***.***.**): 56 data bytes

Request timeout for icmp_seq 0

Request timeout for icmp_seq 1

Request timeout for icmp_seq 2

Request timeout for icmp_seq 3

Request timeout for icmp_seq 4

Request timeout for icmp_seq 5

Request timeout for icmp_seq 6

Request timeout for icmp_seq 7

^C

--- raspberrypi ping statistics ---

9 packets transmitted, 0 packets received, 100.0% packet loss

I also tried these again. At first, it asked me for a password, which I entered. But when I tried again I just got the following message. No request for PW this time.

sudo apt-get update

sudo: apt-get: command not found

$ sudo apt-get dist-upgrade

sudo: apt-get: command not found
 
Last edited:

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
Good morning Weaselboy. Another day another try. Unfortunately I'm out all day today (I've said it before and I'll say it again - how sad has this thing made me!!!).

I'm certain I need to reinstall Raspbian and Noobs from the SD card to get this to work as I may have c0cked it up somewhere down the line.

Could you please give me an absolute idiots guide to uninstall and then reinstall the software to th Pi from the SD card - ideally without having to delete from the SD card.

I can then try when I get home tonight.
 

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
https://www.raspberrypi.org/documentation/installation/installing-images/README.md

The easiest way to start over is using Etcher on your Mac to write the Raspbian image to the SD card. There is no way I know of to start over while booted to the SD card on the Pi.

Is this what you saw when you said you were prompted for the password?

View attachment 764214
Thanks WB. And yup. That's what I saw for password. What do I do here? Pw for Mac. Or pw for Pi? When I type I don't see any characters or the cursor doesn't love either.

and before I go for a total reinstall I'll try one more time tomorrow directly from the Pi and not Mac. If that fails I'll reinstall.

I'll.start with ping raspberrypi

Then get-apt update

Then get-apt upgrade

Then follow the link you gave above for homebridge.
 

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
Thanks guys. So, the fact that I don’t see the password when I type means I am actually on SSH?

I was hoping to have another go tonight at sorting out the Pi but absolutely shattered. Will try tomorrow.
 

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
Apologies guys, I’m back :D But this time with some good news :)

I managed to get the ‘sudo apt-get update’ and ‘sudo apt-get dist-upgrade’ commands to work.

I’m now stuck on this part:

I added this: curl -fsSL https://download.docker.com/linux/raspbian/gpg
This resulted in the following message on screen 'BEGIN PGP PUBLIC KEY BLOCK' followed by a run of letters which meant nothing to me. It ended with 'END PGP PUBLIC KEY BLOCK'

I then added: 'sudo apt-key add -' and got this message 'gpg: signal Interrupt caught ... exiting'

This to me back to the pi@raspberrypi: $

Do I need to add the whole line like this? curl -fsSL https://download.docker.com/linux/raspbian/gpg | sudo apt-key add -'

Also, from the GitHub link you gave me to install Docker, for the line below, do I start keying from the word echo and do I use this symbol " too? So, I key in this:

echo "deb [arch=armhf] https://download.com/linux/raspbian stretch stable"

I then follow move on to Steps 2 onwards?


I'm hoping I'm getting nearer to the goal! ;)
 
Last edited:

scouser75

macrumors 68030
Oct 7, 2008
2,753
558

Weaselboy

Moderator
Staff member
Jan 23, 2005
34,206
15,761
California
I don't remember going through all that myself, I think I just followed the instructions at that link I just posted.
 

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
I don't remember going through all that myself, I think I just followed the instructions at that link I just posted.

I was following your instructions below and from the link you attached. Which ones should I follow? The link on your post below? Or this https://github.com/nfarina/homebridge
===========================================================================
All this is over SSH in Terminal.

First run these two commands to update the Rasbpian OS.

Code:
sudo apt-get update

sudo apt-get dist-upgrade
https://github.com/oznu/docker-homebridge/wiki/Homebridge-on-Raspberry-Pi

Then skip down to step #1 on this page and follow it to install Homebridge.
 

bripab007

macrumors 6502a
Oct 12, 2009
529
26
It's giving you that error because you don't yet have nodeJS installed. Check out the basic preparations section of the Homebridge wiki here: https://github.com/nfarina/homebrid...ge-on-a-Raspberry-Pi#basic-setup-preparations

Node is pretty easy to get installed, though you probably don't want to run the most bleeding edge version. Go with the LTS branch, which I think is on ver. 8.11. Actually, it looks like that's exactly how the link I just gave instructs you to do, so just follow that wiki. You'll have it up and running in no time. Once you do nodeJS and then Avahi, go back and start your "npm install -g" commands and you'll be rockin' and rollin'.
 
  • Like
Reactions: Weaselboy

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
After the '/setup_8.' I'm assuming I replace the x with 11. Correct?

And what symbol is the vertical line after the x? And how do I get that on Linux via my Apple keyword?

And I type the line below all in ONE go? Or are they 3 separate commands?

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
 

Attachments

  • upload_2018-6-8_19-47-55.png
    upload_2018-6-8_19-47-55.png
    35.6 KB · Views: 151

scouser75

macrumors 68030
Oct 7, 2008
2,753
558
After the '/setup_8.' I'm assuming I replace the x with 11. Correct?

And what symbol is the vertical line after the x? And how do I get that on Linux via my Apple keyword?

And I type the line below all in ONE go? Or are they 3 separate commands?

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

Right, it didn’t work. I got this message: ‘/usr/bin/sudo/: cannot execute binary file’

I typed the command in one line above. Initially I kept the ‘x’ in. That didn’t work so I replace the ‘x’ with ‘11’ but that also didn’t work. I also managed to find the | symbol.

I’m on the ARM7 so wondering if that makes a difference. I also tried the ARM7 instructions but no luck.
[doublepost=1528539642][/doublepost]Update: I think I managed all NodeJS via this link http://thisdavej.com/beginners-guide-to-installing-node-js-on-a-raspberry-pi/#install-node and this command curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

But I’m getting this for last 5 minutes. Something gone wrong I think!
[doublepost=1528541435][/doublepost]Update 2: I THINK I’VE FINALLY ALMOST CRACKED IT!

I followed commands from here https://github.com/nfarina/homebridge

Homebridge installed and no error messages received.

But if I then type ‘Homebridge’ in Pi I get the message on the 2nd attached picture. The picture also shows the Homebridge installation command I used (I was getting the warn eacces error message).

How close do you guys think I am to getting to the finished line???
 

Attachments

  • BC42AB69-06FC-4F27-8EBA-52939433718A.jpeg
    BC42AB69-06FC-4F27-8EBA-52939433718A.jpeg
    141.1 KB · Views: 116
  • 9AD6E899-B382-433E-B2DB-40EF5788A939.jpeg
    9AD6E899-B382-433E-B2DB-40EF5788A939.jpeg
    155.7 KB · Views: 179
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.