laamaa / m8c

Cross-platform M8 tracker headless client
Other
409 stars 85 forks source link

m8c autorun for RPI #88

Closed RAWJUNGLE closed 1 year ago

RAWJUNGLE commented 2 years ago

sudo /home/pi/code/m8c/m8c - not working

maybe I'm doing something wrong?

zsoltmar commented 1 year ago

./home/pi/code/m8c/m8c - don't forget the dot in the beginning

laamaa commented 1 year ago

You shouldn't need to use sudo to start the program if your user has access to the serial device, often by belonging to the group plugdev.

Unfortunately implementing automatic program starting isn't really a m8c issue, as it depends mostly on your OS distribution and installed software. I personally have used .bashrc and .xinitrc for starting m8c on minimal machines that were specifically configured for the tasks, but there's a lot of different ways to do it and it really depends on your system what's the best.