**** BEGIN LOGGING AT Tue Jun 03 02:59:57 2008 Jun 03 03:36:18 DrJ: got it working :) Jun 03 03:37:54 ? Jun 03 03:37:59 oh Jun 03 03:38:00 nice Jun 03 03:38:04 what was the problem Jun 03 03:43:01 drj Jun 03 03:43:11 it would seem that upslug2 does not function properly on my mac Jun 03 03:43:28 the only rom I tried to flash with sercomm under windows was angstrom Jun 03 03:43:32 which doesn't actually work :-P Jun 03 03:43:55 so I flashed openslug and linksys like 10 times tongiht with windows ebfore I realized my netmask was wrong Jun 03 03:44:01 fixed that and it pinged under linksys Jun 03 03:44:07 tried installing openslug again and whala Jun 03 03:44:15 now I need rt2x00 usb wifi support Jun 03 03:44:20 so I'll have to install openembedded Jun 03 03:44:29 but I see FTDI support is already there for the arduino :) Jun 03 03:44:53 no mono packages though :( I'm lazy.. I hate C Jun 03 03:45:17 humm.. I could probably do some easy php script :-P Jun 03 03:47:28 why are you going to make the nslu2 have a wireless connection Jun 03 03:48:22 I guess I'm asking ... what are you planning on using this nslu2 for Jun 03 03:58:13 I am installing it outdoors Jun 03 03:58:16 near my swimming pool Jun 03 03:58:28 the slug is going to hook up to an io board Jun 03 03:58:41 and is going to control 3 contactors to turn on and off pool pump, chlorine pump and light Jun 03 03:58:54 it's going to have sensors for suction and pressure side pressure, water and air temp Jun 03 03:59:12 basically my pool timer is shot and it cost $60 to replace Jun 03 03:59:17 and this whole setup cost $200 and is fun Jun 03 03:59:19 so :-P Jun 03 03:59:21 nice, but you probably would still be better running a cat5 cable out there Jun 03 03:59:28 I was highly recommended against Jun 03 03:59:32 why Jun 03 03:59:47 the long run to an outdoor location causes a huge propensity for equipment to get fried by lightning Jun 03 03:59:57 due to differing voltage potential thru the cat5 cable Jun 03 04:00:01 wireless solves this Jun 03 04:00:09 power may surge at the pool but lightning won't seek it per say Jun 03 04:00:18 nah, not if you burry the cat5 cable Jun 03 04:00:30 I've seen it happen about 11 years ago :-P Jun 03 04:00:34 anyway Jun 03 04:00:37 I'm pretty lazy Jun 03 04:00:42 I thought about burying the cat5 Jun 03 04:00:47 you're 1000000 more times more likely to get it through the power cable Jun 03 04:00:50 but this card I got for free seems to have good support Jun 03 04:01:06 yeah but power is less sensitive Jun 03 04:01:11 network cards fry all the time Jun 03 04:01:22 and I thought about putting a small surge surpressor on power Jun 03 04:01:39 I have enough room in my outdoor enclosure Jun 03 04:01:54 http://www.nslu2-linux.org/wiki/DebianSlug/InstallRT2570#compiling Jun 03 04:01:54 lightning -can not- put a surge into if its underground Jun 03 04:01:59 some kind soul should build that for me Jun 03 04:02:03 for openslug 4.8 be Jun 03 04:02:08 if the other end has a surge protection, its basically impossible Jun 03 04:02:19 the other end though is my very expensive server Jun 03 04:02:27 which should be surge protected Jun 03 04:02:31 which isn't :-P Jun 03 04:02:38 then you are just plain stupid son Jun 03 04:02:51 just haven't really thought about it yet honestly Jun 03 04:02:58 and it was a gift Jun 03 04:03:01 so I think less about it Jun 03 04:03:09 buy a $10 surge protector Jun 03 04:03:11 they sell at walmart Jun 03 04:03:26 I've had PSU's get fried before from surges Jun 03 04:03:47 never had anything get affected behind those cheap $10 protectors Jun 03 04:03:50 actually I do have a tough time locating *quality* surge protectors that handle network cable too Jun 03 04:04:01 you don't need one really for the cable Jun 03 04:04:05 if the surge can't get to the computer Jun 03 04:04:14 oh well I have surge protectors for power everywhere Jun 03 04:04:14 it can't get to the cable Jun 03 04:04:17 everything is on good UPS's Jun 03 04:04:27 then your ethernet is protected also Jun 03 04:04:41 until i run it outside using a cheap power side surge protector :-P Jun 03 04:04:54 anyhow Jun 03 04:04:56 I would love to run cat5 Jun 03 04:05:07 wireless is fine Jun 03 04:05:09 and I even have enough cable for that 400ft run Jun 03 04:05:18 * mwester suggests that everyone pick up a copy of the ARRL Handbook at the local library and read the section on RFI and lightening protection. Jun 03 04:05:20 but I got the wireless adapter and I'm a sucker for getting things to work Jun 03 04:05:22 but you'll lose transfer speed (especially being outside) Jun 03 04:05:28 and may sometimes lose a signal Jun 03 04:05:31 I am transferring *nothing* to it Jun 03 04:05:35 just simple on/off commands Jun 03 04:05:42 the NSLU2 is really being underutilized int his situation Jun 03 04:05:50 but it was a lot cheaper than adding wifi to the arduino so... Jun 03 04:05:53 it's how I'm doing it Jun 03 04:06:04 * DrJ bought two 100' cat5 cables from ebay once Jun 03 04:06:18 $25 for two of them (that's including shipping) Jun 03 04:07:32 oh, and I sure hope you are protecting this thing from the weather Jun 03 04:07:43 Not only will lightening have great fun with 100' of copper even if its a foot below ground, but the surge as the 1/2HP pump kicks on and off will certainly disrupt and probably damage the equipment on either end eventually. Jun 03 04:07:55 Fiber or wireless is required. Jun 03 04:08:17 Sealed equipment boxes for pool gear are fairly common (but not inexpensive). Jun 03 04:08:26 run this ethernet through a cheap non conducting pipe Jun 03 04:08:31 then Jun 03 04:08:38 Drj: nonsense. Jun 03 04:08:48 ^^ exactly Jun 03 04:08:57 wireless is definitely the way to go Jun 03 04:09:06 I'll code it to deal with the occaisional disconnect Jun 03 04:09:09 I deal with it all day at work Jun 03 04:09:18 (I write code for windows mobile handhelds in a warehouse environment) Jun 03 04:09:28 and mwester Jun 03 04:09:38 I am still stuck with my mysql issue Jun 03 04:10:03 warehouses are pretty hostile environments for electronics as well, so the same techniques apply... Jun 03 04:10:11 yeah Jun 03 04:10:19 instead of water they just get dropped constantly Jun 03 04:10:23 cracked screens, cracked reader glass Jun 03 04:10:33 flaky wireless in crappy symbol mc70 handhelds Jun 03 04:10:38 (and I mean *flaky*) Jun 03 04:11:02 no power surges at least :-P Jun 03 04:11:25 DrJ: If your script is running as root, then it cannot, by definition, have a permission denied on that file. So something is changing the permissions. But missing from the email was info on which mysql package and verison was installed. That would be helpful for anyone who needs to take a look. Jun 03 04:12:03 unless he's using selinux :-P Jun 03 04:12:14 mwester my pool pump is actually 1HP 240v Jun 03 04:12:28 so I'm sure plenty of havoc will be wreaking Jun 03 04:12:42 Package: mysql Jun 03 04:12:42 Version: 4.1.18-r2 Jun 03 04:13:15 Ok, bit bigger than mine -- it's only 1/2 HP. But my timer is working, so I'm keeping my NSLU2's indoors. Jun 03 04:13:25 mwester, I'm assuming its running as root Jun 03 04:13:30 DrJ: optware feeds, or native? Jun 03 04:13:31 at least, that's who owns the file Jun 03 04:13:41 native Jun 03 04:14:21 the owner and the effective user need not match; it's quite possible that mysqld changes it's effective user id as soon as it can. But it should have created the lock file while it was still root. Jun 03 04:14:29 actually Jun 03 04:14:30 [root@CUBS ~]$ ps | grep mysql Jun 03 04:14:30 1218 root 388 S /bin/sh /usr/bin/mysqld_safe Jun 03 04:14:30 1257 mysql 2432 S /usr/libexec/mysqld --basedir=/usr --datadir=/var/mys Jun 03 04:14:30 2006 root 568 S grep mysql Jun 03 04:14:43 Did the startup file get installed with the package, or was it from some other source (wiki, etc?) Jun 03 04:14:44 maybe its running as mysql Jun 03 04:14:55 Yeah, it's running as mysql Jun 03 04:14:57 it was installed when I did ipkg install Jun 03 04:15:35 how do you change that Jun 03 04:16:16 dunno, would depend on the package Jun 03 04:16:35 maybe its in my.conf Jun 03 04:16:41 eh, no Jun 03 04:16:47 couldn't be Jun 03 04:18:40 mysqld_safe has to be what is determining it Jun 03 04:21:32 yea, its in my.cnf Jun 03 04:21:36 rebooting to see if it works Jun 03 04:22:01 mysqld_safe starts, loads my.cnf which tells it to run mysqld as mysql Jun 03 04:22:51 hehe Jun 03 04:22:59 looks like I figured it out myself Jun 03 04:23:04 Ok. Then probably you can open up the permissions just before mysqld_safe is started, wait a second or three using sleep, then put the permissions back -- that should keep it running as mysql and let ssh work too. Jun 03 04:23:28 nope Jun 03 04:23:31 don't need to Jun 03 04:23:35 Cool. Jun 03 04:23:43 I was able to configure it to run as root in my.cnf Jun 03 04:23:47 just rebooted Jun 03 04:23:51 and it works now Jun 03 04:24:02 [root@CUBS ~]$ ps | grep mysql Jun 03 04:24:02 983 root 608 S /bin/sh /usr/bin/mysqld_safe Jun 03 04:24:02 1026 root 2708 S /usr/libexec/mysqld --basedir=/usr --datadir=/var/mys Jun 03 04:24:02 1199 root 596 S grep mysql Jun 03 04:24:07 see, now root :) Jun 03 04:24:11 Darn. :( My slug just ran out of space on the flash disk trying to install mysql. Jun 03 04:24:23 doesn't that brick it Jun 03 04:25:09 No, it's an external flash device; but it probably needs to be reinstalled anyway. The test slug always collects stuff. Jun 03 04:25:29 oh, you have one just for testing Jun 03 04:25:46 Does anything outside your network touch your database? If so, there might be some security risks with running as root? Jun 03 04:26:54 no, its confined to local Jun 03 04:27:59 actually, I saw I could config the PID file to be moved also Jun 03 04:28:05 that would probably be the safer thing to do Jun 03 04:28:10 and change it back to running as mysql Jun 03 04:28:49 Ok, no problem then I guess. However, this probably needs to be investigated a little further by someone who knows how its supposed to work; it should work out of the box so something is not right with either the package, or with the default permissions SlugOS provides. Jun 03 04:29:12 But first I'll have to make some space on my slug. Jun 03 04:29:23 yea, the PID file should not be defaulted to /var/run Jun 03 04:29:32 which can only be written to by root programs Jun 03 04:30:20 Yeah, it's a bit strange that it behaves that way; I'm a little reluctant to open up the permissions on /var/run -- that doesn't seem right. Jun 03 04:30:31 you can't open up the permissions Jun 03 04:30:34 if you do Jun 03 04:30:40 you can't login to ssh Jun 03 04:30:57 it will error out saying /var/run can only be writable by root Jun 03 04:31:15 Ah! The light bulb just went on. Jun 03 04:32:15 SlugOS is unique from the typical OE-based system, in that it uses OpenSSH instead of dropbear -- I bet dropbear lets you get away with a more open /var/run. Jun 03 04:32:57 In any case, it needs fixing, and it looks like it's an OE issue rather than a SlugOS issue at the moment. Jun 03 04:34:07 well, I'm happy Jun 03 04:34:11 I fixed it on mine Jun 03 04:34:27 no longer have to go through the hassle of chmod, starting mysql, chmod'ing back Jun 03 04:34:33 every time it boots Jun 03 05:59:29 did you take a look at the mysql package mwester Jun 03 06:00:25 all that really needs to be changed is the my.cnf default and the file placed in /etc/init.d need to have the PID file path changed to reflect the changse in my.cnf Jun 03 19:12:37 Hello all. For over a week I've been trying to connect to www.cyrius.com for the HOW-TO pages of Debian on the slug. The site continues to time out. Does anyone here know the status of the site? Jun 03 20:35:38 beek http://www.cyrius.com/debian/nslu2/install.html works here Jun 03 20:42:19 janne-5011: Thanks. That works here, as well. I've tried other links from Google and the How-Tos and I swear -- they'd time out! It didn't matter what machine or network I tried to connect from. Jun 03 20:43:08 np=) Jun 04 01:06:06 Hey all. I built a 2.6.25 kernel however when i try to upslug2 my image over it says "image too big or too small" google tells me little to nothing about the error... Jun 04 01:14:21 don't know if you can upslug2 just the image, don't you have to slugimage it first and also along with the modules, ramfs, etc.? Jun 04 01:35:15 RobNC: any guide on making a slugimage .. ona slug? Jun 04 01:42:09 Personally, I ran slugimage on a windows box with cygwin. I downloaded it (it's perl) and ran it there from within a cygwin window. **** ENDING LOGGING AT Wed Jun 04 02:59:57 2008