Yes on Jessie – in this case on an Original Pi..
As mentioned elsewhere we realised when looking in Webmin that for Node-Red there were 2 references to /usr/bin - but a quick WHICH NODE said this was in /usr/local/bin – so we changed the service startup script and all is well – except not sure how to alter my script for Pi1 to fix this without having to do this manually.
Thanks for the authentication info I will look at this next time I’m doing updates and amend accordingly.
Pete.
--
No – happy with that Dave but I was hoping there was a cleaner way… ie why is the reference to usr/bin wrong in the first place….
Pete.
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
Yes I could – but until I get the Pi1 script to work without having to then make changes later for Pi1 – I need that solving first – then I’ll make one script to conquer both…!
--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/0ZaplF8bbrc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
Znofmud – you spotted likely the right answer. Thanks to all for comments and to Dave for the explanation – I’m off on a job to Spain for little while – will redo the installation from scratch soon taking into account Zenofmud’s observation – once working will make a script with pi1/pi2 switch.
Thanks again.
Pete.
From: node...@googlegroups.com [mailto:node...@googlegroups.com] On Behalf Of Zenofmud
Sent: 17 January 2016 11:29
To: node...@googlegroups.com
Subject: Re: [node-red] Back again - this time - Node-Red on original Pi
Isn't node_archive_armhf.deb putting it there?
--
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/noderedervice -O /lib/systemd/system/nodered.service
sudo systemctl daemon-reload
Then node-red-start should for you as well.
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service -O /lib/systemd/system/nodered.service
sudo systemctl daemon-reload
On Pi Node-RED works better with the Iceweasel browser
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
You may also need to install and upgrade npm
sudo apt-get install npm
sudo npm i -g npm@2.x
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
Started Node-RED graphical event wiring tool..
/usr/bin/env: node-red-pi: No such file or directory
nodered.service: main process exited, code=exited, status=127/n/a
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
Started Node-RED graphical event wiring tool..
/usr/bin/env: node-red-pi: No such file or directory
nodered.service: main process exited, code=exited, status=127/n/a
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service -O /lib/systemd/system/nodered.service
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-start -O /usr/bin/node-red-start
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-stop -O /usr/bin/node-red-stop
sudo chmod +x /usr/bin/node-red-st*
sudo systemctl daemon-reloadsudo systemctl enable nodered.serviceThis is what I ended up doing in my script…. It WORKS PERFECTLY but I’m sure half of it is un-necessary… comments welcome. I ended up with the latest of everything in there and it works just fine… after that last line I install all my nodes… I think I had to manually alter the settings.js to include the additional directory to look for nodes (home/pi/.node-red/node_modules..
If you have a better way do tell…
sudo su -
apt-get remove --purge node* npm*
curl -sL https://deb.nodesource.com/setup_5.x | sudo bash -
apt-get install nodejs -y
apt-get install node
sudo su pi
sudo apt-get autoremove
sudo apt-get install -y build-essential python-dev nodejs
sudo npm cache clean
sudo npm install -g --unsafe-perm node-red
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service -O /lib/systemd/system/nodered.service
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-start -O /usr/bin/node-red-start
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-stop -O /usr/bin/node-red-stop
#sudo sed -i -e 's#=pi#=%USER#g' /lib/systemd/system/nodered.service
sudo chmod +x /usr/bin/node-red-st*
sudo systemctl daemon-reload
mkdir .node-red
cd .node-red
From: node...@googlegroups.com [mailto:node...@googlegroups.com] On Behalf Of JR01
Sent: 30 May 2016 23:56
To: Node-RED <node...@googlegroups.com>
Subject: Re: [node-red] Back again - this time - Node-Red on original Pi
Thanks Nick, I think that was my mistake, now following instructions to un-install, and install again.
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/0ZaplF8bbrc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.