Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etc/hostname: Permission denied #9

Closed
kegra opened this issue May 16, 2018 · 11 comments
Closed

etc/hostname: Permission denied #9

kegra opened this issue May 16, 2018 · 11 comments

Comments

@kegra
Copy link

kegra commented May 16, 2018

used sudo su , i can use nano to change anything so i dont see why this is not running.
root@hassio:~# curl -sL https://raw.githubusercontent.com/dale3h/hassio-installer/master/hassio_rpi3bp | bash -s
main: line 40: /etc/hostname: Permission denied
sed: -e expression #1, char 8: unknown option to `s'

@marduv
Copy link
Contributor

marduv commented May 16, 2018

To fix this issue replace old_hostname=<(/etc/hostname) with old_hostname=$(< /etc/hostname) on line 40

@IKNout
Copy link

IKNout commented May 20, 2018

Hi
I am getting this issue, but with being new to all this and trying to learn, i am struggling to see where i can change line 40. I can SSH to my Pi3b+. has an edited script been done. Thanks for any help

@marduv
Copy link
Contributor

marduv commented May 21, 2018

@simonfell I have posted a fix, but are waiting for @dale3h to approve.
Meanwhile you can use:
curl -sL https://raw.githubusercontent.com/marduv/hassio-installer/master/hassio_rpi3bp | bash -s

@Jafterdark
Copy link

I tried using this one but then I lose the Hassio tab and addons and I did go in the configuration.yaml file and add it but that doesn't work either
curl -sL https://raw.githubusercontent.com/marduv/hassio-installer/master/hassio_rpi3bp | bash -s

@marduv
Copy link
Contributor

marduv commented May 23, 2018

@Jafterdark Is this an existing install or did you make it from scratch?
In configuration.yaml it is important that you only have hassio: mention once.

This script dos not do any thing else then, add depednencys, install Docker and run hassio_install script.
But if you have a instance already installed before trying this, then the probability is preity hi that you are running two instances.

@Jafterdark
Copy link

Jafterdark commented May 23, 2018

In configuration.yaml it is important that you only have hassio: mention once. I have it only mentioned once it could be just due to the new version but at this time I cannot get to it at all even if I do /dashboard
And this is a brand new install with your script

@ferazambuja
Copy link

@marduv curl worked for me 👍

@marduv
Copy link
Contributor

marduv commented May 27, 2018

@Jafterdark Sorry for late replay 😞
If you can see the Hass.IO tab, it means the addon is not running an you cant access it just by typing inn the url.

Your issue is not a caused by this script, it use Hass.IO Builder to install Hass.IO.
This script does nothing more than install necessary dependencies and run Hass.IO builder setup.

So if you have a clean setup, and there is nothing else wrong with your config file then you need to take a look at Hass.IO GIT Reposotory to see if someone is experian's something similar.

If you can't resolve it let me know, then we must find a way so I can get a copy of your image or access your PI an take a look.

@IKNout
Copy link

IKNout commented May 28, 2018

Eventually got round to trying this and '@marduv curl' worked for me, thanks for your help

@dale3h
Copy link
Owner

dale3h commented May 31, 2018

Closed via #10

@dale3h dale3h closed this as completed May 31, 2018
@dale3h
Copy link
Owner

dale3h commented May 31, 2018

@Jafterdark Being that this script is supposed to be run from a fresh Raspbian image, you should be able to access the configuration.yaml directly via the Raspbian SSH (port 22 until further notice). After a successful execution of this script, the file should be located at /usr/share/hassio/homeassistant/configuration.yaml

  1. Connect to the SSH server running on the base filesystem:
    $ ssh -p 22 [email protected]
  2. Open the configuration.yaml file for editing:
    $ sudo nano /usr/share/hassio/homeassistant/configuration.yaml
  3. Add hassio: to the configuration.yaml file.
  4. Save your changes by pressing Ctrl+X, Y, and then Enter
  5. Restart your Raspberry Pi:
    $ sudo reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants