**** BEGIN LOGGING AT Mon Apr 14 02:59:57 2008 Apr 14 14:58:53 Hi, everyone. I am having trouble with running crontabs. Can anybody please help me? Apr 14 15:24:09 just ask your question Apr 14 15:24:34 Dinkers: shoot! Apr 14 15:25:46 thats a bit violent Apr 14 15:26:15 Reedy: :S Sorry. Apr 14 15:26:22 ;P Apr 14 15:27:31 ~:) Apr 14 16:02:55 hi@all Apr 14 16:09:27 Cool thanks. I have followed this guide ; http://www.nslu2-linux.org/wiki/HowTo/RtorrentLikeAPro Everything works except the the part when Iam supposed to do the crontab thing. Actually it works as well but the BT.html file is empty. Apr 14 16:09:36 Qlues? Apr 14 16:19:04 paste your crontab line Apr 14 16:21:52 */5 * * * * root python /opt/bin/rtorstat.py /public/torrents/sessions/ > /home/httpd/html/BT.html Apr 14 16:29:17 check the output of the script Apr 14 16:30:10 like in python /opt/bin/rtorstat.py /public/torrents/sessions Apr 14 16:37:06 I am sorry for being stupid but i don't really get how i should do that. Apr 14 16:37:31 he means actually run it Apr 14 16:37:35 python /opt/bin/rtorstat.py /public/torrents/sessions Apr 14 16:37:40 whats it display on screen? Apr 14 16:37:51 As all you are doing there is redirecting it to a file Apr 14 16:40:52 ahh. sorry. It creates the code for a nice html page. looks sweet. And I would like to add that the previos step in the guide i followed. When I created a abc.html file worked perfectly. Apr 14 16:41:24 so that parts actually working? Apr 14 16:41:33 ie the file *is* created/replaced Apr 14 16:42:37 yes. the only thing that doesn't work is when i add it to crontab. Apr 14 16:43:18 hm, do you add it to your user's crontab? Apr 14 16:45:18 maybe it's trying to become root and fails, or you need the full path to the binary, are you sure cron is running at all? Apr 14 16:46:29 hmm. well I am logged in as root. That must mean that I am not. But i don't know actually. The BT.html file is -rwxrwxrwx Apr 14 16:47:17 yes last file was created one minute ago Apr 14 16:47:22 ah Apr 14 16:47:28 that's odd Apr 14 16:47:35 it is Apr 14 16:48:00 try putting in the path for the python binary Apr 14 16:50:59 I am sorry but how do i find the path to the python binary? Apr 14 16:51:14 which python. i would guess it's not installed Apr 14 16:51:45 /usr/bin/python Apr 14 16:51:47 = Apr 14 16:51:49 ? Apr 14 16:51:58 so look into the logfiles... if there are any Apr 14 16:52:18 hm, why doesn't openslug iptables support --dport? trying to set up port forwarding... Apr 14 16:53:41 don't find any log files Apr 14 16:56:27 Dinkers: since you already have optware installed, why not install optware python2.4 Apr 14 16:56:43 and set python to /opt/bin/python2.4 ? Apr 14 16:56:51 or 2.5 if you want Apr 14 17:00:30 I tried by typing ipkg install python2.5 but no such package were found. Apr 14 17:00:44 "/opt/bin/ipkg install python25" Apr 14 17:01:13 (be aware it's a big package) Apr 14 17:02:34 merci. Apr 14 17:04:15 so when that is installed should i change the line in crontabs from python to opt/bin/python2.5? Apr 14 17:04:44 yes, to /opt/bin/python2.5 Apr 14 17:12:06 nope. no improvement Apr 14 17:14:30 since it works when i am not running it from crontab I don't think it's a python problem Apr 14 17:17:30 I am actually starting to think that unslung doesn't really fullfill my needs. Thinking of moving to debian. Unless It would have been such a hasel installing Apr 14 17:19:50 Dinkers: check /var/log/messages Apr 14 17:20:22 Did you check the standard stuff -- crontab does not set env vars such as $HOME, $PATH, etc. Apr 14 17:21:20 how did you create the cron entry, i'm not sure unslung cron supports /etc/cron.d/ Apr 14 17:22:10 log message first: Apr 14 17:22:11 Apr 14 13:24:01 (none) cron.info /opt/sbin/cron[2179]: (root) CMD (root /opt/bin/python2.5 /opt/bin/rto$ Apr 14 17:23:06 i created it by the command crontab -e Apr 14 17:23:17 that should be ok Apr 14 17:23:40 Does the log entry really end there, or was that a cut-n-paste limit? Apr 14 17:23:50 looks like it's trying to execute the root comman to me Apr 14 17:24:47 good observation, nicolas_ Apr 14 17:26:18 Oops sorry, my bad. torstat.py /public/torrents/sessions/ > /home/httpd/html/BT.html) Apr 14 17:26:30 is the correct end to that line Apr 14 17:29:23 so what happens if you remove the "root" from the crontab line? Apr 14 17:30:28 and leaving it empty? Apr 14 17:32:30 well in that case it works alright! Apr 14 17:32:40 bastardo!!! Apr 14 17:33:36 hat of to you mr mwester Apr 14 17:34:13 do i dare ask another question? Apr 14 17:34:52 if you dont ask, you wont get an answer Apr 14 17:37:08 at the end of that howto, there's a short guide howto remap keys in dtach Apr 14 17:37:45 but it still doesn't work. Think i need some help with it too. Apr 14 17:38:05 BTW, have you updated any errors you've found/asked questions to fix? Apr 14 17:39:03 In the wiki? no I haven't. Apr 14 17:39:17 Please do if you find errors and get answers Apr 14 17:39:34 Its sorta one of the community rules - especially if "we" help to the answer Apr 14 17:40:06 Ok, Sure thing. Apr 14 17:40:10 :) Apr 14 17:40:13 Which page re: dtach? Apr 14 17:40:48 http://www.nslu2-linux.org/wiki/HowTo/RtorrentLikeAPro Apr 14 17:43:09 did you already remove "root" from your crontab line? Apr 14 17:43:09 Could just use screen Apr 14 17:44:37 yes i could. Just thaught that dtach isn't using that much memory Apr 14 17:46:11 How should i change the text in the wiki? Should i add a line saying something about if your using unslung then ,,, or should i just remove root from the text already written? Apr 14 17:47:10 Just add a note/comment/line :) Apr 14 17:47:31 ok! Apr 14 17:53:43 This is my first contribution so i don't now it looks ok. Care to check it out? Apr 14 17:53:49 http://www.nslu2-linux.org/wiki/HowTo/RtorrentLikeAPro Apr 14 17:54:16 hope i didn't mess it up all to much Apr 14 17:55:42 if you remove root in unslung version, ppl can ocpy 'n paste Apr 14 17:57:13 i've just done that Apr 14 17:57:14 Of course that was my intention. Thanks. Apr 14 17:57:19 :) Apr 14 17:57:28 thanks reedy Apr 14 17:58:37 and Thank you all that helped med with this. You guys are the best! Now I'll watch my downloads for awhile. Apr 14 17:58:39 :-) Apr 14 17:59:03 do ya think I can use the NSLU2 in conjunction with an usb-dvb-t tuner as a streamingserver? Apr 14 17:59:20 if you can do it with a PC... probably... Apr 14 17:59:48 * Reedy notes the increasing number of people in here with WMF hostmasks ;) Apr 14 18:02:26 what's that Apr 14 18:03:37 WikiMedia Foundation Apr 14 18:07:01 are they spys Apr 14 18:07:37 lol Apr 14 18:07:38 no Apr 14 18:13:11 just geeks :D Apr 14 18:13:51 DogBoy, u know wikipedia? Apr 14 18:13:59 never heard of it Apr 14 18:14:30 anyway, the WMF runs it Apr 14 18:15:08 my slug should be in the mailbox today Apr 14 18:15:13 no way Apr 14 18:15:43 so they are the ones vandalizing hillary's entry? Apr 14 18:34:57 DogBoy, no, vandals are Apr 14 18:35:09 just pulling your legs Apr 14 18:35:14 ;P Apr 14 18:35:35 did you see that bit on onthemedia about it Apr 14 18:35:57 nope Apr 14 18:37:40 oh, it was last week: http://onthemedia.org/transcripts/2008/04/04/02 Apr 14 18:41:20 1080p is .... ? Apr 14 18:41:21 http://en.wikipedia.org/wiki/1080p Apr 14 18:41:33 so, it's like almost always, take a look at wikipedia and you get your answer :) Apr 14 18:49:18 really thanks mwester, your help made all my crontab jobs to work Apr 14 19:01:59 heh Apr 14 19:02:33 btw Apr 14 19:02:47 are both USB ports fullspeed or is one USB1.1 only Apr 14 20:49:20 hello Apr 14 20:50:22 I would like to run java in a Synology CS 407, do you now how please ? Apr 14 20:51:02 How do I flash the firmware using Vista x64? I tried using the sercomm utility, but it says that it is the wrong version for my operating system, that I need to contact the manufacturer for an x64 version of the software Apr 14 20:51:37 peabody, force into XP SP2 compatabilty mode Apr 14 20:51:44 I ran it in compatibility for XP sp2 in admin mode as the FAQ says Apr 14 20:52:10 but it doesn't even get to a UAC prompt to run in privledged mode Apr 14 20:52:53 I havent actually tried it on vista since i upgraded Apr 14 20:55:08 I can't use the linksys firmware updater in the web interface, can I? Apr 14 20:55:49 If its on the stock firmware, then yes, you can Apr 14 20:56:25 hmm Apr 14 20:56:55 should I install it to a thumb drive, or should I install it to my USB where I will share all my media from? Apr 14 20:57:09 What is the proper way to umount a usb unit with unslung? Apr 14 20:59:24 hmm bedtime Apr 14 20:59:27 thanks Apr 14 22:59:17 hm, the 5.0 debian installer seems to be hanging at apt configuration... anybody seen this? the connection is still up and i can ssh in. it's been like an hour or so... Apr 14 23:12:30 ok, killing the process + re-running seems to work Apr 14 23:51:13 hm, can i just flash /target/boot/apex.flash to the firmware to boot from disk? Apr 15 00:20:14 Anyone here? Apr 15 00:20:37 hey Apr 15 00:20:40 If I unslung one box and have the drive that I used to do it, can that same drive be used to boot another NSLU2 that has already been unslung? Apr 15 00:20:59 yes Apr 15 00:21:05 Or is there something in there that it knows it is not the disk that was used. Apr 15 00:21:08 Okay... Apr 15 00:21:37 So, I can use another drive to unslung a second box, and then format it and clone the first box and then the two will be the same?? Apr 15 00:22:14 if they both have unslung installed, they could both use the same disk/image you have Apr 15 00:23:17 Okay, great! thanks! Apr 15 00:42:57 DRJ - How many NSLU2's do you have? Apr 15 00:43:04 1 Apr 15 00:43:20 why? Apr 15 00:43:53 I'm just wondering what everyone is doing with thiers. I've tried to get mediatomb to run on mine. Apr 15 00:44:17 But I keep having a problem with file copies... It bombs out and says the share is gone after about 4 or 5 MP3's. Apr 15 00:44:41 Unable to track down the problem, so I have another one here to try. I thought I had a line on 3 or 4 free ones, but it didn't pan out... Apr 15 00:45:13 might want to consider upgrading samba Apr 15 00:46:05 http://www.nslu2-linux.org/wiki/Optware/Samba Apr 15 00:46:07 Is there an upgrade for Samba that is newer than 6.10 beta? Apr 15 00:46:09 might help fix your problem Apr 15 00:46:16 eh Apr 15 00:46:21 samba on unslung is samba2 Apr 15 00:46:28 you can install samba3 Apr 15 00:46:40 instructions at that link I pasted above Apr 15 00:47:00 Is three better than 2 or is it something totally different? Apr 15 00:47:07 yes Apr 15 00:47:25 but Apr 15 00:47:34 it will basically render the linksys web config useless Apr 15 00:47:51 Hmmmm Apr 15 00:47:57 you'll use the SWAT web control panel for settings once you install samba3 Apr 15 00:48:15 Isn't the default ip 192.168.0.77 when you hold the reset button for 10 seconds/til it beeps? Apr 15 00:48:31 yea Apr 15 00:49:20 Hmmm... This one I just upslug2 on doesn't seem to answer to that IP... Apr 15 00:51:19 is your computer in the 192.168.0.x network? Apr 15 00:53:45 Yes. Apr 15 00:57:34 I don't know then Apr 15 00:57:51 you could try to port scan Apr 15 00:59:12 So, holding it in until it beeps is supposed to reset the IP right? Apr 15 00:59:29 Holding it in 30 seconds is supposed to do something too, right? I believe that was reset the password? Apr 15 01:00:36 I don't plug the usb HDD in until it is booted up, right? Apr 15 01:01:37 have you already unslinged? Apr 15 01:01:50 eh, nvm Apr 15 01:01:53 obviously not Apr 15 01:05:39 do you know what the IP was before you installed unslung on it Apr 15 01:05:40 ? Apr 15 01:08:36 No, I got it off ebay... Apr 15 01:09:29 the slug probably has an ip of 192.168.1.x then Apr 15 01:09:30 Smurf-Slayer: i think you have to telnet into redboot to reset the config Apr 15 01:09:53 eh, I would try searching the 192.168.1.x network first Apr 15 01:10:24 How would you do that? Apr 15 01:10:24 Smurf-Slayer Apr 15 01:10:43 What doesn't holding the reset button in until it beeps cause it to go back to 192.168.0.77? Apr 15 01:11:11 Doh! That's what it is, it defaults to 192.168.1.77, not 0.77, right? Apr 15 01:11:14 it's 1.77, read the wiki or scan your network (nmap -sP) Apr 15 01:11:23 yea, hehe Apr 15 01:16:13 I did 192.168.1.x but it didn't come back with anything? Apr 15 01:20:21 I can't remember how I got to it last time. They had me add the 192.168.1.x to my ETH0 card on my Ubuntu box, but I think someone had another way that was quicker that worked, but I can't remember what it was! ARG! Apr 15 01:22:03 I thought it was this, "sudo route add 192.168.1.77 eth0" but that doesn't work either. Apr 15 01:24:12 Any ideas? Apr 15 01:30:59 Hmmm... It is still saying that it is R23V63 even though I have UPSLUG2'd it twice now? What am I doing wrong? Apr 15 01:31:32 This is my command : sudo upslug2 --image Unslung-6.10-beta.bin Apr 15 01:31:47 And it goes through and says everything is fine and reboots... Apr 15 01:32:17 But then I put it back in to programming mode and run UPSLUG 2 again and it still says R23V63? Apr 15 01:34:00 That's the signature on the wire; Unslung is based on v63 firmware, and that firmware identifies itself. Apr 15 01:34:34 Mwester! How are you? Apr 15 01:34:49 So you are saying it is really updated, but I can't tell using that? Apr 15 01:36:02 I've held the reset button in for the 10 seconds to reset the IP (and it beeped) and I've also held it in for over thirty seconds. BUt I can't get to it. I can't remember how you goes walked me through it last time so I could change the IP from 192.168.1.x to 192.168.0.x Apr 15 01:37:07 "goes" = "guys" Apr 15 01:37:58 why do you even want to do that? Apr 15 01:38:46 So I can get to it from my other computers. Apr 15 01:40:49 Or do you mean something other than the IP address? Apr 15 01:41:51 so unslung is installed? Apr 15 01:42:27 I have ran UPSLUG2 several times with the command above. So, yes, I believe it is. Apr 15 01:43:00 so you don't know the ip of the box? Apr 15 01:43:32 well, it should be 192.168.1.77 since I reset it. But all of my computers are on 192.168.0.x so they can't see it. Apr 15 01:43:45 do you have a linux box? Apr 15 01:44:08 Yes Apr 15 01:44:14 I've tried this... Apr 15 01:44:23 try ifconfig eth0:0 inet 192.168.1.1 up Apr 15 01:44:24 I thought it was this, "sudo route add 192.168.1.77 eth0" but that doesn't work either. Apr 15 01:44:42 then use whatever method to change the ip once you can access it Apr 15 01:44:49 i think unslung has the web interface Apr 15 01:45:28 I did that command too, and I can't get to it. Apr 15 01:45:43 then it's not on 192.168.1.77 Apr 15 01:46:05 nmap -sP 192.168.1.1-255 Apr 15 01:46:16 Holding the reset button in until it beeps (about 10 seconds) is supposed to set it back to 192.168.1.77, right? Apr 15 01:46:38 i don't know and i really don't think so Apr 15 01:46:49 as i told you before, telnet into red boot Apr 15 01:47:22 I don't know how to do that? I didn't do it on the last one, but I will try? Apr 15 01:48:09 The nmap said that 192.168.1.1 appears to be up, which is one of the ETH0:0 things on ifconfig Apr 15 01:48:39 yeah, that's your linux box. you could try other subnets or go to http://www.nslu2-linux.org/wiki/HowTo/TelnetIntoRedBoot Apr 15 01:49:21 and http://www.nslu2-linux.org/wiki/HowTo/ResetSysConf Apr 15 01:54:27 I didn't have to do that to be able to get in to the last one I didn't know the IP of? Apr 15 02:25:54 Smurf-Slayer: The wiki lists the URL for the place that stores the logs of this channel; you could find the logs for the last time you needed help with this. Apr 15 02:26:48 Smurf-Slayer: You can also try this: http://moko.mwester.net/unslung_sample_bootdisk.zip -- If that is helpful, please write that up for the wiki. **** ENDING LOGGING AT Tue Apr 15 02:59:56 2008