**** BEGIN LOGGING AT Fri Jun 09 02:59:56 2006 Jun 09 04:02:59 Hello, need some help replacing dropbear with openssh? Jun 09 04:03:10 hello johncc Jun 09 04:03:14 (on openslug that is) Jun 09 04:04:50 what kind of help? Jun 09 04:05:10 I ssh into my slug. When I try to 'ipkg install openssh', it complains that there is a conflict with dropbear Jun 09 04:05:55 But should I remove dropbear, to install openssh? Seems like my ssh session would end immediately if I tried that? Jun 09 04:06:31 well, on some systems you can kill sshd and not lose the ongoing connection but I'm not sure in this case though Jun 09 04:06:36 you could telnet instead? Jun 09 04:06:44 and there assign remove Jun 09 04:08:22 I don't seem to have a telnet server on my openslug (openssh provides that!?) Jun 09 04:08:47 well atleast on unslung xinetd provides that Jun 09 04:10:18 johncc: http://www.nslu2-linux.org/wiki/HowTo/SwapFromDropbearToOpenSSH Jun 09 04:11:22 Yes, I read that. It does not mention anything about this dropbear conflict. Jun 09 04:11:35 so you have your ssh_port changed now? Jun 09 04:12:01 actually DROPBEAR_PORT Jun 09 04:12:35 Well I had changed my dropbear port from 22 to 11112 for other reasons... Jun 09 04:13:06 ok, have you tried any forcing on ipkg? Jun 09 04:13:52 No, not yet. Would that be -force-overwrite Jun 09 04:14:22 you could start with that Jun 09 04:15:27 Oh wait. I read http://www.nslu2-linux.org/wiki/HowTo/UseOpenSSHForRemoteAccess Jun 09 04:16:06 I will now read HowTo/SwapFromDropbearToOpenSSH !! Maybe add some link to the wiki too... Jun 09 04:16:29 let me know how it goes Jun 09 04:20:18 Hmmm, I still get ERROR: The following packages conflict with openssh-sshd: Jun 09 04:20:19 dropbear Jun 09 04:20:32 tried force yet? Jun 09 04:21:35 Yes that is with force-overwrite Jun 09 04:24:14 hm, there could be one way - although bit risky Jun 09 04:24:30 I'm leery about doing "ipkg remove dropbear" when dropbear is providing my current session ... Jun 09 04:24:52 you could make a script which then removes dropbear and installs openssh Jun 09 04:25:18 Is there a separate package which provides telnet? Jun 09 04:25:44 I don't know any other than xinetd Jun 09 04:25:52 atleast on unslung Jun 09 04:28:34 Hmmm. Maybe I'll just try "ipkg remove dropbear" Jun 09 04:28:44 wait a sec Jun 09 04:28:54 atleast make the script to make it bit fail-safe Jun 09 04:28:57 Ok... Jun 09 04:30:37 where you issue these commands ipkg remove dropbear / ipkg install openssh (and maybe use -force-defaults with that one) Jun 09 04:32:12 then execute the script and hope for the best (you must be patient - it will calcute quite a while before ssh responding again) you could add /etc/init.d/sshd restart (or similar) on the end too Jun 09 04:33:36 or start (not sure how restart reacts when the service is stopped already) Jun 09 04:33:53 still there? Jun 09 04:34:15 Yes, I'm working on it :) Jun 09 04:34:27 could you paste the script also when done? Jun 09 04:34:34 for example pastebin.com Jun 09 04:36:04 Ok, but sorry I don't know what you mean by pastebin.com (IRC n00b) Jun 09 04:36:11 website Jun 09 04:36:13 check it out Jun 09 04:36:20 www.pastebin.com Jun 09 04:36:44 just copy&paste the script there and paste the link here Jun 09 04:37:30 Ok, stand by. Jun 09 04:38:01 will do Jun 09 04:38:47 http://pastebin.com/769109 Jun 09 04:39:40 Lets see, if this doesn't work, how much do I lose if I have to tftp re-flash? Jun 09 04:39:49 actually -force-defaults on latter Jun 09 04:40:00 install openssh Jun 09 04:40:06 to avoid interaction Jun 09 04:40:27 ok Jun 09 04:40:40 hm, and change the position Jun 09 04:40:51 not remove -force-defaults dropbear Jun 09 04:41:17 so it will not become as ipkg install -force-defaults openssh Jun 09 04:41:20 if you get my drift... Jun 09 04:41:32 ipkg -force-defaults install openssh Jun 09 04:41:46 http://pastebin.com/769112 Jun 09 04:41:56 Yeah, ICWYM Jun 09 04:42:44 that was just in case - it seems it works either way - but you can never really be sure of those parsers Jun 09 04:43:15 well, that's the script I'd use Jun 09 04:43:18 When I run this should I spawn it somehow so that if my ssh session dies it won't take my script with it? Jun 09 04:43:36 nohup Jun 09 04:44:08 I didn't think busybox supported nohup Jun 09 04:45:07 root@GuruNet:~# nohup Jun 09 04:45:07 -sh: nohup: not found Jun 09 04:45:30 hm, coreutils on unslung provides that Jun 09 04:46:05 I urge you to try that script/nohup combination with some other packages Jun 09 04:46:06 what about "myscript.sh &" Jun 09 04:46:23 well, same thing - try first with something else Jun 09 04:46:45 ok Jun 09 04:47:12 so you checked the xinetd package? Jun 09 04:48:04 well I looked in ps -ef and didn't see xinetd running. Is that what you mean? Jun 09 04:48:32 well, I meant that installing xinetd provides telnet connection Jun 09 04:48:45 atleast on unslung Jun 09 04:49:30 you should really register your nick - so we wouldn't be flooding the channel Jun 09 04:50:56 ./msg nickserv REGISTER passwordyouwant (remove the dot;) Jun 09 04:52:10 Thanks for your patience. I see that there is an xinetd available but not installed. Jun 09 04:53:31 But I don't think it provides telnet itself does it? Jun 09 04:53:40 atleast on unslung it does Jun 09 04:54:18 both ftp-sensor and telnetd Jun 09 04:55:34 http://pastebin.com/769125 Jun 09 04:56:43 So maybe I should install it first, then I will have telnet as a fallback position? Jun 09 04:57:17 I'd suggest that Jun 09 04:57:31 ok, sb Jun 09 04:58:12 johncc: why haven't you registered the nick? Jun 09 04:58:49 so we could use messages Jun 09 04:59:02 this babbling here is a bit excessive side Jun 09 05:00:06 Oh sorry, I did earlier: /msg nickserv REGISTER thepasswordIwanted Jun 09 05:00:25 and what did it reply? Jun 09 05:00:25 Didn't that work? Jun 09 05:01:24 Oh, my nick is already registered Jun 09 05:01:43 so you should change it in the first place Jun 09 05:01:52 that someone can easily obtain it from you Jun 09 05:01:54 Ok, be bakc later Jun 09 05:04:41 Hello drif Jun 09 05:04:52 Is that better? Jun 09 05:05:18 My xinetd install succeeded, now how do i turn on telnetd? Jun 09 10:22:59 hi all Jun 09 10:23:25 i've installed openslug, compiled irssi native, but it's black and white Jun 09 10:23:37 what could be the rpoblem? Jun 09 11:27:45 hi bazz Jun 09 11:29:32 hey drif Jun 09 11:29:50 strange, I could see partitions with fdisk -l but when I tried mounting it said no such device Jun 09 11:30:21 brb Jun 09 11:31:09 it seems atleast unslung is not made for unplugging/plugging usb-devices :-\ jams or requires reboot after few swaps Jun 09 12:47:34 bazz: your brb's are becoming legendary ;P Jun 09 12:48:13 :] Jun 09 12:48:35 compiling libsigc++ ;) Jun 09 12:48:39 really slow Jun 09 12:49:10 load average: 5.13, 5.44, 5.28 - Swap: 361420k total, 42536k used, Jun 09 12:50:13 i don't play around that much with disks on the slug, i don't know why that would occur Jun 09 12:50:45 i would recommend openslug if you ldon't need the web interface of unslung Jun 09 12:56:38 * bazz- be gone ;) Jun 09 12:56:38 bbl :p Jun 09 14:51:26 Hey Jun 09 14:51:29 Anyone aabout? Jun 09 15:51:07 Hello. Anyone here? Jun 09 15:51:50 I flashed the DebianSlug firmware in my NSLU2 yesterday, but I did something wrong, so I flashed it again (an hour or so ago) Jun 09 15:52:20 It rebooted, but the LED is still flashing red - orange - off - red - orange - off - red - orange - off Jun 09 15:53:00 Is there something wrong with it? :( I tried flashing the uNSLUng firmware and it worked perfectly, so I reflashed the DebianSlug firmware, but it still has the same problem Jun 09 15:54:05 The LED = Ready/Active LED Jun 09 15:54:13 Ready/Status, I mean Jun 09 15:54:41 Sounds like its in that upgrade mode Jun 09 15:55:16 No, in upgrade mode the leds would be red - green - red - green - red - green Jun 09 15:55:34 Now it's going red - orange - off - red - orange - off Jun 09 15:55:37 oh Jun 09 15:56:49 Maybe it is trying to lood the rootfs that I set on /dev/sda1 at the first attempt? Jun 09 15:57:10 However, I think it won't remember such things when I flash the firmware, would it? Jun 09 15:58:27 it shouldn't do Jun 09 15:58:37 as you can reverse an unsling and such by reflashing Jun 09 15:59:45 So... What could I do to fix this? Jun 09 15:59:59 I can't get into it using SSH now Jun 09 16:00:05 i cant really help Jun 09 16:00:12 you need someone with more experience Jun 09 16:00:19 i was here for some advice myself Jun 09 16:00:40 Hmmm, okay, I hope some intelligent user will drop by soon then :) Jun 09 16:00:46 What did you need help with? Jun 09 16:01:21 ive got a unit i bought on ebay Jun 09 16:01:32 and somehow the http panel has been turned off Jun 09 16:01:59 however, i need to get the seller to respond Jun 09 16:09:16 Hmmm, maybe I must use the EraseAll utility, I think that would help Jun 09 16:13:41 yeah Jun 09 16:13:47 but i think there are some problems with ut Jun 09 16:14:04 i know they have disclaimers here that they wont be able to help if its been used Jun 09 16:14:12 that may solve my problem too Jun 09 16:14:26 huh? Jun 09 16:15:12 They won't help me if I already used my NSLU2? Jun 09 16:15:25 i mean if it messes up Jun 09 16:15:31 http://www.nslu2-linux.org/wiki/HowTo/EraseAll Jun 09 16:15:43 Do not under *any* circumstances use the Linksys "EraseAll" utility to reflash your NSLU2. Jun 09 16:15:43 In the worst case scenario, it may erase the bootloader and cause an unbootable slug. The only method of repair for the mentioned case would be JTAG, which requires extra hardware and knowledge that most users do not have. Jun 09 16:15:43 Hence, it is *not* worth the risk using this software until Linksys address this issue, so you should use the Sercomm utility. Jun 09 16:16:14 omg Jun 09 16:16:30 ? Jun 09 16:17:01 Then I'll just wait... Jun 09 16:17:06 I MUST be doing something wrong Jun 09 16:17:16 yeah Jun 09 16:17:23 possibly Jun 09 16:17:30 I can get it in upgrade mode perfectly, I can flash the DebianSlug firmware (or uNSLUng), all works perfectly Jun 09 16:17:39 It just won't boot DebianSlug (uNSLUng works!) Jun 09 16:17:55 And I had it boot DebianSlug before Jun 09 16:18:24 i thought it still flashed on unslung? Jun 09 16:18:42 No Jun 09 16:18:46 and if you reflashed you mentioned no ssh access Jun 09 16:18:50 it will have been deleted Jun 09 16:19:29 Okay, I first flashed uNSLUng (that was a while ago, when I didn't have an USB stick for the NSLU2), it worked perfectly, I just had no drive to test things Jun 09 16:20:26 yes Jun 09 16:20:28 Then last week I got this USB stick, so I downloaded DebianSlug, flashed it to the NSLU2, got it working etc. I copyed my filesystem to the USB key but I wanted to copy the lines that said it was copying, so I pressed CTRL+C Jun 09 16:20:37 But I think that cancelled the copying, so I tried again Jun 09 16:20:44 ah Jun 09 16:20:48 so it did something wrong Jun 09 16:20:55 Then I got error messages saying the USB stick was in use, etc. Jun 09 16:20:57 and has been upset with you Jun 09 16:21:05 So I tried to reflash it Jun 09 16:21:13 Then got those problems Jun 09 16:21:39 Then I reflashed it to uNSLUng to see if that is working and it does work, just DebianSlug won't work now Jun 09 16:22:12 I had my USB stick in port 2 (instead of port 1) when copying the rootfs Jun 09 16:22:26 So I just wanted to do this all over, to do it right Jun 09 16:22:32 yeah Jun 09 16:22:43 you may get a quicker answer posting on the yahoo group Jun 09 16:23:11 Strangest thing is, I can do everything with it, just not booting DebianSlug (meaning it will flash firmware, it will enter upgrade mode, etc.) Jun 09 16:23:51 ctrl + c is the break key for a lot of things Jun 09 16:23:58 I know... Jun 09 16:24:00 so you probably did stop it Jun 09 16:24:02 That must have been my mistake Jun 09 16:24:06 someone will be able to help Jun 09 16:24:11 However, it didn't return any error Jun 09 16:24:17 no Jun 09 16:24:24 itd probably just stop what it was doing Jun 09 16:24:32 i'd reccommend staying on here Jun 09 16:24:36 and post in the yahoo groups Jun 09 16:24:37 Yeah, I will Jun 09 16:24:45 Yahoo Groups.... Never been there Jun 09 16:25:50 http://groups.yahoo.com/group/nslu2-general/ Jun 09 16:25:56 Yeah, found it :) Jun 09 16:26:04 Thanks, going to register Jun 09 16:26:30 k Jun 09 16:26:55 i need to eat Jun 09 16:26:57 cya Jun 09 16:27:06 Have a nice dinner Jun 09 16:27:13 And thanks for your time etc =) Jun 09 16:28:09 no probs Jun 09 16:28:15 sorry i couldnt be of more help Jun 09 16:28:30 Doesn't mind :) Any help is appreciated Jun 09 17:56:46 mika_ :) Jun 09 17:57:32 capbot: :) Jun 09 18:44:46 l0c4lh0st, you could join #debonaras too, and you could try reset the sysconf area, as described in the wiki, maybe, that there are some informations are stored, which are unusefull atm Jun 09 18:45:40 Hey caplink811 Jun 09 18:45:55 morning, Reedy_Boy Jun 09 18:46:05 strange question for you Jun 09 18:46:11 ive got another nslu2 from ebay Jun 09 18:46:18 the web admin panel has been disabled Jun 09 18:46:20 no telnet Jun 09 18:46:22 any ideas? Jun 09 18:47:04 it was supposedly brand new Jun 09 18:47:07 but it isn't Jun 09 18:47:11 hm, do you have the nslu freshly flashed yet? Jun 09 18:47:35 you mean with a new firmware? Jun 09 18:47:44 yeah Jun 09 18:47:54 i tried doingt that from the upgrade mode with Ugutil Jun 09 18:47:58 with no avail Jun 09 18:48:12 ugutil? Jun 09 18:48:56 errm Jun 09 18:49:50 could you ping the nslu/do you know the ip of the nslu? Jun 09 18:49:56 yes i can ping it Jun 09 18:50:02 k Jun 09 18:50:03 i change the ip using the linksys tools Jun 09 18:50:09 i did a full port scan on it Jun 09 18:50:21 there is no http (port 80) service running Jun 09 18:52:29 maybe, that there is an alternative firmware on the slug, so http service would be disabled, 1st you should flash another fw, e.g. unslung, or (depends on your experience) openslug Jun 09 18:52:47 i put unslung 6.8 on it Jun 09 18:53:15 ah, when you did a portscan, is port 22 open? Jun 09 18:53:20 errm Jun 09 18:53:28 i cant remember Jun 09 18:53:35 i'd have to boot it Jun 09 18:54:11 maybe, that you can do a ssh login (root/opeNSLUg) Jun 09 18:54:16 aye Jun 09 18:54:20 i will have a look Jun 09 18:54:36 im gonna have to be careful what i do to it Jun 09 18:54:48 due to it not being as described on ebay Jun 09 18:54:57 if everything fails, just flash it Jun 09 18:55:06 yeah Jun 09 18:55:29 not sure what the upgrade tool is Jun 09 18:55:29 Upgrade_207_XP Jun 09 18:55:31 Upgrade_207_XP.exe Jun 09 18:55:49 ah Jun 09 18:55:51 some sercomm tool Jun 09 18:55:58 your workstation is win2k or xp? then the 2nd Jun 09 18:56:08 xp Jun 09 18:56:11 im just saying Jun 09 18:56:14 thats what the installer was Jun 09 18:56:25 thats what i used to put 6.8 on it yesterday Jun 09 18:56:54 but it is neccessary that your enter to upgrade mode manually (e.g. use the reset button method) before you use the sercomm tool Jun 09 18:57:07 yes Jun 09 18:57:08 i know Jun 09 18:57:11 k Jun 09 18:57:11 thats what i did Jun 09 18:57:13 lol Jun 09 18:58:23 well Jun 09 18:58:24 with this one Jun 09 18:58:31 the box serial number doesnt match the unit Jun 09 18:58:33 for one Jun 09 18:58:39 and isnt brand new as said Jun 09 18:59:41 just booting it Jun 09 18:59:52 it has some strange ports open Jun 09 18:59:58 must be for the linksys tools Jun 09 19:01:27 just scannign Jun 09 19:01:54 From Lan Spy Jun 09 19:01:55 TCP ports (4) 21 ftp => File Transfer Protocol 220 FTP server at 192.168.0.75 ready. Jun 09 19:01:55 Jun 09 19:01:55 110 pop3 => Post Office Protocol - Version 3 Jun 09 19:01:55 139 netbios-ssn => NetBios Session Service Jun 09 19:01:55 445 microsoft-ds => Microsoft-DS Jun 09 19:01:57 Jun 09 19:01:59 UDP ports (13) 88 kerberos => Kerberos Jun 09 19:02:01 123 NTP => Network Time Protocol Jun 09 19:02:03 137 netbios-ns => NetBios Name Service Jun 09 19:02:05 138 netbios-dgm => NetBios Datagram Service Jun 09 19:02:24 162 snmptrap => SNMP Trap Jun 09 19:02:24 445 microsoft-ds => Microsoft-DS Jun 09 19:02:24 500 isakmp => Isakmp Jun 09 19:02:24 1433 ms-sql-s => Microsoft-SQL-Server Jun 09 19:02:24 1434 ms-sql-s => Microsoft-SQL-Server Jun 09 19:02:25 1900 ssdp => Simple Service Discovery Protocol Jun 09 19:02:27 3003 cgms => CGMS Jun 09 19:02:29 3127 trojan => W32.Mydoom Jun 09 19:02:31 4672 eD2Kt => eD2K P-2-P Transport Jun 09 19:02:35 strange what some ports show as Jun 09 19:03:30 realy, not a brandnew slug Jun 09 19:03:35 nope Jun 09 19:03:49 my other one shows very similar things Jun 09 19:03:52 with 80 and 23 Jun 09 19:04:11 imho, it is time to use the sercomm tool Jun 09 19:04:12 you reckon im best just leaving it until ive got the dispute sorted with the seller and ebay? Jun 09 19:04:16 i already have Jun 09 19:04:36 i put 6.8 on it Jun 09 19:05:44 ah ok, overread that... and still no web if... then you can try this http://www.nslu2-linux.org/wiki/HowTo/ResetSysConf Jun 09 19:06:39 yeah, cheers Jun 09 19:06:41 i did see tha Jun 09 19:06:58 but if im going to start doing that, im gonna have to make sure im keeping it Jun 09 19:18:28 thanks anyway Jun 09 19:18:57 «caplink811-log» l0c4lh0st, you could join #debonaras too, and you could try reset the sysconf area, as described in the wiki, maybe, that there are some informations are stored, which are unusefull atm <--- I'm gonna look after that, thanks! Jun 09 19:27:53 When I boot with a USB stick attached, the LED stays orange Jun 09 19:27:58 I guess it must be trying to load a rootfs from my USB stick (which was formatted, recently :P) Jun 09 19:30:02 caplink811_log I think it will be easier to flash the NSLU2 to Linksys stock firmware and perform a factory reset first? Jun 09 19:30:10 As described here: http://www.nslu2-linux.org/wiki/HowTo/ResetSysConf Jun 09 19:30:18 I'm gonna try just all of that, thanks for your help! Jun 09 19:31:22 I think the people on that page have somewhat the same problems as I have now Jun 09 19:31:26 maybe, that this is a way, just try it, you cann't do something wrong, as long as redboot works Jun 09 19:31:53 Yep :) Jun 09 19:32:03 I'm gonna play with that little boxie Jun 09 19:32:15 much fun, and good luck :) Jun 09 19:32:39 Yep, the fun will be there always :D I love messing around with devies trying to achieve things they can't originally do etc Jun 09 19:32:49 However, I hate being stuck, but that will be the past, I hope :P Jun 09 19:32:58 devices* **** BEGIN LOGGING AT Fri Jun 09 20:26:10 2006 Jun 09 20:55:45 Okay so... I just did the ResetSysConf, but now it won't upgrade anymore? :| Jun 09 20:55:59 I put it in upgrade mode using redboot, the LED flashes green-red-green-red-etc Jun 09 20:56:11 But the Sercomm tool won't see any device Jun 09 20:56:23 I flashed the Linksys R63 firmware in it Jun 09 21:02:20 Hmm, I guess I'll just turn it off :P Jun 09 21:02:41 and try the paperclip method Jun 09 21:12:09 Upgrading to DebianSlug now... Wonder if it will work :) Jun 09 21:23:22 I HEARD A BEEP Jun 09 21:23:25 Let's hope it worked! Jun 09 21:24:25 OMG!!!!! Jun 09 21:24:28 :) Jun 09 21:24:30 w00t Jun 09 21:24:48 I'm so happy :) If this wouldn't have worked, I had NO idea what to do... Jun 09 21:25:13 Thanks a lot everyone for any help you submitted, even if it were only hints or suggestions, everything is/was appreciated :) Jun 09 21:29:16 Okay, on this page: http://www.nslu2-linux.org/wiki/OpenSlug/InitialisingOpenSlug it says what I have to do. I understand everything. But can someone tell when exactly I have to connect my USB stick? **** ENDING LOGGING AT Sat Jun 10 02:59:56 2006