**** BEGIN LOGGING AT Sat Jul 07 03:00:00 2018 Jul 07 13:25:25 I am running a Debian IoT (non GUI) image on my BB. I want to run an application, developped on cloud9 of my BB, on browser of BB (on kiosk mode) Which browser, I install ? Jul 07 13:25:41 I need a help please Jul 07 13:27:27 I'm confused Jul 07 13:28:00 you say IoT image, but you want a browser running on the BBB? Jul 07 13:29:32 In fact, I want to launch a script at startup ( autorun ) on Beaglebone which, open browser with specific address, how can I make it please ? Jul 07 13:29:44 such as I am newbie Jul 07 13:31:27 Can you help me please ? Jul 07 13:41:59 try Flask w/ Python. Jul 07 13:42:55 what's this please ? Jul 07 13:44:25 http://flask.pocoo.org/ Jul 07 13:44:49 brb Jul 07 13:47:53 but I don't work with python ! I work with nodejs Jul 07 13:53:03 BeagleCode: can you please clarify? Where is the browser supposed to run? Where should it render to? Jul 07 14:00:18 Okay. Jul 07 14:00:44 I want to run a bash script in Beaglebone such as: #! / Bin / bash #! / usr / bin / env node PATH = $ PATH / var / lib / cloud9 / autorun / loginbrillo sudo mysqld start node $ PATH / backend / server.js npm $ PATH / frontend / node_modules / react-scripts / scripts / start.js After that I want to put a script that opens the browser to run my project (with the script above)! with an address for example http://192.168.7.2:3001/m Jul 07 14:01:11 You type in your BBB address and then the port. The port for flask is 5000. Jul 07 14:02:40 Flask can be working with nodejs application and reactjs ( javascript framework) ? Jul 07 14:13:26 no...I do not think so. It may be extensible. I just use it w/ Python. Jul 07 14:13:37 BeagleCode: have you by chance asked a question on stackoverflow? Jul 07 14:15:02 also this means that the browser would be running on a host computer, not the BBB itself. OK, so we can take that out of the equation for now. Jul 07 14:15:52 No I don't asked on stackoverflow Jul 07 14:16:33 yes that's I want to do Jul 07 14:17:07 I'm a bit confused why you both want cloud9 AND another nodejs Jul 07 14:17:36 also in case of mysql, you should just make sure the service is enabled by default Jul 07 14:17:54 'systemctl enable mysqld.service' Jul 07 14:17:58 once Jul 07 14:18:06 then it will always start on boot Jul 07 14:18:49 I developped mon application just on cloud9 and I don't want another cloud9 Jul 07 14:19:21 and as it happens I just wrote a quite detailed answer about how you auto-start nodejs with systemd: https://stackoverflow.com/a/51137844/2648865 Jul 07 14:21:09 tbr : My problem just how to make a script which open my application on browser Jul 07 14:21:30 BeagleCode: what is the operating system of the host-PC? Jul 07 14:21:49 After that, I run it and autostart nodejs with systemd Jul 07 14:21:55 Ubuntu 18.04 Jul 07 14:25:29 you'd need to write a 'udev' rule and install it on that host machine that launches a browser with predefined URL Jul 07 14:27:30 how to make it please ? Jul 07 14:45:56 ? Jul 07 14:46:52 http://lmgtfy.com/?q=how%20to%20write%20a%20udev%20rule%20for%20a%20usb%20device Jul 07 14:48:08 Thank you ! can I ask another question please ? Jul 07 14:49:49 sure Jul 07 14:50:47 on my bash script on beaglebone, I want to run two commands at the same time : "node /var/lib/cloud9/autorun/loginbrillo/backend/server.js" and "npm /var/lib/cloud9/autorun/loginbrillo/frontend/node_modules/react-scripts/scripts/start.js" , it means each one on terminal, how can I make it please ? Jul 07 14:51:57 I would recommend to create a sytemd service file for each. That means TWO separate service files. Jul 07 14:53:31 But the second command must be run after the first command Jul 07 15:01:25 how can I make it ? Jul 07 15:07:39 by depending one on the other Jul 07 15:07:47 that's really well documented with systemd Jul 07 15:17:00 After=/path/to/service.service Jul 07 15:20:10 no path, just the service name Jul 07 15:21:22 Thank you, I will try that Jul 07 15:23:15 But, my one problem is about udev ! I follow the tuto but any result Jul 07 15:42:41 BeagleCode: you are aware that you MUST restart the host PC for the udev rule to take effect? Jul 07 15:43:11 (there are other options, but this is guaranteed to work and hard to get wrong) Jul 07 16:06:43 (or "sudo udevadm control --reload" and then replug the device) Jul 07 16:08:29 https://learn.adafruit.com/ssh-to-beaglebone-black-over-usb/installing-drivers-linux Jul 07 16:20:29 how to make browser of host machine open on startup of beaglebone ? Jul 07 16:21:50 by getting that udev rule written correctly Jul 07 16:26:08 have you an correct example ? Jul 07 16:26:52 it would actually be quite difficult to use an udev rule I think, since those run outside the context of the desktop session Jul 07 16:27:52 BeagleCode: can you explain why you need this? since it seems like a really bizarre thing to do Jul 07 16:29:29 I want to run an application on browser at startup (autorun) of beaglebone such as I use an iot image Jul 07 16:30:48 I hope you don't mean you expect this to work on any random computer Jul 07 16:32:15 you're still not making sense. what you're describing requires specific configuring on the host pc, which suggests a fixed setup, but in a fixed setup your request doesn't make any sense Jul 07 16:32:40 (i.e. you could just leave the browser tab open) Jul 07 16:45:10 it just after booting, we type the url of the application in the browser, it is more feasible? Jul 07 16:45:22 zmatt: you can technically target a running session. Either by hardcoding the user and DISPLAY or by parsing them at runtime from somewhere Jul 07 16:45:48 tbr: I didn't say it was impossible, but it's certainly not convenient Jul 07 16:45:53 yes Jul 07 16:48:22 So Jul 07 16:51:09 What will I do? Jul 07 17:13:48 I'm still convinced he asked the Stackoverflow question… Jul 07 20:55:35 Hello, I have buy a beagle bone, flashed like call in the instructions. if i moving my mouse the display goes off. with my other beagle bone no problem. what can i do? Jul 07 20:55:59 the cpu activity is always on **** ENDING LOGGING AT Sun Jul 08 03:00:00 2018