**** BEGIN LOGGING AT Fri Dec 29 02:59:59 2006 Dec 29 09:35:14 hello - anyone online today? Dec 29 09:42:29 anyone got a minute to talk about vsftpd? Dec 29 09:45:02 hi m1key Dec 29 09:45:07 what's on your mind Dec 29 09:48:56 i've finally got vsftp to run sucessfully and can connect to it from work Dec 29 09:49:11 i was wondering could i limit speeds and connection times with it Dec 29 09:55:45 anyone?# Dec 29 09:58:37 http://www.die.net/doc/linux/man/man5/vsftpd.conf.5.html Dec 29 10:01:33 thanks, i'll have a look at that Dec 29 10:07:40 anyone recommend the next package i should try out - i've got openssh and vsftpd now and both seem to work - what is an easy one with an easy to follow guide? Dec 29 10:16:20 it would greatly depends on your needs Dec 29 10:16:24 -s Dec 29 10:17:15 on=upon Dec 29 10:19:09 where do i get the *latest* version of slugimage. The ubuntu version in edgy seems too old to extract the intel firmware Dec 29 10:25:19 fraco: can you build it yourself? that way you get the latest latest version Dec 29 10:25:38 its a perl script Dec 29 10:25:43 nothing to be built i think Dec 29 10:25:54 but i discoved that my slug actually had the latest version Dec 29 10:25:59 ubuntu didn't Dec 29 10:26:02 so its fixed Dec 29 10:26:03 thnx Dec 29 10:26:05 there you go Dec 29 12:01:11 I've done the upgrade to the rc1 debianslug according to http://cyrius.com/debian/nslu2/upgrade.html Dec 29 12:01:17 from the logs it seems to boot Dec 29 12:01:29 but it doesn't reply on the ip address i set for it Dec 29 12:01:53 any suggestions? Dec 29 12:36:41 wiki down? Dec 29 12:36:43 never mind Dec 29 12:56:07 in the /var/log/messages of my slug i find ixp4xx_mac driver 0.2.1: eth0 on NPE-B with PHY[1] initialized Dec 29 12:56:13 but the ethernet is not working Dec 29 12:56:31 at least it ignores the address set in /etc/network/interfaces Dec 29 12:56:40 upgrade to the rc1 debianslug according to http://cyrius.com/debian/nslu2/upgrade.html Dec 29 12:56:45 was working before that Dec 29 13:32:36 hi Dec 29 15:12:48 r Dec 29 15:12:50 hello Dec 29 15:12:58 :) Dec 29 15:30:35 hi Dec 29 15:41:43 I have a "slug" where only the static IP address info was entered before loading the installer, not DNS, gateway, etc. Is there a way to recover it? Dec 29 15:47:04 after installing the firmware, I cannot even ping the interface that I configured Dec 29 15:54:25 can you access RedBoot? Dec 29 16:18:12 Jollino: I assume that I'll need to connect a serial cable to access RedBoot? Dec 29 16:20:05 maybe there's a way to restore the original firmware, then configure all static information, then try again? Dec 29 16:20:22 (been searching the wiki and googling to no avail thus far) Dec 29 16:21:04 http://www.nslu2-linux.org/wiki/HowTo/TelnetIntoRedBoot Dec 29 16:21:20 restore unslung or linksys firmware Dec 29 16:21:31 fix the ip information Dec 29 16:21:46 telnet back into redboot and load firmware of choice Dec 29 16:25:27 ByronT: is that the only way to revert to unslung if you want to get rid of openslug? Dec 29 16:26:22 hi all, how do i allow myself to add a file to my /unslung folder with chmod - what is the code? Dec 29 16:29:08 chmod 777 /unslung would allow any user to read, write and access the directory Dec 29 16:29:40 using telnet into Redboot and placing slug in upgrade mode is the recommended way of flashing firmwares Dec 29 16:30:58 oh, i see Dec 29 16:31:05 i installed unslung from the linksys interface Dec 29 16:33:02 ByronT: thanks, I'll give it a try Dec 29 16:39:43 yes, Jollino - but unslung would not have cared about missing DNS, gateway, etc.... Dec 29 16:47:38 indeed :) Dec 29 16:48:11 i announce that i installed unslung-devel and i shall attempt compiling tor unstable to see if it fixes that problem i have with the packaged version Dec 29 16:50:42 "/nick M1k3y Dec 29 16:51:03 can anoyne help with this error? Dec 29 16:51:40 # /etc/rc.d/rc.xinetd Dec 29 16:51:47 # : No such file or directory Dec 29 16:51:53 # /unslung/rc.xinetd: 11: Syntax error: end of file unexpected (expecting "then") Dec 29 16:52:12 i've put a diversion script in my /unslung folder so i can run vsftpd Dec 29 16:52:24 and i'm restarting the service and getting that error - any idea? Dec 29 16:56:58 anyone? Dec 29 17:02:55 Mlk3y: you have a syntax error in the file, it seems. Check that you have the content in the file entered correctly, and make sure that you did not use a Windows text editor to create the file (Windows leaves extra characters in files). Dec 29 17:06:29 i used vim/cream within windows - is that wrong? Dec 29 17:06:49 Don't know - probably. Dec 29 17:07:00 so how do i edit the file correctly - it is in /unslung and is called rc.xinetd Dec 29 17:07:27 can you tell me the commands for that please? - i'm quite a newb with linux commands Dec 29 17:09:57 You'll need a Linux text editor -- "vi" is provided, although considered primitive. Google "vi" for info on how to use it. Some prefer "nano", you'll have to install that with "ipkg" Dec 29 17:09:57 hello Dec 29 17:10:18 Why are you installing vsftpd? Dec 29 17:10:41 so my nslu2 is an ftp server Dec 29 17:10:49 (there is an ftp server built in with the R63 Linksys firmware, and that is also part of Unslung 6.8) Dec 29 17:11:07 You will have to figure out how to disable the Linksys ftp server in order to run vsftpd as well. Dec 29 17:11:29 is it not better to install a different ftp server? - surely leaving the other one unticked is enough? Dec 29 17:12:01 It is better if one knows what features one requires of the new one, and one can get it running! Dec 29 17:12:23 fair point Dec 29 17:12:25 :) Dec 29 17:12:39 It is much easier to use the Linksys one than it is to get diversion scripts running and xinetd running if one doesn't know Linux -- yet. :) Dec 29 17:14:44 i have had the normal one running and found it very easy Dec 29 17:15:44 do you see anything wrong with this? Dec 29 17:15:57 #!/bin/sh^M Dec 29 17:16:03 # /unslung/rc.xinetd^M Dec 29 17:16:09 ^M Dec 29 17:16:15 if [ ! -f /etc/inetd.conf ] || !(grep vsftpd /etc/inetd.conf -q) ; then^M Dec 29 17:16:20 echo "ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf" >>/etc Dec 29 17:16:24 fi^M Dec 29 17:16:28 ^M Dec 29 17:16:34 return 1^M Dec 29 17:16:35 :) Those ^M symbols are the first problem -- that's Windows debris. Dec 29 17:17:01 right - i'll try and delete them, save it and try again Dec 29 17:17:37 Windows will just add them in again. It thinks the proper line ending has those characters. Dec 29 17:17:49 i mean edit it in VI Dec 29 17:17:58 is it a bad idea to just overwrite the tor executable from optware with a newer, just compiled version? Dec 29 17:17:58 That would work. Dec 29 17:18:03 (éwhich fixes my problem) Dec 29 17:18:21 Jollino: I would mv the tor aside. Did you install it with ipkg? Dec 29 17:19:24 hmm - seems to have compiled fine now i took the funny characters out Dec 29 17:20:07 will try a restart on the slug Dec 29 17:20:18 see if we get any joy Dec 29 17:20:44 Hopefully it will start ok. You did install ssh before you did this, right? Dec 29 17:21:04 yes i use putty after installing and setting up openssh Dec 29 17:21:44 i am right in thinking i can use a normal ftp program like cuteftp or ftprush to try it out arent i? Dec 29 17:21:47 mwester: i installed tor with ipkg, but the ipkg'd version kept giving me errors when i set up a hidden service.. so i installed unslung-devel and compiled the unstable version of tor myself and it works Dec 29 17:21:59 Ok, good -- enabling telnet uses the same indetd, and if something goes terribly wrong with this particular diversion script, you can render telnet unusable -- which is a bit of a problem if one doens't have ssh running! :D Dec 29 17:22:30 hmmm - i try to ftp in and i now get this error: Dec 29 17:22:31 Error reading response from server. Dec 29 17:22:40 how can i tell if the ftp server is even running? Dec 29 17:23:13 Jollino: no problem. If you replace the tor executable, all will be well (ipkg doesn't know the difference). Just note somewhere that you've done it so that if you ever do an ipkg remove or update, and have to revert, you know that what ipkg wil put back will be the old (non-working) version.... Dec 29 17:23:45 Mlk3y: Check the log files on Unslung. /var/log/* Dec 29 17:25:51 mwester: alright; is there a way to prevent a package from being upgraded with ipkg upgrade? Dec 29 17:25:54 nothing that suggests ftp in there? Dec 29 17:29:51 grrr i'm lost now Dec 29 17:31:04 Jollino: not to my knowlege. ipkg's simplicity keeps its size minimal, but also precludes useful features like that. Dec 29 17:31:12 same error: error reading response from server Dec 29 17:31:54 Mlk3y: you did install and configure vsftpd, right? Dec 29 17:35:40 i'm not 100% on that as the wiki is quite vague - have you done it, or would you be able to advise me more on it if i say what i have done so far? Dec 29 17:38:01 No, I've not done it -- I've looked at it, and decided that it was more trouble than I cared to deal with just replace the existing FTP service -- which is a frustrating service, 'tis true -- but less frustrating than configuring vsftpd. Dec 29 17:39:43 To start, check the obvious: make sure that /opt/bin/vsftpd exists, and that the config file in /opt/etc/vsftpd.conf also exists and has reasonable content for what you wish it to do. Dec 29 17:40:45 yep they both exist fine within the admin disk 2 part of my unslung HD - the config file is default and nothing is changed for the moment Dec 29 17:40:48 Also check the contents of /etc/inetd.conf and make sure that the line referencing vsftpd is there. Dec 29 17:41:39 (the default config file is likely not to be useful for Unslung -- it's quite possible that like most packages, it's the default provided by the vsftpd developers not tuned for Unslung in any way. Dec 29 17:41:42 ) Dec 29 17:42:31 also when i log into ftp - i presume as i created it on the admin part of the disc under root i log in as admin/admin? Dec 29 17:44:30 No, user ids on ftp come from the system's passwd database. The config file is where you will specify rules restricting or granting user ids. since vsftpd stands for Very Secure FTPD, I suspect that the defaults will be to lock out everythign, and the config file will be required to provide access by specific accounts, perhaps to specific areas. Dec 29 17:45:23 hmm there is no line in inetd.conf - the file is empty Dec 29 17:50:09 i think i'm going to leave this on the back burner till someone does a decent guide and use the built in FTP server Dec 29 17:53:39 If the file is empty, then there is a problem with the diversion script -- check that the line starting with "echo" is correct (that's the line that appends the vsftpd info to the inetd.conf file) Dec 29 17:56:10 Mlk3y: s/till someone does a decent guide/till Mlk3y gains a bit more experience with Linux/ --- there are things in the wiki that are truely "cookbook" approaches, and there are many others that are guidelines and techniques that requrie just a bit of experience -- vsftpd is one of the more challenging installtions, even on a desktop Linux system -- and certainly far more interesting to... Dec 29 17:56:11 ...install on Unslung. Dec 29 18:09:36 hi Dec 29 18:10:06 Mlk3y : have you the option "listen" in the file /opt/etc/vsftpd.con ? Dec 29 18:10:31 do you have the option "listen" in the file /opt/etc/vsftpd.conf ? Dec 29 18:19:31 hi sorry did not see the reply Dec 29 18:19:38 i've removed the package for now Dec 29 18:19:51 i think it is a bit beyond my level for the moment and will revist it later Dec 29 20:24:59 hello again Dec 29 20:25:37 mwester: are you a member of the optware team? i could provide the tor 0.1.2.4-alpha executable if you want Dec 29 20:39:00 Jollino: Mwester does the unslung firmware images Dec 29 20:39:39 http://www.nslu2-linux.org/wiki/Info/WhoIsWho Dec 29 20:47:42 Jollino: eno handles optware, he's most often on #nslu2-linux Dec 29 20:48:59 The feeds are built from source; we don't redistribute binaries (for obvious reasons). If you can share what you did to fix the problem with tor, it would be great to fix the source (pun intended ;) of the problem and update the feed... Dec 29 20:49:28 well i really just compiled tor 0.1.2.4 after installing unslug-devel :) Dec 29 20:50:35 i have no idea what's wrong with the tor package in ipkg, it is a problem related to libevent because i compiled tor 0.1.2.4 against ipkg's libevent, and it went well Dec 29 21:54:22 just wondering... 'free' tells me that the slug has arodun 30 MB of physical ram and 56 MB of swap Dec 29 21:54:32 what happens if it gets all used? will it automatically allocate more swap? Dec 29 22:01:01 Jollino, it's going to lock up Dec 29 22:01:44 ah Dec 29 22:02:37 http://www.nslu2-linux.org/wiki/HowTo/AddAdditionalSwapSpace <- cool :) Dec 29 23:22:31 ok this is a lame question... are the scripts in /opt/etc/init.d run sequentially according to the file name? (i'm used to rc.d scripts :) Dec 29 23:23:57 Jollino: Yes. Dec 29 23:24:23 as usual in a linux/unix environment, S01 before S99, and with kxx vice versa Dec 29 23:24:49 hmm i only have Sxx files here Dec 29 23:25:27 unslung does not have a "proper" shutdown mechanism IIRC Dec 29 23:25:47 i reckon that Sxx scripts are for startup and kxx for shutdown? Dec 29 23:26:03 dunno, what environment you use?, with unslung, Kxx (stop scripts) aren't supported Dec 29 23:26:19 yeah, joll Dec 29 23:26:37 ino.. Dec 29 23:26:48 ;) Dec 29 23:26:49 thanks Dec 29 23:26:57 i'm going to make a little script to run tor at boot Dec 29 23:37:48 ugh why does it take so long to come back to life after a reboot Dec 29 23:38:55 ~2 mins, but it depends on your disk size Dec 29 23:39:23 (talking about unslung fw) Dec 29 23:39:28 does it fsck's the disk every time? Dec 29 23:40:05 no, but you should divert the rc.quotad Dec 29 23:40:18 hmm Dec 29 23:40:24 divert the rc.quotad Dec 29 23:40:27 * Jollino scratches his chin Dec 29 23:41:05 which calculast the quotas at each reboot Dec 29 23:41:26 and how would i divert it? Dec 29 23:41:40 we are talking about unslung? Dec 29 23:41:42 yes Dec 29 23:41:43 6.8 Dec 29 23:44:04 i think i found it out, i have to create a small bash script that returns 1 in /unslung Dec 29 23:44:12 with the same name of the script i want to bypass, rc.quota in my case Dec 29 23:44:23 er, it should return 0 Dec 29 23:44:27 am i right? :) Dec 29 23:44:31 add a file like this Dec 29 23:44:35 http://rafb.net/p/XmTbrW11.html Dec 29 23:44:54 i had gotten it right, cool. :) thanks! Dec 29 23:45:28 maybe, that this is one point of a delayted startup Dec 29 23:45:39 i will try it right now Dec 29 23:46:29 i have an irc bot i wrote running at boot, so i can time how fast the reboot is :) Dec 29 23:47:00 the pings are already coming back Dec 29 23:47:17 it took around 45 seconds this time Dec 29 23:47:21 thanks, caplink :) Dec 29 23:47:40 np ;) Dec 29 23:54:12 hm i just rebooted again (i'm trying startup scripts) and it's taking ages again Dec 29 23:54:22 you chmod +x ? Dec 29 23:56:04 yes Dec 29 23:56:39 there is another way on http://www.nslu2-linux.org/wiki/HowTo/FixSlowBootup, as soon as the slug comes back to life i'll try it .. and then to go sleep myself :) Dec 29 23:57:40 a nice idea that is, seems should follow :) Dec 29 23:58:06 i should, i meant Dec 29 23:59:48 I'm always leery of "fixes" that seem to rely on odd side-effects. Who knows what the device is *really* doing, and who knows what might be interrupted or skipped by the use of the "noatime" option. Use with care, would be my thought... Dec 30 00:01:08 nobody knows the trouble... Dec 30 00:01:33 well actually... dmesg does mention "recovery" on EXT3-fs Dec 30 00:03:35 urgh, someone knows about my opinion of the linksys fsck.ext3 Dec 30 00:04:26 * mwester has actually been considering replacing the Linksys ext3 utilities... Dec 30 00:11:28 which is a good idea ;) Dec 30 00:14:00 now this is funny, the init.d script i made for my irc bot works perfectly, but the one i made for tor does not... although if i run it manually it works. i even gave it the full path to the executable *sigh* **** ENDING LOGGING AT Sat Dec 30 02:59:58 2006