These are chat archives for nebrius/raspi-io

14th
Jun 2016
Luis Montes
@monteslu
Jun 14 2016 17:30
@nebrius the fix from @gunderson still didnt work for me. Guess I'm not getting a build folder in raspi when i install rapsi-io
Bryan Hughes
@nebrius
Jun 14 2016 17:31
What was @gunderson’s fix?
err. I'm going back and forth between root and pi users. looks like maybe that fix works as non-root, testing now
so non-root is throwing errors about i2c: Error: Command failed: modprobe i2c-dev
Bryan Hughes
@nebrius
Jun 14 2016 17:37
I always install as pi, run as root
Luis Montes
@monteslu
Jun 14 2016 17:37
pi 3, npm 2.15.5 node 4.4.5
Bryan Hughes
@nebrius
Jun 14 2016 17:37
I don’t think anything else works, and it’s definitely not supported
Luis Montes
@monteslu
Jun 14 2016 17:37
so problem is that as root we dont get the build, but as non-root we dont have i2c permissions
Bryan Hughes
@nebrius
Jun 14 2016 17:37
I thought modprobe was runtime, not install time
Luis Montes
@monteslu
Jun 14 2016 17:38
right, install works on non-root and builds, but runtime throws i2c errors
so catch 22 right now
Bryan Hughes
@nebrius
Jun 14 2016 17:39
wait, you mean root doesn’t see the build folder?
the build folder is created during install time, not run time
Luis Montes
@monteslu
Jun 14 2016 17:39
root doesnt make a build folder
right
Bryan Hughes
@nebrius
Jun 14 2016 17:39
right, so install as pi, run as root
Luis Montes
@monteslu
Jun 14 2016 17:39
giving that a shot now :)
@nebrius that works
Bryan Hughes
@nebrius
Jun 14 2016 17:43
So let me ask you a question, as I get people every now and then doing this and getting tripped up. Was the README/wiki unclear about the need to not install as root, and the need to run as root?
Luis Montes
@monteslu
Jun 14 2016 17:46
the readme is a little unclear, because it says to install it that way, but doesn't say to run it as root
so first thing was to install it that way and try to run it as the user
Bryan Hughes
@nebrius
Jun 14 2016 17:47
hrm, I could have sworn it was in the README
did you get the “you must run this as root” error?
Luis Montes
@monteslu
Jun 14 2016 17:48
i didn't
Bryan Hughes
@nebrius
Jun 14 2016 17:48
oh snap, it’s really not there
fixed
Luis Montes
@monteslu
Jun 14 2016 17:48
cool!
might want to make a warning header bigger. Especially for those of use that have been using older versions of raspi-io a while and might not have picked up that this is the current state of things :)
Bryan Hughes
@nebrius
Jun 14 2016 17:50
soo….it’s always been this way
well, ok, version 1 wasn’t, but that requirement was added in version 2
done
Luis Montes
@monteslu
Jun 14 2016 17:52
maybe it just seems a little weird with node-red because running node-red creates a .node-red/node_modules folder in a user directory. So you have to copy modules from the non-root user to the root user
Bryan Hughes
@nebrius
Jun 14 2016 17:53
node-red really annoys me actually. There’s way to much non-standard stuff going on :-/
Luis Montes
@monteslu
Jun 14 2016 17:54
yeah, this part is especially painful
well, at least i can close a couple open issues now :)