**** BEGIN LOGGING AT Sat Jan 06 02:59:59 2007 Jan 06 09:58:26 anyone know much about downloading torrents with the nslu2? Jan 06 10:11:39 m1ch, you should realy read the howto's 1st Jan 06 10:11:43 ~nslu2-howto Jan 06 10:11:44 have a look at the HowTo's at http://www.nslu2-linux.org/wiki/HowTo/HomePage Jan 06 10:12:04 where you will find this page http://www.nslu2-linux.org/wiki/OpenSlug/InstallCtorrent Jan 06 10:13:24 i just wondered as a general query as they were not to clear on if this is possible... Jan 06 10:13:44 can you remote in (say from work)..download a torrent file to the slug(or copy one across) and then let it download on that? Jan 06 10:31:00 actually forgetting torrents for a minute - can anyone help me with this trying to set up vsftpd... Jan 06 10:31:30 i get this error when running this command: # /etc/rc.d/rc.xinetd Jan 06 10:31:42 i get this error returned: # Bad line in config file /opt/etc/vsftpd.conf... Jan 06 10:31:59 i've only put the standard config file there and not changed anything Jan 06 10:57:33 anyone advise? Jan 06 11:04:33 i can't see what i've done wrong Jan 06 11:12:25 :(? Jan 06 11:37:47 anyone help me with the above problem with vsftpd please? - really struggling Jan 06 11:58:13 i now get this: Jan 06 11:58:15 500 OOPS: failed to open vsftpd log file:/opt/var/log/vsftpd.log Jan 06 12:03:22 i now can get to enter username and password but it wont accept anything Jan 06 12:13:15 anyone:(? Jan 06 12:16:29 I'm here, but just got in. Jan 06 12:16:40 did you have a question? Jan 06 12:17:17 yeh -it was about vsftpd - i'm trying to set it up - do you know much about it Jan 06 12:19:00 ah. using unslung? Jan 06 12:20:23 yes Jan 06 12:23:22 did you see the wiki page? Jan 06 12:23:26 yes Jan 06 12:23:33 i can ftp in.. Jan 06 12:23:41 but when it asks for username/password Jan 06 12:23:54 it always says incorrect Jan 06 12:24:47 did you check the local_enable? Jan 06 12:25:08 no - i will try that now Jan 06 12:25:09 and the check_shell? Jan 06 12:25:26 there is some troubleshooting on the wiki page, maybe that helps Jan 06 12:25:59 can you see that vsftp is running in the process list? (ps -ef) Jan 06 12:28:43 yes two instances it seems: Jan 06 12:28:43 648 nobody 1556 S /opt/sbin/vsftpd /opt/etc/vsftpd.conf Jan 06 12:28:53 650 ftp 1608 S /opt/sbin/vsftpd /opt/etc/vsftpd.conf Jan 06 12:30:18 looks good Jan 06 12:30:27 anything in the logs? Jan 06 12:30:47 i turned them off as it would not run with them (for the moment) Jan 06 12:31:53 I just restarted the slug - now them process are not running? Jan 06 12:32:33 yet the ftp says connected and welcome message etc even though still wont let me log in with user/pass Jan 06 12:32:59 right. Jan 06 12:33:20 did you check the vsftpd.conf options? there is some info in http://vsftpd.beasts.org/vsftpd_conf.html Jan 06 12:33:57 see userlist_enable and userlist_deny, maybe these are on and you will be denied unless you are in the userlist... Jan 06 12:34:23 I'd think the log files will report someone trying to access but not being in the user list Jan 06 12:34:26 are logs enabled? Jan 06 12:34:37 anything in the log files? Jan 06 12:34:40 no - i turned them off as it would not work with them Jan 06 12:36:48 can't you set dual_log_enable=YES and read results in /var/log/vsftpd.log? Jan 06 12:38:37 also set xferlog_enable=YES to be sure Jan 06 12:38:54 if i can't cd to a folder because of permissions..what is the permission so i can? Jan 06 12:39:20 from within vsftp or just in your shell? Jan 06 12:40:51 ahh got it Jan 06 12:42:34 eh, got what? does it work now? or can you cd? or did you find the log files? the suspense is killing me Jan 06 12:45:08 sorry got the ownership command Jan 06 12:45:08 lol Jan 06 12:45:17 just going to do as you said and enable the logs Jan 06 12:47:07 well i enabled logs but got this error with my ftp client: Jan 06 12:47:17 Connected to 81.151.43.237:21 in 0.000000 seconds, Waiting for Server Response Jan 06 12:47:25 500 OOPS: failed to open vsftpd log file:/opt/var/log/vsftpd.log Jan 06 12:47:45 guess i need to chmod some permissions - any idea what? Jan 06 12:47:49 did you start vsftp as root or as a user? Jan 06 12:48:04 root (using putty and openssh) Jan 06 12:48:36 I'd think that vsftp would have all permissions to access /opt/var/log/vsftpd.log Jan 06 12:48:48 or does the /opt/var/log directory not exist? Jan 06 12:48:55 exists yes Jan 06 12:49:00 what does ls -al /opt/var return? Jan 06 12:49:34 drwxr-xr-x 3 root root 4096 Dec 27 19:20 log Jan 06 12:50:18 maybe for now you can do a chown 777 /opt/var/log Jan 06 12:51:39 hmm..still get the same 500oops error Jan 06 12:52:45 hm. maybe the file is locked. it shouldn't, but you can disable it in the conf file using no_log_lock=YES Jan 06 12:54:48 k just done that - same error Jan 06 12:54:50 brb in 5 Jan 06 12:55:31 can you do: Jan 06 12:55:31 mkdir -p /opt/var/log Jan 06 12:55:31 touch /opt/var/log/vsftpd.log Jan 06 12:55:55 and then reboot, see if that gives an error and what happens after reboot Jan 06 13:01:59 k back now - will try Jan 06 13:02:42 k Jan 06 13:02:57 k just waiting for it to come back up Jan 06 13:04:50 same error: Jan 06 13:04:51 500 OOPS: failed to open vsftpd log file:/opt/var/log/vsftpd.log Jan 06 13:04:57 strange Jan 06 13:05:19 and the touch /opt/var/log/vsftpd.log did not give an error? Jan 06 13:05:41 nope Jan 06 13:05:48 what does this give: ls -al /opt/var/log Jan 06 13:06:24 drwxr-xr-x 2 777 root 4096 Dec 27 19:20 vsftpd.log Jan 06 13:07:31 right. why is that a directory and not a file? Jan 06 13:08:10 do a mv /opt/var/log/vsftpd.log /opt/var/log/vsftpd.log.dir Jan 06 13:08:21 and try again Jan 06 13:08:34 k Jan 06 13:09:17 (we just rename the vsftpd.log to a vsftpd.log.dir, but we might as well remove that directory if all goes well after this. Curious to see what was in that directory, or if it was just an accident, but first things first) Jan 06 13:09:17 ok seems to not give the previous error though does not like user/pass Jan 06 13:10:04 right. now tell me what is in the log file Jan 06 13:10:15 k Jan 06 13:11:12 Sat Jan 6 13:01:58 2007 [pid 498] CONNECT: Client "192.168.1.1" Jan 06 13:11:20 Sat Jan 6 13:01:58 2007 [pid 497] [ftpuser] OK LOGIN: Client "192.168.1.1" Jan 06 13:12:45 odd Jan 06 13:12:58 so that seems to suggest it is ok? Jan 06 13:13:03 what is the time on the machine? (do a 'date') Jan 06 13:13:17 i guess my paths for the users must be wrong now? Jan 06 13:13:28 Sat Jan 6 13:06:32 GMT 2007 Jan 06 13:14:11 fix your time... saves some trouble later. Jan 06 13:14:20 web admin part ? Jan 06 13:14:21 but yes, it seems to suggest it is ok Jan 06 13:14:51 ok time sorted Jan 06 13:15:32 ok - so it must be something to do with user level access now i guess? Jan 06 13:15:58 well, svftp says login ok, but the client says not ok? Jan 06 13:16:27 correct Jan 06 13:16:41 what is the client error again? Jan 06 13:17:07 well i get this now.. Jan 06 13:17:16 500 OOPS: cannot change directory: Jan 06 13:17:36 that is logging in as a user i created in the web interface a while ago who has a share on the HD as well Jan 06 13:18:59 the homedirectory of that user might not exist Jan 06 13:19:16 create a new user, and try vsftp'ing with that user Jan 06 13:19:56 so create new user called vsftpd - and create them a private folder share through web admin? Jan 06 13:20:09 do you have a "local_root" defined in the .conf file? Jan 06 13:20:16 no, just use the command line Jan 06 13:21:17 like: adduser m1chftp Jan 06 13:21:21 i dont have that defined in the conf file - do i need it? Jan 06 13:21:40 don't think you need it, but we'll try that later Jan 06 13:21:54 k Jan 06 13:22:21 how do i create a user in command line? - is this the same as creating a user in the web app? Jan 06 13:22:45 i created a user last week called website with its own private folder called website - can i use this one for the test? Jan 06 13:22:58 might be, but if you do: adduser m1chftp Jan 06 13:23:03 you'll be fine Jan 06 13:23:26 k Jan 06 13:23:31 you can try website as well if you wish Jan 06 13:23:44 k -i'll stick with website (don't want files and users everywhere) Jan 06 13:24:13 :) the user can be deleted again... but that's ok Jan 06 13:24:31 so just tried logging in with that...first i left the username off...it said invalid username..so entered that and no pasword and it said invalid password...so entered the correct password and this was interesting... Jan 06 13:24:54 it went straight o failed to connect - reason : Jan 06 13:24:55 500 OOPS: cannot change directory: Jan 06 13:25:10 looks like it is not pointing at anything then for that user? Jan 06 13:26:22 funny. hold, I'll have to cut an apple in pieces for my niece Jan 06 13:26:39 lol k Jan 06 13:28:13 :) Jan 06 13:28:23 still nothing in the log files? Jan 06 13:29:34 anything special on vsftp when you do: tail /var/log/messages Jan 06 13:29:39 is there any homedir entry for that user in /etc/passwd? Jan 06 13:30:27 caplink - i think that is where i'm struggling Jan 06 13:30:45 the guide recommends this: Jan 06 13:30:46 someuser:xxxx:2000:501::/share/hdd/data/someuser:/bin/sh Jan 06 13:31:06 so mine would be website:xxxx:2000:501::/share/hdd/data/website:/bin/sh Jan 06 13:31:09 is that correct Jan 06 13:31:20 hm... do make your new m1chftp user like I said, that will generate a proper home directory Jan 06 13:31:29 k will do Jan 06 13:32:40 adduser ftptest does not work? Jan 06 13:33:05 if ftptest doesn't exist yet, it would work Jan 06 13:33:15 you may try a telnet/ssh login with your new user/password, or with user website 1st Jan 06 13:34:31 k that command did not do anything - do you want me to log in using telnet as the user website i created a while ago? Jan 06 13:34:50 just do a "login website" from the commandline Jan 06 13:35:12 or login ftptest Jan 06 13:35:55 k interested - lets me in and says this:Cannot execute /dev/null: Permission denied Jan 06 13:36:10 No directory, logging in with HOME=/ Jan 06 13:36:12 right, no sh defined for that user Jan 06 13:36:16 and no directory Jan 06 13:36:33 because it was created using the webinterface, only for samba login purposes Jan 06 13:36:49 ahh right Jan 06 13:36:57 makes sense Jan 06 13:37:14 "exit" will get you out of this user Jan 06 13:37:15 so how do i put this right? - the wiki does mention about this but i can't fathom it Jan 06 13:37:39 now try a command-line-created user Jan 06 13:37:53 i was unable to create one with your previous command? Jan 06 13:38:18 what did adduser ftptest say to you? Jan 06 13:38:44 jelle, adduser is optware Jan 06 13:38:50 oh. sorry Jan 06 13:39:00 let's fix the homedirectory and shell then Jan 06 13:39:04 k Jan 06 13:39:35 where are your home directories? /home? Jan 06 13:39:44 do a mkdir -p /home/website Jan 06 13:39:53 chown website /home/website Jan 06 13:40:15 my website user has a folder called website Jan 06 13:40:27 cool Jan 06 13:40:28 this is just located in share/hdd/data/website Jan 06 13:40:30 i think Jan 06 13:40:31 ? Jan 06 13:40:34 that sound right Jan 06 13:40:42 so i access that via \\nas\website Jan 06 13:40:47 if that exists, it could be, but that is on the hdd Jan 06 13:41:02 edit the /etc/passwd file Jan 06 13:41:19 ok i'm in the passwd file Jan 06 13:41:42 website:hskjfsfhsfsfs3sds:2003:501:Website Administrator::/dev/null Jan 06 13:42:06 I'd like the website line to end with /share/hdd/data/website:/bin/sh Jan 06 13:42:18 so between the :: you put the home directory Jan 06 13:42:27 and instead of /dev/null you put the shell Jan 06 13:43:14 so i need to mk the home directory first before that then? Jan 06 13:43:23 I'd think it exists Jan 06 13:43:39 so the final line will be Jan 06 13:43:40 do: stat /share/hdd/data/website Jan 06 13:43:51 (sorry, running to fast) Jan 06 13:43:57 give me the final line Jan 06 13:45:16 website:hskjfsfhsfsfs3sds:2003:501:Website Administrator:website:/share/hdd/data/website:/bin/sh Jan 06 13:45:27 looks good Jan 06 13:45:36 now do: stat /share/hdd/data/website Jan 06 13:46:04 (or ls -al /share/hdd/data) Jan 06 13:46:24 stat is in coreutils, no base software :( Jan 06 13:46:40 hihihi, so do the ls thing... Jan 06 13:47:06 ok..drwxrwxr-x 3 admin everyone 4096 Jan 1 17:54 website Jan 06 13:47:25 that should work Jan 06 13:47:41 now do "login webiste" Jan 06 13:47:41 ok - now try logging in to ftp again as that user Jan 06 13:47:50 in putty still? Jan 06 13:47:55 yep Jan 06 13:48:01 that should give no errors Jan 06 13:48:20 No directory, logging in with HOME=/ Jan 06 13:48:27 Cannot execute website:/share/hdd/data/website:/bin/sh: No such file or directory Jan 06 13:48:55 ah, something wrong in the /etc/passwd file Jan 06 13:49:36 k Jan 06 13:49:57 it should read: Jan 06 13:50:09 remove the single word website and the : from the passwd line Jan 06 13:50:09 website:hskjfsfhsfsfs3sds:2003:501:Website Administrator:/share/hdd/data/website:/bin/sh Jan 06 13:51:53 interested - bit different: Jan 06 13:51:54 Cannot execute /share/hdd/data/website:/bin/sh: Permission denied Jan 06 13:52:29 i keep typing interested instead of interested for some reason! Jan 06 13:52:35 grr done it again Jan 06 13:52:38 interesting#### Jan 06 13:54:28 as jelle mentioned, there is one field to much in that user line in /etc/passwd Jan 06 13:55:02 user:password:uid:gid:comment:homedir:shell Jan 06 13:55:19 website:scqmomL5aLqxQ:2003:501:Website:Administrator:/share/hdd/data/website:/bin/sh Jan 06 13:55:27 above is what it is currently Jan 06 13:56:19 then remove the : between Website and Administrator, this will be ok Jan 06 13:56:47 7 fields, 6 : , not more, not less Jan 06 13:56:50 cool - no errors when doing login website now Jan 06 13:58:11 k -tried my ftp client and got this error: Jan 06 13:58:11 500 OOPS: cannot change directory:/share/hdd/data/website Jan 06 13:58:53 i feel we are very close! Jan 06 13:59:07 yes. try chmod 777 /share/hdd/data/website Jan 06 13:59:32 oh the wiki says something similar: Jan 06 13:59:34 * Problem: 500 OOPS: cannot change directory:/root when attempting to Login as root Jan 06 13:59:40 Cause: The sub-directory /root does not exist Jan 06 13:59:44 Solution 1: Use #mkdir /root to create the sub-directory Jan 06 13:59:49 Solution 2: Use vi to edit the /opt/passwd file. Change /root to / or an existing directory. Jan 06 14:00:08 that's what you have done before Jan 06 14:00:16 k Jan 06 14:00:19 i'll try the chmod Jan 06 14:00:51 chown website /share/hdd/data/website should work as well Jan 06 14:01:58 did both - same error: Jan 06 14:01:59 500 OOPS: cannot change directory:/share/hdd/data/website Jan 06 14:05:04 what does "login website" say? Jan 06 14:05:07 same error Jan 06 14:05:12 no - no errors Jan 06 14:05:34 just trying a reboot Jan 06 14:05:46 (seems to fix most things at work!) Jan 06 14:06:29 oh hang on Jan 06 14:06:42 No directory, logging in with HOME=/ Jan 06 14:06:43 i get that Jan 06 14:06:52 did not notice that Jan 06 14:11:25 how can i sort that bit out? Jan 06 14:11:40 when the slug is up again, login as root and enter ls -la /share/hdd/data/website, and post the result pls Jan 06 14:12:40 or just ls -la /website what should give the same result Jan 06 14:13:59 it displays the contents of website (my webpages) Jan 06 14:15:18 ah, sorry, ls -la / or ls -la /share/hdd/data, we only need the line with website in it Jan 06 14:16:19 drwxrwxrwx 3 website everyone 4096 Jan 1 17:54 website Jan 06 14:17:09 open a 2nd terminal session and log in as website pls Jan 06 14:17:31 terminal == telnet/ssh Jan 06 14:17:59 k - i have to log in as root, enter my passphrase then login website - that is ok isnt it? Jan 06 14:18:14 try a 2nd telnet session pls Jan 06 14:18:30 and use website as login name Jan 06 14:18:30 k - in Jan 06 14:18:34 k Jan 06 14:18:36 in Jan 06 14:18:41 no errors? Jan 06 14:18:47 No directory, logging in with HOME=/ Jan 06 14:18:58 result of commando pwd is? Jan 06 14:19:20 what's that sorry? Jan 06 14:19:36 pwd what is the output? Jan 06 14:20:03 just does this / Jan 06 14:20:27 k,assuming, that there is a typo in the /etc/passwd user line Jan 06 14:20:46 k - i'll go back to that? Jan 06 14:21:24 website:scqmomL5aLqxQ:2003:501:WebsiteAdministrator:/share/hdd/data/website:/bin/sh Jan 06 14:22:42 hm, i see nothing wrong with that line... jelle? Jan 06 14:28:26 anything i can try? Jan 06 14:28:57 you're logged in as user website? Jan 06 14:29:14 i was - i will do again now Jan 06 14:29:38 k - am now Jan 06 14:30:00 then log in, and enter cd /website , that gives which result Jan 06 14:30:01 ? Jan 06 14:30:15 gives # Jan 06 14:30:30 pwd? Jan 06 14:30:32 ls allows me to list and shows my website files Jan 06 14:30:42 pwd returns /website Jan 06 14:30:47 ok Jan 06 14:30:57 I'd like to have a /home/website (or /website) directory indeed Jan 06 14:31:12 don't like the share/hdd .... might be fat32, not having the right permissions Jan 06 14:31:49 so change my passwd file to be /website instead of all the other stuff infront? Jan 06 14:31:52 /share/hdd/data is equal to / when it is the unslinged drive Jan 06 14:32:04 ah. Jan 06 14:32:12 I'm too much into openslug... sorry Jan 06 14:33:15 so everything seem ok there? Jan 06 14:33:23 but the main problem is, why can user website cd in his homedir, and the login shell can't? Jan 06 14:35:43 hm Jan 06 14:38:57 m1ch, you're still logged in as user website? Jan 06 14:39:18 yes Jan 06 14:39:52 echo $USER ; echo $HOME gives which result? Jan 06 14:40:04 2 secs, i just decided to reboot after answering that Jan 06 14:42:07 strange... I just tried to create the same user over here, with that home directory. works fine. Jan 06 14:44:51 i've edited passwd file and put /website instead of all that share hdd data stuff Jan 06 14:44:54 gives no error Jan 06 14:45:19 and lets my ftp client log me in! Jan 06 14:46:06 interesting - so it was just the wrong path Jan 06 14:46:27 no, it isn't, normally Jan 06 14:46:39 this is mine ls -la / result Jan 06 14:46:42 drwxr-xr-x 20 joerg everyone 4096 Oct 24 21:41 joerg Jan 06 14:46:56 here is a question - if i want a user to have access to two folders - how would i achieve that? Jan 06 14:47:07 instead of just their own fold Jan 06 14:47:08 and this is the passwd line Jan 06 14:47:11 folder# Jan 06 14:47:16 joerg:sctxxxxxq6:2000:501::/share/hdd/data/joerg:/opt/bin/bash Jan 06 14:47:33 you updated busybox? Jan 06 14:47:41 caplink811_log: maybe m1ch's hdd is not mounted right Jan 06 14:48:08 curious Jan 06 14:48:11 mine is mounted to slot 2 if that makes any difference -i'd be interested to check and make sure? Jan 06 14:48:34 ahja, moment Jan 06 14:49:07 m1ch: you can edit the samba.conf file to add users to shares, or maybe use the webinterface, but I don't know much about the webinterface... Jan 06 14:49:24 k Jan 06 14:49:27 m1ch: can you do a "mount" ? Jan 06 14:49:29 use the webinterface is a better solution, in that case Jan 06 14:49:36 no big problem, something to worry about at a later date Jan 06 14:50:00 ok results of 'mount' Jan 06 14:50:47 2 secs Jan 06 14:50:59 # /dev/sda1 on /initrd type jffs2 (rw) Jan 06 14:51:07 # /dev/sda1 on / type ext3 (rw) Jan 06 14:51:14 # /proc on /proc type proc (rw) Jan 06 14:51:22 # usbdevfs on /proc/bus/usb type usbdevfs (rw) Jan 06 14:51:29 # /dev/sda1 on /share/flash/data type ext3 (rw) Jan 06 14:51:36 # /dev/sda2 on /share/flash/conf type ext3 (rw,sync) Jan 06 14:51:38 that's all Jan 06 14:52:10 k, that is the problem, with 6.8 dev/sda is slot2 but it use /share/flash... Jan 06 14:52:24 yes, not /share/hdd Jan 06 14:52:44 sorry you have lost me? Jan 06 14:52:53 have i made a big mistake or something? Jan 06 14:53:03 your passwd pointed to /share/hdd, but the disk is mounted on /share/flash Jan 06 14:53:09 anyone here familiar with scsi-idle, debianslug and/or klog ? when i run scsi-idle my disk spinsdown for a few seconds then usually starts back up, i dont have much running on the slug. Jan 06 14:53:14 the handling of disks in unslung-6.8 is different as in unslung-5.5 Jan 06 14:53:43 i'm still lost? Jan 06 14:54:10 myself assumning /dev/sda1 = Jan 06 14:54:19 myself assumning /dev/sda1 = /share/hdd/data Jan 06 14:54:58 but it is /dev/sda1 == /share/flash/data, and so the path to the homedir of the website user was wrong, but the short works Jan 06 14:56:08 so my long path was wrong but my short path is fine? Jan 06 14:56:33 yes Jan 06 14:56:43 cool ok Jan 06 14:57:20 barnseenio, but your disk is ext3 formatted? Jan 06 14:58:32 jelle and caplink811_log - THANKS very much for your help there - i've now got the basics of it working - just going to look at setting correct permissions now Jan 06 14:58:51 my disk is exxt3 yes, i have no flash disk, just on usb hd into slug Jan 06 14:59:41 *one Jan 06 15:01:42 m1ch: you can turn off some of the logging again, that we turned on to sort things out Jan 06 15:01:47 if you wish Jan 06 15:02:01 maybe a good idea to log downloads anyway? Jan 06 15:02:16 sure, if you ever look at it.. :) Jan 06 15:02:28 lol Jan 06 15:02:47 should i set home directories and things for root, admin and other users - even if not going to use FTP? Jan 06 15:03:19 barnseenio, assuming that the problem is the ext3 journaling, which do something each 5 secs (afaik) Jan 06 15:04:45 oh, i kinda thought it might be some process touching the disk, logging or something Jan 06 15:06:19 thats too Jan 06 15:07:29 but haven't done any research yet.. so no realy experiences with this topic Jan 06 15:08:19 jelle - caplink....i want to give someone a home directory of DISK2 Jan 06 15:08:19 how would i do this? Jan 06 15:09:38 assuming (because i've only one drive) it should be something like /share/hdd/data/username Jan 06 15:10:13 depends on where the disk is mounted Jan 06 15:10:20 is the disk plugged in now? Jan 06 15:10:21 but i don't know, how it works, when you create the user in the webif Jan 06 15:10:37 it was whatever was created as default when i set it all up - it is connected yes Jan 06 15:11:26 I see only one disk in your "mount" results. Jan 06 15:11:37 do you have 2 disks plugged in? Jan 06 15:12:04 k, foolish linksys logic Jan 06 15:12:30 disk 2 is a standard share Jan 06 15:12:57 hi Jan 06 15:12:58 lol that is correct Jan 06 15:13:09 so how do i set that as somoenes home dir? Jan 06 15:13:22 can smbd gimme the command for formatting the HDD over telnet Jan 06 15:13:43 /public it is Jan 06 15:13:48 stojan: are you sure? you will wipe the disk Jan 06 15:13:53 lol Jan 06 15:13:59 i am mummy Jan 06 15:14:12 which device is it? /dev/sda? Jan 06 15:14:21 what format do you want? linux? Jan 06 15:14:27 EXT3 Jan 06 15:14:31 i want Jan 06 15:14:39 but what does sda stand vor and hda ? Jan 06 15:14:58 *for Jan 06 15:15:02 sda is the first usb disk. Jan 06 15:15:08 caplink - i just put /public or /public/disk2 Jan 06 15:15:26 hda would be an internal hard disk, I doubt you have that in you slug. Jan 06 15:15:26 ah its on the USB#2 slot Jan 06 15:15:38 sdb? Jan 06 15:15:48 only /public, you can verify this, by copy a file to this share, and then ls -la /public Jan 06 15:15:55 would be sdb1 or sdb2 or sdb3... Jan 06 15:16:03 is it mounted right now? Jan 06 15:16:11 are u german? Jan 06 15:16:12 (run: "mount") Jan 06 15:16:19 nope. nl. Jan 06 15:17:08 hmm yea i typed in "mount" Jan 06 15:17:17 and there came like 5 lines Jan 06 15:17:21 k it is indeed /public - thanks caplnik Jan 06 15:17:58 i think its mount Jan 06 15:18:01 but nvm Jan 06 15:18:07 the problem i have is: Jan 06 15:18:18 i put on the nslu the new firmware Jan 06 15:18:30 i format my extern HDD with FAT32 Jan 06 15:18:54 and under linksys firmware it shows disk2: FAT/NTFS ready... Jan 06 15:19:06 then i put on unslug 6.8 beta Jan 06 15:19:14 and then it says NOT FORMATTED Jan 06 15:19:25 i think its cuz its not EXT3 Jan 06 15:19:35 ok then i pressed format Jan 06 15:20:01 and let it work for like 12 hours Oo nothing changes..still formatting.... Jan 06 15:20:48 then i rebooted the nslu and put in the HDD into my pc and it says its a EXT2 on it with another EXT2 and the swap Jan 06 15:21:11 then i thought yea looks nice Jan 06 15:21:23 put it again into the nslu and it still says not formatted Jan 06 15:21:38 nad i have this problem for like 3 days Oo Jan 06 15:21:54 jelle - caplink - is this IRC chat logged at all - i just stupidly closed the window when i wanted to copy our entire conversation so i could save it and refer to later Jan 06 15:22:49 m1ch, just a moment, i'll pastebin the conversation Jan 06 15:22:51 so nowi want to format it over telnet and see if its workin... Jan 06 15:22:57 excellent:) Jan 06 15:23:21 caplink811_log: was just doing that :) Jan 06 15:23:38 stojan: paste the mount outcome Jan 06 15:23:39 save my time :) Jan 06 15:23:51 how to copy from the telnet? Jan 06 15:24:04 rightklick there comes ERROR blabla Jan 06 15:24:22 # mount Jan 06 15:24:24 hmm Jan 06 15:24:25 wiat Jan 06 15:24:45 /dev/mtdblock4 on / type jffs2 (rw) Jan 06 15:24:51 /proc on /proc type proc (rw) Jan 06 15:24:56 m1ch: http://pastebin.com/852764 Jan 06 15:24:59 usbdevfs on /proc/bus/usb type usbdevfs (rw) Jan 06 15:25:08 /dev/mtdblock4 on /dev.state type jffs2 (rw) Jan 06 15:25:16 ramfs on /dev type ramfs (rw) Jan 06 15:25:23 /dev/mtdblock4 on /var.state type jffs2 (rw) Jan 06 15:25:29 ramfs on /var type ramfs (rw) Jan 06 15:25:35 none on /tmp type ramfs (rw) Jan 06 15:25:35 jelle - caplink - once again thank you Jan 06 15:25:57 m1ch: np Jan 06 15:26:22 stojan: right. what does fdisk -l say? Jan 06 15:26:48 nothin Jan 06 15:27:14 hm. and fdisk -l /dev/sda ? Jan 06 15:27:14 # fdisk -l Jan 06 15:27:48 can i post more Jan 06 15:27:54 I'm trying to find what device it is that you want to format... don't want to format the wrong device Jan 06 15:28:02 it says sda1 = linux Jan 06 15:28:07 sda2 = linux Jan 06 15:28:08 stojan: paste in pastebin.com and put the url here Jan 06 15:28:11 sda3 = swap Jan 06 15:28:33 ok. does fdisk -l /dev/sdb return something too? Jan 06 15:29:18 sdb! doesnt say anythin Jan 06 15:29:56 jelle - caplink - do you know what setting is needed to change so two people can log on with the same username? Jan 06 15:30:31 stojan, before you trying it again and again, it might be better to read some pages, like those http://www.nslu2-linux.org/wiki/Unslung/WhatIsANativeUnslungDisk, http://www.nslu2-linux.org/wiki/HowTo/CustomSizedPartitions, http://www.nslu2-linux.org/wiki/FAQ/BadConfPartition Jan 06 15:30:40 stojan: you have only 1 disk? Jan 06 15:30:51 caplink811_log: hurray Jan 06 15:30:57 yea Jan 06 15:30:57 second that Jan 06 15:31:26 jelle, crappy unslung-6.8 behavior, port2 -> /dev/sda port1 -> /dev/sdb Jan 06 15:32:23 the latter link may tell you a possible solution Jan 06 15:33:08 its weird Jan 06 15:33:21 i have pluged in my HDD at port 2 but it says sda Jan 06 15:41:23 stojan: that's indeed strange but known behaviour. that's why I wanted to try to find it from the inside (using mount and things like that) instead of by portnr Jan 06 15:41:48 I think you should re-unsling to be sure all is well Jan 06 15:41:58 but that's just my 2 cents. Jan 06 15:42:21 read the wiki pages first though Jan 06 15:42:52 formatting would be like: mkfs.ext3 /dev/sda1 Jan 06 15:43:56 jelle/caplink - how do i set it so the same user can log in from multiple connections Jan 06 15:45:02 on a newly bought nslu2, do i need to do any installation from windows or is there another way I can find out it's IP address? Jan 06 15:45:08 m1ch, the feature is included Jan 06 15:45:27 m1ch: I'd think that would not be an error, what is the setting of max_clients in vsftp.conf (or are you not referring to sftp?) Jan 06 15:45:30 igge, sure, read the wiki.. Jan 06 15:45:32 just bought my nslu2... checked the wiki for this question but couldn't find it... Jan 06 15:45:37 or try 192.168.1.77 Jan 06 15:45:42 oh... checking again then... Jan 06 15:45:51 ah... thanks... Jan 06 15:46:18 caplink811_log: but just for reference.. where is that on the wiki? checked the faq but wasn't there... Jan 06 15:48:34 jelle - there was not a max clients set - i've just set it to 10 and going to try again Jan 06 15:48:46 that will allow more than 1 user at a time? Jan 06 15:48:54 or more than 1 of the same user Jan 06 15:50:39 igge, ok it's hard to find, but it is there http://www.nslu2-linux.org/wiki/HowTo/RecoverFromABadFlash Jan 06 15:51:39 caplink811_log: ok... Jan 06 15:51:47 np Jan 06 15:52:20 tried to connect to it as well and it worked... :) now i'm going to have a fun saturday night playing around with it... :) Jan 06 15:52:58 much fun :) Jan 06 15:54:24 jelle - caplink - that max clients has worked it seems Jan 06 15:55:13 2more questions then my eyes and body and brain will give up for the day! Jan 06 15:55:26 1. Do i need to change any settings to allow FXP Jan 06 15:55:37 2. Can i limit the times people can access my FTP? Jan 06 15:57:08 m1ch, did you read http://vsftpd.beasts.org/vsftpd_conf.html yet, as jelle mentioned above? Jan 06 15:57:25 yes read that previously Jan 06 15:57:35 oh now Jan 06 15:57:39 oh no# Jan 06 15:57:40 sorry Jan 06 15:57:43 not read that one Jan 06 15:58:55 ok last question - how do i sort the time out on nslu2 - it seems to keep losing time Jan 06 15:59:46 you could use ntpdate or ntp, there is a howto in the wiki Jan 06 16:00:40 excellent ok Jan 06 16:01:12 caplink /jelle....i've really enjoyed the last few hours and am very grateful to you both for your kind help Jan 06 16:01:24 np Jan 06 16:01:45 i'm going to write up what i did and add it to my webpage - which runs thttpd as set up using the wiki:) Jan 06 16:02:03 http://mperrin.homelinux.com Jan 06 16:05:23 see you all later - have a good one Jan 06 16:12:38 hi! i'm getting about 136kB/s max write speed with NFSv2/3, yet the Performance page on the wiki suggests i should be getting around 3.5MB/s Jan 06 16:13:07 any ideas why and what i can do to fix it? Jan 06 16:30:27 guzzle, have done the standard things, e.g disable upnp at your whole network, setup your network port to 100mbs/full duplex Jan 06 16:32:25 full duplex is enabled, no upnp.. i'm getting 2.9MB/s write with AOE Jan 06 16:33:14 and 11MB/s with netio i think it was, i could test it again.. Jan 06 16:41:14 just redid the netio test and i can confirm it's 11MB/s Jan 06 16:42:13 i'll try connecting my nfs client (this computer) directly to the slug without going through my router, to see if that changes anything.. brb Jan 06 16:46:32 no luck.. thought it might have been qos on my router, but no. still 138kB/s :( Jan 06 16:47:17 caplink811_log, any ideas? Jan 06 16:59:48 i get a nice read speed of 4.2MB/s though.. really don't get it Jan 06 17:03:26 guzzle, any chance to try it with smb/cfs? Jan 06 17:06:55 i read smb would be slower than nfs, so i didn't try it and tried aoe instead.. but i think i will try smb nevertheless Jan 06 17:08:17 back... Jan 06 17:08:19 guzzle, any chance to try it with smb/cfs? Jan 06 17:10:41 hi Jan 06 17:10:41 i read smb would be slower than nfs, so i didn't try it and tried aoe instead.. but i think i will try smb nevertheless Jan 06 17:18:12 i think i just stumbled onto something.. i just tried NFS again, but with a 5GB partition (instead of 280GB) and write speeds are 10 times faster, around 1.5MB/s Jan 06 17:22:11 whats the command for seein if i have a disk plugged on the nslu? Jan 06 17:26:27 stojan, try lsusb Jan 06 17:27:15 whats that? Jan 06 17:27:30 type into telnet? Jan 06 17:28:05 lists everything plugged in the usb ports; if there is an hd or anything else you should see it Jan 06 17:28:30 alternatively, if you just want to confirm the slug recognizes the drive you're plugging into it, you could dmesg | tail and look at the output of that Jan 06 17:29:01 k Jan 06 17:29:17 ok it says USB device at port 2 Jan 06 17:29:26 but i pluged in at port 1 Jan 06 17:30:07 whats the command, like u get: sda1 --- linux --- sda2 ---linux--- sda3---swap--- Jan 06 17:33:29 how can I format a FAT usb stick? when I click "Format" it just says "No disk available", any ideas? Jan 06 17:34:54 same problem Jan 06 17:34:58 but with a HDD Jan 06 17:35:01 caplink: i just reformatted the 280GB partition to ext3 instead of reiserfs and i'm getting speeds from 1.6MB/s to 3.4MB/s.. i guess reiserfs was the culprit Jan 06 17:35:26 i need the command to format in telnet Jan 06 17:36:22 aha I see... Jan 06 17:36:23 how can i see where the HDD is plugged in sda? sdb? hda? Jan 06 17:37:12 and how does Nslu formats? EXT3 or EXT2 cuz, i format once and put it into the pc and it says EXt2 ?! Jan 06 17:41:03 hm... http://www.nslu2-linux.org/wiki/FAQ/RootOnAUSBFlash <- "he native Linksys firmware will not permit any device smaller than 10 Gigabytes in size to be formatted" Jan 06 17:42:55 well that was my problem at least... but i'm a bit new.. just reading the README now... :) Jan 06 17:43:15 do u have original firmware? Jan 06 18:04:49 hi Jan 06 18:05:00 test Jan 06 18:07:49 hi Jan 06 20:20:10 * ShALLaX yawns Jan 06 20:20:17 hi Jan 06 20:22:16 thats really amusing.. Jan 06 20:22:22 i just heard of a norton firewall bug Jan 06 20:22:30 if you type a certain line in an IRC channel Jan 06 20:22:36 it will cause all affected users to disconnect Jan 06 20:23:00 its also to do with their routers Jan 06 20:23:02 hehe Jan 06 20:23:53 lol Jan 06 20:24:29 have a question Jan 06 20:25:27 what does nslu with standard firmware format my HDD with?! EXT3 or FAT? Jan 06 20:30:37 what does nslu with standard firmware format my HDD with?! EXT3 or FAT? Jan 06 20:30:43 evening all - anyone know much about logging uploads and downloads in vsftpd? Jan 06 20:32:29 ignore that -found what i wanted Jan 06 20:48:03 hi Jan 06 21:09:47 hi there Jan 06 23:11:16 for the logs: if stojan, or sto returns, someone could mention him that he should read and follows those links... Jan 06 23:11:19 stojan, before you trying it again and again, it might be better to read some pages, like those http://www.nslu2-linux.org/wiki/Unslung/WhatIsANativeUnslungDisk, http://www.nslu2-linux.org/wiki/HowTo/CustomSizedPartitions, http://www.nslu2-linux.org/wiki/FAQ/BadConfPartition Jan 06 23:14:21 eno, so the ipk format of optware is different from that on slugos ? Jan 06 23:14:39 yes, it is.. Jan 06 23:15:23 caplink811-log, what format is the one in slugos? Jan 06 23:16:07 optware is tar.gz, e.g. rename package.ipk to package.tar.gz, then you can uncompress it with tar -xvzf package.tar.gz, openslug uses ar as archiver Jan 06 23:16:43 so use ar x package.ipk to uncompress it Jan 06 23:17:18 thanks! Jan 06 23:17:28 np Jan 06 23:22:37 caplink811-log, was there a line from me with just your nick and capbot above? Jan 06 23:23:06 trying out a new irc client ... Jan 06 23:23:33 no, nothing since 16:49, my tz is utc+1 Jan 06 23:23:45 will try again Jan 06 23:23:59 caplink811-log, what there one just now? Jan 06 23:24:19 caplink811-log, what there one just now? this one? Jan 06 23:25:03 was there a line from me with just two nicks, one yours? Jan 06 23:25:17 definitive no Jan 06 23:26:03 good! as I hit the cap and tab key my window showed all matching nicks, I was afraid it migh have been sent too :) Jan 06 23:27:51 caplink811-log, utc+1? Where are you? Jan 06 23:27:58 de, berlin Jan 06 23:28:04 ah Jan 06 23:29:56 caplink811-log, using ipkg, is there a way to install just one of the files from an .ipk, without manually expanding it all? Jan 06 23:30:15 not that i know Jan 06 23:30:42 but haven't been interested in that Jan 06 23:31:06 what is the ar cmd to just list the file names without expanding? Jan 06 23:31:48 oh, dunno, just gambling around with ar some hours ago.. but ar --help may be your friend Jan 06 23:32:28 ar t bla.ipk it seems Jan 06 23:33:44 thanks, so after ar x of an openslug pkg, the resulting files are exactly the same format as that of optware exapnded? Jan 06 23:34:43 if they are exactly the same, i dunno, but the x results in 3 files, as usual Jan 06 23:35:03 but assuming, yes Jan 06 23:36:00 the two have .gz, suspect same, will test... you see i go back and forth between these two sets of .ipk in my slugos/be, Jan 06 23:36:27 testing the slugosbe feed, new one from eno Jan 06 23:39:25 appears to be same Jan 07 00:27:07 caplink811-log, hi ru there? Jan 07 00:29:09 mwester, mwester-laptop, ru there Mike? Jan 07 00:32:18 Anybody here? Jan 07 00:32:20 chacko, for a few minutes, yes Jan 07 00:33:22 caplink811-log, do you know what the sh script line might be to get the partion sda1, sda2, ... of the rootfile system? Jan 07 00:33:56 usually it is sda1 for me, but I can also start from other partitions... Jan 07 00:38:02 on an gut level, something like mount|grep / | awk "hm, not sjre about Jan 07 00:38:34 sure about that statement" i menat Jan 07 00:39:25 thanks, i will experiment. G'night! Jan 07 00:39:34 but in my tz it is past 2 o'clock, so i'm heading to bed now, have a good night Jan 07 00:44:21 Chacko: grep for the unique string in the /proc/mounts file (avoid the "mount" command, go for the source. Jan 07 00:44:23 ) Jan 07 00:45:49 mwester-laptop, is this good? df | grep " /$" | awk '{ print $1; }' Jan 07 00:46:17 Not really. Jan 07 00:47:14 The output of "df" is not a standard, and will be different depending on which "df" utility (and since I patched the busybox version for Unslung 6.9, it will be different again), also Jan 07 00:47:35 the proc/mounts have many lines with ' / ' :( Jan 07 00:47:40 also, awk doesn't work on Unslung 5.5 or 6.8 (busybox version) Jan 07 00:48:03 that is ok, right now this is only for slugos/be Jan 07 00:48:16 Since I can't find the bug, and it only happens when cross-compiling, I'm removing it in Unslung 6.9. It's also broken in busybox in Openslug Jan 07 00:48:27 so I'll be removing it there, as well I think. Jan 07 00:49:21 awk is used by a many scripts, right? Jan 07 00:49:56 Nope, not to boot the devices. Packages that need it wil just have to depend on the full awk (gawk) package. Jan 07 00:50:30 They either don't need it now, or they already depend on gawk -- because awk is broken! Jan 07 00:51:00 that is ok too, i have gawk :) Jan 07 00:51:13 What information are you trying to find out -- why do you need the device name for the root filesystem? Jan 07 00:52:32 ok, i am trying to log disk read and write counts to a file with a name such as /var/log/diskstats/-partition Jan 07 00:53:05 I have many partions from where I might boot... Jan 07 00:53:33 one way is to set a disk label, but if he label is not there, i want to use the partion name Jan 07 00:54:30 mwester-laptop, what tz ru in, where? Jan 07 00:55:34 CST Jan 07 00:56:12 ;) I did not want to keep you awake if you were in EU Jan 07 00:57:15 I am tempted to go with the line I showed before, all I want to do is to pick the sda1 part from the /dev/sda1 Jan 07 00:57:24 can you pse show me how? Jan 07 00:58:22 What languages do you have in common on all the rootfs's? Do you have Perl? Jan 07 00:58:39 php Jan 07 00:59:00 but i prefer to do this in sh script Jan 07 00:59:57 gawk can be used to pick sda1 from /dev/sda1, right? I assume Jan 07 01:00:48 btw, most all the partitions are copies of each other, differnt backup versions etc, some will be on flash stick Jan 07 01:02:04 for me it will be always /dev/ front -- I do not mind that restriction Jan 07 01:03:32 so simply put, how do i pick up the chars 5 on from awk's print? Jan 07 01:03:51 Ok. What I'm really concerned about is that the base tools (meaning busybox) are very limited, and the limitations are different on even versions of the same firmware. Jan 07 01:04:12 So we need to select a scripting tool that will work consistently across the versions. Jan 07 01:04:38 Mike, this is only an experimental tool, only I will be using this script... Jan 07 01:05:08 nothing to be released :) Jan 07 01:05:27 Yes, but that doesn't change the fact that you expect it to work on all the different rootfs's that you have, right? Or do I misunderstand, and you only wish it to work on a single firmware load? If so, what is that? Jan 07 01:05:50 slugos/be only Jan 07 01:06:18 Ok, can you install packages to help? Jan 07 01:06:32 possibly ;) Jan 07 01:08:42 if it seems complicated, never mind, I will study this later Jan 07 01:09:01 I have another topic, quick I hope Jan 07 01:09:53 No, not complicated, I'm just trying to figure out the rules - there are many ways to do this. Jan 07 01:11:58 something like /opt/bin/df / | grep /dev/ | /opt/bin/gawk -what-ever-identifies-a-field-separator / code-to-print-the-second-field Jan 07 01:12:47 Check the man page for gawk; they usually have an example that parses the passwd file on the ":" field-separator, just use / instead. Jan 07 01:12:59 A real geek could do it all in awk, of course Jan 07 01:13:27 An uber-geek would do it all in a shell script using nothing but /bin/bash built-ins ;) Jan 07 01:13:27 thanks, I will do this a little later, now another quick question... Jan 07 01:14:06 I have a working flash disk, running slugos/be with a lot of customizations Jan 07 01:14:16 that was started from a harddisk Jan 07 01:14:45 I want to change the settings (without using turnup), so that it will have the proper setting for a flash Jan 07 01:15:09 Easy to do? Jan 07 01:15:23 Should be - the details are all in the turnup script Jan 07 01:15:43 ok, i will study that again ... thanks Jan 07 01:16:43 uber-geeks, eh? I am not even a linux guy ;) Jan 07 01:16:58 Is there a part of the turnup script that's confusing? (I haven't looked at it myself, I'm just assuming that it's readable)? Jan 07 01:17:31 I'm not an uber-geek either - I use emacs, and perl, so I'm automatically an outcast :D ;) Jan 07 01:18:23 cant say now about turnup, had taken a quick look before, will study again... Jan 07 01:18:32 about time to go out to dinner with wife :) Jan 07 01:18:55 talk to you later -- thanks again Jan 07 01:18:57 Ok, well enjoy dinner. Jan 07 01:33:08 just got kismet running on the slug. with a netgear wg111v2 and Debian/NSLU2. still wpa_supplicant won't stay associated. i miss the ndiswrapper convenience available on i386... **** ENDING LOGGING AT Sun Jan 07 02:59:58 2007