Answer the question
In order to leave comments, you need to log in
How to autostart node.js server in Ubuntu Core?
Good afternoon!
I need to raise a node.js server on ubuntu core on raspberry pi.
I went to the ubunta website, they offered me several images and it was written that ubuntu core is best suited, it is lightweight and immediately sets up Wi-Fi (before that, I didn’t manage to set up Wi-Fi in the console version at all). I downloaded the image, wrote it to a flash drive, inserted it into a raspberry, connected via putty. Well, it wasn't all smooth sailing, of course, but it all worked out in the end.
Then I started installing the programs I needed and found that apt-get was not working. A quick google gave me this:
sudo snap install classic —devmode —edge
sudo classic
sudo classic
Answer the question
In order to leave comments, you need to log in
Who cares, I made a similar setting on raspbian, and it remained on it, apparently, something was wrong with the ubuntu distribution
It seems to me that pm2 should have a command to add to autorun. Or, you can add your own. https://help.ubuntu.ru/wiki/%D1%81%D0%BE%D0%B7%D0%...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question