**** BEGIN LOGGING AT Sun Nov 28 02:59:56 2021 Nov 28 03:13:11 I am like the man who knew too little. Nov 28 03:13:14 Dang it. Nov 28 03:15:32 So, once these boards get ordered, the Capes, what exactly should i know to get it functioning? Nov 28 03:15:49 i2c or uart in .dts format? Nov 28 03:20:49 For instance, if I have to bypass the eeprom on the Capes, UART comm. to and from the BBBW would be correct. Right? Nov 28 03:59:22 10:00! Nov 28 16:21:26 Good evening, which solution do you recommand for auto mount (for usb stick) ? Nov 28 16:52:21 Hi Nov 28 16:52:28 which solution do you recommand for auto mount (for usb stick) ? Nov 28 17:43:16 depends on what exactly the use-case is I guess Nov 28 17:45:15 just mount the only usb port into one same location so a software can write a file into Nov 28 17:45:58 also I'd need a mean to check a device was mounted from the c++ code, that's what i'm working on Nov 28 17:46:52 I don't see why you'd want automounting in that case, have software mount it before performing the action an unmount it afterwards (so that you know for sure it's safe to remove the usb stick afterwards) Nov 28 17:48:21 you can use udev to detect when the usb stick shows up, and use fstab to allow it to be mounted/unmounted by a specific user Nov 28 17:51:12 ok thanks Nov 28 17:51:24 i did'nt about udev, i'll check it. Nov 28 17:51:42 yeah, libudev or various bindings Nov 28 17:52:24 thx Nov 28 17:52:44 it's also possible to have a systemd service get started when the device shows up Nov 28 17:53:23 and use a dependency on a mount unit to have systemd mount the filesystem before running the service and unmount it after it completes Nov 28 17:55:11 that's probably the solution I'd use if whatever needs to be done when the usb stick gets inserted can be put into a standalone process that runs only for the duration of that action Nov 28 17:57:23 (of course, even if writing the file can't be easily extracted from your main program, you could always just have this service send a message to your main program (e.g. using dbus) telling it that the filesystem is available for writing the file, and the wait for a reply that confirms it's done writing the file) Nov 28 17:57:39 lots of solutions exist Nov 28 18:11:51 a simple one in this case, i'll check Nov 28 18:13:08 if i can do with udev that'd be all right Nov 28 18:16:34 problem is i need to learn and got a short time left in this case to make it work Nov 28 18:16:52 let's go i'm on it now Nov 28 18:28:06 look good with udev found out a good example, the compiled example kind of does the job Nov 28 18:29:16 things are so simple under unix/linux for development Nov 29 00:30:37 made a decision to disable the web interface on my bbai, what's needed to get it back? Nov 29 01:16:13 freq: Install a OS/web interface, i.e. apt install xfce4 is one. You can check what is available on Debian distros on their wiki. Nov 29 01:16:34 I found some on their wiki. Nov 29 01:18:16 thanks set, but i have a headless install and just need to know what packages are needed for the base install, included in the official image Nov 29 01:18:55 Oh. Nov 29 01:20:20 When you install a OS like openbox, it is lightweight and you will get the required packages. Outside of that idea, I do not know which exact packages create an OS w/out installing the OS. Nov 29 01:20:38 the kernel is the OS Nov 29 01:20:38 Hmm. That is a good question. Nov 29 01:20:47 everything else is userland Nov 29 01:20:51 Okay. Nov 29 01:21:06 Well...userland openbox is lightweight and can work. Nov 29 01:21:50 Maybe if we go to openbox, we can see the required prerequisite packages? Nov 29 01:22:21 When you say headless, do you mean the bbb.io IoT Debian image? Nov 29 01:22:23 that would only be for the window manager Nov 29 01:23:34 Buster IoT TIDL (without graphical desktop and with machine learning acceleration tools) for BeagleBoard-X15 and BeagleBone AI via microSD card Nov 29 01:23:45 wait Nov 29 01:23:47 not x15 Nov 29 01:23:53 I understand. Nov 29 01:24:12 Do you want the GUI? Nov 29 01:24:32 no, just web interface Nov 29 01:24:45 so, i disabled nodered and the webserver that was running Nov 29 01:24:51 Oh. Nov 29 01:24:54 I got you now. Nov 29 01:24:57 i just need to figure out how to get that back up running Nov 29 01:25:29 How did you disable it? Did you use apt or nginx? Nov 29 01:26:46 stopped the services with systemd Nov 29 01:27:05 are you able to reach the webpage on yours? Nov 29 01:27:09 systemctl start yourservice.service Nov 29 01:27:17 well right, but i don't know what they are named. Nov 29 01:27:22 Oh! Nov 29 01:27:24 Let me check. Nov 29 01:27:31 thank you Nov 29 01:27:43 i suspected there would be a package list on github or something Nov 29 01:28:57 go to /etc/nginx/ . Nov 29 01:29:08 There should be a file called default. Nov 29 01:29:13 Or something close to that name. Nov 29 01:29:40 cat default and see the web address for nodered? Nov 29 01:30:18 i've started the web server Nov 29 01:30:20 403 Forbidden Nov 29 01:31:36 I say go to /lib/ Nov 29 01:31:56 ok i've found the problem Nov 29 01:32:00 nodered was uninstalled Nov 29 01:32:17 will try that in a moment Nov 29 01:33:37 I do not have it on my BBB. Nov 29 01:33:38 odd. Nov 29 01:34:02 what mine was just had a programming interface Nov 29 01:34:14 Right. Okay. Nov 29 01:34:29 i'm kind of amazed with the speed of this board at 400Mhz Nov 29 01:34:39 I know the .org was moving towards VS Code for a bit. Nov 29 01:34:57 oh, the open sourced one Nov 29 01:35:01 I thought the AI had 1.5 Ghz? Nov 29 01:35:03 Yes. Nov 29 01:35:24 inxi tends to be wrong then Nov 29 01:37:06 Hey freq: I am booting the AI now. Nov 29 01:37:17 I will check if the install does not fix it. Nov 29 01:38:40 ok Nov 29 01:39:01 Dang it. I am in Bullseye right now. I am sorry. Nov 29 01:39:06 so am i Nov 29 01:39:10 oh! Nov 29 01:39:13 i upgraded Nov 29 01:39:16 Nice. Nov 29 01:39:32 there was a bcm driver issue for about a day. whole thing upgraded fine Nov 29 01:39:36 I do not think nodered is called nodered in lib/systemd/system/ Nov 29 01:39:48 Let me check. Nov 29 01:40:49 Not installed. Nov 29 01:41:13 So, I am thinking w/ the upgrade of Buster to Bullseye, it is not installed by default. Nov 29 01:41:33 there is a specific repo there though Nov 29 01:41:41 oh? where? Nov 29 01:42:17 deb [arch=armhf] http://repos.rcn-ee.com/debian/ bullseye main Nov 29 01:42:17 deb-src [arch=armhf] http://repos.rcn-ee.com/debian/ bullseye main Nov 29 01:42:26  /etc/apt/sources.list Nov 29 01:42:40 Right? But...that does not have to do w/ nodered. Nov 29 01:42:57 no, but it should still give you what's needed as a stock install Nov 29 01:43:02 Did you try beaglecfg yet? Nov 29 01:43:06 no Nov 29 01:43:09 It may be i that idea. Nov 29 01:43:47 can't find that Nov 29 01:43:58 sudo beaglecfg Nov 29 01:44:54 I grabbed an odd image a while back. So, my beaglecfg command only shows specific GPIO pins and PRU start/stop operations. Nov 29 01:44:57 -bash: beaglecfg: command not found Nov 29 01:45:02 Hmm. Nov 29 01:45:04 Okay. Nov 29 01:45:31 bb-beagle-config/unknown 0.1.0.20210827.0-0~bullseye+20210830 armhf Nov 29 01:45:31   beagleboard.org beagle-config Nov 29 01:45:50 Hmm. Okay. Nov 29 01:46:07 i'll try that in a minute Nov 29 01:46:39 I am searching my entire system right now w/ sudo find | grep nodered. Nov 29 01:46:42 Nope nothing. Nov 29 01:47:06 i haven't really done anything interesting with my bbai yet Nov 29 01:47:11 hoping to Nov 29 01:48:37 Whelp, I am out of ideas for now. Have you gone to the nodered site yet to see if they have networking ideas? Nov 29 01:49:11 I did install tensorflow-lite Nov 29 01:49:22 I can make baboon faces altered! Nov 29 01:49:27 Ha. Nov 29 01:49:31 beaglecfg is just like raspi-config Nov 29 01:49:35 Oh. Nov 29 01:50:23 Well...you can use it or not use it. Nov 29 01:50:42 still just looking for a list of dependencies for the web interface Nov 29 01:50:51 though i may just disable all of that and use x forwarding Nov 29 01:51:24 Okay. Good luck. I cannot help, i.e. as I thought it was a given. But, it will take work. I will go to nodered to see their networking ideas. Nov 29 01:51:51 thanks for helping Nov 29 01:52:01 Here ! https://nodered.org/docs/getting-started/beaglebone Nov 29 01:52:53 brb Nov 29 02:06:50 Did it work? Nov 29 02:07:05 seems it's not the only service needed Nov 29 02:07:09 Oh. Nov 29 02:08:14 sudo node-red Nov 29 02:09:00 Oh, I get it. So, w/out the proper set up of the webserver along w/ node-red, one cannot view it online. Nov 29 02:09:07 bind9? Nov 29 02:09:16 its not just bind Nov 29 02:09:23 Hmm. Okay. Nov 29 02:10:10 Do you have nodejs installed? Nov 29 02:10:16 yeah Nov 29 02:10:37 what does this say, please use pastebin: sudo journalctl -f -u node-red -o cat Nov 29 02:10:38 nodejs is already the newest version (12.22.5~dfsg-2~11u1). Nov 29 02:11:06 I am not good w/ sockets. Nov 29 02:12:09 Let me refresh what debian says. Nov 29 02:12:50 Nov 28 19:18:37 beaglebone Node-RED[20979]: 28 Nov 19:18:37 - [info] Server now Nov 29 02:12:50 running at http://127.0.0.1:1880/ Nov 29 02:12:58 ok well thats neat. i just need to open that port for now Nov 29 02:13:04 Aw. Nov 29 02:13:24 I say change 127.0.0.1 to something else. Nov 29 02:13:35 But that is me and it is not safe. Nov 29 02:14:06 i'm the only one on this lan that doesn't just use their devices for facebook Nov 29 02:14:52 Dang it. I cannot believe I have to install it. Let me see their source. I will find where they set up their socket. Nov 29 02:15:29 still, this isn't the server page that i was looking for Nov 29 02:15:45 i'm looking for the default beagleboard page Nov 29 02:15:50 the settings.js file seems to be a winner but I need to check their node-red docs. and github. Nov 29 02:15:51 Okay. Nov 29 02:16:50 always amazed at how fast servers load Nov 29 02:16:58 This, https://github.com/node-red/node-red, link says to just go to localhost which is 192.168.7.2:1880 on the BBAI. Nov 29 02:17:11 yeah, the configs were there already Nov 29 02:17:15 Oh. Nov 29 02:17:21 So, we need to change them. Nov 29 02:21:47 freq: Do you know where their source is located for their server.js file? Nov 29 02:21:54 not at all Nov 29 02:22:01 if i could find that magic page, i'd be set Nov 29 02:22:20 but so far, re-imaging is the only way.. and i'm already set up. not reflashing any time soon Nov 29 02:23:15 Okay. I will install it. Please hold. Nov 29 02:23:53 the uiPort is what we need to change in their source. Nov 29 02:24:06 Now, where uiPort is located, no clue. But! I shall look. Nov 29 02:24:15 :p Nov 29 02:24:19 YEa boy! Nov 29 02:25:08 Here: https://github.com/node-red/node-red/blob/master/packages/node_modules/node-red/settings.js#L150 Nov 29 02:25:29 Unhash that file and change it! Nov 29 02:25:49 file line, excuse me. Nov 29 02:26:13 err, i'm happy with the default config Nov 29 02:26:16 it works for my board Nov 29 02:26:26 and i have jonny-five for the gpio Nov 29 02:26:28 oh. It works? Nov 29 02:26:30 i'll add more as i need Nov 29 02:26:31 yes Nov 29 02:26:40 Then, what is the issue? Nov 29 02:26:44 now, there is a beagleboard page that comes with the default issue Nov 29 02:27:01 and there are multiple files in there to read through Nov 29 02:27:05 Okay. Nov 29 02:27:26 I am not sure exactly what happened but okay. Everything works, this is awesome. Nov 29 02:27:28 and i see that nginx is running at port 80 Nov 29 02:27:35 but there is no page Nov 29 02:27:44 yeah you're helping Nov 29 02:27:49 Go to 1880 Nov 29 02:27:52 i just need to rebuild what i wrecked lol Nov 29 02:27:58 that's for node-red Nov 29 02:28:07 Oh. Nov 29 02:28:10 i'm looking for the default beagleboard webpage on localhost Nov 29 02:28:12 So, right. Nov 29 02:28:18 Got it. Okay. Nov 29 02:28:20 Please hold. Nov 29 02:28:32 You confuse me census. Nov 29 02:30:00 oic Nov 29 02:31:11 Look here, census >>> https://pastebin.com/89DMzbZw Nov 29 02:31:38 i don't even know if i'm census Nov 29 02:31:42 Ha! Nov 29 02:31:57 freq: Just look at the paste. Nov 29 02:32:24 that's not the problem Nov 29 02:32:27 That is my current config. Nov 29 02:32:29 Blah. Nov 29 02:32:37 What is the issue now? Nov 29 02:32:45 though, i do have a tor relay running and that's kinda fun Nov 29 02:32:57 Tell me everything! Nov 29 02:33:00 does your board get so hot that you can't touch the heatsink? Nov 29 02:33:08 No. I have a fan. Nov 29 02:33:12 i don't know what to tell about it Nov 29 02:33:14 oh i don't Nov 29 02:33:21 Oh. Get a fan. Nov 29 02:33:23 there is a tor relay and i have no idea what it does Nov 29 02:33:25 Seriously. Nov 29 02:33:27 it has a lot of traffic Nov 29 02:33:31 Hmm. Nov 29 02:33:38 do these boards burn out without a fan? Nov 29 02:33:49 Sometimes they are known to turn off. Nov 29 02:34:01 havent had the issue Nov 29 02:34:06 The fan will help you and the board esp. Nov 29 02:34:25   Message: No sensors data was found. Is sensors configured? Nov 29 02:38:39 No clue. Try systemctl daemon-reload Nov 29 02:38:55 Then, go to the site on your socket. Nov 29 02:39:34 that site isn't as important as the node-red one Nov 29 02:39:37 i'll sort it out another day, thank you Nov 29 02:39:52 fine. I cannot understand anything that is not typed. Nov 29 02:40:05 If you are holding back ideas, I am blank on my side. **** ENDING LOGGING AT Mon Nov 29 02:59:56 2021