**** BEGIN LOGGING AT Tue Mar 07 10:59:57 2006 Mar 07 12:04:29 Hello everyone. Sorry if this is FAQ, but I searched google for several hours and didn't find answer. Is Unslung/OpenSlug compatible with Linksys EFG120/250 or is there any similar projects for these devices? Mar 07 12:10:52 no and no - i think Mar 07 12:11:21 :( Mar 07 19:01:48 hi Mar 07 19:02:59 i want to instal perl on my (just) unslugged box but ipkg doesnt appear to be on the box! :-S Mar 07 19:03:06 nyone know why? Mar 07 19:14:39 Probably because it isn't unslung? Mar 07 19:15:01 Did you reboot after the unsling command, with the disk attached? Mar 07 19:15:04 (common problem) Mar 07 19:15:14 hmm first Mar 07 19:15:18 i changedpwd Mar 07 19:15:20 from telnet Mar 07 19:15:33 rebooted and the slug was unresponsive Mar 07 19:15:37 (didnt beep) Mar 07 19:15:51 rebooted without hd Mar 07 19:16:05 logged in and reattached hd (here i am now) Mar 07 19:16:25 actually im a bit unsure what this sentence means: Mar 07 19:16:26 8) Wait for the NSLU2 to boot, telnet in, and confirm that the root filesystem is being loaded from the external disk. Mar 07 19:16:32 im new to linux Mar 07 19:18:02 Yeah - that sentence assumes that you, after boot and before telnet in go back to that web page that enables telnet and enable it again. But it should have beeped to signal a sucessful boot first. Mar 07 19:18:42 ok, but i *did* reboot after unsling Mar 07 19:18:47 with disks Mar 07 19:18:56 is that a problem? (install doesnt mention it) Mar 07 19:19:08 No - the reboot is correct. Mar 07 19:19:22 But it did not beep after reboot, correct? Mar 07 19:19:43 well first i did a passwd Mar 07 19:19:46 and cp to hdd Mar 07 19:20:05 How did you change passwd? with passwd command? Mar 07 19:20:09 ye Mar 07 19:20:14 http://www.nslu2-linux.org/wiki/HowTo/ChangePasswordsFromTheCommandLine Mar 07 19:20:37 Ok. Mar 07 19:21:24 Can you reach it via the web interface? Mar 07 19:21:42 yep but i havent booted yet Mar 07 19:22:07 Current Firmware Version: V2.3R29-uNSLUng-5.5-beta Mar 07 19:22:49 Good - the new firmware is loaded, and the web server is running. Can you open the telnet management web page (the one you used before)? Mar 07 19:23:17 you mean http://bigbox/Management/telnet.cgi Mar 07 19:23:19 yep Mar 07 19:23:28 And will it let you enable telnet? Mar 07 19:23:42 it *is* enabled Mar 07 19:23:47 you want me to disable/enable+ Mar 07 19:23:48 ? Mar 07 19:24:22 Nope, just want to make sure that it is able to enable telnet - can't connect via telnet if the service won't run! Mar 07 19:24:41 Do you get any prompt at all when you telnet to the device now? Mar 07 19:25:00 yeah i am logged on the box now Mar 07 19:26:04 Ok, what is the output from "cat /proc/mounts"? Mar 07 19:26:24 # cat /proc/mounts Mar 07 19:26:24 rootfs / rootfs rw 0 0 Mar 07 19:26:24 /dev/root / jffs2 rw 0 0 Mar 07 19:26:24 /proc /proc proc rw 0 0 Mar 07 19:26:24 usbdevfs /proc/bus/usb usbdevfs rw 0 0 Mar 07 19:26:24 /dev/sda1 /share/hdd/data ext3 rw 0 0 Mar 07 19:26:26 /dev/sda2 /share/hdd/conf ext3 rw,sync 0 0 Mar 07 19:27:45 is that good or bad? :-) Mar 07 19:27:51 All is correct there, the hard drive is present, and you are running from internal flash (which does not have the ipkg command). Let's change the passwd again. Mar 07 19:28:12 i just did in this session Mar 07 19:28:24 whats the ls param to see timestamps? Mar 07 19:28:32 ls -la Mar 07 19:28:35 to see if passwd changed Mar 07 19:28:59 the passwd command should have changed /etc/passwd Mar 07 19:29:06 -rw-r--r-- 1 root root 330 Mar 7 20:11 passwd Mar 07 19:29:15 the copy should have changed /share/hdd/conf/passwd (I think) Mar 07 19:29:34 on the hdd Mar 07 19:29:52 yeah thats the passwd on conf Mar 07 19:29:54 Yes, /share/hdd for the drive in Port 1 Mar 07 19:30:07 so it looks like its changed Mar 07 19:30:14 Ok you should be set to reboot - it's changed Mar 07 19:30:25 just pressing off? Mar 07 19:30:35 or just type "reboot" Mar 07 19:30:44 oki its booting Mar 07 19:31:36 actually if i remember correctly unsling disk1 didnt produce any results on first boot Mar 07 19:31:54 i called it again next login and it had much more output.. strange Mar 07 19:32:04 maybe that was the problem? Mar 07 19:32:39 grr all lamps are green but no *beep* Mar 07 19:32:41 :-( Mar 07 19:32:50 and i cant access the share Mar 07 19:33:07 and no webserver Mar 07 19:34:58 same as before im afraid. what could be the problem? Mar 07 19:37:03 * z0mb bangs his head into the NSLU2 :-s Mar 07 19:38:55 BUT, as soon as you plug a disk in, the password will CHANGE to whatever password is stored (in MULTIPLE places) on the disk. Mar 07 19:39:10 i only copied it to *one* location? Mar 07 19:39:27 Something went wrong when it booted, probably not the password, though as the wrong password will not prevent a boot. Mar 07 19:39:51 A damaged password file will prevent a boot, but not the wrong password. Mar 07 19:40:05 Did you by any chance run the "unsling" command twice? Mar 07 19:40:10 yep Mar 07 19:40:17 on two seperate boots tho Mar 07 19:40:30 and i had the problem before calling it second time Mar 07 19:41:49 Ahhh. It is a single-time operation - after the first unsling command it writes flags inside the NSLU2 so that it boots in a manner better suited for booting from an external device. If you run the unsling a second time, it will (without warning) write a partial filesystem to the target hard drive. To fix: Mar 07 19:41:52 why does the http://www.nslu2-linux.org/wiki/FAQ/CantTelnetToMyNewlyUnslungNSLU2 say that it should be changed multiple places Mar 07 19:41:56 reboot without hard drive Mar 07 19:42:12 enable telnet, log in to device Mar 07 19:42:29 type: rm /.sd??root Mar 07 19:42:36 yes it did look odd second time i called unsling Mar 07 19:43:04 use the "ls -la /" command to verify that the only file listed that starts with a period is ".unslung", then reboot. Mar 07 19:43:15 i guess i need to attach hd after i telnet to the box? Mar 07 19:43:50 (I mean reboot without hard drive a second time) This time it will reboot in the original "ready to unsling" mode, and you may change password as you've done and unsling again - this time it will work correctly. Mar 07 19:44:37 No do not attach the hard drive until you are completely ready to perform the unsling command -- the recovery procedure is to recover the internal flash disk to a "ready to unsling" state Mar 07 19:44:52 ok now im in, so i plug the hdd again right? Mar 07 19:45:26 ehh srry Mar 07 19:45:26 No hard drive until after the /.sd??root file(s) have been removed, and the NSLU2 rebooted again. Mar 07 19:45:51 2 sec Mar 07 19:46:50 so i type Mar 07 19:46:51 rm /.sd??root Mar 07 19:46:52 right? Mar 07 19:47:45 drwxr-xr-x 1 root root 0 Mar 7 19:40 . Mar 07 19:47:45 drwxr-xr-x 1 root root 0 Mar 7 19:40 .. Mar 07 19:47:45 -rw-rw-r-- 1 root root 25 Jan 1 1970 .unslung Mar 07 19:47:45 drwxrwxr-x 1 root root 0 Jan 1 1970 bin Mar 07 19:47:45 drwxrwxr-x 1 root root 0 Jan 1 1970 dev Mar 07 19:47:46 etc Mar 07 19:48:03 Yep - looks good. Mar 07 19:48:13 rebooting.. Mar 07 19:48:31 Rebooting will now restore the NSLU2 to the state as if it had just been reflashed with the Unslung firmware. Mar 07 19:48:39 ok Mar 07 19:48:55 * z0mb feels helpless Mar 07 19:49:09 im used to windows servers :-o Mar 07 19:49:16 beep Mar 07 19:49:20 This isn't normal for UNIX either Mar 07 19:49:49 ok im in Mar 07 19:49:54 Much has been learned about the various failure modes since the Unslung 5.5 release; the 6.x addresses much of this. Mar 07 19:50:08 your running the alpha? Mar 07 19:50:34 Ok, now proceed as before - change password, and execute the unsling command, and you should be set to go. (yes, I'm running the alpha version) Mar 07 19:51:57 ok time to attach hdd :-) Mar 07 19:52:25 strange that it didnt complain Mar 07 19:52:30 when i tried to cp to hdd Mar 07 19:52:44 Password changed. Mar 07 19:52:44 # cp /etc/passwd /share/hdd/conf/passwd Mar 07 19:52:44 # /sbin/unsling disk1 Mar 07 19:52:44 Error: /share/hdd/data is not a mounted disk Mar 07 19:52:44 # Mar 07 19:52:54 hopefully i can just attach hd and run unsling again? Mar 07 19:54:08 # /sbin/unsling disk1 Mar 07 19:54:08 Target disk is /share/hdd/data Mar 07 19:54:08 Copying the complete rootfs from / to /share/hdd/data. Mar 07 19:54:08 19125 blocks Mar 07 19:54:08 Preserving existing ipkg database on target disk. Mar 07 19:54:09 Linking /usr/bin/ipkg executable on target disk. Mar 07 19:54:11 Creating /.sda1root to direct switchbox to boot from /share/hdd/data. Mar 07 19:54:37 is that good or bad? Mar 07 19:54:45 That's good Mar 07 19:54:50 :o Mar 07 19:55:28 time for a reboot? Mar 07 19:55:39 Yep Mar 07 19:57:17 BEEP! Mar 07 19:57:27 GREAT! :-D Mar 07 19:57:37 * z0mb is unslung Mar 07 19:57:50 you are a man of few wellchosen words mwester! Mar 07 19:57:53 thanx alot! :-) Mar 07 20:00:43 installing perl now but getting some errors...hmm should i be worried: Mar 07 20:00:43 # ipkg update Mar 07 20:00:44 Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/Packages.gz Mar 07 20:00:44 Downloading http://ipkg.nslu2-linux.org/feeds/unslung/native/Packages.gz Mar 07 20:00:44 Downloading http://ipkg.nslu2-linux.org/feeds/unslung/oe/Packages.gz Mar 07 20:00:44 An error ocurred, return value: 3. Mar 07 20:00:50 Collected errors: Mar 07 20:00:50 ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp -q -P /tmp/ipkg-myBL5n http://ipkg.nslu2-linux.org/feeds/unslung/cross/Packages.gz' Mar 07 20:00:51 ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp -q -P /tmp/ipkg-myBL5n http://ipkg.nslu2-linux.org/feeds/unslung/native/Packages.gz' Mar 07 20:00:54 ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp -q -P /tmp/ipkg-myBL5n http://ipkg.nslu2-linux.org/feeds/unslung/oe/Packages.gz' Mar 07 20:02:45 disabled firewall but still no go... it responses from browser tho Mar 07 20:03:41 Yep, that's not good. Try something simple: "ping www.google.com" Mar 07 20:03:57 lookup failure Mar 07 20:04:01 i didnt set a dns Mar 07 20:04:03 ill try with ip Mar 07 20:04:34 yep thats it Mar 07 20:05:10 i can ping ip but not domain Mar 07 20:06:01 *gah* no dns setup in the box... :=) Mar 07 20:06:31 ? Sure there is - in the web gui should be the DNS stuff. Mar 07 20:06:45 yeye but *i* forgot to set it Mar 07 20:06:51 * z0mb blushes Mar 07 20:06:57 it works now, go to sleep ;-) Mar 07 20:06:57 Ah - yes, now that is a problem :) Mar 07 20:07:03 Ok - have fun! Mar 07 20:07:08 thax! Mar 07 20:07:09 +n Mar 07 21:43:05 hi again! Mar 07 21:43:18 has anyone here installed slimserver? Mar 07 21:46:28 nope Mar 07 21:47:02 hmm ok... im getting an error when trying to get missing modules Mar 07 21:47:06 maybe its a general problem Mar 07 21:47:28 Please enter a perl binary to use (defaults to /usr/bin/perl) Mar 07 21:47:28 This must be the same perl binary that you ran this program with --> /usr/bin/perl Mar 07 21:47:28 Please enter the path to your SlimServer directory (ex: /usr/local/slimserver) --> /usr/local/SlimServer_v6.2.1 Mar 07 21:47:28 Please enter a directory to download files to --> /tmp Mar 07 21:47:28 which: No such file or directory Mar 07 21:47:30 which: No such file or directory Mar 07 21:47:32 Couldn't find any valid downloaders - install LWP, wget or curl. Mar 07 21:47:56 i installed unslung-feeds Mar 07 21:48:02 so you should adjust your path statement Mar 07 21:48:04 and which and expat Mar 07 21:48:08 to /opt/bin Mar 07 21:48:22 the last one? why doesnt /tmp work`? Mar 07 21:49:14 ok i get what ur saying Mar 07 21:49:16 how do i do that Mar 07 21:49:21 (new to linux) Mar 07 21:49:33 you mean which isnt in the path right? Mar 07 21:53:20 stop doing that mwester :-) Mar 07 21:55:35 could someone bear with me and tell me how to put which in the path? :-O Mar 07 22:12:16 ok found out Mar 07 22:12:17 export PATH=$PATH:/opt/bin Mar 07 22:12:34 should i add it to the wiki? Mar 07 22:12:40 at the installer Mar 08 02:12:04 Hello! Mar 08 02:13:07 I just attached a 200G drive to my slug, but it fails to format through the stock web interface. Mar 08 02:16:59 Is there anything special I need to do? I've just tried hooking up the drive to my linux desktop machine to try formatting it manually. Mar 08 08:15:10 I was thinking a good hack would be to monitor a certain directory for .torrent files, and when they appear, automatically download them. Mar 08 08:15:23 I'm thinking ctorrent with a cron job and a bash script would probably do the trick. Mar 08 08:16:07 The tricky bit is automating the process -- I'm not sure how to detect if a ctorrent instance is already running for a given .torrent file Mar 08 08:16:11 rtorrent does the trick Mar 08 08:16:28 but doesn't work on the nslu with unslung firmware Mar 08 08:16:35 heard that it works with openslug Mar 08 08:17:18 Ech, I just got everything set up, I'm not particularly enthusiastic about the idea of starting over. Mar 08 08:17:29 same here Mar 08 08:17:43 using py-bittorrent Mar 08 08:17:58 works stable, eats up a lot of ram, but works stable.. Mar 08 08:18:41 in combination with screen Mar 08 08:19:14 Hey, the 'torrent' ipkg looks like someone has already done the hard work and put it in the web interface. Mar 08 08:20:40 Just gotta find the right place to put the cgi file. Mar 08 08:26:23 it's not that good Mar 08 08:27:22 No? Tried it? Mar 08 08:40:49 yep Mar 08 08:41:27 What's wrong with it? Mar 08 08:41:36 it's simply not good ;) Mar 08 08:41:46 Lacks features, lacks stability? Mar 08 08:41:57 Demands virgin sacrifices? Mar 08 08:45:45 just try it ;) Mar 08 08:46:01 it's been a long time, i didn't find it to be very user friendly Mar 08 08:46:22 use bittorrent-curses from the py-bittorrent thing Mar 08 08:46:29 together with screen Mar 08 08:47:54 It seemed okay when I ran it, just needed more dependencies to get working... I like the web interface. Mar 08 08:48:24 Needs a newer busybox than I have, but 'ipkg install busybox' doesn't seem to install anything at all. Mar 08 08:55:38 Odd, when I log in, I get an out of date busybox instead of the new one I installed. Mar 08 08:57:11 try /opt/bin/sh Mar 08 09:02:45 where did you find a cgi script for ctorrent ? Mar 08 09:03:52 Eiffel|arbeit, it's not for ctorrent, but for libbt Mar 08 09:04:07 Eiffel|arbeit, it looks like the work of perlguru from this channel Mar 08 09:05:01 Eiffel|arbeit, that worked, by the way. thank you. Mar 08 09:05:54 test -f /opt/bin/bash && exec /opt/bin/bash Mar 08 09:06:19 if you add that at the end of your .profile in your home directory Mar 08 09:06:29 replacing bash with sh Mar 08 09:06:46 the newer busboy shell will be loaded automatically Mar 08 09:12:22 Good idea. Mar 08 09:12:30 I think I'm going to give up on this torrent script for the night though. Mar 08 09:12:56 It doesn't come with startup instructions and I'm not very familiar with thttpd nor do I see httpd installed. Mar 08 09:13:12 (Or more accurately, busybox doesn't say it has it.) Mar 08 09:13:24 it's not worth it, wasting time on that script Mar 08 09:13:35 py-bittorrent is better ;) Mar 08 09:13:46 bazz-, but it requires sshing into slug Mar 08 09:13:53 running screen Mar 08 09:13:55 etc Mar 08 09:14:02 you need to surf to the /Management/torrent.cgi or sth like that Mar 08 09:14:07 i don't remember it very well Mar 08 09:14:36 * pvh is trying to create a system suitable for use by girlfriends and roommates. Mar 08 09:14:43 pvh, 1 single script handles the thing Mar 08 09:14:50 http://www.nslu2-linux.org/wiki/OpenSlug/InstallCtorrent Mar 08 09:14:56 take a look at that shell script Mar 08 09:14:59 works good so far Mar 08 09:15:35 ah, that does look good Mar 08 09:16:01 i think ctorrent is better because you cant limit the memory usage Mar 08 09:16:17 so the nslu isnt swapping all the time Mar 08 09:16:19 anyway, i'm going back to work Mar 08 09:16:40 rtorrent is the best, but doesn't work with suunslung Mar 08 09:17:16 * bazz- be gone Mar 08 09:22:23 * pvh goes to bed Mar 08 09:22:35 thanks for the advice guys. maybe someone will port rtorrent. **** ENDING LOGGING AT Wed Mar 08 10:59:56 2006