**** BEGIN LOGGING AT Thu Jun 07 02:59:58 2007 Jun 07 06:10:25 is any1 here to help me with installing openssh? After following the steps online nslu2-linux I can't get 'ls' command to display anything? Jun 07 06:17:48 leesiulung: there probably isn't anything in the directory, try ls -la Jun 07 06:18:44 yeah, continuing with the directions, I discovered that indeed it was empty with some hidden files. Jun 07 06:19:01 however, I run into a problem. I need to edit a file and it tells me to use nano.... Jun 07 06:19:33 however, installing nano requires a reboot... thus I'm not sure if that will screw up the directions Jun 07 06:21:10 I'm thinking of using vi, but what is the ^ symbol mean for instance when moving forward one screen: ^f Jun 07 06:21:42 why don't you search for some vi or nano tutorials Jun 07 06:22:32 I did, I'm looking at a vi reference, and don't understand what that carrot symbol means Jun 07 06:22:45 is that control key? Jun 07 06:23:25 dunno Jun 07 06:24:56 I will look around and report back if I find an answer Jun 07 06:42:07 do any1 know what the passphrase is used for during public/private key generation for opensshd using puttygen.exe? Jun 07 12:50:49 I hate zinitd Jun 07 12:50:53 *xinitd Jun 07 13:47:47 bad: don't use it then. Jun 07 13:55:13 bad: xinetd is a service provider that is (almost) always optional. Jun 07 13:55:27 heh Jun 07 14:43:37 mwester: with those kernel-modules installed, cat /proc/bus/usb/devices says Driver=hid, the slug apc wikip page says Driver=usbhid Jun 07 16:37:39 i dont hate it, i just dont get it Jun 07 16:38:25 What part don't you get? Jun 07 16:43:43 as i see it there is THREE parts Jun 07 16:44:06 the conf file for the server, ex. proftpd.conf Jun 07 16:44:24 then there is the xinetd.conf Jun 07 16:46:30 That's two. Jun 07 16:46:40 The configuration files are easy. Jun 07 16:46:50 Concatenate them all. Jun 07 16:47:32 That's all xinetd does -- it reads xinetd.conf, which in turn tells xinetd to read all the config files in xinetd.d (which include proftpd.conf and others). Jun 07 16:47:57 So it's just one big config file, split up for organizational purposes. Jun 07 16:47:58 ok Jun 07 16:48:40 thats fine, but i have configured passive ports and stuff Jun 07 16:49:04 You mean for proftpd? Jun 07 16:49:09 yes Jun 07 16:49:21 xinetd doesn't know nor care. Jun 07 16:49:27 hmm Jun 07 16:49:31 xinetd is just a proxy service. Jun 07 16:49:38 ok Jun 07 16:49:50 it sits on ports pretending to be whatever services you've configured it to impersonate. Jun 07 16:50:10 hehe, ok Jun 07 16:50:19 When it gets an incoming connection, it fires up the real application (per your config file), then hands off the incoming network connection. Jun 07 16:51:00 ok, so if i configured proftpd to act on port 1234 Jun 07 16:51:02 The rest of the config stuff is mostly about security, and some details about the connections. Jun 07 16:51:29 that dosent needs to be configured in the xinetd? Jun 07 16:51:30 this is funny... i came here to learn about vsftpd.... maybe I'll just check out proftpd instead Jun 07 16:51:30 What does "act" mean? There are many ports that proftpd can use... Jun 07 16:52:02 *react Jun 07 16:52:12 COMMON FTPD ERROR #1: Assuming one needs either vsftpd or proftpd, not realizing that the built-in ftpd can usually suffice! Jun 07 16:52:26 mwester, it is not Jun 07 16:52:38 or not realizing that there was an ftpd with unslug Jun 07 16:52:53 i can not specify passive ports in the built in Jun 07 16:53:23 ok, you are sure then? Many many people have borked their slugs with the xinetd stuff to the point that they have to reflash, because they didn't realize that there's a built-in ftpd! That's why I mention that. Jun 07 16:53:33 bad: I think you can. Jun 07 16:53:47 The GUI in Linksys doesn't do it, but the ftpd is capable of it. Jun 07 16:54:01 ok Jun 07 16:54:11 thats one problem Jun 07 16:54:21 google "bftpd" for a link to the sourceforge (IIRC) site with docs... Jun 07 16:54:49 the other problem is the enhanced-ctorrent Jun 07 16:55:32 in any case, for xinetd, you need to ensure that it is configured to listen for incoming ftp requests on the designated ftp port, and also disable any other ftp processes on the NSLU2, and disable any other ftp "sensors" or ftp configs for xinetd. Jun 07 16:55:50 true Jun 07 16:56:08 in proftp u can run as standalone Jun 07 16:56:15 the the problem is solved Jun 07 16:56:25 without xinetd Jun 07 16:56:35 Generally, the best practice (since xinetd is just a proxy, and you don't need it) is to get the applications (proftpd and/or ctorrent) running as ordinary daemons first. Then find out what switch is needed for each to run with inetd/xinetd. Jun 07 16:58:15 Then the next step is to install xinetd, and disable all its services. Then add in the one you are interested in, making sure that xinetd is listening on the same master incoming port as your application. Then work on the config parameters to effect the handoff from xinetd to the application. Jun 07 17:04:45 true Jun 07 17:16:56 Hey eno, did manage to get any further with qemu? I noticed there was a slightly newer build Jun 07 17:24:07 Reedy_Boy: i can run qemu-i386 fine Jun 07 17:24:21 can you run "/opt/bin/qemu-i386 /opt/i386-unknown-linux-gnu/sbin/ldconfig -C /opt/i386-unknown-linux-gnu/etc/ld.so.cache" ? Jun 07 17:25:25 this probably is the line in postinst that causes segfault on your slug Jun 07 17:26:04 if it still does, i'd suggest you "ipkg remove qemu qemu-user qemu-libc-i386" Jun 07 17:26:05 what wants to be installed first? Jun 07 17:26:51 as i removed it last night again when it didnt install correctly Jun 07 17:27:28 rm -rf /opt/i386-* Jun 07 17:28:28 ok, then try installing them again? Jun 07 17:28:50 right, "ipkg install qemu qemu-user qemu-libc-i386" Jun 07 17:30:44 ooh, i see you've put a 0.8 version on Jun 07 17:31:11 yes, 0.8.2+ needs more work Jun 07 17:31:27 0.8.0 can be built without much change Jun 07 17:31:44 ah right :) Jun 07 17:33:19 eno, Jun 07 17:33:20 Configuring qemu-libc-i386 Jun 07 17:33:20 Segmentation fault Jun 07 17:33:20 postinst script returned status 139 Jun 07 17:33:20 ERROR: qemu-libc-i386.postinst returned 139 Jun 07 17:33:20 Configuring qemu-user Jun 07 17:33:22 Using binfmt_misc interface fs at /proc/sys/fs/binfmt_misc Jun 07 17:33:24 Using qemu binaries in /opt/bin Jun 07 17:33:41 And /opt/bin/qemu-i386 /opt/i386-unknown-linux-gnu/sbin/ldconfig -C /opt/i386-unknown-linux-gnu/etc/ld.so.cache Jun 07 17:33:46 Just returns segmentation fault Jun 07 17:37:11 lsmod | grep binfmt Jun 07 17:52:29 binfmt_misc 6072 1 Jun 07 17:55:05 i don't know if that plays a part, on my slug, i don't have binfmt_misc kernel module loaded Jun 07 17:56:14 can you "rmmod binfmt_misc" and retry? Jun 07 17:56:48 rmmod: binfmt_misc: Device or resource busy Jun 07 18:01:46 umount /proc/sys/fs/binfmt_misc Jun 07 18:02:28 umount: /proc/sys/fs/binfmt_misc: Invalid argument Jun 07 18:04:02 is there a way i can set it not to load on reboot, and then reboot? Jun 07 18:14:00 eno, is there a way i can set it not to load on reboot, and then reboot? Jun 07 18:16:03 is it in /etc/rc.d/rc.modules ? Jun 07 18:17:33 eno, what are you using for the attached drive? Jun 07 18:17:48 -bash-3.2# cat /etc/rc.d/rc.modules Jun 07 18:17:48 if ( [ -f /unslung/rc.modules ] && . /unslung/rc.modules ) ; then return 0 ; fi Jun 07 18:17:48 #!/bin/sh Jun 07 18:17:48 insmod pbuttons 2>/dev/null Jun 07 18:17:48 insmod rbuttons 2>/dev/null Jun 07 18:17:48 insmod x1226-rtc 2>/dev/null Jun 07 18:17:52 insmod ufsd 2>/dev/null Jun 07 18:20:54 eno, for the drives, im wondering if your using a hard drive Jun 07 18:21:10 As im using a memory stick, and swap is disabled for me... Could this cause a problem Jun 07 18:21:10 yes i am Jun 07 18:21:43 you mean it simply runs out of memory Jun 07 18:21:43 #!/bin/sh Jun 07 18:21:44 /sbin/swapoff /dev/sda3 Jun 07 18:21:44 return 1 Jun 07 18:22:01 I presume so, as im using a memory stick, i was told to turn it off Jun 07 18:23:57 im wondering if this is the case, as its a common difference between my slug and yours and mwesters Jun 07 18:24:36 right, easy to find out if you can plug in a USB drive and create some swap space Jun 07 18:24:59 s/drive/hard drive/ Jun 07 18:24:59 eno meant: right, easy to find out if you can plug in a USB hard drive and create some swap space Jun 07 18:25:03 another memory stick? or a hard drive in the second slot Jun 07 18:25:06 Hard drive Jun 07 18:25:06 hmm Jun 07 18:25:25 or if you're willing to turn on the swap just to test it out Jun 07 18:25:36 yeah Jun 07 18:25:42 im not bothered if the flash drive dies Jun 07 18:26:09 just comment out the script? Jun 07 18:26:24 and reboot? Jun 07 18:28:20 if you have /dev/sda3 as swap partition, you can just "/sbin/swapon /dev/sda3" Jun 07 18:28:45 fdisk -l /dev/sda Jun 07 18:29:04 should show the partition type for /dev/sda3 Jun 07 18:33:44 if you don't have a swap partition, google "linux add swap file" Jun 07 18:54:38 eno, sorry, my IRC client dropped out Jun 07 18:54:44 What where those commands to check? Jun 07 18:55:52 "fdisk -l" Jun 07 18:58:23 -bash-3.2# fdisk -l /dev/sda Jun 07 18:58:23 Disk /dev/sda: 16 heads, 62 sectors, 1024 cylinders Jun 07 18:58:23 Units = cylinders of 992 * 512 bytes Jun 07 18:58:23 Device Boot Start End Blocks Id System Jun 07 18:58:23 /dev/sda1 1 508 251937 83 Linux Jun 07 18:58:23 /dev/sda2 509 766 127968 83 Linux Jun 07 18:58:25 /dev/sda3 767 1024 127968 82 Linux swap Jun 07 18:58:43 eno, im presuming that means i have a swap partiition Jun 07 18:59:06 yeah, just turn it on with "/sbin/swapon /dev/sda3" Jun 07 18:59:09 -bash-3.2# /sbin/swapon /dev/sda3 Jun 07 18:59:11 yeah Jun 07 18:59:13 no error Jun 07 18:59:15 sooo.. Jun 07 18:59:19 verify by "free" Jun 07 18:59:29 you should have more memory now Jun 07 18:59:33 -bash-3.2# free Jun 07 18:59:33 total used free shared buffers Jun 07 18:59:33 Mem: 30524 23332 7192 0 1812 Jun 07 18:59:33 Swap: 127964 0 127964 Jun 07 18:59:33 Total: 158488 23332 135156 Jun 07 19:00:00 looks good Jun 07 19:00:11 looks good, retry the segfault'ed command Jun 07 19:00:24 can you paste it again for me? Jun 07 19:00:30 or "ipkg remove qemu-libc-i386" Jun 07 19:00:33 as my irc client crashed and ive therefore lost the mssagfes Jun 07 19:00:39 oh yeah, just re add it Jun 07 19:00:50 then "ipkg install qemu-libc-i386" Jun 07 19:06:11 -bash-3.2# ipkg install qemu-libc-i386 Jun 07 19:06:11 Installing qemu-libc-i386 (2.3.3-3) to root... Jun 07 19:06:11 Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-libc-i386_2.3.3-3_armeb.ipk Jun 07 19:06:11 Configuring qemu-libc-i386 Jun 07 19:06:11 /opt/i386-unknown-linux-gnu/sbin/ldconfig: Can't open configuration file /etc/ld.so.conf: No such file or directory Jun 07 19:06:19 Now... Let me just try re-installing them all Jun 07 19:06:25 as i think i may have removed the rest before Jun 07 19:09:24 eno, Jun 07 19:09:25 -bash-3.2# ipkg install qemu qemu-user qemu-libc-i386 Jun 07 19:09:25 Installing qemu (0.8.0-1) to root... Jun 07 19:09:25 Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu_0.8.0-1_armeb.ipk Jun 07 19:09:25 Installing qemu-user (0.8.0-1) to root... Jun 07 19:09:25 Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-user_0.8.0-1_armeb.ipk Jun 07 19:09:27 Installing qemu-libc-i386 (2.3.3-3) to root... Jun 07 19:09:29 Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-libc-i386_2.3.3-3_armeb.ipk Jun 07 19:09:31 Configuring qemu Jun 07 19:09:33 Configuring qemu-libc-i386 Jun 07 19:09:35 Configuring qemu-user Jun 07 19:09:37 Using binfmt_misc interface fs at /proc/sys/fs/binfmt_misc Jun 07 19:09:39 Using qemu binaries in /opt/bin Jun 07 19:09:47 So that looks like it just needed swap? Jun 07 19:10:24 congrat! you've found the problem Jun 07 19:10:31 :) Jun 07 19:10:40 Well, i found my specific problem Jun 07 19:10:48 but you helped with the package :) Jun 07 19:11:11 eno, I'll update the Wiki :) Jun 07 19:11:22 excellent, thx Jun 07 19:11:42 no, thankyou :) Jun 07 19:12:52 mwester, the qemu problem was related mainly to lack of swap on my nslu2 Jun 07 19:12:52 :) Jun 07 19:13:08 any specific thing you want to run under qemu? Jun 07 19:13:51 i was trying to work sort 'teamspeak' for someone Jun 07 19:13:59 so thats the next task is to try that! Jun 07 19:14:17 alright, good luck Jun 07 19:14:42 thanks Jun 07 19:25:53 . Jun 07 19:26:38 Please change your name NSLU2-IRC Jun 07 19:32:54 eno: Good call on the swap space diagnosis! Jun 07 19:34:39 mwester, was my idea originally :P Jun 07 19:34:47 eno just helped me through it Jun 07 19:36:09 Oops, sorry - I read the log too quickly -- good call on that. Jun 07 19:36:26 :) Jun 07 19:36:44 It came to mind when eno said he was using a hard drive too Jun 07 19:36:49 It seemed like a common factor Jun 07 19:41:19 eno, just tried the 'ventrilo' guide i was originally looking at - now running ventrilo on my NSLU2 Jun 07 19:41:23 and its connectable :) Jun 07 20:46:10 What would i need to get involved with package development and stuff Jun 07 20:46:17 Obviously an NSLU2 ;) Jun 07 20:48:52 http://www.nslu2-linux.org/wiki/Optware/AddAPackageToOptware Jun 07 20:49:58 native development just need a slug Jun 07 20:50:17 more and more packages are cross compiling Jun 07 20:50:52 for cross development, you'll need a linux PC (can be linux running under vmware on windows too) Jun 07 20:54:29 Haha, ace, ive recently installed a debian VMWare PC Jun 07 21:15:58 eno, any ideas what would be involved in updating to qemu 0.9.0? Jun 07 21:22:48 Reedy_Boy: quite a lot of effort, the configure/build seem changed Jun 07 21:23:41 there were a bunch of patches applied to 0.7.0 and 0.8.0 that no longer applies Jun 07 21:24:07 ah right Jun 07 21:24:19 need to figure out what these patches do, which ones are needed, which one not Jun 07 21:25:00 yeah Jun 07 21:25:12 It all in C then? Jun 07 21:25:20 and sh scripting Jun 07 21:25:26 yes Jun 07 21:26:00 some assembly Jun 07 21:26:20 hmm, suppose that would be arm assembly - as thats the target device? Jun 07 21:27:06 Well, learning C wouldnt be a bad thing Jun 07 21:27:19 some x86 assembly as well Jun 07 21:27:23 hmm Jun 07 21:27:47 I can program in vb and c# (ie windows), so learning a new language wont be that much trouble Jun 07 21:27:52 build = x86, host = armeb, target = i386 Jun 07 21:28:00 ahh Jun 07 21:28:22 suppose, just see how i go, and the guy who did the ventrilo tutorial has said he'll give me hand sorting TS out, and updating qemu if necessary Jun 07 21:40:31 Im off now, thanks again for your help eno! Jun 08 00:31:03 mwester: hi Jun 08 00:44:36 i think i need compat-libstdc for apcupsd to work in unslung Jun 08 01:20:27 apcupsd can't find libstdc++.so.5, but it's in /opt/lib Jun 08 01:21:55 i think i'm supposed to set my LD_LIBRARY_PATH, but i'm not sure where this setting is located Jun 08 01:44:04 scant: it's an environment variable. You can set it in your startup file along with PATH, or if you have a script that start apcupsd, you just set it first, then start apcupsd. Jun 08 01:44:39 mwester: how do i set it up? with, setenv LD_LIBRARY_PATH /opt/lib? Jun 08 01:44:55 And you shouldn't need any compat- libs if you've built apcupsd with the proper toolchain (optware for example). Jun 08 01:45:05 Depends on the shell you are using. Jun 08 01:45:40 mwester: i compiled natively Jun 08 01:45:41 Check the Linux docs, or google -- setting env variables is one of the first things new users should learn. Jun 08 01:46:20 If you compiled natively, you would have to take very special effort to end up with an executable that depends on a compat- libarary. Jun 08 01:46:29 mwester: i think i set the env var, but it's still saying it can't find the file Jun 08 01:48:19 Why don't you share the exact text of the error message? Jun 08 01:48:27 mwester: i compiled wall and apcupsd natively, using ./configure found on the wiki Jun 08 01:48:58 Ok. Jun 08 01:49:17 mwester: apcaccess: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory Jun 08 01:49:53 Yep. that sure looks like an LD_LIBRARY_PATH problem to me... Jun 08 01:50:52 I would have thought that configure would have taken care of that, but just try setting the LD_LIBRARY_PATH or LD_RUN_PATH appropriately, and execute the command. Jun 08 01:51:05 i did: set LD_LIBRARY_PATH /opt/lib, but it's still saying it Jun 08 01:52:30 scant: do you know the syntax for setting environment variables in the shell you are using? Jun 08 01:53:11 mwester: i used: export LD_LIBRARY_PATH=/opt/lib, and now it gives: tcp_open: cannot connect to server localhost on port 3551. Jun 08 01:53:20 :) Jun 08 01:54:07 But you might like to not exclude the libraries in /lib and /usr/lib, so generally you might like to try "/lib:/usr/lib:/opt/lib" or something like that. Jun 08 01:55:25 mwester: thanks Jun 08 01:55:33 mwester: i'm trying to figure out the other error now Jun 08 01:55:55 Which? The cannot connect? Jun 08 01:55:59 yes Jun 08 01:56:38 whichever of the APC servers that program needs is apparently not running. Jun 08 01:56:49 Or it might be on a different port. Jun 08 01:59:04 yeah Jun 08 02:00:08 mwester: it says: Starting apcupsd power managementtouch: cannot touch `/var/lock/subsys/apcupsd': No such file or directory Jun 08 02:00:39 Well, does it exist? Jun 08 02:01:04 the make install for acpupsd doesn't install stuff in the right place Jun 08 02:01:32 When you did the configure, did you tell it where the right places were for Unslung? Jun 08 02:01:50 i followed the wiki page Jun 08 02:01:51 configure doesn't know about the /opt thing on Unslung. Jun 08 02:02:03 i did: ./configure --prefix=/usr/local --sbindir=/sbin --enable-usb --enable-pthreads Jun 08 02:02:42 Sounds like the wiki page is not specifically for unslung. Jun 08 02:03:16 mwester: it's not, but it's all i had for a reference Jun 08 02:03:45 Sounds like this is the first time you've used configure, or built a server-type application... Jun 08 02:04:22 yeah Jun 08 02:04:54 Apcupsd is not too tough, but it's not simple either, but Unslung is definitely NOT a good learning platform due to the Linksys compatability stuff. Jun 08 02:06:11 Well, probably best to figure out where everything *did* get installed, and either make it so that it finds what it needs in those places, or use the command-line arguments to the apcupsd programs to override the compiled-in defaults. Jun 08 02:07:26 mwester: i think most everything is in the right place, i'm not sure though Jun 08 02:07:42 mwester: i created /var/lock/subsys so it could write the lock file Jun 08 02:08:30 and i think apcupsd has started, but i still get that connect error Jun 08 02:10:29 Sounds like you're in configuration territory; it seems to be working from the NSLU2 point-of-view. Jun 08 02:10:45 BTW, why did you build wall? Jun 08 02:12:32 mwester: i'm not sure if it's working yet Jun 08 02:12:43 mwester: i built wall because wall is not on unslung Jun 08 02:13:00 mwester: and is required for apcupsd Jun 08 02:20:46 Ok -- I was curious, 'cause wall is normally only useful on multi-user computers; I was wondering why one would put that on a slug. Jun 08 02:21:31 mwester: it seems apcupsd is not running and that's why i'm getting that error Jun 08 02:22:14 start it manually and see what errors it's encountering. Jun 08 02:24:41 it's not encountering any errors, the manual says i haven't enabled the network information server Jun 08 02:31:09 mwester: but actually after i start apcupsd, it's not listed when i do a ps -A Jun 08 02:39:11 it's seems it's working Jun 08 02:39:26 thanks mwester **** ENDING LOGGING AT Fri Jun 08 02:59:56 2007