Open JyothishGeorge opened 4 years ago
I have the same problem.
checking for project update From https://github.com/gcgarner/IOTstack
same problem here
you can run this curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s
instead of installing it from menu.sh
https://www.home-assistant.io/hassio/installation/
The URL was updated, maybe?
Thanks, it works. I had to run with admin rights.
Could you please share with instruction how to run it with admin rights for a rookie? I have the same problem, however I don't know how to run it with admin rights properly.
When I want to run it like:
sudo curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s
I receive:
[Warning] No NetworkManager support on host. [Error] Please set machine for armv7l
As a rookie I have no idea what to do next :/
I have not tried to install hassio and I have no idea whether doing the install under admin rights is the solution to your problem. I am really only answering the “how to” part of your question.
The general syntax
$ sudo command_a | command_b
executes command_a with root privileges, takes the output of that and pipes it to command_b but does NOT also run command_b with root privileges. In other words, the scope of the sudo is limited to command_a.
The simplest way around this kind of problem is to get yourself a privileged shell, and then run the commands inside that shell. You invoke a privileged shell with “sudo -s”. Like this
$ sudo -s
# curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s
The change of prompt from “$” to “#” indicates that you are running as root. Once the curl + bash command completes, you can exit the privileged shell by pressing Control+D, which will take you back to the “$” prompt.
If this solves your problem and lets you install hassio then please confirm that here so that other people following in your footsteps can benefit. Ditto if this does not solve the problem. 🙃
@ctrlce that error is asking you to specify the machine type. curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s -- -m raspberrypi4
Check the link if you need more info.
Hello. I am also a beginner and will write without any claims what I did.
ok this works, thanks just need to update the link in the script menu.sh
I just created a pull request with the URL change. Let's hope that the author will approve it, so the issue will be fixed.
First of all thanks you all for your help!
@Paraphraser - thanks for explaining the command - very helpful, and feeling a little bit less rookie now ;) Infortunatelly even when running the script in your way I receive:
root@raspberrypi:/home/pi/IOTstack# curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s [Warning] No NetworkManager support on host. [Error] Please set machine for armv7l
@Urzzzala - infortunatelly that didn't work for me either, however it changes the output error.
./menu.sh: line 4: pushd: /root/IOTstack: No such file or directory checking for project update From https://github.com/gcgarner/IOTstack
- branch master -> FETCH_HEAD Project is up to date install requirements for hass.io Reading package lists... Done Building dependency tree Reading state information... Done avahi-daemon is already the newest version (0.7-4+b1). bash is already the newest version (5.0-4). curl is already the newest version (7.64.0-4+deb10u1). dbus is already the newest version (1.12.16-1). jq is already the newest version (1.5+dfsg-2+b1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. bash: line 1: 404:: command not found ./menu.sh: line 442: popd: directory stack empty
Do you maybe have any ideas or am I doing something wrong?
FYI - I managed to install hassio on that stack via Portainer. You just need to set everything up properly and turn "Privileged mode" on. Maybe that's not the cleanest solution, but in my rookie opinion is always something ;)
@Paraphraser Worked for me. Thank You.
You can put this in the docker-compose.yaml as well:
homeassistant: container_name: homeassistant image: homeassistant/raspberrypi4-homeassistant:stable restart: unless-stopped ports:
You can put this in the docker-compose.yaml as well:
homeassistant: container_name: homeassistant image: homeassistant/raspberrypi4-homeassistant:stable restart: unless-stopped ports:
- 8123:8123 volumes:
- ./volumes/homeassistant/config:/config environment:
- "TZ=Europe/Berlin"
Thanks, that works nicely, I had to add "network_mode: host" under the ports section to allow HassIO to find devices on the local network the Pi is connected to and also I changed the TZ to my timezone :)
Hassio fails to install with below error bash: line 1: 404:: command not found https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh is not found