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

Automatic install script #5

Open
kodedninja opened this issue Apr 12, 2018 · 6 comments
Open

Automatic install script #5

kodedninja opened this issue Apr 12, 2018 · 6 comments
Labels
enhancement New feature or request

Comments

@kodedninja
Copy link
Contributor

kodedninja commented Apr 12, 2018

A similar UX to n-install.

Run $ sudo curl -L https://git.io/vxpck | bash on a freshly installed Pi and it'll be ready to use.

@kodedninja
Copy link
Contributor Author

kodedninja commented Apr 12, 2018

Functionalities:

  • install node and npm if required
  • clone the repo
  • install add-to-systemd and lil-pids globally
  • npm install
  • npm run build
  • add the service to systemd
  • start the service
  • run some tests?

@neauoire
Copy link
Contributor

This worked amazingly well for my Pi Zero W.

@kodedninja
Copy link
Contributor Author

@neauoire yee! super happy to hear!

@neauoire
Copy link
Contributor

I've added the hostname -s to the final print ;)

@callil
Copy link
Contributor

callil commented Apr 19, 2018

I get EACCESS errors with node gyp like this homebridge/homebridge#405

Maybe we can edit the install from sudo npm install to sudo npm install --unsafe-perm
I ended up solving it with https://stackoverflow.com/questions/29468404/gyp-warn-eacces-user-root-does-not-have-permission-to-access-the-dev-dir

I will also try this on a truly fresh pi to see what happens.

@kodedninja
Copy link
Contributor Author

This is a bug I'm aware of. I think it appears if you install seeder with sudo. This is why I want to try it without that.

If it does work with --unsafe-perm then sure, change it.

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

No branches or pull requests

3 participants