**** BEGIN LOGGING AT Sat Jul 28 02:59:56 2007 Jul 28 03:02:10 er sorry the switch is data=journal Jul 28 03:02:12 http://www.gentoo.org/doc/en/articles/l-afig-p8.xml Jul 28 03:05:40 hmmm... if it works, great! Jul 28 03:06:14 Try it, I don't know that anyone has ever messed with that on Unslung. Jul 28 03:06:23 yeah, have to see Jul 28 03:06:36 working on recovering some data right now though, but I'll let you all know :) Jul 28 03:51:59 hello Jul 28 03:52:13 anyone here? Jul 28 03:53:07 I am in need of assistance. Jul 28 03:56:12 ask away Jul 28 04:02:47 hmm, so is the debian distro for the nslu2 pretty good then as well? Jul 28 04:02:57 I might switch to that if thats possible Jul 28 04:04:56 * mwester didn't hear gufball's question... Jul 28 04:05:29 wizdumb: it's debian on the NSLU2 -- I guess "pretty good" depends on your opinion on Debian! Jul 28 04:05:49 Most folks familiar with Debian prefer Debian on the NSLU2. Jul 28 04:06:21 There are some who find the fact that Debian on the NSLU2 can't boot without a disk to be a problem. Jul 28 04:06:28 well we use a modified ubuntu at work, which is debian based.. I'm just not wild about the unslung running kernel 2.4 Jul 28 04:06:52 well thats a queston i have, about the disk Jul 28 04:06:58 * joshin still likes Gentoo on the NSLU2 ;) Jul 28 04:07:00 I guess it depends on what your situation is, and if you have a permanent device you can dedicate to be the root disk. Jul 28 04:07:36 um, it depends what you mean.. can I use ONE hard drive for both the root disk AND my storage device? Jul 28 04:07:41 I presume you are experiencing some sort of unhappiness with Unslung (I think that's what you're running) Jul 28 04:08:08 Yes, you can do that with both Unslung and with Debain. Jul 28 04:08:10 well unslung still has my usb stick held hostage, so I dont htink thats much of a difference between the two Jul 28 04:08:40 Why would unslung hold your usb stick hostage? Just unsling to the hard disk, and you have your stick back! Jul 28 04:09:00 * mwester doesn't think using a stick as the unslung root device is a very good idea in general. Jul 28 04:09:18 uh, yeah well I dont want to risk losing any data, or having to set the thing up again and still be unhappy with it Jul 28 04:09:25 what does the unsling command do? Jul 28 04:11:20 It copies the root filesystem from the internal flash to the external device, and arranges for the NSLU2 to switch over ("sling over") to the external disk very early in the boot process. Jul 28 04:12:02 When you do this with a single device, there is little chance for problems. Jul 28 04:12:02 so if I have directories on my big drive that conflict, its going to overwrite them Jul 28 04:12:13 like if I had a directory named home or root for example Jul 28 04:12:20 it will overwrite them when it copies? Jul 28 04:12:24 When you have multiple devices, such as a stick and a disk, you have the potential for much confusion about which disk does what. Jul 28 04:12:44 regarding overwriting: it depends. Jul 28 04:12:58 IF you have the data at the root level of the disk, yes. Jul 28 04:13:00 BUT Jul 28 04:13:00 doesnt it have to format that drive itself or something? Jul 28 04:13:16 the linksys firmware does NOT put the data at the root level. Jul 28 04:13:34 Formatting is only necessary if you have never formatted the device on the NSLU2 before. Jul 28 04:13:43 I never used this thing with the stock linksys firmware Jul 28 04:13:53 ok so let me explain my situation Jul 28 04:13:59 Well, then, yes - it must be reformatted. Jul 28 04:14:07 I've had it for a month or two Jul 28 04:14:18 it has a 1gb stick that its unslung to Jul 28 04:14:38 and it had a 250gb drive attached to it for storage, formatted NTFS Jul 28 04:14:45 yesterday I got anew drive, Jul 28 04:14:51 I formatted with my computer to ext3 Jul 28 04:15:03 plugged it in place of the 250 drive Jul 28 04:15:14 and had to get it mounted.. so thats working now, I can get to it via samba Jul 28 04:15:23 so I'm copying my stuff to it now, all my data Jul 28 04:15:55 I'd love to just use that drive alone, but not if I have to format the whole thing again, and lose alll my data.. or have to shuttle it around Jul 28 04:16:40 Oh. Ok. You can't unsling to a device that isn't natively formatted for the Linksys firmware. Jul 28 04:16:41 also, ssh with the nslu does some things I dont like.. I like the new style linux stuff that will use the backspace/delete/cursor keys properly Jul 28 04:17:03 If it's just ext3, then you'll have to arrange to have it mounted (and shared via samba) at boot with a startup script. Jul 28 04:17:09 ok, so can I still use debian? Jul 28 04:17:15 yes I did hte start up script already Jul 28 04:17:59 Oh sure. Just be aware that the Debian stuff has no web gui or automounting features. That's a good thing, if you want to turn off the linksys stuff -- it's a problem if you're expecting Debian to do that for you. Jul 28 04:22:26 (let me correct myself -- rather than saying "automounting", I should say "auto-sharing" -- Debian should mount the drives, it won't share them with Samba automagically) Jul 28 04:32:42 well unslung doesnt auto share if your drives are ext3 either :) Jul 28 04:33:01 the webgui kinda sucks anyhow to be honest, I think I can live without it Jul 28 04:35:41 I agree with both those points. You can also give SlugOS (aka "OpenSlug") a try -- it's a normal Linux environment as well, but has the advantage that it's smaller than Debian, and can run the same optware packages that Unslung can run. Jul 28 05:51:09 so how much space is left on the internal memory after openslug is installed? Jul 28 08:33:54 Hello all Jul 28 08:34:32 is here anyone using a 64 / 128 Mbyte nslu2? Jul 28 11:41:29 * DrJ is curious Jul 28 11:41:41 what would a serial port hack benefit an unslung slug Jul 28 11:41:42 ? Jul 28 11:41:43 like Jul 28 11:41:47 what can you use it for Jul 28 12:36:29 wizdumb: Do you mean internal flash memory? OpenSlug 3.10 has more left than Unslung 6.8, but still not enough to install Samba, or things like that -- it'll need an external device like a flash memory stick. The newly-announced OpenWRT firmware has much more internal space left. Jul 28 14:27:23 mwester, that looks promising, but I think I'll wait until that distro is more stable Jul 28 14:58:53 yikes. so I was going to try openslug.. Jul 28 14:59:07 but going through the install process is a big run around Jul 28 14:59:30 do this.. but first do this.. ok no you need to do this but first do this and this.. etc Jul 28 15:09:32 How so? Jul 28 15:09:37 It's really very simple. Jul 28 15:10:04 Make sure you remember your current network settings and root password in Unslung, just in case. Jul 28 15:10:23 Then follow the procedure to flash any firmware, except that you select the OpenSlug firmware. Jul 28 15:10:45 Then run "turnup init" to set your root password and other network defaults, if required. Jul 28 15:10:53 And turn "turnup" instead of "unsling" Jul 28 15:10:55 Done. Jul 28 18:58:39 hey mwester you around? Jul 28 18:59:12 I got debian installed, just need to know a couple things, like if I can jsut edit the fstab to have the big drive automount on boot, and how to get samba working Jul 28 19:02:57 i can help u with debian Jul 28 19:07:12 great! thansk ch4os_ Jul 28 19:07:22 so I just got things installed and running Jul 28 19:07:35 ok:) so what problem do u have with hdd ? Jul 28 19:07:57 well, just need to know where I should mount it in order for it to be accessed by samba Jul 28 19:08:05 unslung used /share/flash/.... Jul 28 19:08:06 wherever u want Jul 28 19:08:19 ok I mounted it in /media/usb2 which seemed logical Jul 28 19:08:29 it should be okey Jul 28 19:08:30 and added that to my fstab Jul 28 19:08:40 do I have to mod any permissions? Jul 28 19:08:54 what type of fs do u have there ? Jul 28 19:09:10 ext3 Jul 28 19:09:46 hm add rw,user,auto to options and it will be okey Jul 28 19:10:25 instead of defaults? Jul 28 19:10:29 yes Jul 28 19:11:25 ok, now I think I need some help configuring samba Jul 28 19:11:51 wait :) Jul 28 19:12:29 do u know how to install pkgs in debian ? Jul 28 19:13:27 yup Jul 28 19:13:31 I already installed samab Jul 28 19:13:33 er samab Jul 28 19:13:34 ugh Jul 28 19:13:36 you know :) Jul 28 19:14:07 just need to know how I can set it up so \\nslu2\drive will list the contents of the drive mounted at /media/usb2 Jul 28 19:14:27 ok i will paste u my conf and we will do similar for u Jul 28 19:14:33 great Jul 28 19:15:43 http://wklej.org/id/e801ca4ff2 Jul 28 19:15:53 clean your /etc/samba/smb.conf Jul 28 19:15:55 and paste this Jul 28 19:16:18 ok, one sec Jul 28 19:16:27 it's first part of conf Jul 28 19:16:35 side note, the other things I'd like to get configured are vsftpd and mt-daapd Jul 28 19:17:01 hmm i'm using pureftpd and proftpd on another box :P so can't help Jul 28 19:17:21 no worries, I can get vsftpd done myself I think Jul 28 19:17:34 i think pure is better:) Jul 28 19:18:06 is it smaller though? Jul 28 19:18:10 memory footprint I mean Jul 28 19:18:21 hmm Jul 28 19:19:05 hmm, do I need to just change workgroup and netbios name in the smb conf? Jul 28 19:19:15 and hosts allow Jul 28 19:19:24 yes Jul 28 19:19:38 and check if u have /etc/samba/smbpasswd Jul 28 19:20:06 hmm, not sure about the netbios name answer/ Jul 28 19:20:21 hm ? Jul 28 19:20:31 can that be anything? Jul 28 19:20:46 is that just what shows up for \\NETBIOS NAME\DRIVE ? Jul 28 19:20:56 yep Jul 28 19:21:10 ah cool Jul 28 19:22:04 I dont have a smbpaswd file Jul 28 19:22:10 ok don't worry Jul 28 19:23:59 ok, whats next Jul 28 19:24:05 http://www.wklej.org/id/b4d4e31188 Jul 28 19:24:21 paste it below Jul 28 19:24:53 and name betwen brackets [ ] is your DRIVE name (in this example \\NETBIOS NAME\DRIVE) Jul 28 19:25:02 path is your mountpoint Jul 28 19:25:19 ah ok so whatever i put in the brackets will be the drive name I access by samab Jul 28 19:25:20 sweet Jul 28 19:25:44 u have tu change valid user Jul 28 19:26:06 can I make it just guest or something so I dont need a password? Jul 28 19:26:13 my network is secure enough that i dont care Jul 28 19:26:28 its just me here :) Jul 28 19:26:32 i don't remember how tu do it without password Jul 28 19:26:53 wait a moment Jul 28 19:27:45 I found some stuff on google that might do it Jul 28 19:27:56 security = share in the smb.conf I think Jul 28 19:28:13 it could be ;) Jul 28 19:28:36 I probably should set guest ok = Yes Jul 28 19:28:40 and Public = Yes ? Jul 28 19:28:58 yes Jul 28 19:29:34 and u can remove valid user i think Jul 28 19:29:43 do I really want to set force group/user to root though? Jul 28 19:30:59 i have some permissions problems Jul 28 19:31:12 had* Jul 28 19:33:37 ah Jul 28 19:33:51 u can use testparm to test conf file Jul 28 19:33:56 if it's proper build Jul 28 19:34:35 and guest ok is ignored ;) i had to remove this option Jul 28 19:34:43 says its ok Jul 28 19:35:04 so should I just add guest to valid users? Jul 28 19:35:27 i don't really know.. i've always used some authentication with users Jul 28 19:35:41 try run /etc/ini.d/samba start Jul 28 19:35:59 yeah been trying it Jul 28 19:36:08 the device shows on samba but not the drive yuet Jul 28 19:36:24 if u wan't to add it permanently use rcconf Jul 28 19:37:18 well need to get it working first :) Jul 28 19:37:59 errrors in logs say malformed password entry Jul 28 19:38:12 huh ? Jul 28 19:38:22 smb logs ? Jul 28 19:38:25 ya Jul 28 19:38:32 /var/log/samba/ Jul 28 19:39:29 did u removed smb passwd file = /etc/samba/smbpasswd ? Jul 28 19:39:39 no Jul 28 19:39:52 try ;) Jul 28 19:39:53 I just changed the file perms on it to 644 now though Jul 28 19:40:49 shold I set it to security = share instead of user? Jul 28 19:41:52 hm Jul 28 19:42:18 share is ok Jul 28 19:42:22 I'll try one thing at a time :) Jul 28 19:42:39 remove line with smbpasswd Jul 28 19:42:49 yeah did that Jul 28 19:42:56 er actually Jul 28 19:42:57 and passdb * lines Jul 28 19:43:05 heh Jul 28 19:43:08 you know what the deal prolly is Jul 28 19:43:18 I added the [sda1] to the smbpasswd file Jul 28 19:43:21 oops Jul 28 19:43:27 huh ? Jul 28 19:43:33 isnt that wrong? Jul 28 19:43:45 shouldnt the [DIRECTORY] part be in the smb.conf ? Jul 28 19:44:13 it should be :P Jul 28 19:44:27 so what goes in smbpasswd? Jul 28 19:44:33 i've told u below [general] section Jul 28 19:44:38 smb.. for user ath Jul 28 19:44:41 auth* Jul 28 19:45:29 smbpasswd is only for auth... Jul 28 19:47:18 ok I can see the directory now Jul 28 19:47:24 but it still wants a password :( Jul 28 19:47:37 hm Jul 28 19:51:29 and even if u type user guest? Jul 28 19:52:15 denies me Jul 28 19:52:24 and try public = yes Jul 28 19:52:47 oh got it Jul 28 19:53:04 security = share Jul 28 19:53:05 hm ? Jul 28 19:53:05 and Jul 28 19:53:11 guest only ? Jul 28 19:53:15 valid users = eric,guest,nobody Jul 28 19:53:19 and geust ok = yes Jul 28 19:53:22 huh ;) Jul 28 19:53:23 seemed to do it Jul 28 19:53:31 woot Jul 28 19:53:46 now to get mt-daapd and vsftpd going :) Jul 28 19:53:50 thansk for the help on that one ch4os_ Jul 28 19:54:16 np:) Jul 28 19:54:25 what for is mt-daap ? Jul 28 19:55:02 oh it's media server Jul 28 19:55:11 yeah itunes server Jul 28 19:57:45 so rcconf will allow me to choose services to run on startup? Jul 28 19:57:51 yes Jul 28 19:58:02 with nice ncurses gui ;) Jul 28 19:58:15 command not found, needs installed? Jul 28 19:58:19 yep Jul 28 19:58:24 gotcha Jul 28 20:00:15 ok thats one more thing down Jul 28 20:00:25 now just gotta config vsftpd and I should be golden Jul 28 20:01:18 there is nice howto on gentoo-wiki.com Jul 28 20:01:52 cool Jul 28 20:02:02 that gentoo wiki is helpful for alot of stuff Jul 28 20:02:08 even if you dont use gentoo, since its all from source Jul 28 20:02:25 i used to use gentoo, came back to being a slackware user Jul 28 20:02:31 but the docs are normally very helpful Jul 28 20:02:59 i'm using gentoo on lap & home server from 2 years Jul 28 20:03:20 hey isnt there something about the nslu2 using half duplex by default? Jul 28 20:03:28 is there a way to check/change that, do you know? Jul 28 20:03:33 huh ? Jul 28 20:03:38 wait Jul 28 20:03:43 cant recall where I read it Jul 28 20:03:50 this is for the eth0 Jul 28 20:03:52 on the slug Jul 28 20:04:12 dmesg | grep eth0 Jul 28 20:04:26 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 Jul 28 20:04:26 Link of eth0 is full-duplex Jul 28 20:04:30 yeah looks good Jul 28 20:04:45 just trying to optimize this thing as much as possible :) Jul 28 20:04:46 i think that dmesg don't lie ;) Jul 28 20:05:20 it might have been for a different firmware Jul 28 20:05:55 ok, i'll be going Jul 28 20:05:58 bye Jul 28 21:30:25 proftpd don't seem adviced on your website. Is it a weak server on the nslu2? Jul 28 22:31:15 which ftp server could i use, if i want to create virtual users? Jul 28 23:07:57 Hi Jul 28 23:08:11 I had a question about getting mediatomb to boot on startup with the unslung firmware Jul 28 23:09:07 I tried two things: creating a S*mediatomb scrip in /opt/etc/init.d to start mediatomb(and a diversion script rc.local when the S* didn't work) Jul 28 23:09:21 and I tried startingn mediatomb as a daemon Jul 28 23:09:42 both didn't work...I was wondering if anyone has success with getting mediatomb to start on boot? Jul 28 23:09:46 or what I'm doing wrong Jul 28 23:14:08 captainlinger, S*bla means a 2 digits number, idealy >=90 and this script has acces rights equal to 755 and it works when you execute it from the commmand line? Jul 28 23:15:40 hmm Jul 28 23:16:09 well i've tried creating the file as S40mediatomb and S20mediatomb and neither seem to run mediatomb on boot Jul 28 23:16:25 but after boot and i ssh in, i can call the script form command line and it starts mediatomb yes Jul 28 23:16:55 What do you type to start the script from the command line? Jul 28 23:16:56 I really have no experience with S* scripts, so I've just done what I could gather from the documentation on the nslu2-linux site Jul 28 23:17:43 do I have to do anything to have the boot sequence call that script file specifically?(I gathered from what I read that it should execute all S* files in /opt/etc/init.d) Jul 28 23:18:24 yes, but maybe, there are some problems with the environment Jul 28 23:18:51 do you call the mediathomb binary absolute? Jul 28 23:19:34 caplink811-log is correct -- you cannot assume that /opt/bin (for example) is in the path, and cannot assume that any particular environment variables (e.g. $HOME) are set to reasonable values). Jul 28 23:19:46 oh oops, I just tried calling on the command line "/opt/etc/init.d/S40mediatomb" and it actually didn't start mediatomb Jul 28 23:20:02 it only seems to start if i just manually type in the command "mediatomb" Jul 28 23:20:35 (BTW, good morning caplink811-log!) Jul 28 23:20:36 caplink811-log, I'm sorry, what does calling a binary absolute mean Jul 28 23:21:08 calling the script itself from command line now seems to hang mediatomb's startup process Jul 28 23:21:15 (have to ctrl-C to break out) Jul 28 23:21:38 as mwester mentioned, /full/path/to/binary, not only binary_name, that depends on our PATH variable (see echo $PATH) Jul 28 23:21:50 morning mwester :) Jul 28 23:22:05 oh, ok, scratch that, I'm dumb, calling the script from command line also works...I forgot I had redirected output for some reason or another Jul 28 23:22:55 ah yes, I do Jul 28 23:23:11 i put the full path to the binary ( /opt/bin/mediatomb) Jul 28 23:23:51 should the number caues any issue?(using S40mediatomb instead of S90 or higher) Jul 28 23:25:13 maybe, when your network services starts up in S45bla, then it may raise a problem **** BEGIN LOGGING AT Sat Jul 28 23:27:25 2007 Jul 28 23:28:02 on a side note, mediatomb documentation said it has a daemon mode, and the website even gives instructions for having it startup in daemon mode during boot Jul 28 23:28:32 You might also pastebin your script too. http://www.pastebin.ca/ Jul 28 23:28:41 however, the instructions say that when running in daemon mode, it will create files in /etc/mediatomb that contain configuration files for mediatomb Jul 28 23:29:21 and I checked in /etc and /opt/etc and it seems like the files are not created (I'm not sure if the access writes don't let it create the files) and it fails to start in daemon mode b/c the database files are not in the directories Jul 28 23:29:24 since they are not created Jul 28 23:29:27 oh ok Jul 28 23:29:30 I'll do that Jul 28 23:30:40 If mediatomb was properly prepared for optware, it should be using /opt/etc instead of /etc. The documentation may refer to the standard, non-Unslung directories. Jul 28 23:33:09 Here is the link to the script: http://pastebin.ca/637537 Jul 28 23:33:38 I've never written a startup script before, so I looked at the script optware's openssh package made, and removed some of the if checks in the script Jul 28 23:33:56 Maybe I can't simply call the file as I do...I'm not sure Jul 28 23:37:53 within the mediatomb documentation it may causes problems, if there are no ~/mediatomb directory, which is impossible when it starts up Jul 28 23:38:29 Ok. Simple enough. What are the permissions on that file. (use "ls -l /opt/etc/init.d" to find out) Jul 28 23:38:57 try something like /opt/bin/mediatomb --config /opt/etc/your_config_file Jul 28 23:39:55 and --home /opt/var/spool/make_a_directory Jul 28 23:40:01 of course Jul 28 23:40:58 mwester: both the ssh and mediatomb script are 755 Jul 28 23:44:19 Hmm, the instructions for running in daemon mode are for ubuntu/debian, and the mediatomb website has a link to downloading the packages for nslu2 optware, but they don't make mention of instructions on setting up the daemon Jul 28 23:44:40 is it possible tha the port to optware didn'tn make changes necessary to run in daemon mode? Jul 28 23:45:32 assuming, that you have to do some adjustments in your config file, regarding the pathes on the unslung nslu, and a some startup parameters to your script Jul 28 23:45:59 s/a/add Jul 28 23:46:38 see http://mediatomb.cc/pages/documentation for further informations Jul 28 23:47:30 anyone able to pick up the ixp400 npe library 2.4 from intel currently? doesn't seem to work for me :( Jul 28 23:47:34 A good general rule for startup scripts, on any platform: Relying on Defaults is Dangerous. Jul 28 23:50:05 in this particular case, mediatomb try to read and store some things in the users home directory, which works when you call your script from the command line, but should fail, when it runs at startup (no user, no home directory) Jul 28 23:52:23 oic Jul 28 23:52:45 ah ok Jul 28 23:53:22 So i should try to set all the paths to the required locations on the command line in my startup script? Jul 28 23:53:37 or will it still not work b/c mediatomb needs to write things to my home directory also? Jul 28 23:53:43 yes, and make sure, that they exists Jul 28 23:53:48 ah ok Jul 28 23:54:59 * caplink811-log thinking about the mem usage of firefox, seems that 265MB is to much... Jul 29 00:18:42 a quick question Jul 29 00:18:45 in a script file Jul 29 00:19:00 does '\' let me continue the script on the next line Jul 29 00:19:14 if I want it to be interpreted by the shell as a single line Jul 29 00:22:29 Yes, as long as it is the last character on the line. Jul 29 00:23:46 ok, thanks Jul 29 00:26:07 YES Jul 29 00:26:11 SWEET Jul 29 00:26:13 it works now Jul 29 00:26:18 thanks for all your help guys Jul 29 00:27:05 if there is a wiki entry, maybe, you could adjust it Jul 29 00:27:11 I had to go thhrough and specify in the script file all the things mediatomb read as defaults after logging in Jul 29 00:27:19 sure thing Jul 29 00:27:30 Add a page, if one doesn't exist! Thanks! Jul 29 00:27:38 :) Jul 29 00:27:41 roger Jul 29 00:39:37 I edited the entry but it seems it did not save =x Jul 29 00:40:19 maybe password protected, mwester ? Jul 29 00:47:48 ah, I got it to save, I missed the section on bottom asking for author name for the edit **** ENDING LOGGING AT Sun Jul 29 02:59:56 2007