**** BEGIN LOGGING AT Wed Jul 25 02:59:58 2012 Jul 26 00:01:50 Hello everyone Jul 26 00:15:15 ohai Jul 26 00:15:40 Hello =) Jul 26 00:15:52 I'm having quite a bit of trouble getting a Dreamplug to grab a DHCP from my router Jul 26 00:15:58 I tried 2 routers... and... well... not sure Jul 26 00:16:24 I modified the /etc/network/interfaces file and added allow-hotplug eth0 Jul 26 00:16:26 any thoughts? Jul 26 00:17:58 The log files are telling me Jul 26 00:18:00 she's saying dhcpclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6 Jul 26 00:19:03 Any thoughts? Jul 26 00:22:54 knob: try removing the network/interfaces file Jul 26 00:22:57 like, move it into ~/ Jul 26 00:23:02 it should do dhcp automatically Jul 26 00:38:40 On my way to try that Jul 26 00:38:46 will update in a minute Jul 26 00:40:37 Ok, I did mv interfaces interfacesOEM and then restarted the networking via Jul 26 00:41:07 ... /etc/init.d/networking restart Jul 26 00:41:30 she came by saying that she couldn't red interfaces file... Jul 26 00:41:42 should I try a full system restart? Jul 26 00:44:49 I believe it's not working. The log file is still showing the dhcpclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6 Jul 26 00:45:11 then interval climbs 6 7 17 10 20 1 and ends with No DHCPOFFERS received Jul 26 00:47:58 hmm Jul 26 00:48:09 knob: this is on the default debian? Jul 26 00:48:20 Well, on the default one that comes with the Dreamplug Jul 26 00:48:25 knob: if nothing else you can manually config it with ifconfig Jul 26 00:48:28 should I find out what version? Jul 26 00:48:30 oh Jul 26 00:48:31 cool Jul 26 00:48:36 nah if you didn't change it then i know what it is Jul 26 00:48:50 knob: do you know what subnet your network uses? Jul 26 00:48:51 like Jul 26 00:48:52 Linux 2.6.39.4 armv5tel Jul 26 00:48:56 192.168.1.1 Jul 26 00:48:59 yes Jul 26 00:48:59 for example Jul 26 00:49:03 It's a typical Linksys Jul 26 00:49:11 the 54wrt or something... the very popular one Jul 26 00:49:15 so it's *.1.1 then? Jul 26 00:49:18 yes Jul 26 00:49:21 ok Jul 26 00:49:28 so from the dreamplug you can just do Jul 26 00:49:38 # ifconfig eth0 192.168.1.42 up Jul 26 00:49:44 that should give you full networking Jul 26 00:49:50 oh wow... and it'll get that static IP? Jul 26 00:49:51 oohhh Jul 26 00:49:51 wait Jul 26 00:49:56 you have a dreamplug don't you Jul 26 00:50:00 with 2 ports yeah? Jul 26 00:50:02 swap the port Jul 26 00:50:09 you've got it plugged into eth1 Jul 26 00:50:13 and it's only configured for eth0 Jul 26 00:50:29 Man... I tried that... yet... no dice. Jul 26 00:50:33 ah, ok Jul 26 00:50:37 yeah, do that ifconfig Jul 26 00:50:41 it'll give you a temporary static ip Jul 26 00:50:47 (until you have to configure it again) Jul 26 00:50:48 I have it at the moment plugged into the ethernet port FARTHEST from the power-brick... which I think is eth0 Jul 26 00:50:58 Awesome =) Jul 26 00:51:11 And later, you have a general direction on what to check so she grabs DHCP? Jul 26 00:51:15 yeah i'm continents away from my dreamplug atm Jul 26 00:51:21 hmm Jul 26 00:51:22 Could it be she's "bridging" the WiFi and the eth0? Jul 26 00:51:33 no, that should be fine Jul 26 00:51:39 okk Jul 26 00:52:01 trying now the ifconfig eth0 192.168.1.42 up Jul 26 00:52:02 anyways do that ifconfig Jul 26 00:52:04 will update in a sec Jul 26 00:52:04 yeah Jul 26 00:52:05 and then Jul 26 00:52:08 ping 8.8.8.8 Jul 26 00:52:10 to see if it worked Jul 26 00:52:14 ``ping 8.8.8.8'' Jul 26 00:52:45 ok (side-note: the Dreamplug's WiFi is also 192.168.1.1) Jul 26 00:53:17 wait Jul 26 00:53:24 do you have that configued for access point or client mode? Jul 26 00:53:27 the wifi Jul 26 00:53:37 Factory, which I am 99% sure it's Access Point Jul 26 00:53:49 ok Jul 26 00:53:52 yeah that's fine then Jul 26 00:53:56 did the ifconfig command work? Jul 26 00:53:59 and screw me sideways... now I can't SSH into it... I guess because I left the interfaces file with another name Jul 26 00:54:02 =\ Jul 26 00:54:14 did you buy the jtag board? Jul 26 00:54:14 I can connect to the WiFi network... yet... lemme see what IP I have Jul 26 00:54:28 No.. haven't bought it... I tried to get it... but jesus... where the heck does one buy it? Jul 26 00:54:39 from globalscale? Jul 26 00:54:42 where did you buy your plug? Jul 26 00:54:44 newit? Jul 26 00:55:02 No, Amazon Jul 26 00:55:09 oh Jul 26 00:55:11 Dang... now I can't even ping the gateway Jul 26 00:55:18 didn't know they sold it there Jul 26 00:55:33 Yeah, I just googled and ordered... next up, I'll go via NewIT Jul 26 00:55:44 yeah... you renamed your interfaces file? Jul 26 00:55:47 and lost ssh Jul 26 00:55:51 yes =( Jul 26 00:55:56 yeah that's bad Jul 26 00:55:56 n00b errors Jul 26 00:56:00 do you have a usb keyboard? Jul 26 00:56:02 lol... I figured Jul 26 00:56:03 yes Jul 26 00:56:04 I do Jul 26 00:56:15 did you change the root password? Jul 26 00:56:32 no... still nosoup4u Jul 26 00:56:36 ok Jul 26 00:56:36 can I "fly bling"? Jul 26 00:56:44 fly blind I mean Jul 26 00:56:46 what you have to do is plug your usb keyboard into the plug Jul 26 00:56:48 yeah lol Jul 26 00:56:59 type "root", wait 3 seconds, "nosoup4u" Jul 26 00:57:02 Ok! Awesome! Jul 26 00:57:04 lets do it Jul 26 00:57:09 ok... getting the keyboard now Jul 26 00:57:11 then you can move your interfaces file back Jul 26 00:57:16 and restart networking Jul 26 00:57:39 also probably want to wait about 10 seconds after plugging the keyboard in Jul 26 00:57:44 so that it gets recognized Jul 26 00:57:46 Ok... kk Jul 26 00:58:19 Sure enough, the only usb keyboard I have is the one I'm typing... so I'm going to type out the "instruction set" in pastebin... post it here... please review it... and if we're good to go, I'll give it a go Jul 26 00:58:25 gimme 2 minutes please =) Jul 26 00:58:47 lol Jul 26 00:58:47 sure Jul 26 00:59:44 http://pastebin.com/j1d96h2m Jul 26 00:59:47 what you think? Jul 26 01:00:01 yeah sure Jul 26 01:00:05 you can do it without the cd if you like Jul 26 01:00:07 but that works Jul 26 01:00:07 yea Jul 26 01:00:27 (``mv /etc/network/interfacesOEM /etc/network/interfaces Jul 26 01:00:28 I'm a linux n00b... so, to expand my knowledge... if I go /etc/network Jul 26 01:00:31 oh and afterwards Jul 26 01:00:33 you have to do Jul 26 01:00:38 /etc/init.d/networking restart Jul 26 01:00:40 to make it take effect Jul 26 01:00:47 I like that one better Jul 26 01:01:00 yeah, mv doesn't require the files to be in the same directory Jul 26 01:01:05 you can give it absolute file names too Jul 26 01:01:12 (names starting with a / () Jul 26 01:01:22 cool Jul 26 01:01:35 Got it http://pastebin.com/index/j1d96h2m Jul 26 01:01:49 that's the same one Jul 26 01:01:57 the old one Jul 26 01:01:57 oop Jul 26 01:02:12 http://pastebin.com/aQLWQu0Y Jul 26 01:02:21 DANG! Jul 26 01:02:22 Sorry Jul 26 01:02:27 ok... slow over here Jul 26 01:02:34 that's the same thing too lols Jul 26 01:02:37 np =p Jul 26 01:03:02 I feel like making a Meme from the Southpark guy: If you mess-up your Interfaces file... you'll have a bad time. Jul 26 01:03:44 lol Jul 26 01:03:57 http://pastebin.com/vsuwr2nz Jul 26 01:04:02 finally Jul 26 01:04:23 yes, exactly Jul 26 01:04:30 awesome! On my way! Jul 26 01:04:34 remeber to wait a while Jul 26 01:04:38 between the username and password Jul 26 01:04:40 and typing the commands Jul 26 01:04:49 Yes... I'll give it 10-15 seconds Jul 26 01:04:49 it usually takes a few seconds to make sure everything is ok when you login Jul 26 01:05:03 ok Jul 26 01:05:05 good luck Jul 26 01:05:06 =D Jul 26 01:05:10 See you on the other side in a couple =) Jul 26 01:05:39 =) Jul 26 01:08:42 w000t w00t! Jul 26 01:08:46 =D worked like a charm! Jul 26 01:08:53 Thanks for helping a stranger man! Jul 26 01:09:06 awesome =D Jul 26 01:09:15 so you've ssh'd back in again? Jul 26 01:09:31 yeah! Jul 26 01:09:35 That's on the laptop I have next to me Jul 26 01:09:40 SSHd just fine Jul 26 01:09:42 ok cool Jul 26 01:09:55 Now I have to do what you told me for the static IP Jul 26 01:09:58 lemme try that Jul 26 01:10:00 ok Jul 26 01:10:46 http://www.quickmeme.com/meme/3q8bzh/ Jul 26 01:10:49 hehe Jul 26 01:10:57 XD Jul 26 01:12:20 after running the ifconfig eth0 192.168.1.42 up .... should I restart the networking? Jul 26 01:12:48 nope Jul 26 01:12:52 after you do that try Jul 26 01:12:55 ``ping 8.8.8.8'' Jul 26 01:14:03 Hmm... is that with the double quotes next to the enter key? or single-quotes x2? Jul 26 01:14:06 sorry for the n00b question Jul 26 01:14:34 lol Jul 26 01:14:40 it's a special case Jul 26 01:14:45 sorry... ok Jul 26 01:14:47 you don't have to put the quotes at all Jul 26 01:14:50 but Jul 26 01:14:53 if you decided to copy and paste it Jul 26 01:14:56 the way bash works Jul 26 01:14:57 sorry... I thought the IP was between quotes... I had my mind in the as/400 from work Jul 26 01:14:59 those quotes do nothing extra Jul 26 01:15:20 so its kind of a blanket catch-all way of telling people to do commands Jul 26 01:15:24 Unfortunately, running ping 8.8.8.8 said Network is unreachable. Jul 26 01:15:25 the ip 8.8.8.8 is a real ip you can ping Jul 26 01:15:28 it's owned by google Jul 26 01:15:34 hmm Jul 26 01:15:36 oh! Ahh1 Jul 26 01:15:37 wait Jul 26 01:15:42 try the other port Jul 26 01:15:46 the router I have it plugged in at the moment doesn't have net connection Jul 26 01:15:52 lemme hook it up... Jul 26 01:15:59 oh Jul 26 01:16:00 lols Jul 26 01:30:43 knob: how'd it go? Jul 26 01:30:50 man... frustrated Jul 26 01:30:57 what's up? Jul 26 01:31:03 I.... just don't get it... I hooked it up to the network with internet connection Jul 26 01:31:19 Ok, that laptop has 192.168.0.153 so I gave the plug 192.168.0.154 Jul 26 01:31:27 ifconfig eth0 192.168.0.154 up Jul 26 01:31:31 and still doesn't ping Jul 26 01:31:33 right Jul 26 01:31:47 hmm Jul 26 01:31:51 and they're plugged into the same router? Jul 26 01:31:55 Yeah... I opened a thread over in the NEwIT forums Jul 26 01:32:01 http://www.newit.co.uk/forum/index.php/topic,3429.0.html for reference Jul 26 01:32:06 yeah... Jul 26 01:32:07 knob: swap the ports Jul 26 01:32:08 well, laptop is WiFi Jul 26 01:32:09 ok Jul 26 01:32:11 you might have it in eth1 Jul 26 01:32:14 trying that now Jul 26 01:33:29 Well, on the other port there definitely IS more activity... the amber light comes up in intervals... Jul 26 01:33:34 on the original port... it didn't do anything Jul 26 01:33:52 Should I be able to ping the router? 192.168.0.1 ? Jul 26 01:34:15 Just tried... but... not replying Jul 26 01:34:33 Just... hung. Versus ping 8.8.8.8 where it immediately says Network is unreachable Jul 26 01:34:49 run ifconfig Jul 26 01:34:52 and pastebin the output Jul 26 01:34:59 just, ``ifconfig'' Jul 26 01:35:39 kk... gimme 1 minute Jul 26 01:36:59 http://pastebin.com/4S2wREs8 Jul 26 01:38:42 hmm Jul 26 01:38:58 only thing i could think of is maybe the uap0 is interfering.. but that'll take down your wifi Jul 26 01:39:08 and i don't think that's the problem at all Jul 26 01:39:24 I thought that yeah... if I take down WiFi... then... I'm SoL Jul 26 01:39:36 Well.. as we learned 30 minutes ago... not SoL 100% Jul 26 01:39:41 yeah Jul 26 01:39:47 worst case with that one you could just reboot it Jul 26 01:39:50 but still Jul 26 01:40:38 Man... I'm just... flabbergasted... I can't... understand how she doesn't want to connect Jul 26 01:40:50 I thought of upgrading Debian... yet I have no internet! lol Jul 26 01:48:35 yeah Jul 26 01:48:45 one thin you could try is extracting an old ubuntu tarbal onto a usb drive Jul 26 01:48:48 and boot from it Jul 26 01:48:56 aw shoot, yo udon't have the jtag board though Jul 26 01:48:59 that makes it difficult =/ Jul 26 01:53:51 Man, you have a link where to get the jtag board? Jul 26 01:54:43 I search for it in google... yet come up with reference sites... not where to buy it Jul 26 01:55:54 Odd thing is, that 2-3 days ago, I added that line allow-hotplug eth0 and it came up Jul 26 01:56:00 I could ping google and all Jul 26 01:56:35 huh Jul 26 01:56:50 is it still there in teh interfaces/networking file? Jul 26 01:58:57 Yes... it reads at the moment allow-hotplug eth0 Jul 26 01:59:02 iface eth0 inet dhcp Jul 26 01:59:58 and you're sure that the router actually has connection? Jul 26 02:00:10 like, if you take the wire out of the dreamplug and put it in the laptop Jul 26 02:00:13 does its internet still work? Jul 26 02:00:47 Let me try right now with the ethernet cable... although the laptop is connected via WiFi... and it does work that way Jul 26 02:01:00 yet who knows... maybe the ethernet in the router is configured some odd way Jul 26 02:01:02 let me try that Jul 26 02:03:20 yeah.. connected the laptop via the same ethernet cable (same port @ router), and internet came up just fine Jul 26 02:03:40 I'm going to try and set it as it was factory... restart networking... add the auto line... restart... and see if it comes up again Jul 26 02:13:10 sheeet man! Jul 26 02:13:11 It worked Jul 26 02:13:14 I... don't get it Jul 26 02:13:20 I can ping 8.8.8.8 all good Jul 26 02:13:45 I added the line to the configuration, then rebooted the plug... then... works Jul 26 02:13:48 =\ Jul 26 02:13:49 odd Jul 26 02:13:57 going to run ifconfig to see what's there Jul 26 02:15:54 here's the ifconfig output (working) http://pastebin.com/xD2FnCMu Jul 26 02:16:21 And now I see the plug in the router's client list under 192.168.0.170 Jul 26 02:16:33 and I also see a 192.168.0.97 Jul 26 02:16:43 One with a hostname... another one without a hostname Jul 26 02:17:02 Going to ssh to see which one works Jul 26 02:17:53 Ok, the 192.168.0.170 isn't responding... ... that's the one without a hostname Jul 26 02:18:08 The 192.168.0.97 is respoding... and that's the one I could SSH into Jul 26 02:18:24 Now that I have internet... should I upgrade Debian? Jul 26 02:24:17 cool Jul 26 02:24:22 yeah sure, knob upgrade works Jul 26 02:24:32 any specific command to upgrade it? Jul 26 02:24:45 Does it have to be "streamlined" because of the small "disk" size? Jul 26 02:26:16 i think it's got 2gb of space yeah? Jul 26 02:26:23 you might want to install it onto a usb first Jul 26 02:26:30 actually you have to Jul 26 02:26:37 hmm Jul 26 02:26:46 no you don't have to Jul 26 02:26:54 since you already have a running system Jul 26 02:27:07 i know that the debian installer doesn't know about the mtd partitions Jul 26 02:27:12 so you have to install onto a usb and the n copy Jul 26 02:27:18 but that's doing a fresh install Jul 26 02:27:26 upgrading should just be like, apt-get upgrade Jul 26 02:27:33 awesome Jul 26 02:27:35 on my way Jul 26 02:27:37 or maybe dist-upgrade Jul 26 02:27:55 apt-get upgrade is running... so far so good Jul 26 02:28:32 upgrade makes your current files up-to-date iirc Jul 26 02:28:43 but if you want to go up from stable to testing branch of debian Jul 26 02:28:47 you have to do something else Jul 26 02:28:53 it should work ok as is though Jul 26 02:28:53 Ok... it's going down the list at the moment Jul 26 02:28:57 ok Jul 26 02:29:04 so after upgrade.. reboot... and done? Jul 26 02:29:11 hopefully that'll help[ Jul 26 02:29:24 nah you shouldn't need to reboot Jul 26 02:29:30 it restarts any services that were upgraded Jul 26 02:29:37 the only thing you ever have to reboot for is a kernel upgrade Jul 26 02:29:42 hmm... whole bunch of packages didn't download... she didn't want to run Jul 26 02:29:42 which you have to do manually afaik Jul 26 02:29:54 any error message or what? Jul 26 02:29:56 Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Jul 26 02:29:57 maybe you need to run Jul 26 02:30:00 apt-get update Jul 26 02:30:01 first Jul 26 02:30:05 =) Jul 26 02:30:06 on my way Jul 26 02:31:48 I... I think it's done. Jul 26 02:31:57 No error messages... just... Reading package lists... Done. Jul 26 02:32:06 Should I run apt-get upgrade now? Jul 26 02:33:33 yup Jul 26 02:33:59 awesome... it's running now Jul 26 02:34:26 cool Jul 26 02:34:28 Is there a possibility that the plug "stayed" with the DNS or something of the "last time it worked" 2 days ago? Jul 26 02:34:32 Just shooting ideas Jul 26 02:34:40 maybe a "dnsflush" or something of the sort? Jul 26 02:35:32 no that wouldn't affect it if you set it up manually with ifconfig like you did Jul 26 02:35:47 since dns is only to do with the name resolution, not with the ip connectivity Jul 26 02:36:21 ok Jul 26 02:36:27 kk... Man, thanks for all the help! Jul 26 02:36:32 I'll be sure to stick around this channel Jul 26 02:38:24 np =) Jul 26 02:42:42 Ok... almost done. Jul 26 02:42:53 She downloaded everything... now she's asking me if I want to keep the mantainer's version Jul 26 02:43:15 I... I don't care much for it.... should I just tell it to overwrite? Jul 26 02:47:48 depends on which script it wants you to override Jul 26 02:55:05 I just said Yes to both ... just finished Jul 26 02:55:07 so far so good =D **** ENDING LOGGING AT Thu Jul 26 02:59:58 2012