**** BEGIN LOGGING AT Sat Feb 25 03:00:01 2017 **** BEGIN LOGGING AT Sat Feb 25 05:10:27 2017 Feb 25 11:09:30 help Feb 25 11:09:58 getting error after apt-get upgrade Feb 25 11:10:21 bad session name: devel.some_random_number Feb 25 11:10:29 how can I solve it. Feb 25 11:10:41 Thanks in advance for help Feb 25 11:12:37 help Feb 25 11:12:43 urgent Feb 25 11:16:15 huh? Feb 25 11:16:41 what are you doing? what image are you running? Feb 25 13:14:41 <_ssl> I noticed that the root user doesn't have a password assigned in the rcn debian image Feb 25 13:14:56 <_ssl> ist there a way to disable it? Feb 25 13:34:08 hey Feb 25 13:34:17 anyone have a "beaglebone enhanced" that I can buy off them? Feb 25 13:34:38 from sancloud Feb 25 13:59:23 hadn't heard of it even Feb 25 19:02:57 <_ssl> someone able to help me with jessie -> stretch upgrade/install? Feb 25 20:42:15 <_ssl> is it possible somehow to "save" the current debian installation in the onboard disk to the sd-card to be able to revert to the current "snapshot" of the system with the flasher in case I mess up something? Feb 25 21:13:56 <_ssl> something with "dd" I guess? Feb 25 21:58:20 <_ssl> anyone? Feb 25 21:59:59 yes dd can help you with that Feb 25 22:14:21 I know some people have also used rsync for that kind of thing, I like rsync but it seems messy for something like this Feb 25 22:14:21 dd, the most abused tool in the unix world Feb 25 22:28:40 <_ssl> jtrip KotH so how would I do it then? Feb 25 22:29:22 you need to read about it and understand, it is too dangerous to be copy-pasting. Feb 25 22:29:29 <_ssl> would I have to boot from sd card or can I try to copy the running system? Feb 25 22:30:17 I believe you will have to boot from another device to accomplish what you want Feb 25 22:30:18 <_ssl> ok, I want to learn about it. what are some keywords I could google? Feb 25 22:30:43 "man dd" Feb 25 22:30:45 <_ssl> ie. how is the image created in the first place? Feb 25 22:31:31 or "backup images with dd" ... I believe there is an informative page on the ArchWiki Feb 25 22:32:31 <_ssl> ok thank you Feb 25 23:07:01 i've been trying to find a comparison on boot up time of openbsd vs linux ... does someone have a link? google tells me just to install linux and be done with it ;) Feb 25 23:26:55 zmatt: would you happen to have a good resource that i can use to learn about the different types of threaded (direct, indirect, subroutine, token, and whatever else there might be) code? Feb 25 23:27:01 the wikipedia article is a bit...unclear Feb 25 23:27:10 and it's super hard to search for online Feb 25 23:36:03 fouric: yeah hold on Feb 25 23:36:10 if I can find it again... Feb 25 23:37:27 http://www.bradrodriguez.com/papers/moving1.htm Feb 25 23:40:21 http://www.bradrodriguez.com/papers/index.html is what I should have linked to :) it contains links to the various parts of his Moving Forth articles Feb 25 23:43:30 the major difference between direct/indirect threaded forths vs subroutine threaded forths is that in the former the forth code isn't native executable code, it's an array of pointers Feb 25 23:43:45 while subroutine threaded code is simply native code like any other compiler would produce Feb 26 00:19:03 ah, thanks! Feb 26 00:19:21 * fouric was getting his bbb set up to try network boot Feb 26 00:20:08 for the dnsmasq.conf configuration, is this config assuming that the bbb is directly connected to the dev machine using ethernet, or just *somewhere* on the network? Feb 26 00:36:36 zmatt: dnsmasq won't start Feb 26 00:36:38 "failed to bind DHCP server socket: Address already in use" Feb 26 00:36:41 -_- Feb 26 00:36:53 you said that your config file was providing both tftp and bootp, right? Feb 26 00:37:09 the tftp port is free, but the bootp port is being used by dhclient Feb 26 00:37:21 killing it also kills my internet, and it just restarts itself Feb 26 00:37:40 how can i segregate the tftp and bootp functions? do i need both of them? Feb 26 00:39:26 (the only guide i can find online for just doing tftp uses u-boot, which requires user interaction with a keyboard on boot?) Feb 26 01:32:06 fouric: uhh what, dhclient occupies the dhcp *server* port ?> Feb 26 01:32:15 that's not normal Feb 26 01:32:24 you need both of them Feb 26 01:33:08 using u-boot you could avoid it by manually configuring an ip I guess, but this is not exactly convenient, and it requires u-boot Feb 26 01:33:33 right Feb 26 01:33:37 which is what i'm trying to avoid Feb 26 01:33:51 zmatt: what is your setup for the dnsmasq.conf file that you provided? Feb 26 01:34:35 i'm using network-manager Feb 26 01:34:38 which is apparently bad Feb 26 01:35:01 but nobody on my irc networks are telling me *how* it's bad, or what i can replace it with Feb 26 01:35:31 i assume that you're using something else, which is why you're not getting a port bind conflict when you run dnsmasq? Feb 26 01:35:53 I'm not getting a conflict because I'm not running any other dhcp/bootp server on my machine Feb 26 01:37:12 bootp/dhcp server and bootp/dhcp client use different ports Feb 26 01:38:48 => i can run a dhcp server and client on the same machine, right? Feb 26 01:38:57 yes Feb 26 01:39:01 ...but i *shouldn't* be running a dhcp server... Feb 26 01:39:03 udp 0 0 0.0.0.0:67 0.0.0.0:* 7598/dnsmasq Feb 26 01:39:05 udp 0 0 0.0.0.0:68 0.0.0.0:* 31853/dhclient Feb 26 01:39:29 wp says 67 is bootp server and 68 is bootp client Feb 26 01:39:34 that looks correct Feb 26 01:39:46 ...and *also* used by dhcp? Feb 26 01:39:48 that sounds weird Feb 26 01:39:55 dhcp is bootp Feb 26 01:40:01 with specific parameters Feb 26 01:40:07 wat Feb 26 01:40:31 dhcp is an extended version of bootp Feb 26 01:40:44 so the thing that gives out ip addresses Feb 26 01:40:55 is an extension of a thing that allows you to boot over a network Feb 26 01:41:04 it hands out an ip address Feb 26 01:41:35 bootp/dhcp hands out other info also Feb 26 01:42:01 in this particular case it also hands out a tftp server address to use and a boot file to load from there Feb 26 01:42:11 note that it also needs an ip address for that purpose :) Feb 26 01:42:58 ah Feb 26 01:43:04 my dnsmasq config makes sure to *only* reply to a specific beaglebone Feb 26 01:43:51 the dhcp server on your network will reply too, but bootrom will ignore that since your dhcp server won't offer any tftp server + boot file Feb 26 01:44:07 ...is that what the dhcp-host parameter is for? Feb 26 01:44:12 yes Feb 26 01:44:37 ...so the parameter with "host" in the name specifies the *client* that will be receiving an address or being responded to? Feb 26 01:45:28 yes, being the beaglebone Feb 26 01:45:47 you need to fill in its mac address there, and the IP address you want to give it (and the hostname though I'm not sure that matters) Feb 26 01:45:53 i did both of those Feb 26 01:46:16 filled in the tftp root Feb 26 01:46:18 and the image name Feb 26 01:46:38 so the config file itself should be good to go, i just need to get my system to allow me to use it Feb 26 01:47:06 but, that line you pasted: 02:39 < fouric> udp 0 0 0.0.0.0:67 0.0.0.0:* 7598/dnsmasq Feb 26 01:47:32 apparently, there's a different instance of dnsmasq running on my machine somehow Feb 26 01:47:55 ...but if i kill it, it restarts itself Feb 26 01:48:10 i suspect that network-manager is behind this Feb 26 01:48:17 ...and that's why i asked what your setup was Feb 26 01:48:35 ...because i need something else that i can use to connect to the internet aside from network-manager Feb 26 01:48:54 ...so i can get rid of it and run my own instance of dnsmasq Feb 26 01:48:56 why are you running dnsmasq? Feb 26 01:48:57 heh Feb 26 01:49:03 how are you connected to the internet? Feb 26 01:49:24 wireless network, configuration through nm-applet (which is a graphical frontend to network-manager) Feb 26 01:49:40 my bbb is directly connected to my dev machine using an ethernet cable Feb 26 01:49:41 that normally shouldn't start dnsmasq Feb 26 01:50:08 ohh, what package did you install, dnsmasq or dnsmasq-base ? Feb 26 01:50:08 ...oh Feb 26 01:50:13 wait... Feb 26 01:50:23 (i didn't install either of those, at least not explicitly) Feb 26 01:50:32 ok! Feb 26 01:50:35 got a different error this time Feb 26 01:50:43 systemctl stop dnsmasq ? Feb 26 01:50:44 dnsmasq: TFTP directory /srv/tftp inaccessible: No such file or directory Feb 26 01:50:51 zmatt: so here's the thing Feb 26 01:51:01 i was using network-manager to provide a bridge connection from my bbb to the internet Feb 26 01:51:08 that uses dnsmasq :) Feb 26 01:51:10 ...that was apparently starting a different instance of dnsmasq Feb 26 01:51:12 yup Feb 26 01:51:16 i killed it, and got it to work Feb 26 01:51:18 you can configure dnsmasq to provide both services Feb 26 01:51:31 it would avoid the need to hardcode addresses even Feb 26 01:51:49 ooh, that sounds useful! Feb 26 01:52:03 i tried looking for another dnsmasq.conf file in my hard drive a few minutes ago Feb 26 01:52:05 couldn't find one Feb 26 01:52:10 is it named something else? Feb 26 01:52:30 it might be dynamically generated or something Feb 26 01:52:34 by nm Feb 26 01:52:49 .-. Feb 26 01:52:54 i really should get rid of it, then Feb 26 01:53:05 wait actually Feb 26 01:53:10 a bridge connection doesn't use dnsmasq Feb 26 01:53:25 internet sharing does, or whatever nm might call it Feb 26 01:53:30 hm...do you know why tftp is trying to access /sr/tftp instead of the directory that i gave it with tftp-root? Feb 26 01:53:43 it was internet sharing, then Feb 26 01:53:57 a bridge connection sounds like a well-defined thing that i don't know the meaning of Feb 26 01:54:16 a bridge ties LANs together Feb 26 01:54:23 ah Feb 26 01:54:28 yup, definitely internet sharing Feb 26 01:54:30 so your bbb's dhcp request goes to the dhcp server on your wireless Feb 26 01:54:40 other wireless clients can ping your bbb Feb 26 01:54:41 that's bridging Feb 26 01:54:59 and no at tftp-root Feb 26 01:56:18 making an "internet sharing" dnsmasq config also usable for netbooting a bbb requires just the tftp options, the dhcp-vendorclass line, and the dhcp-boot line Feb 26 01:56:42 and the --bootp-dynamic flag to make dnsmasq allocate ips for bootp from your dhcp pool Feb 26 01:56:49 * fouric made the directory, things "worked" Feb 26 01:57:10 you can also just stop the internet sharing for now Feb 26 01:57:18 that's what i did Feb 26 01:57:40 i mean, i'm doing baremetal dev, so for the time being i don't have much of a reason to connect to the outside world Feb 26 01:57:48 ...not to mention that it would be *very* difficult to do so Feb 26 01:57:52 bitbang ethernet anyone? Feb 26 01:58:06 ethernet is quite easy to get working Feb 26 01:58:11 oh i'm an idiot Feb 26 01:58:21 i called dnsmasq with someone else's config file Feb 26 01:58:26 ...which was missing tftp-root Feb 26 01:58:43 zmatt: wait, really? Feb 26 01:58:50 of course Feb 26 01:58:53 ROM netboots :P Feb 26 01:59:01 er Feb 26 01:59:04 (and does usb boot, and all those other boots, and fits in 48 KB) Feb 26 01:59:12 oh! Feb 26 01:59:21 well, you can fit a lot of instructions in 48kb Feb 26 01:59:25 true Feb 26 01:59:36 but ethernet really isn't that hard to get to work Feb 26 01:59:49 * fouric will have to try it someday Feb 26 02:00:31 zmatt: what output do you get while running dnsmasq? Feb 26 02:00:33 dnsmasq-dhcp: DHCP packet received on enp0s25 which has no address Feb 26 02:00:37 ^ this look about right? Feb 26 02:00:55 ah, no Feb 26 02:01:02 :/ Feb 26 02:01:13 your computer needs a static ip on the ethernet Feb 26 02:01:20 otherwise it can't act as server on it Feb 26 02:02:17 by "the ethernet" do you mean the ethernet connection between the bbb and my dev machine? Feb 26 02:02:27 do i need to add another dhcp-host line to that config file? Feb 26 02:02:49 no, it needs a static ip Feb 26 02:03:02 e.g. in network manager Feb 26 02:03:11 k Feb 26 02:03:42 zmatt: when you did your baremetal dev, did you connect your bbb up to your router/switch, or directly to your dev machine? Feb 26 02:04:20 either works, but typically both were on a LAN Feb 26 02:08:07 . Feb 26 02:08:14 dns appears to have failed me Feb 26 02:08:46 i'm still connected to IRC (obviously), but i can't touch anything else Feb 26 02:09:21 hehe, probably nm borked your /etc/resolv.conf and/or default route Feb 26 02:09:51 ughhhhhh Feb 26 02:11:11 you're right Feb 26 02:11:16 it was 127.0.1.1 or something Feb 26 02:11:20 * fouric changed it to 8.8.8.8 Feb 26 02:14:11 ughhhhh Feb 26 02:14:14 let's try this again Feb 26 02:14:39 zmatt: you say that my machine needs a static ip on my wireless network, even though my bbb is directly connected to my dev machine via ethernet cable? Feb 26 02:15:50 no Feb 26 02:15:56 static on your ethernet Feb 26 02:16:12 my b, i misread you Feb 26 02:16:14 since it needs to act as bootp/tftp server towards the bbb Feb 26 02:16:20 right, that would make sense... Feb 26 02:16:24 it can't do that if it has no ip Feb 26 02:16:27 right Feb 26 02:16:36 but (1) i'm not having network-manager do anything Feb 26 02:17:02 and (2) you said that i didn't need to add a dhcp-host line to dnsmasq.conf... Feb 26 02:17:05 ...what do i need to do? Feb 26 02:17:44 the dhcp-host line describes the bbb Feb 26 02:17:46 .oO(why is there an interrupt number listed under the ethernet section of ifconfig) Feb 26 02:17:59 ifconfig is old btw Feb 26 02:18:08 ah Feb 26 02:18:21 if you want to configure that enp0s25 interface manually Feb 26 02:18:26 then e.g. Feb 26 02:19:04 ip link set enp0s25 up Feb 26 02:19:35 ip address add 192.168.1.1/24 dev enp0s25 Feb 26 02:19:57 but this might not survive for very long Feb 26 02:20:12 ...where 192.168.1.1 is...the ip of my dev box, seen by the bbb? Feb 26 02:20:16 yes Feb 26 02:20:25 aight, let's give it a shot Feb 26 02:20:30 * fouric opens another tmux pane Feb 26 02:20:33 if your wireless uses that IP network, use a different one here Feb 26 02:20:44 "connection established" Feb 26 02:20:53 "might not survive for very long" Feb 26 02:21:05 if i need to i'll write a cron job that runs it every 5 minutes dangit Feb 26 02:21:09 lol Feb 26 02:21:10 (if it works, that is) Feb 26 02:21:27 dnsmasq-dhcp: no address range available for DHCP request via enp0s25 Feb 26 02:21:28 :/ Feb 26 02:21:45 ...does it need to be inside dhcp-range? Feb 26 02:22:07 yes, I actually say that explicitly in the comments Feb 26 02:22:53 "if you have a local dhcp server" Feb 26 02:22:55 O.o Feb 26 02:22:59 dnsmasq-tftp: sent /home/fouric/code/bbb/tftp/demo.bin to 10.42.0.100 Feb 26 02:23:06 you're a hero Feb 26 02:23:19 i gotta write all this stuff down Feb 26 02:23:33 by that I mean "if you have an existing dhcp server on the lan that connects you to your bbb" Feb 26 02:24:08 ah, where "local" is "on the network" not "on the machine" Feb 26 02:24:17 yeah Feb 26 02:25:02 I'm still annoyed that dnsmasq for some reason refuses to do proxying for this Feb 26 02:25:55 that means it would see bootrom's request, perform a dhcp/bootp request on its behalf to get an ip address for it, augment the reply with tftp server ip and boot file path, and sends that back to the bbb Feb 26 02:27:11 that would avoid the need for manual IP assignment and dhcp-host lines Feb 26 02:27:15 but oh well Feb 26 02:27:42 * fouric just wants to get code on his board Feb 26 02:27:52 ...aaaaaaaaaaaaand it's not loading anymore Feb 26 02:27:54 wtf Feb 26 02:28:31 it just randomly decided to load the code Feb 26 02:28:34 and then didn't Feb 26 02:28:39 ? Feb 26 02:28:45 wait, that ip... Feb 26 02:28:54 those two "ip" commands you so kindly suggested Feb 26 02:28:56 i ran them Feb 26 02:29:11 I didn't suggest 10.42.0.100 Feb 26 02:29:12 nothing happened the first time Feb 26 02:29:23 so i changed the ip to 10.42.0.1 Feb 26 02:29:26 then it loaded Feb 26 02:29:31 ...and now it's not .-. Feb 26 02:29:41 did you just reset it? Feb 26 02:29:48 (10.42.0.xxx is the address that the network connection sharing stuff was using) Feb 26 02:29:53 i didn't when it worked Feb 26 02:29:59 ...but right now, i just did, and nothing happened Feb 26 02:30:00 no I know Feb 26 02:30:02 yes Feb 26 02:30:09 your computer lost its ip config :) Feb 26 02:30:13 most likely Feb 26 02:30:13 ~/code/bbb >>> cat /var/lib/misc/dnsmasq.leases Feb 26 02:30:15 0 04:a3:16:b5:b1:bd 10.42.0.100 beaglebone * Feb 26 02:30:17 :/ Feb 26 02:30:35 i ran the pair of lines agai Feb 26 02:30:59 really, just config it in nm Feb 26 02:31:04 otherwise it'll keep getting overwritten Feb 26 02:31:41 whenever you press reset, the link goes down and up again, and then nm wakes up again and tries to meddle with the interface Feb 26 02:32:11 i mean, i'm re-configuring it, and nothing is happening Feb 26 02:32:25 reconfiguring what? Feb 26 02:32:30 happening where? Feb 26 02:32:36 sorry, should have clarified Feb 26 02:32:39 those two "ip" lines Feb 26 02:32:44 link set and address add Feb 26 02:33:06 i ran those again, because the load that worked happened right after i did Feb 26 02:33:09 1. configure ethernet manually with an ip that's on a different IP range than your wifi Feb 26 02:33:14 (in nm) Feb 26 02:37:05 for 10.42.0.1 static ip, what gateway would i even use? Feb 26 02:37:12 ...would that be the ip of the bbb? Feb 26 02:37:24 no gateway Feb 26 02:37:38 any ip that's not your computer's Feb 26 02:38:01 k Feb 26 02:39:16 ughhhhhhh network-manager applet is greying-out the option for the configuration that i just created Feb 26 02:39:19 * fouric will reboot Feb 26 02:40:48 rebooting is generally a bad choice in such cases Feb 26 02:43:18 yup Feb 26 02:43:31 "device not managed" from network-manager applet for ethernet Feb 26 02:44:00 mistakes were made, regrets were had Feb 26 02:46:07 dnsmasq: failed to create listening socket for port 69: Address already in use Feb 26 02:46:12 udp 0 0 10.42.0.1:69 0.0.0.0:* 1257/in.tftpd Feb 26 02:46:24 i have no idea why tftpd is already running Feb 26 02:46:41 * fouric kills Feb 26 02:46:57 what on earth do you have installed and running? o.O Feb 26 02:49:24 i just have the stock ubuntu install! Feb 26 02:49:45 ...i did modify /etc/network/interfaces, though Feb 26 02:49:56 allow-hotplug enp0s25 Feb 26 02:49:58 iface enp0s25 inet static Feb 26 02:50:00 address 10.42.0.1 Feb 26 02:50:02 netmask 255.255.0.0 Feb 26 02:52:55 ugh, i removed those lines, then stopped and restarted nm-applet and it still claims "device not managed" Feb 26 02:53:00 how is this even possible Feb 26 02:55:20 zmatt: by the way, http://www.bradrodriguez.com/papers/moving1.htm looks to be *exactly* the thing that i needed, thanks! :D **** ENDING LOGGING AT Sun Feb 26 03:00:01 2017