**** BEGIN LOGGING AT Sat Feb 17 02:59:57 2007 Feb 17 07:15:41 hi all, I've been searching for a good, umm, 4 hours or so, trying to find a way to install mkdosfs on my slug, any advice? Feb 17 07:24:57 so, anyone have any advice on installing mkdosfs for openslug/slugos 3.10 Feb 17 10:30:57 Hi all Feb 17 10:31:39 is there a way to enable auto-completion with ash ? Feb 17 15:12:16 my crontab is running, but not like i would imagine, i think i have it set to go off every 5 minutes, but it's not: 5 * * * * root /usr/sbin/drivertodrivercp &>/dev/null Feb 17 15:13:07 hi, not sure if this is the right place to ask, I can't seem to find the prebuilt toolchain for the wl500g. I downloaded the GPL package from asus but there was no toolchain Feb 17 15:13:31 I found Oleg's updates to the toolchain but the original one is still required Feb 17 15:13:34 any idea where to get it? Feb 17 15:18:22 you can ask in #nslu2-linux, if your cross compiling, you can download the svn trunk and the toolchain will be installed automagically upon first make i think Feb 17 15:18:56 at least thats the way it is for the nslu, i'm not sure about the wl500g Feb 17 15:19:27 scant: as from what I figured out from the web the wl500g needs some prebuilt toolchain that comes from ASUS, but so far I was not able to find it Feb 17 15:19:59 btw, regarding tghe nslu2.. is anyone interested to test the new packages for our upnp server? unfrotunately I do not own a device, so I can't test Feb 17 15:20:26 it will be tested if you add them to the feed, but you can only add them to the feed if you get credentials Feb 17 15:20:54 both of those questions are linux compiling related and should be asked in #nslu2-linux Feb 17 15:21:07 well, rwitby created pacakges for OpenSlug and eno did it for optware, so packages are already available... Feb 17 15:21:13 hmm ok, sorry then Feb 17 15:21:22 :) Feb 17 15:21:24 i don't care, i'm just informing =) Feb 17 15:21:27 hehe Feb 17 15:22:12 Jin^eLD: do you know anything about crontab? Feb 17 15:22:22 yes, what do you need to know? Feb 17 15:23:15 i have this line in my crontab: 5 * * * * root /usr/sbin/drivertodrivercp &>/dev/null Feb 17 15:23:23 i think that means it should run every 5 minutes Feb 17 15:24:00 yes sounds like it Feb 17 15:24:28 it's not though Feb 17 15:24:50 is there a reason it wouldn't be running every 5 minutes , but does run, i'm just not sure in what time interval Feb 17 15:24:54 are you sure that you installed it correctly, does it print anything when you do crontab -l? Feb 17 15:25:20 # /etc/crontab -l Feb 17 15:25:20 0: No such file or directory Feb 17 15:25:20 0: No such file or directory Feb 17 15:25:20 1: No such file or directory Feb 17 15:25:20 1: No such file or directory Feb 17 15:25:39 huh? Feb 17 15:25:40 no, no Feb 17 15:25:45 you should never edit /etc/crontab directly Feb 17 15:25:55 hm... Feb 17 15:25:57 use conrtab -e Feb 17 15:26:15 crontab is actually a binary executable, should be in /usr/bin or somewhere in the area :) Feb 17 15:26:23 # /etc/crontab -e Feb 17 15:26:24 0: No such file or directory Feb 17 15:26:24 0: No such file or directory Feb 17 15:26:24 1: No such file or directory Feb 17 15:26:24 1: No such file or directory Feb 17 15:26:27 crontab -e will open vi where you can write the settings you just posted Feb 17 15:26:35 no, /etc/crontab is the configuration file, not the binar Feb 17 15:26:36 y Feb 17 15:26:38 just crontab :) Feb 17 15:26:42 exactly :) Feb 17 15:26:43 where is crontab Feb 17 15:27:04 # which crontab Feb 17 15:27:14 it will probably be in /usr/bin Feb 17 15:27:16 which isn't installed Feb 17 15:27:17 it Feb 17 15:27:22 it's not in /usr/bin Feb 17 15:27:36 well, what happens if you just run: crontab Feb 17 15:27:39 maybe it is in path already Feb 17 15:27:49 it should Feb 17 15:27:56 just type: Feb 17 15:27:58 crontab -e Feb 17 15:28:02 without the /etc stuff Feb 17 15:28:10 # /usr/local/crontab -e Feb 17 15:28:27 '/usr/local/crontab: Permission denied' Feb 17 15:28:34 i'm using unslug Feb 17 15:29:17 I can't help you with distro related questions because I do not have any hardware running those distributions, sorry Feb 17 15:29:33 but basically - you must have a crontab executable, it handles the crontab entries Feb 17 15:29:47 you could go to / and to something like find . | grep crontab Feb 17 15:32:22 hm Feb 17 15:32:41 ./etc/crontab Feb 17 15:32:41 ./etc/crontab.orig Feb 17 15:32:41 ./usr/local/crontab Feb 17 15:32:41 ./initrd/etc/crontab Feb 17 15:32:41 ./initrd/usr/local/crontab Feb 17 15:33:21 /usr/local/crontab sounds weird Feb 17 15:33:31 I'd exectit in bin or something Feb 17 15:34:04 well, guess it's distro related, no idea Feb 17 15:34:10 i don't either Feb 17 15:34:20 anyway, I have to move on :) bye Feb 17 15:34:23 thanks Feb 17 15:34:23 bye Feb 17 15:34:26 np Feb 17 15:58:16 is anyone else here? Feb 17 16:05:21 scant: on unslung, i have optware cron package installed, crontab is /opt/bin/crontab Feb 17 16:05:48 eno: crontab doesn't work on unslung if the cron package isnt' installed? Feb 17 16:08:17 not sure Feb 17 16:09:41 eno: is there a way to add a line to crontab via the cmdline only? Feb 17 16:10:39 "crontab -e"? Feb 17 16:11:01 crontab -e starts up vi Feb 17 16:11:16 i want to add an entry w/o vi, through command line parameters Feb 17 16:11:57 kill cron ; cat - >> wherever-your-crontab-file-is ; restart cron Feb 17 16:12:39 do you mean restart rc.crond? Feb 17 16:13:48 Whatever is distribution appropriate. Feb 17 16:14:13 Why on earth do you want to edit your crontab on the command line? Feb 17 16:15:16 to make adding a crontab entry automated Feb 17 16:15:34 How often are you adding crontab entries? Feb 17 16:15:56 not often, but i want to do it that way Feb 17 16:16:37 Ok. Feb 17 16:17:10 i don't understand why i need to install cron on unslung, i've installed it anyway, but it still isn't working Feb 17 16:17:52 Maybe your commandline editing broke the crontab file. Feb 17 16:18:12 Maybe crond isn't running. Feb 17 16:18:32 on unslung, doesn't crond run automagically Feb 17 16:18:47 I never bothered with unslung. Feb 17 16:19:23 The linksys compatibility wasn't interesting to me. Feb 17 16:27:40 ps says both cron and crond are running Feb 17 16:27:56 i think that shouldn't be happening Feb 17 16:28:06 does anyone know? Feb 17 16:29:36 i think you should take one thing at a time: 1) linksys cron with vi 2) optware cron with vi 3) linksys cron without vi 4) optware cron without vi Feb 17 16:30:25 at least you know which step is causing problem Feb 17 16:32:45 eno: i prefer not to install cron and use linksys cron Feb 17 16:33:09 both optware and linksys cron don't seem to work for me Feb 17 16:34:41 you mean none of 1. 2. 3. 4 works Feb 17 16:34:44 Then that indicates that you are doing something wrong. Feb 17 16:37:53 i've done vi /etc/crontab works, but not at the right time intervals Feb 17 16:38:13 i've done install ipkg cron then crontab -e didn't work either Feb 17 16:38:40 Linux is not a real-time operating system. You won't get things happening exactly at the microsecond you ask for. Feb 17 16:38:54 Is your clock set to the correct time? Feb 17 16:41:05 it's unpredictable when it occurs when i have it set for every minute Feb 17 16:41:19 how do i check the clock Feb 17 16:43:58 /sbin/hwclock -r Feb 17 16:44:02 i think Feb 17 16:45:24 or just date Feb 17 16:45:30 let me try Feb 17 16:45:46 it's off by like 30 minutes Feb 17 16:46:02 it seems to get out a lot Feb 17 16:47:25 i'm not sure what to do now... i thought w/o installing the cron package i could get /etc/crontab working Feb 17 16:47:39 no one here has said if this is possible or not though Feb 17 16:48:20 scant: of course the standard cron provided by Linksys works -- else the firmware wouldn't run. Feb 17 16:48:44 http://www.nslu2-linux.org/wiki/HowTo/HaveMoreThan5BackupJobs ppl definitely are using linksys cron Feb 17 16:48:52 mwester_: thats what i thought, but why would my crontab job run erratically, at unpredicatable times Feb 17 16:49:09 As mentioned before, perhaps you are trying to do something not supported by that version, or perhaps your syntax is wrong, or perhaps you are not observing the results. Feb 17 16:49:34 Define "erratically", and how you came to that conclusion -- i.e. what precision are you looking for? Feb 17 16:49:46 http://www.nslu2-linux.org/wiki/HowTo/DebugCrontabProblems Feb 17 16:49:46 ls Feb 17 16:51:05 i tried using: 5 * * * * root /usr/sbin/drivertodrivercp &>/dev/null Feb 17 16:51:09 didn't work every 5 minutes Feb 17 16:51:19 but i went to sleep and this morning the backup ran Feb 17 16:51:38 err, i went to sleep and this morning i noticed the backup had run Feb 17 16:52:14 That syntax tells cron to run the script at 5 minutes past the hour, every hour. Feb 17 16:53:21 every 5 minutes should be something like ... */5 ... Feb 17 16:53:41 oh Feb 17 16:53:43 =) Feb 17 16:54:15 so every five minutes is */5 * * * * root /usr/sbin/drivertodrivercp &>/dev/null Feb 17 16:56:10 Is there logic in /usr/sbin/drivertodrivercp to prevent multiple copies from running? I doubt that it will be able to complete its task in 5 minutes in all cases. Feb 17 16:57:00 Frankly, for 5 minute intervals, you are better off created a script that just runs the /usr/sbin/drivertodrivercp script until it completes, then sleeps for 5 minutes and runs it again. Easier. Feb 17 16:57:22 Start that script in a startup script in /opt/etc/init.d. Feb 17 16:58:56 The big downside I see to this approach is that if you are doing much work on the first drive (writing to it via samba, for example), the drivertodriversp script will begin syncing the second disk, and your performance will plummet (the slug doesn't have the CPU or IO to spare). Just FYI. Feb 17 17:00:03 mwester_: there is logic to prevent Feb 17 17:00:11 mwester_: this is just a stress test i'm doing Feb 17 17:01:24 is this the correct syntact for every 5 minutes though: */5 * * * * root /usr/sbin/drivertodrivercp &>/dev/null Feb 17 17:02:22 It is for some cron versions. try it; see what it says. Otherwise you have to list the minutes past the hour expressly (see the man page for cron, most of them define both syntaxes). Feb 17 17:02:28 scant: looks fine, although i can never remember crontab syntax, consult "man 5 crontab" always Feb 17 17:07:27 let me try Feb 17 17:07:27 thanks guys Feb 17 17:31:41 i'm trying this script to mount after a sucessful fsck, but it's not working, am i doing it wrong? Feb 17 17:31:41 if [ $? = 1 ]; then Feb 17 17:32:05 '/sbin/fsck.ext3 /dev/sdc1' Feb 17 17:32:06 'if [ $? = 1 ]; then' Feb 17 17:32:06 '/bin/mount -t ext3 /dev/sdc1 /share/disk' Feb 17 17:33:16 scant: the return code is 0 for success, other values are coded errors Feb 17 17:34:01 oh, so it should be $? = 0? Feb 17 17:36:57 at the end of my S99mount script, should I put a return 0? Feb 17 17:38:28 er, yeah! Feb 17 17:39:35 mwester_: at the end of my rc.modules diversion script in /unslung, should i put a return 0? Feb 17 17:40:35 Read the wiki on diversion scripts, the return value of the diversion script determines if the original script runs as well, or not -- in other words, the return value of the diversion script determines if the diversion script itself REPLACES or is an ADDITION Feb 17 17:40:45 I don't remember which is which... Feb 17 17:40:54 ok Feb 17 17:40:56 thanks Feb 17 17:41:12 mwester_: that crontab syntax isn't working Feb 17 17:41:20 Did you try both Feb 17 17:41:27 oh, wait, let me try something Feb 17 17:44:42 mwester_: i have a second drive, attached to a USB 1.1 hub on the USB 2 port on the slug, everytime I boot up, it starts to scandisk this drive flags with /tmp/Scandisk, but never deletes the flag Feb 17 17:45:35 why is it doing that... Feb 17 17:47:43 Dunno - sounds like the mysteries of the Linksys code at work. I would presume that it starts a "scandisk" (fsck), but it never finishes correctly. I'd look in "dmesg" or /var/log/messages to see if there are hints. Feb 17 17:49:09 dmesg? Feb 17 17:52:56 mwester_: it says, devfs_register(disc): could not append to parent, err: -17 Feb 17 17:53:15 Not sure what that means, but it sounds like a problem of some sore. Feb 17 17:53:20 s/sore/sort/ Feb 17 17:53:20 mwester_ meant: Not sure what that means, but it sounds like a problem of some sort. Feb 17 17:53:27 ~botsnack Feb 17 17:53:28 mwester_: aw, gee Feb 17 17:53:48 Does the disk work ok if not on the hub? Feb 17 17:53:57 mwester_: yes, and fsck.ext3 says it's fine Feb 17 17:54:14 So its a problem with the hub, or with the disk on the hub. Feb 17 17:54:18 mwester_: when i run ps, it says USB_367 root 1904 S /usr/sbin/USB_Detect Feb 17 17:54:18 370 root 1900 S /usr/sbin/USB_Detect Feb 17 17:54:26 opps Feb 17 17:54:40 Those are just the Linksys daemons that do all the magic. Feb 17 17:54:56 mwester_: when I run ps, I have multiple entries for USB_Detect, onetouch_detect, CheckPowerResetButton Feb 17 17:54:59 is this normal? Feb 17 17:55:03 Yes Feb 17 17:55:12 that seems odd Feb 17 17:55:13 tho Feb 17 17:55:20 One per drive Feb 17 17:55:29 oh Feb 17 17:55:39 Not sure about the CheckPower one Feb 17 17:55:54 mwester_: is there a way to make my rc.halt script run when I press powerbutton? Feb 17 17:56:28 Does it not run then? Feb 17 17:57:31 mwester_: i'm talking about my rc.halt diversion script in /unslung... I thought that is only run when I do DO_Shutdown Feb 17 17:58:10 mwester_: i would like the diversion script to run when I press the powerbutton as well Feb 17 17:58:16 I'm not sure, but I would imagine that the power button daemon would also invode DO_Shutdown to do the job? Feb 17 17:58:35 If it does not, there is no way to change that, it is Linksys code. Feb 17 17:58:41 k Feb 17 17:59:22 is there a way to invoke the linksys scandisk from a command line to see why it's not quitting and removing the/tmp/Scandisk flag? Feb 17 19:34:14 nabend Feb 17 19:34:30 ? Feb 17 19:34:36 guten abend Feb 17 19:34:43 good evening Feb 17 19:35:04 Sie sind here nigth in der deutste irc Feb 17 19:35:20 12o14k Feb 17 19:35:44 Hi Tommy, deutcher Channel ist #nslu2-german Feb 17 19:35:44 hellou Feb 17 19:35:52 12o14k 12t14hanks Feb 17 21:08:32 anyone have an idea the average load their slug runs? Feb 17 21:08:43 1+ Feb 17 21:09:07 ya noticed mine is also around there, didn't expect it to be that high i guess Feb 17 21:10:21 thanks for the info Feb 17 21:10:31 The networkdriver keeps it 1 aldo it doesn't do anything. Feb 17 21:13:42 * caplink811_log thinks, that was a point in the faq, but it seems that it is gone.. Feb 17 22:28:32 has someone tested django on a slug ? Feb 17 22:29:35 I'm running it, (without database) seems kind of slow Feb 17 22:30:07 have you de-underclocked your slug? Feb 17 22:30:46 Remember, its only a 133mhz, or 266 de underclocked Feb 17 22:31:56 I think mine is 266 Feb 17 22:32:49 cat /proc/cpuinfo Feb 17 22:33:57 Processor : XScale-IXP425/IXC1100 rev 1 (v5b) Feb 17 22:33:57 BogoMIPS : 263.78 Feb 17 22:38:42 Thats all but 266 Feb 17 22:40:38 arg, I've just bought it and it was made in 05/06 so I believed that was a 266 Feb 17 22:41:24 if its reporting 266 +/- 10% Feb 17 22:41:34 its "deunderclocked" Feb 17 22:46:58 is there a way to see cpu usage Feb 17 22:47:13 on my pc I use top Feb 17 22:47:23 uptime? Feb 17 22:49:10 alain__: for optware, /opt/bin/top is part of procps Feb 17 22:53:51 ok thx Feb 17 22:55:48 lol django take all my mem Feb 17 22:56:03 lol Feb 17 22:57:40 so it's mem bound Feb 17 23:26:01 hi all. does anyone have any luck installing and running enhanced-ctorrent? Feb 17 23:42:26 hi muerte Feb 17 23:45:07 hi drif Feb 17 23:46:40 Muerte yes it works fine Feb 17 23:47:24 sama here Feb 17 23:47:53 same Feb 17 23:49:11 it figures. i dunno what i'm doing wrong. i'm new to linux. when ever i try to start ctorrent it just says no such file or directory Feb 17 23:50:30 you write ctorrent or enhanced-torrent Feb 17 23:50:53 enhanced-ctorrent I mean Feb 17 23:51:35 yeah, i've tried that but i just get no such file or directory Feb 17 23:53:08 hmm Feb 17 23:53:12 ipkg files enhanced-ctorrent | grep bin Feb 17 23:53:31 I get /opt/bin/enhanced-ctorrent Feb 17 23:53:54 so enhanced-ctorrent should work fine Feb 17 23:58:41 well. i just found a site. so while i was in /opt/bin i tried ./enhanced-ctorrent and get a list of switches Feb 18 00:00:21 but if it's in /opt/bin that mean you can type enhanced-torrent from anywhere Feb 18 00:01:12 ok. but that does not work. must be something else wrong then Feb 18 00:02:19 i read on nslu2-linux that i should start ctorrent by using nohup enhanced-ctorrent blahblah. but it just says nohup: no such file or directory Feb 18 00:03:44 alain__: in order to invoke a command by just the name, it must be in your PATH variable. If you telnet in, you must manually set your path to include /opt/bin, if you use SSH the SSH server sets the path for you. Feb 18 00:04:07 nohup is not a standard command in Unslung, you need to install it. Feb 18 00:04:39 Use the ipkg search tool on the www.nslu2-linux.org website to find which package contains that command (I don't remember which one does it)... Feb 18 00:04:59 maybe that's it. i telnet in the thing. must be that path thingie Feb 18 00:05:19 I highly recommend using ssh instead of telnet for many reasons. Feb 18 00:08:08 does this ssh come with windows or do i have to download it? Feb 18 00:09:21 You need an ssh client for windows (I recommend PuTTY - google will find it). You need to "ipkg install openssh" on the NSLU2. PuTTY can do SSH, as well as telnet -- and is a much nicer windows GUI than the windows telnet tool. Feb 18 00:10:30 And you never have to do any of the "Enable Telnetd" stuff with the Unslung web gui with ssh. Feb 18 00:14:20 ok. sounds very good. i'm tried of enabling telnet everytime i boot the nslu. Feb 18 00:23:21 omg Feb 18 00:23:32 i loaded a torrent Feb 18 00:23:37 :) Feb 18 00:24:34 i downloaded the putty and started the ctorrent client and it shows up in the browser Feb 18 00:24:37 amazing Feb 18 00:31:24 when i press on the torrent it says "Download is stalled Feb 18 00:31:33 " Feb 18 02:58:47 hi all Feb 18 02:58:53 can someone give me a good mirrors for NSLU2? Feb 18 02:59:17 for debian **** ENDING LOGGING AT Sun Feb 18 02:59:57 2007