**** BEGIN LOGGING AT Mon Aug 06 03:00:00 2018 Aug 06 04:51:41 e Aug 06 05:35:42 ugh, whenever I browse drivers/tty/*.c a bit I feel the need to take a shower Aug 06 06:06:57 thisisfine.jpg ;-) Aug 06 06:12:13 Hello is the man from friday online who helped me with my problem ? Aug 06 06:16:58 just ask your questions, others can help you too. (In this case it even includes me) Aug 06 06:19:55 i cannot connect my bbb to the internet via ethernet Aug 06 06:20:12 i got nameservers in resolv.config and they are correct Aug 06 06:20:42 proxy? Aug 06 06:21:09 cannot ping goolge.com but if i ping 8.8.8.8 it outputs 56(84) bytes of data. Aug 06 06:21:22 i already set it in etc/environment Aug 06 06:21:54 if network access requires proxy, then you won't get through with ping and such Aug 06 06:22:22 http_proxy=http://username:password@proxyserver:port/ Aug 06 06:22:34 and the same in big letters Aug 06 06:22:40 in environment Aug 06 06:22:56 mister: note the result you're getting from attempting to ping 8.8.8.8 is not success Aug 06 06:23:16 i know i only want to say that there is sth Aug 06 06:23:37 rather, it is attempting to ping the ip but gets no reply (because you don't have normal functioning internet access), while attempting to ping google.com fails due to name resolution failure Aug 06 06:23:55 you'll want to add a file to /etc/apt/apt.conf.d/ with this content: Acquire::http::proxy "http://username:password@proxyserver:port/" Aug 06 06:25:30 maybe first confirm that the proxy works by doing e.g. wget http://google.com with the http_proxy environment variable set appropriately Aug 06 06:25:56 i already written that into etc/apt/apt.conf but the proxy is written first letter big ant at the end without slash Aug 06 06:26:53 what does wget tell you if you try what zmatt said? Aug 06 06:26:54 wget google.com outputs: connection to proxy connected proxy request sent awaiting respons 403 forbidden Aug 06 06:27:15 sounds like the username or password you use for the proxy is wrong Aug 06 06:27:40 couldnt be these are my data for the company Aug 06 06:27:48 should have reported 407 though, technically Aug 06 06:28:03 are there any special characters in your password? Aug 06 06:28:11 yeah a + Aug 06 06:28:33 IIRC that doesn't need escaping Aug 06 06:28:55 what is 'IIRC' ? Aug 06 06:29:04 If I Remember Correctly Aug 06 06:29:18 thanks Aug 06 06:29:55 google is not blocked by your corporate proxy, right? Aug 06 06:30:06 where can i see this ? Aug 06 06:30:21 btw, apt's Acquire::http::Proxy configuration should be unnecessary if the http_proxy environment variable is set Aug 06 06:30:23 open a browser on your desktop/laptop, go to google.com Aug 06 06:30:48 i can browse every website in our company Aug 06 06:31:18 the it gave me a second proxy to connect to i will try that Aug 06 06:32:24 do i have to reboot after changings ? Aug 06 06:32:31 you could also try passing the --server-response flag to wget to see if it gives any insight into the error Aug 06 06:32:44 I'm actually not sure when /etc/environment is parsed Aug 06 06:33:18 you can try just logging out and in again and check whether the environment variable is updated with echo $http_proxy Aug 06 06:33:20 I personally prefer 'curl -v $URL' Aug 06 06:33:48 oh yeah, I sometimes forget curl exists Aug 06 06:34:09 what should i do ? :D Aug 06 06:34:34 try "curl -v http://heise.de" ;) Aug 06 06:34:50 are you germans ? then we could speak german here Aug 06 06:34:57 * zmatt is not Aug 06 06:34:59 we do not speak german here Aug 06 06:35:02 * tbr is Aug 06 06:35:22 okay Aug 06 06:35:56 it gives me an output Aug 06 06:36:30 does it look like error message or the proper page? Aug 06 06:36:49 "curl -v http://heise.de >/dev/null " will skip the page output Aug 06 06:36:55 and just return headers Aug 06 06:37:05 but in the html there is 'URL could not be retrieved' Aug 06 06:37:20 ok, sounds like a proxy problem Aug 06 06:37:49 i dont know what to do Aug 06 06:38:07 any other clues in the output? Aug 06 06:38:08 maybe just paste the output into a pastebin? and/or show it to the IT folks. though, if you've just changed /etc/environment, so first check whether you're using the updated variable like I mentioned earlier Aug 06 06:38:19 *do first Aug 06 06:38:25 what he says Aug 06 06:39:26 i forgot to change the variable in apt.conf Aug 06 06:39:36 i only changed it in environment Aug 06 06:39:40 doesn't impact curl/weget Aug 06 06:39:54 only relevant for running apt Aug 06 06:40:00 you can remove that anyway, apt can use the http_proxy environment var just like everything else Aug 06 06:40:13 remove apt.conf ? Aug 06 06:40:27 assuming there's no other relevant config in there, yes Aug 06 06:41:43 there is a apt.conf.d directorry Aug 06 06:42:02 yes that's normal Aug 06 06:42:11 I mean just remove what you added yourself Aug 06 06:42:12 so i can remove apt.conf ? Aug 06 06:42:21 i added the whole file Aug 06 06:42:27 then remove the whole file Aug 06 06:42:30 at the beginning the apt.conf didnt exist Aug 06 06:48:25 after 'curl -v http://heise.de >/dev/null' there are lines like: 403 forbidden, err_access_denied, proxy connection close Aug 06 06:49:33 so double-check the environment variable using: echo $http_proxy Aug 06 06:49:45 and if you're sure it's set correctly, go talk to your IT people Aug 06 06:51:14 wtf, i change it in environment to the new proxy but there is the old Aug 06 06:51:24 i think it takes the proxy from the apt.conf ? Aug 06 06:51:40 no, it just means /etc/environment hasn't been re-read yet Aug 06 06:51:46 like I said I don't know when that file is actually read Aug 06 06:51:53 but i rebooted it ? Aug 06 06:52:12 but the old one normaly also should work Aug 06 06:52:19 ehm, then you've set it somewhere else and forgot about it? unless you mean the contents of /etc/environment is also wrong Aug 06 06:52:49 apt.conf is used _only_ by apt and is not relevant here (and moreover you already know you can just remove it) Aug 06 06:53:01 i have set it in apt.conf with the aquire line and nowwhere Aug 06 06:53:08 might be worth to check ~/.profile and ~/.bashrc Aug 06 06:53:19 but if i wont to do apt-get i need the apt.conf ? Aug 06 06:53:19 well first double-check /etc/environment itself Aug 06 06:53:38 again, apt can use the environment variable you've set, it does not need separate configuration Aug 06 06:53:47 okay Aug 06 06:54:17 cannot remove permission denied Aug 06 06:54:29 how do i change that Aug 06 06:54:32 sudo Aug 06 06:54:40 oh yes Aug 06 06:54:58 that shouldn't be news, surely you've also needed it to create and edit the file Aug 06 06:55:28 i forget that every time Aug 06 06:56:38 i dont have home/.profile and home/.bashrc Aug 06 06:56:49 08:53 < zmatt> well first double-check /etc/environment itself Aug 06 06:57:25 what means double-check ? Aug 06 06:57:43 just to make sure its right ? Aug 06 06:57:46 yes Aug 06 06:58:25 since if you've just rebooted and echo $http_proxy produces the wrong value, the logical reason would be because the wrong value is in /etc/environment Aug 06 06:59:01 http_proxy=http://username:password@proxyserver:port/ Aug 06 06:59:24 you don't need to keep repeating that, you should just check whether the url you configured is really correct Aug 06 06:59:53 yeah its the one the it gave me Aug 06 07:00:09 but echo $http_proxy gives a different url? Aug 06 07:00:14 after reboot? Aug 06 07:00:28 i will reboot again one moment Aug 06 07:02:24 it outputs the one that was before i changed it to the new one 30 mins before Aug 06 07:03:11 but not that one, that is actually in the etc/environment Aug 06 07:03:26 well then you must have configured something in another file... the system can't pull that value out of its ass or magically remember what was in a config file 30 minutes ago Aug 06 07:03:54 where could that be ? I didnt change sth else Aug 06 07:04:03 can i search for that? Aug 06 07:04:05 well you must have Aug 06 07:04:22 but, you can figure that out later, you can just temporarily override it using: Aug 06 07:04:28 export http_proxy=... Aug 06 07:04:46 where should i write that ? Aug 06 07:04:48 that will override the http_proxy variable until you log out again Aug 06 07:04:50 as a command Aug 06 07:04:58 and then try curl -v again Aug 06 07:05:16 if it still fails, the only remaining idea I have is to replace the + you mentioned by %2b Aug 06 07:06:21 that worked Aug 06 07:06:35 lol Aug 06 07:06:47 the export worked Aug 06 07:06:51 not the %2b Aug 06 07:07:00 oh so it was simply due to the wrong url being used? Aug 06 07:07:08 so now you'll have to figure out where the hell it's coming from Aug 06 07:08:04 i think you dont understand i only wrote into the command line export http_proxy=http://username:... and after that the echo $http_proxy outputs the updated proxy and port Aug 06 07:08:20 oh Aug 06 07:08:28 well duh Aug 06 07:08:51 then you say "that worked" I assumed you meant curl now worked Aug 06 07:09:00 i can try Aug 06 07:09:38 I'll go out on a limb and guess that the two things you have are something like "proxyde1.ifm.com" and "proxyde2.ifm.com". then you can grep for proxyde1 easily: sudo grep -r proxyde1 /etc/* Aug 06 07:12:11 are you working for ifm ? Aug 06 07:12:38 no, your IP belongs to IFM Aug 06 07:12:52 from there it's *really* easy to guess stuff Aug 06 07:13:00 from where do you get my ip ? Aug 06 07:13:12 05:59:08-!- mister [d43ecd06@gateway/web/freenode/ip.212.62.205.6] has joined #beagle Aug 06 07:13:26 okay Aug 06 07:13:40 inetnum: 212.62.205.0 - 212.62.205.15 Aug 06 07:13:40 netname: IFM2 Aug 06 07:13:40 descr: IFM ELECTRONIC GmbH Aug 06 07:13:48 i will do an break after we will continue working on the problem okay ? Aug 06 07:35:38 tbr: are you here ? Aug 06 07:38:17 i found the other file where the proxy is declared Aug 06 07:38:33 in etc/profile.d/node.sh Aug 06 07:40:17 might want to remove it there Aug 06 07:42:10 i commented the line Aug 06 07:42:24 now the proxy connection is keep-alive Aug 06 07:43:14 and 301 Moved permanently Aug 06 07:49:52 in other words problem fixed? Aug 06 07:50:16 no if i try apt-get update it doesnt work Aug 06 07:50:28 i dont know if i have a connection to the internet or not Aug 06 07:50:56 301 sounds like the usual redirect to the HTTPS version of the page Aug 06 07:51:08 temporary failure in name resolution if i try to ping goole.com Aug 06 07:51:21 ping does not use a proxy so that's the expected result Aug 06 07:51:35 how can i check if i have the inet connection ? Aug 06 07:51:53 you don't have internet access if you're forced to use a http proxy, you can merely browse the web Aug 06 07:52:10 the 301 seems to imply the http proxy is working Aug 06 07:52:19 because the web is a subset of "the internet" Aug 06 07:52:27 and why is sudo apt-get not working ? Aug 06 07:52:47 what is the error message? Aug 06 07:54:59 https://pastebin.com/P94Ad8wS Aug 06 07:55:31 huh, why is it not using the proxy Aug 06 07:56:01 can you try: sudo -s and then in the root shell confirm echo $http_proxy Aug 06 07:56:37 no output Aug 06 07:57:31 oh what the hell, it doesn't read /etc/environment ? Aug 06 07:57:43 exit that shell and try instead: sudo -i Aug 06 07:57:51 (and then again echo $http_proxy) Aug 06 07:58:19 no output Aug 06 07:59:38 okay that's dumb and annoying Aug 06 08:03:03 why is it not in the variable now ? Aug 06 08:03:21 try adding the following line somewhere near the top of the /etc/pam.d/sudo file: Aug 06 08:03:22 without superuser it outputs the right path Aug 06 08:03:24 session required pam_env.so readenv=1 Aug 06 08:04:38 session required pam_env.so readenv=1 ? Aug 06 08:04:55 why are you repeating what I said? Aug 06 08:05:22 i am asking if i have to write that because you have a big space between some words Aug 06 08:07:06 that's because I copy-pasted the line from /etc/pam.d/su where it appears like that, posssibly to attempt to nicely line up directives Aug 06 08:07:17 the actual number of spaces doesn't matter Aug 06 08:08:07 doesnt work Aug 06 08:08:15 but other output Aug 06 08:09:27 https://pastebin.com/mSZjBhCf Aug 06 08:09:55 403 forbidden Aug 06 08:10:58 is it the wrong proxy again? Aug 06 08:11:05 try curl -v http://repos.rcn-ee.com/debian/dists/stretch/Release Aug 06 08:11:53 its the right proxy Aug 06 08:14:50 Proxy-Connection: Keep-Alive, HTTP/1.= : 403 Forbidden, x-squid-error: Err_access_denied 0 Aug 06 08:15:17 html doc: rewuested url could be retrieved Aug 06 08:15:19 access denied Aug 06 08:15:24 tbr: bbbw arrived and I got to try the hotair station yesterday :) Aug 06 08:16:04 Access control configurations prevents your request from beain allowed at this time Aug 06 08:16:30 mister: this is with the same http_proxy that seemed to work 20 minutes ago? Aug 06 08:17:05 i dont know, which one it was, should i try with the other one ? Aug 06 08:18:02 ehm, how can you not know which one it was? did you change it again after you actually had the successful 301 ?! Aug 06 08:18:31 anyway, apt now uses your proxy setting, so go forth and figure out the right url Aug 06 08:18:47 no i dont changed Aug 06 08:19:01 replacing the + by %2b is also still something you can try Aug 06 08:19:16 regardless you've run out of support credits with me, go try stuff yourself or pester your IT dept Aug 06 08:21:06 why is that such a processure to get connection to such a little thing man Aug 06 08:21:12 ask your IT dept Aug 06 08:21:45 i think they dont even know what to d Aug 06 08:21:50 do Aug 06 08:21:57 if you had a normally working internet connection then you would never had any of these problems Aug 06 08:22:14 is it all because the security of the company ? Aug 06 08:22:20 "security" Aug 06 08:22:31 ? Aug 06 08:23:18 I have sincere doubt that any real security is gained by this compared to just using some sane firewall rules Aug 06 08:23:27 yeah Aug 06 08:23:58 its again the same Aug 06 08:24:07 i have to ask the IT Aug 06 08:24:34 also at this point keep in mind that you wouldn't have lost 1-2 man days if it wouldn't be for IT policy. Aug 06 08:25:34 you might consider showing your gratitude by buying a fish and concealing it in a hard to find spot in their office, e.g. behind a closet Aug 06 08:25:56 ;) Aug 06 08:26:23 hahaha i dont know if its their faul t Aug 06 08:26:27 fault* Aug 06 08:26:56 yeah, fair enough, might be a policy imposed from higher up Aug 06 08:27:47 i hope it will work because its so difficult to do things in a company with all that "security" Aug 06 08:28:00 tbr: the only complaint I have about the hotair station is the nozzles. Aug 06 08:28:40 tbr: but what can you expect from something that costs less than 50€ including shipment out of china. Aug 06 08:30:13 https://pastebin.com/6PagYMv6 is that output normal if apt-get upgrade doesnt work ? Aug 06 08:30:38 mister: you first need to do apt-get update Aug 06 08:30:51 successfully Aug 06 08:30:53 okay yeah thats what i mean Aug 06 08:31:10 then I think it's normal Aug 06 08:31:37 it doesn't know of any package updates so it doesn't attempt to install anything Aug 06 08:31:53 what should i say to IT ? That i didnt get access to the proxy ? Aug 06 08:32:01 thinkfat: indeed, certainly not PACE quality :D Aug 06 08:32:12 or QUICK Aug 06 08:32:21 not remotely Aug 06 08:33:43 but hey, it creates a hot air flow, enough to unsolder some switching regulator in DDPACK package (though the board layout sucks and doesn't really provide enough thermal mass) Aug 06 08:34:22 mister: just show the output of curl -v http://repos.rcn-ee.com/debian/dists/stretch/Release Aug 06 08:34:32 it'll be interesting if it works with one of my boards, with proper thermal vias and a large copper fill Aug 06 08:37:53 I dont know if the IT will understand sth of the output :D haha Aug 06 08:39:57 I am using the BeagleBone with putty could that be the problem ? Aug 06 08:41:32 no Aug 06 08:42:07 and the curl -v output is simply what *their* proxy server is sending you Aug 06 08:42:13 okay Aug 06 08:51:49 they require you to use a proxy, they must help you with problems that arise from this. simple as that. Aug 06 08:52:08 yeah i am waiting for a response from them Aug 06 09:00:13 could it be that i have to add 'deb http://httpredir.debian.org/debian stretch main contrib non-free' in etc/apt/sources.list ? Aug 06 09:00:31 what? Aug 06 09:00:44 it can't fetch any of the listed sources Aug 06 09:00:50 http://www.microdev.it/wp/en/2017/03/12/mqtt-with-beaglebone-and-esp8266-mosquitto-installation-on-beaglebone/ under the point mosquitto step 3 Aug 06 09:00:55 also, isn't that line already there to begin with? Aug 06 09:01:06 a similar one is there Aug 06 09:01:23 but not with 'httpredir..' Aug 06 09:01:28 yeah, httpredir.debian.org should be deb.debien.org Aug 06 09:01:47 then it is already there Aug 06 09:02:07 but again, your problems are with proxy configuration, not anything else Aug 06 09:02:27 no need to meddle with apt configuration since you got exactly the same error with curl Aug 06 09:02:49 although I don't understand why you had an apparent success earlier (a 301) but now no longer Aug 06 09:03:02 okay i only try to find sth while waiting for IT Aug 06 09:11:21 i got the 301 back Aug 06 09:11:32 i tried again with another proxy and port Aug 06 09:11:49 but you're not getting a 301 on the http://repos.rcn-ee.com/debian/dists/stretch/Release are you? Aug 06 09:12:01 since you're definitely not supposed to Aug 06 09:12:31 i will try Aug 06 09:12:53 this try it was heise.de Aug 06 09:13:27 your line gives me 200 OK Aug 06 09:13:56 wtf is happening Aug 06 09:14:09 i tried that server few times it didnt work Aug 06 09:14:32 congratulations on fixing your proxy setup by using the proxy setup that was already known to be working 90 MINUTES AGO Aug 06 09:14:38 :P Aug 06 09:14:50 it worked with the other one 90 mins ago Aug 06 09:14:54 it worked with the old one Aug 06 09:15:00 now i tried the new one Aug 06 09:15:12 apt-get update is working i think Aug 06 09:16:09 maybe you forgot to login again after editing /etc/environment to ensure it takes effect? Aug 06 09:16:35 no i only changed proxy and port Aug 06 09:16:58 i hate things like that, youre working for hours and doing the same shit until it works Aug 06 09:17:20 now get update was successfull Aug 06 09:17:21 yes but after changing it (assuming you mean by editing /etc/environment), did you log out of the beaglebone and back in ? Aug 06 09:17:34 yeah every time i rebooted it Aug 06 09:18:55 ¯\_(ツ)_/¯ Aug 06 09:22:49 whats the difference between apt-get update and apt-get update -y ? Aug 06 09:23:06 -y doesn't do anything on update, and usually shouldn't be used anyway Aug 06 09:23:13 it means "automatically answer yes to any questions" Aug 06 09:23:13 okay Aug 06 09:23:35 okay Aug 06 09:27:23 do you know how to connect three beaglebone via mqtt Aug 06 09:27:31 one as broker,publisher,subscriber Aug 06 09:27:42 I know absolutely nothing about mqtt Aug 06 09:28:05 oh okay Aug 06 09:28:15 then google will help Aug 06 09:28:43 by the way thanks for ya help man Aug 06 09:28:49 2 hours ^^ Aug 06 09:35:09 mister: I believe I told you initially: apt install mosquitto mosquitto-clients Aug 06 09:40:41 yeah to connect on one bbb i already get Aug 06 09:41:03 but to send it to another bone is difficult because all of them have the same ip address Aug 06 09:47:06 mister: they should not have the same IP address on the Ethernet/LAN side Aug 06 10:40:13 generally you don't want to use ips anyway, just give them distinct hostnames and use those Aug 06 10:50:44 if i want to send sth over internet i will need the ip to send Aug 06 10:53:01 I don't know what "sth" is, but I don't see for what purpose you could possibly need to send your ip over the internet, especially since you don't even have internet access Aug 06 10:56:00 sth = something Aug 06 10:56:21 no i mean i need the adress of the object i will send sth to Aug 06 10:56:49 you can't use a hostname instead? that sounds so unlikely Aug 06 10:59:00 if ur doing it local you just say send it to localhost Aug 06 10:59:38 in other words it does support hostnames, like I said Aug 06 11:00:08 so if you just give different hostnames to your beaglebones (instead of leaving them at their default hostname of "beaglebone") you can just refer to them by name Aug 06 11:01:26 right and rely on MDNS for them to find each other Aug 06 11:01:39 or the local dns that's probably available Aug 06 11:02:36 I'm sure that's too enterprisey to just accept hostnames presented in DHCP requests without fancy AD machine auth. ;-) Aug 06 11:02:36 okay Aug 06 11:02:59 where can i change the hostnames?` Aug 06 11:03:38 sudo hostnamectl set-hostname yadayada (where yadayada is the desired hostname) Aug 06 11:03:48 or just edit /etc/hostname directly and reboot Aug 06 11:04:19 okay Aug 06 11:04:34 but first i have to update my second beaglebone bevor doing that Aug 06 11:05:30 okay what the hell is going on glibc on my laptop... it's like gethostbyname() is not at all doing what's configured in nsswitch.conf :-/ Aug 06 11:11:11 it's trying normal dns resolution before any of the configured methods, causing .local names to take 10 seconds to resolve (the timeout of the normal dns query) Aug 06 11:11:17 wtf Aug 06 11:22:24 if i want to get access to my bbb over putty but i have two bbb's in my usb and connect to 1992.168.7.2 which will it get ? Aug 06 11:22:41 192* Aug 06 11:23:30 one of them, randomly or whatever windows (or your os) thinks is "better" Aug 06 11:23:44 another reason to talk to them over ethernet Aug 06 11:24:18 yeah they later will talk over ethernet but i first have to get access over putty ? Aug 06 11:24:27 dont understand how to do that ? Aug 06 11:35:03 mister: by connecting them one at a time Aug 06 11:35:32 mister: while you are in there you could of course reconfigure the script that assigns the USB network IP addresses per board Aug 06 11:36:04 thik 192.168.9.2 192.168.10.2 192.168.11.2 (don't assign 192.168.8.2, that is in use) Aug 06 11:36:24 I think it's somewhere in /opt Aug 06 11:38:56 AFAICT you're looking for am335x_evm.sh Aug 06 11:39:11 https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L766 Aug 06 11:39:30 and seems the second network is 192.168.6.0/24 not 8.0/24 Aug 06 11:40:04 note that you MUST also change the dhcp-range accordingly a few lines above Aug 06 11:40:15 puh its complicated Aug 06 11:40:55 editig 2 lines in a file? back then we used to compile a kernel 10km in the snow, uphill, both ways AND WE LIKED IT! Aug 06 11:41:53 haha its complicated to understand those things and the technical english Aug 06 11:42:48 if you have problems understanding specific bits, just ask Aug 06 11:43:07 i dont understand those things with dhcp Aug 06 11:43:26 im just ignoring those things and working that it works Aug 06 11:43:58 the debian OS runs its own DHCP server on the USB network interfaces so that when you hook it up to a PC it magically gets configured and you can just open 192.168.7.2 in a browser Aug 06 11:44:16 yeah Aug 06 11:49:26 if i want internet connection on my second bbb i only have to add the lines in the environment file ? Aug 06 11:49:49 HTTP connectivity, yes Aug 06 11:50:04 you can't get true internet connectivity as that's disabled by your IT Aug 06 11:50:34 its working menawhile on my first Aug 06 11:52:17 JFTR: http://www.3sat.de/page/?source=/nano/glossar/internet.html Aug 06 11:54:56 what do i have after the changes in etc/environment because apt-get update isnt working Aug 06 11:55:08 a reboot Aug 06 11:55:33 thats it Aug 06 12:00:14 its still not working Aug 06 12:00:22 i think i forgot something to do Aug 06 12:00:34 i changed environment and rebooted Aug 06 12:00:51 if you expect us to help. please keep in mind that we are not clairvoyant and can thus not know what you see on your screen. Aug 06 12:01:33 [my crystal ball has been out for repair for months now and they can't get it working, something about missing fairy dust] Aug 06 12:02:21 echo $http_proxy doesnt output my http_proxy side Aug 06 12:02:28 the variable* Aug 06 12:02:39 did you forget to edit the pam file? Aug 06 12:03:21 whats that Aug 06 12:03:26 what do i have to do there Aug 06 12:03:59 dude, seriously, TAKE NOTES of what you do Aug 06 12:04:24 08:03:21< zmatt> try adding the following line somewhere near the top of the /etc/pam.d/sudo file: Aug 06 12:04:32 08:03:24< zmatt> session required pam_env.so readenv=1 Aug 06 12:04:45 what is this command doing ? Aug 06 12:04:51 * tbr now goes back to doing productive things Aug 06 12:07:04 yay, I've found the avahi problem... libnss-mdns decided to add a feature which results in a 10-second delay on any attempt to resolve a .local name. how delightful Aug 06 12:14:05 zmatt: again? I vaguely remember that I killed everything AVAHI related with fire around 8 years ago, when it was breaking things with such delays Aug 06 12:16:47 this only affects resolution of .local addresses Aug 06 12:17:26 anyway, I fixed it by patching out this delightful new feature: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892854#30 Aug 06 12:18:35 why is my http_proxy variable empty ? I editted already Aug 06 12:19:27 i found the mistake Aug 06 12:29:17 what is the commandline: 'session required pam_env..so readenv=1' in '/etc/pam.d/sudo' doing ? Aug 06 12:29:35 making sure /etc/environment is read by sudo Aug 06 12:29:46 also your line contains a typo Aug 06 12:32:35 okay Aug 06 12:34:50 why i get the output :'writing more data than expected' and im doing the same as on the bbb before ? Aug 06 12:52:58 mister: you can also try, e.g.: sudo -E command... Aug 06 12:53:18 but that passes the entire environment to sudo and can be insecure. Aug 06 12:54:06 okay Aug 06 12:54:27 how can i connect two bbb's to my pc ? Aug 06 12:54:47 they have the same ip adress and i only can connect to one of the ip addresses Aug 06 12:56:12 If they have the same ip address that makes me wonder if that address is a 169.254.x.x address Aug 06 12:56:38 where can i see the ip adress Aug 06 12:56:53 Regardless, with the same address, their connection will be lossy and probably not work in most cases Aug 06 12:57:09 Try: sudo ifconfig eth0 Aug 06 12:57:19 how can i solve that ? because the bbb have a default ip adress Aug 06 12:57:31 (you might not need the sudo) Aug 06 12:58:11 inet: ... thats my ip adress? Aug 06 12:58:16 Try: sudo ps -ef | grep connman Aug 06 12:58:18 Yes Aug 06 12:58:36 okay but why is there another one that i have connected to ? Aug 06 12:58:49 I don't think I understand that question Aug 06 12:59:36 i connected to 192.168.7.2 via ssh to the beagle bone but behind inet: 172.18.121.19 Aug 06 12:59:52 it should be the same or not ? Aug 06 13:00:18 probably not. but let's make sure you connected to the same beaglbone :) Aug 06 13:00:52 how ? Aug 06 13:00:53 you have an ssh connection right now? Aug 06 13:00:59 yeah via putty Aug 06 13:01:04 and, i guess, a usb serial console connection right now? Aug 06 13:01:16 yeah and both have a ethernet cable in Aug 06 13:02:01 http://192.168.7.2/bone101/Support/bone101/ if i run there the LED programm i know which is connected Aug 06 13:02:09 ok, perfect. Aug 06 13:02:17 so on your usb console... Aug 06 13:02:33 you can type "touch /tmp/this-is-my-console" Aug 06 13:03:08 okay Aug 06 13:03:11 done Aug 06 13:03:15 and then in the ssh session you can "ls /tmp" and see if that file shows up. Aug 06 13:03:38 wait whats the difference between usb console and ssh Aug 06 13:03:39 if it doesn't, your usb is connected to one bbb and your ssh to the other. Aug 06 13:05:12 i'm not sure what you're asking, but i think you're asking "how do i know which one is which" Aug 06 13:05:23 do i understand? Aug 06 13:05:41 i am asking which one has which ipadress Aug 06 13:05:48 but its nearly the same Aug 06 13:05:50 that's what we're trying to figure out now. :) Aug 06 13:06:01 ok good Aug 06 13:06:10 you have a usb console window and an ssh connection window, both connected? Aug 06 13:06:24 whats the usb console window ? Aug 06 13:06:29 the ssh is putty right ? Aug 06 13:06:30 ah, ok. Aug 06 13:06:45 the ssh is probably putty, although i think putty can also do serial connections (like usb) Aug 06 13:06:51 or is usb the psftp ? Aug 06 13:08:12 ah. no. i think i'm incorrect. Aug 06 13:08:55 if i put the 192.168.7.2 into chrom and run the program my second bone is flashing Aug 06 13:09:07 but the first must have another ipadre Aug 06 13:09:55 possibly. i have a few questions, and while we work through them i'd like to request that you take no action involving cables :) Aug 06 13:10:15 do both bbb have usb cables connected to the same computer? Aug 06 13:10:20 yes Aug 06 13:10:48 have you been able to flash the led on both bbb, or just the one? Aug 06 13:10:49 i have pluged in earpods but that doesnt matter, right ? Aug 06 13:11:04 just one Aug 06 13:11:13 i think the earpods are probably ok Aug 06 13:11:18 ok. Aug 06 13:11:25 I marked them and num2 is flashing Aug 06 13:11:26 and you're connected to that one now? Aug 06 13:11:31 yes Aug 06 13:11:43 try ifconfig -a | grep 192.168 Aug 06 13:11:53 on your ssh connection Aug 06 13:12:21 there are 2 rows Aug 06 13:12:41 ok. is one of them the address you ssh'd to? Aug 06 13:12:52 yes the 192.168.7.2 Aug 06 13:13:50 ok, and what happens if you type ifconfig eth0|grep inet Aug 06 13:14:22 another ipadress is behind inet Aug 06 13:14:36 other netmask, broadcast Aug 06 13:14:49 and a new line with inet6 .... Aug 06 13:14:55 ok. does that ip address look like one that belongs to your local network? Aug 06 13:15:05 or is it 169.254.x.x? Aug 06 13:15:08 i dont know Aug 06 13:15:22 should it be one of the nameserver ? Aug 06 13:15:23 ok. Aug 06 13:15:28 no not 169.... Aug 06 13:15:28 not necessarily. Aug 06 13:15:50 one is in numbers and one in hex Aug 06 13:16:00 on this ssh session, can you ping your own company web server? Aug 06 13:16:21 where can i get the webserver ? Aug 06 13:16:21 (you might not be able to, and that might be ok, but if you can, it tells us something useful) Aug 06 13:17:08 it's probably www.companyname.something Aug 06 13:17:30 you mean the website of the intranet ? Aug 06 13:17:45 that would be an interesting test, yes. Aug 06 13:18:05 that works Aug 06 13:18:19 ok. and if you ping www.google.com what happens? Aug 06 13:18:59 nothing happens i think because i had to set the proxy Aug 06 13:19:12 ok. and if you type env | grep -i PROXY Aug 06 13:19:50 do you have, e.g., both an HTTP_PROXY and an http_proxy as well as an HTTPS_PROXY and an https_proxy Aug 06 13:19:51 then there are the two variables i have set in etc/environment to get the inet connection Aug 06 13:20:15 are those proxy server addresses in /etc/environment Aug 06 13:20:21 yes Aug 06 13:20:24 ok. Aug 06 13:20:28 server:port Aug 06 13:21:01 what happens if you type: which traceroute Aug 06 13:21:20 nothing Aug 06 13:21:39 it doesn't say, eg.: /usr/sbin/traceroute? Aug 06 13:21:44 bo Aug 06 13:21:50 no Aug 06 13:22:03 how about this: ls /usr/sbin/traceroute Aug 06 13:22:50 there is no traceroute Aug 06 13:22:55 no file or directory Aug 06 13:23:25 traceroute was obsoleted years ago, the replacement is tracepath (at least in all debian based distros) Aug 06 13:24:15 tracepath isnt avaible in that path Aug 06 13:24:27 * kona was also obsoleted years ago, but there's no replacement :) Aug 06 13:24:55 ogra: is it installed by default? Aug 06 13:26:59 it is in ubuntu (minimal), not sure about debian Aug 06 13:28:23 i've got the full kali and it's not there, but kali does what kali wants. Aug 06 13:29:00 why is it so complicated to get the ipadr Aug 06 13:29:44 mister: try: route Aug 06 13:30:32 the line that has "default" under Destination should have something (either numbers or a partial hostname) under Gateway. Aug 06 13:30:46 i don't need to know the number or name, but you should see if you can ping it like we did on friday. Aug 06 13:31:11 you mean destination with 0.0.0.0 ? Aug 06 13:31:34 yes, destination 0.0.0.0 or "default" Aug 06 13:31:54 i can ping it Aug 06 13:32:03 ok. Aug 06 13:32:14 so try: sudo -E apt-get update Aug 06 13:32:41 what will that do ? Aug 06 13:32:53 it will try to get updated package information. Aug 06 13:33:06 what mean ign:1 Aug 06 13:33:09 ignore ? Aug 06 13:33:57 it probably means that the first mirror timed out. that's no big deal but if you start getting a lot of them and stay at 0% it means your network is configured but your gateway isn't allowing you pass traffic to the internet. Aug 06 13:34:22 its done now and has 4 hits and 1 ign Aug 06 13:35:24 ok. Aug 06 13:35:40 if you try: getent hosts www.google.com what comes back Aug 06 13:36:11 nothing as i said its because i had to set the proxy Aug 06 13:36:43 i wouldn't normally expect a proxy to be necessary for DNS. Aug 06 13:37:11 but how about: getent hosts google.com Aug 06 13:37:17 i had to do this to get the internet connection Aug 06 13:37:42 also nothing Aug 06 13:39:10 ok, if you take your intranet web site and extract, e.g., intranet.foobar.com from http://intranet.foobar.com/homepage.bla?foo=bar Aug 06 13:39:25 and try, e.g., getent hosts intranet.foobar.com Aug 06 13:39:27 what happens? Aug 06 13:39:29 what do you mean with extract Aug 06 13:39:45 i mean you wouldn't use getent hosts http://...../ Aug 06 13:39:53 you'd just use intranet.foobar.com Aug 06 13:40:10 getent hosts http://intranet.ifm.com Aug 06 13:40:23 without the http:// Aug 06 13:40:53 outputs a ipadre Aug 06 13:40:59 ok. so. Aug 06 13:41:13 here's what i think that we've established for this one bbb. Aug 06 13:42:16 1) you have an ip address. 2) you have default route 3) you have name servers 4) your gateway isn't passing traffic to the internet 5) your dns servers are not forwarding requests to the internet. Aug 06 13:42:22 this BBB is fully set up. Aug 06 13:42:42 what is the default route ? Aug 06 13:42:44 but your company is blocking internet traffic and refusing to answer name queries about the wider intnet. Aug 06 13:42:52 internet* Aug 06 13:43:17 curl works on websited Aug 06 13:43:21 websites * Aug 06 13:43:22 ok. Aug 06 13:43:39 is that enough? Aug 06 13:43:44 what ? Aug 06 13:43:53 what more is there to solve? Aug 06 13:44:14 maybe you could try "apt upgrade" and see if there are updates and if that will update your bbb Aug 06 13:44:23 sudo -E apt upgrade Aug 06 13:44:29 and what will that give me ? Aug 06 13:44:36 i need adress of each bbb Aug 06 13:44:50 that is like asking windows Aug 06 13:44:52 to update Aug 06 13:45:20 ok. so ifconfig eth0 will give you the address of bbb num2. Aug 06 13:45:49 num2 i already have throug the default ipadr in browser Aug 06 13:46:25 that's the network-over-usb address. it won't work once we unplug it and replug num1 so we can configure num1 Aug 06 13:46:38 so you need to ifconfig eth0 Aug 06 13:46:51 okya Aug 06 13:47:01 okay* Aug 06 13:47:08 and see what that address is. and you should be aware that it will probably change when the bone loses power. Aug 06 13:47:19 After this operation, 198 kB of additional disk space will be used. Do you want to continue? [Y/n] Aug 06 13:47:28 why do i get this request Aug 06 13:47:28 sounds great. tell it Y Aug 06 13:47:57 it wants to know if you want to use 198kB of your internal storage to upgrade the bbb Aug 06 13:48:03 (it's asking "are you sure?") Aug 06 13:48:11 okay Aug 06 13:48:18 if you tell it no, it will abort. Aug 06 13:48:41 the mqtt on one bbb is already working but i want to communicate between two bbb's Aug 06 13:49:06 by the way Aug 06 13:50:07 ok. well, before we can really get that going we should see if avahi is doing your mdns correctly. Aug 06 13:50:18 whats avahi ? Aug 06 13:50:38 after yes its working and some lines are ERR:16 .. Aug 06 13:50:54 mister: is that from apt upgrade? Aug 06 13:50:58 yes Aug 06 13:51:25 it lasts so long Aug 06 13:51:32 33% Aug 06 13:51:48 it can take a while. Aug 06 13:52:07 why do i get the errors ? Aug 06 13:52:46 so, avahi is a daemon that does mDNS, which allows your bbb's to broadcast their existence to each other and to your computer. that description is over-simplified and possibly incorrect. Aug 06 13:53:55 after 40% its ready and failed to fetch a lot of things Aug 06 13:54:01 mister: what are the errors? Aug 06 13:54:21 maybe put a few in pastebin.com? Aug 06 13:54:55 https://pastebin.com/HxagiByn Aug 06 13:56:57 they mean that the package manager is detecting updates that are corrupt and refuses to apply them. Aug 06 13:57:10 that means ? Aug 06 13:57:15 i don't know why that is happening and probably shouldn't speculate. Aug 06 13:57:30 i dont understand on the other bbb i didnt get that errors Aug 06 13:57:53 ok. well, you possibly don't even want to update anyway, so go ahead and ctrl-c Aug 06 13:58:02 okay Aug 06 13:58:18 ok. try: ps -ef | grep avahi-daemon Aug 06 13:58:42 worked Aug 06 14:00:11 ok. Aug 06 14:00:23 you should probably pick a host name for this beaglebone. Aug 06 14:00:28 it can be as simple as bbb2 Aug 06 14:00:36 yeah lets do like this Aug 06 14:00:42 ok. Aug 06 14:00:44 set hostname bbb2 ? Aug 06 14:01:22 i think you have to edit (maybe with nano) /etc/hostname Aug 06 14:01:25 and change it there. Aug 06 14:02:09 and then, at a minimum, you can try: service avahi-daemon restart Aug 06 14:02:30 done Aug 06 14:03:08 ok. now you should be able to ping bbb2.local Aug 06 14:03:27 and you *might* even be able to that from your computer. Aug 06 14:03:33 but try it from ssh first. Aug 06 14:03:33 name or service not known Aug 06 14:03:38 ok. hmm. Aug 06 14:03:39 reboot ? Aug 06 14:03:46 first... Aug 06 14:03:53 grep 'beaglebone.local' /etc/hosts Aug 06 14:04:17 grep 'beaglebone.local' /etc/hosts Aug 06 14:04:32 i get a response Aug 06 14:04:48 127.0.1.1 beaglebone.localdomain beaglebone Aug 06 14:05:02 you should nano that, too, and change it to bbb2.local Aug 06 14:05:22 and then i guess you can try rebooting. Aug 06 14:05:46 beaglebone.localdomain to bbb2.local ? Aug 06 14:05:55 no. Aug 06 14:06:16 just change beaglebone to bbb2 Aug 06 14:06:28 and if it says localdomain, leave it localdomain :) Aug 06 14:07:27 there are two beaglebone Aug 06 14:07:36 in the /etc/hosts file? Aug 06 14:07:52 there is a swap file now how do i delete it Aug 06 14:08:03 got it Aug 06 14:08:04 oh, are you using vi? Aug 06 14:08:06 ok. Aug 06 14:08:17 127.0.0.1 beaglebone Aug 06 14:08:27 using vim? Aug 06 14:08:30 127.0.1.1 beaglebone.localdomain beaglebone Aug 06 14:08:34 yes Aug 06 14:08:43 which should i change ? Aug 06 14:08:59 you can change them all, e.g. :%s/beaglebone/bbb2/g Aug 06 14:09:39 done Aug 06 14:10:00 ok. Aug 06 14:10:16 instead of rebooting, try again: service avahi-daemon restart Aug 06 14:10:45 Failed to restart avahi-daemon.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files See system logs and 'systemctl status avahi-daemon.service' for details. Aug 06 14:11:21 did you do with sudo? Aug 06 14:12:01 with sudo nothing happened Aug 06 14:12:23 ok, so it just came back to the prompt? Aug 06 14:12:39 yes Aug 06 14:12:41 cool. Aug 06 14:12:49 before rebooting try: ping bbb2.local Aug 06 14:12:56 ping bbb2.local Aug 06 14:13:07 i am every time tipping here :D Aug 06 14:13:16 tipping? Aug 06 14:13:20 doesnt work Aug 06 14:13:27 name or service not know Aug 06 14:13:29 typing * Aug 06 14:13:33 :( ok. Aug 06 14:13:39 reboot ß´ Aug 06 14:13:40 ? Aug 06 14:13:45 sure, let's try it. Aug 06 14:14:10 i think this time it will conect to the num1 Aug 06 14:14:12 i am sure Aug 06 14:14:21 because it is on power all the time Aug 06 14:14:53 maybe, i'm not sure they know how to reach other. depends on how you have configured mq Aug 06 14:15:39 it took num2 Aug 06 14:15:43 to flash the lights Aug 06 14:15:57 ping bbb2.local works Aug 06 14:16:27 ok. good. Aug 06 14:16:33 now you might be able to ping beaglebone.local Aug 06 14:16:40 or even to ssh to it. Aug 06 14:16:59 ping yes Aug 06 14:17:08 and that would presumably be num1 Aug 06 14:17:19 where do i ssh to it ? with putty instead of ipadr ? Aug 06 14:17:32 in your already open ssh window, you could try Aug 06 14:17:39 ssh beaglebone.local Aug 06 14:18:04 debian@bbb2:~$ ssh beaglebone.local The authenticity of host 'beaglebone.local (172.18.121.78)' can't be established. ECDSA key fingerprint is SHA256:DTtZIMbG8dGiQDIkir0EwBkd6cE85YRlpJ7guA/u5aA. Are you sure you want to continue connecting (yes/no)? Aug 06 14:18:42 or in your browser you could try to nav to http://beaglebone.local/bone101/Support/bone101/ Aug 06 14:18:53 mister: you can say yes Aug 06 14:19:03 and that will give you a shell session on num1 Aug 06 14:19:28 i'm curious if your browser can see it at beaglebone.local Aug 06 14:19:33 on your computer, i mean. Aug 06 14:19:43 and if you can flash the led. Aug 06 14:19:56 i cant get to the website because of security of it Aug 06 14:20:19 default username:password is [debian:temppwd] debian@beaglebone.local's password: Permission denied, please try again. debian@beaglebone.local's password: Permission denied, please try again. debian@beaglebone.local's password: Permission denied (publickey,password). debian@bbb2:~$ Aug 06 14:20:29 password denied Aug 06 14:20:32 that makes no sense Aug 06 14:21:10 ok. Aug 06 14:21:43 why does it not take the password Aug 06 14:21:52 when you ssh to num2 did you use the username "debian" Aug 06 14:22:04 yes Aug 06 14:22:12 ok. Aug 06 14:22:27 did you maybe change the password on num1 when you originally set it up? Aug 06 14:22:32 no Aug 06 14:22:36 it worked all day Aug 06 14:22:39 hmm. Aug 06 14:22:56 ok. let's come back to this. Aug 06 14:23:06 permission denied it says and not wrong password :) Aug 06 14:23:13 yes. Aug 06 14:23:36 although i don't think ssh will tell you what's wrong. just that it isn't granting permission. Aug 06 14:23:56 so, you can use 192.168.7.2 and flash the led. Aug 06 14:24:06 for num1? Aug 06 14:24:09 for num2 Aug 06 14:24:12 right? Aug 06 14:24:27 yeah for this ipadr num2 is flashing Aug 06 14:24:43 ok. if you stop that, it stops flashing, right? Aug 06 14:25:03 i take the flashprogram from getting-started Aug 06 14:25:28 yes. i just want it to stop flashing now. Aug 06 14:25:37 how Aug 06 14:26:03 probably click "stop" in the toolbar.... Aug 06 14:26:21 which toolnar Aug 06 14:26:37 do you mean disconnect ? Aug 06 14:26:59 http://beagleboard.org/support/bone101 Aug 06 14:27:07 there's a "stop" button shown at "step G" Aug 06 14:27:49 i dont use it from a file only from the website Aug 06 14:28:15 http://192.168.7.2/bone101/Support/bone101 Aug 06 14:28:19 right. Aug 06 14:28:23 bonescript interactive guide Aug 06 14:28:30 ok, well, if you click "disconnect" does it stop blinking? Aug 06 14:28:51 no Aug 06 14:29:25 I have to go home now can we continue doing that tomorrow ? Aug 06 14:29:36 ok. try connecting to http://bb2.local/support/bone101 Aug 06 14:29:59 sure. Aug 06 14:30:03 have a good evening :) Aug 06 14:30:14 you mean bbb2.local/support/bone101 Aug 06 14:30:25 yes, precisely. Aug 06 14:30:36 http://bbb2.local/support/bone101 Aug 06 14:30:48 host not found Aug 06 14:31:00 ok. Aug 06 14:31:07 lets go on tommorow Aug 06 14:31:11 thanks for ur help Aug 06 14:31:14 agreed. yw :) Aug 06 14:31:20 we will see us tomorrow Aug 06 15:05:21 kona: heh, so he found someone else to ask the same question to and not learning anything… Aug 06 15:09:51 tbr: happens. Aug 06 15:10:32 when he asked me the same thing again for the 3rd time, I lost it. Aug 06 15:10:41 Ya. Aug 06 15:11:47 He's probably not going to ever be able to update unless he can get to the point where he can formulate a good question for his it dept Aug 06 15:13:54 IT ignoring people with proxy problems (most of the time) doesn't help either Aug 06 15:14:09 Yep. Aug 06 15:15:48 I'm torn, because if he's just a bit of an over-zealous noob who has bit off more than he can chew, I want to help. If he's another useless PhD running a research department with no clue how he got there other than to make other people do the work while he takes credit for it, I rather don't want to be part of that. Aug 06 15:16:10 Hello Aug 06 15:27:43 n_bbbw didn't even wait long enough to make a cup of coffee. Aug 06 15:27:49 lmao Aug 06 15:35:04 as usual :/ Aug 06 15:35:54 yeah, I'm getting a "I don't care to learn anything, just tell me how to get *everything* set up for my demo/task" vibe from him. :-/ Aug 06 15:38:35 yep. Aug 06 15:44:02 and at this point he's got both bones minimally configured. not sure how much i can help anyway, because we're rapidly approaching the parts that are going to be unique to the demo or whatever. Aug 06 16:53:45 kona: N_BBBW [6dbe8481@gateway/web/freenode/ip.109.190.132.129] has joined #beagle <= wait 5mins to see if they have any patience before responding - its a quick triage :D (ping timeout is ~240s) Aug 06 17:02:55 veremitz: lol i guess? Aug 06 17:15:19 :) Aug 06 17:29:39 * kona upgraded my ancient a3 to the latest debian iot image and the cloud9 blink demo doesn't seem to do much other than peg the cpu usr led full on. Aug 06 17:30:13 a3 ? Aug 06 17:30:16 changing the trigger mode to "timer" causes it to blink Aug 06 17:30:20 beaglebone rev a3 Aug 06 17:30:33 oh, as in beaglebone white ? Aug 06 17:31:25 the blink example doesn't work the same way as setting the trigger to "timer" though... the former is purely userspace control while the latter lets the kernel blink the led. Aug 06 17:31:32 no idea why the example wouldn't work though Aug 06 17:31:32 yes. also, i was careful to pick the one named bone-debian-9.4-iot-armhf-2018-06-17-4gb.img Aug 06 17:32:40 i had hoped that would be the case, and indeed, the timer trig does. it was previously set to "none" Aug 06 17:33:09 "none" is for manual control yes Aug 06 17:33:33 so that would be expected after running a blink test Aug 06 17:33:46 or any other code that fiddles directly with the led Aug 06 17:35:39 trying to figure out if i missed any steps, looks like no :( Aug 06 17:36:22 does this example work? http://beagleboard.org/Support/BoneScript/demo_blinkled/ Aug 06 17:36:47 (note that it only blinks the led for 3 seconds and then stops) Aug 06 17:41:18 yes, that seems to work. Aug 06 17:42:34 (I do hope the bonescript websocket server does an origin-check to make sure it only accepts connections from sites served by either beagleboard.org or the beaglebone itself...) Aug 06 17:47:26 zmatt: would you expect this demo_blinkled to work in cloud9? Aug 06 17:47:39 I know nothing about cloud9 Aug 06 17:47:58 or, well, I used it once many many years ago Aug 06 17:48:05 ah. what are the cool kids using these days? Aug 06 17:48:39 whatever language you want and whatever editor you like? Aug 06 17:48:54 but still, I think the example should work as-is in cloud9? Aug 06 17:49:00 i used to use the adafruit ide, might try that. i'd prefer a bare metal library with C bindings, but eh. Aug 06 17:49:18 I mostly use C++ myself Aug 06 17:51:04 I mean, toggling a led or a gpio via the sysfs interface just consists of doing a write() call to a file descriptor, you can literally use any language for that Aug 06 17:51:32 i thought that, too, but it gives a lot of exclam-triangles (warnings? errors? i have no idea) and the context mouse-over for, e.g., line 6 "toggleLED is not defined, please add global toggleLED" Aug 06 17:51:49 so, i added those and now it seems to execute forever Aug 06 17:52:01 (but it also doesn't blink anything) Aug 06 17:59:02 it's a bit dumb they forgot to put "var" in front of those two... or in modern javascript I'd write more something like https://pastebin.com/GpvqVy9U Aug 06 17:59:25 lol, pastebin doesn't highlight 'let' as keyword? *fail* Aug 06 18:00:37 if it doesn't work then no idea, I use neither bonescript nor cloud9 myself, and only write javascript when forced to Aug 06 18:00:51 it should work Aug 06 18:05:21 not sure. that made all the warnings go away, but it almost seems as though the code never really gets running. the debugger doesn't seem to stop on breakpoints, etc. Aug 06 18:06:02 i figure i'll try the adafruit webide, since its what i'm used to, but i thought i'd give cloud9 a spin to see what it was like :) Aug 06 22:25:04 Hi I need help to configure P8-3 as a GPIO. I changed it in the device tree but its not working and always high. Any advice? Aug 06 22:26:22 I set it to 0x018 0x07 Aug 06 23:18:52 Karzan: gpio is the default mode for all pins that are not already occupied for specific functions Aug 06 23:19:13 P8.03 is normally used for eMMC, so if you want to use it for gpio you'll need to disable eMMC and boot from SD card instead Aug 06 23:25:03 I need total of 40 GPIO's from the beaglebone. So can I disable P8-28 and use it as a GPIO without the need for an SD card? Aug 06 23:26:36 I think it shouldn't be too hard to get 40 gpios if you disable hdmi Aug 06 23:27:05 Thank you Zmatt. But how will I disable the hdmi? Aug 06 23:27:46 assuming you're using a recent image, just uncomment the disable_uboot_overlay_video=1 line in /boot/uEnv.txt Aug 06 23:27:50 Is it through uEnv.txt Aug 06 23:28:10 Ok one second please Aug 06 23:29:48 do be slightly careful when using P8.31-P8.46 as gpios. these pins are sampled by the processor during power-up to determine hardware/boot configuration. the beaglebone has on-board 100Kohm pull-up and pull-down resistors on these pins to ensure they have the correct level during power-up, but if you attach external hardware to them you can easily influence them by accident and cause boot failure Aug 06 23:30:22 so you need to ensure they have the correct level during power-up. whether that's easy or not depends a bit on what you're doing with the gpios exactly Aug 06 23:31:51 for reference, if you go to the P8 tab of my pins spreadsheet: https://goo.gl/Jkcg0w the important bootconfig pins are the ones I highlighted in eye-stabbing yellow, and the correct level they should have during power-up is indicated by the L (low) or H (high) next to it Aug 06 23:32:11 (the pins occupied by eMMC are marked in eye-stabbing purple) Aug 06 23:32:56 Zmatt Aug 06 23:33:00 That worked Aug 06 23:33:17 I was able to set those LCD pins to GPIO Aug 06 23:33:59 My next problem is p8-7 to p8-12 all have GPIO set to high. What can I do to fix them? Aug 06 23:35:28 not sure what you mean. all gpios are inputs by default, which very weak (100 KΩ ±50%) internal pull-up or pull-down enabled (the default direction varies per pin, but is indicated by the H or L next to the pin number on the P9 and P8 tabs of my spreadsheet I linked to above) Aug 06 23:36:07 I see that on your sheet but I played with the device tree Aug 06 23:36:16 Let me try something Aug 06 23:36:27 note that on currrent images you normally don't *have* to meddle with device tree overlays Aug 06 23:36:37 Let me try to put the device tree to what it was on in the beiging Aug 06 23:36:45 if you don't manually configure any overlays, you can instead configure pins at runtime using the config-pin command Aug 06 23:37:21 Can I do that with Python Adafruit too? Aug 06 23:37:58 I have no idea what you mean by that... what does a python library have to do with overlays? Aug 06 23:38:01 Linux beaglebone 4.4.9-ti-r25 #1 SMP Thu May 5 23:08:13 UTC 2016 armv7l GNU/Linux Aug 06 23:38:09 holy shit that's an ancient kernel Aug 06 23:38:49 I ordered the device online from Digi-Key and that is what I got out of the box Aug 06 23:38:56 What is the most recent one? Aug 06 23:38:57 huh, but your uEnv.txt had a disable_uboot_overlay_video=1 line? that's odd, those are much more recent Aug 06 23:39:12 https://beagleboard.org/latest-images Aug 06 23:39:48 I didn't have disable_uboot_overlay_video=1 in uEnv.txt I just added it Aug 06 23:39:55 and it worked? o.O Aug 06 23:40:12 Yes it did Aug 06 23:40:19 that is really weird Aug 06 23:40:27 It disabled the LCD and I could configure the GPIO Aug 06 23:40:37 really really weird Aug 06 23:40:48 I would have had zero expectation for that to work Aug 06 23:40:58 on an image that old Aug 06 23:41:05 I can give you access to it if you don't believe me Aug 06 23:42:10 it's just... weird. normally if you'd have an image with a bootloader that's new enough to understand that directive, it would also be present in /boot/uEnv.txt (but commented out by default) Aug 06 23:42:44 Ok I might ask you another stupid question but please forgive me its been a while since I touched beaglebone. I want to use a kernal that boots without an sd card can I do that? Aug 06 23:43:29 you can turn the images on that page into eMMC-flashers by uncommenting one line in /boot/uEnv.txt (I think it's the last line, you'll know it when you see it) Aug 06 23:43:52 if you boot from the sd card after you do so, it'll reflash your eMMC with the new image Aug 06 23:44:31 (once you've done so, you may want to erase the sd card to avoid accidently sticking it into a beaglebone and end up unintentionally reflashing it again) Aug 06 23:44:48 Debian 7.5 (BeagleBone Black - 2GB eMMC) 2014-05-14 - more info - md5: 74615fb680af8f252c034d3807c9b4ae this will work? Aug 06 23:44:57 noooooo that's prehistoric! Aug 06 23:45:03 grab the first image on the page Aug 06 23:45:13 Debian 9.4 2018-06-17 4GB SD IoT Aug 06 23:45:38 Ok I did Aug 06 23:47:03 https://beagleboard.org/getting-started#update you can find instructions here Aug 06 23:47:21 Ok so you saying I need to burn the image on an SD card than I boot, after that I uncomment the last line in uEnv.txt Aug 06 23:47:42 Thanks Aug 06 23:47:47 Let me try it Aug 06 23:47:48 yeah it's a line containig something with "eMMC-flasher" **** ENDING LOGGING AT Tue Aug 07 03:00:00 2018