How to run a node js server in raspberry pi and use code example Example: get raspberry pi to run node on startup su pi -c 'node /home/pi/server.js < /dev/null &'