**** BEGIN LOGGING AT Sun Feb 11 02:59:57 2007 Feb 11 03:28:18 can someone please explain these perms and how to change to them? ---x-wx--T Feb 11 03:32:10 does the T represent the sticky bit? Feb 11 03:35:32 Those are very odd permissions. Feb 11 03:37:27 they are the perms for /home/httpd/html/Management/.htpasswd on the unslung flash Feb 11 03:37:49 chmod 1150 ? Feb 11 03:38:54 # ls -l /home/httpd/html/Management/.htpasswd Feb 11 03:38:55 ---x-wx--T 1 root root 20 Feb 10 18:41 /home/httpd/html/Management/.htpasswd Feb 11 03:39:27 Owner has execute (meaningless for the file, group has write access, and the sticky bit is set. Feb 11 03:40:17 I suspect there's really no rational reason for those settings, as the httpd runs as "root" which overrides the permissions anyway. Feb 11 03:40:52 What's the reason for wishing to change the perms? Feb 11 03:41:38 oh I forgot my admin passwd on my unslung so I unplugged the disk and captured all the info so I can recreate it on the hard drive. Should work no? Feb 11 03:43:32 You should be able to just copy the file from the /initrd version; that .htpasswd is admin/admin. Feb 11 03:44:03 Do the copy as "root" and you'll have no troubles with the permission, I should think. Feb 11 03:44:31 ah ok so its the /initrd one I need to copy. This unslung has passwords allover the place Feb 11 03:45:09 the /initrd dir is empty Feb 11 03:45:19 are you running from flash, then? Feb 11 03:46:40 yeah i booted from flash Feb 11 03:47:22 do i copy the flash /home/httpd/html/Management/.htpasswd to /initrd? Feb 11 03:47:32 to /initrd on the hdd? Feb 11 03:58:41 No - if you are running from flash, then the copy in /home/httpd/... is the current, active one. Feb 11 03:59:01 When you are running from disk, then the flash appears under /initrd Feb 11 04:05:44 gotcha Feb 11 04:05:55 i didn't have to do all that unplugging. Feb 11 04:29:38 hmmm all the edits i made to /etc/thttpd.conf got erased on unplugging and replugging the drive, but my thttpd.conf.original that i copied is still there. Why did that happen? Feb 11 04:30:16 does the flash overwrite the contents of /etc? Feb 11 04:31:17 No the flash doesn't overwrite -- the Linksys programs do. Feb 11 04:31:28 ah ok Feb 11 04:31:34 That's what the diversion scripts are for -- see the wiki. Feb 11 04:31:52 * jmbrowning toddles off to the wiki Feb 11 04:32:07 mwester: Thanks! Feb 11 04:32:37 Basically, the Linksys code maintains a master copy of the info that is persistent in various places - then at boot it rewrites various files (such as the passwd file) as necessary to maintain its "Linksys-ness" :) Feb 11 04:41:55 should i put my diversion scripts in /unslung or in /share/hdd/data/unslung Feb 11 04:42:43 If your system is booted from disk (i.e. running in Unslung mode, not from flash), then / == /share/hdd/data. Feb 11 04:44:14 Think of it this way: the system boots from flash -- flash == /, and the external disk is /share/hdd/data. Then the "sling-over" occurs in mid-boot, and the two flipflop: the disk becomes /, and the flash becomes /initrd. Feb 11 04:44:47 That's the unique "magic" that happens on Unslung and Openslug. Feb 11 04:45:28 But it certainly makes for some confusing documentation as the correct pathnames can sometimes depend upon if you are running from flash or disk... Feb 11 04:46:00 ah ok, so I guess /share/hdd/data is where all my changes should be made Feb 11 04:47:29 to be always correct, regardless of whether running from flash or disk, yes -- /share/hdd/data is the place. Feb 11 05:04:04 hmm, cp /initrd/home/httpd/html/Management/.htpasswd /home/httpd/html/Management/.htpasswd and then killing and restarting thttpd is not resetting the admin passwd Feb 11 05:09:36 i guess I'll just reunslung the hard drive. I've been wrestling with this long enough. Feb 11 05:09:56 halt Feb 11 05:09:59 oops wrong window :) Feb 11 05:20:34 jmb: I believe you need to restart hdd unattached - boot from flash - then copy that file and reboot again Feb 11 07:48:27 Hallo Feb 11 09:12:49 Hi, I ve installed vlc on the device with unslung, how can i start this app Feb 11 09:35:32 bern, http://www.videolan.org/doc/ Feb 11 10:46:03 thanks caplink Feb 11 10:50:52 I am using vlc to convert divx to mp2 on the fly(stream to dreambox), is there any chance to do that with a OVERCLOCKED nslu2? Feb 11 13:41:19 hiall!! Feb 11 13:41:40 cant change my nick atm - saying password incorrect. Feb 11 13:41:55 tried installing amule last night but had issues getting 2 the web interface Feb 11 13:42:12 its showing as installed when i telnet in Feb 11 13:42:28 not sure if theres more i need 2 do 2 access it? Feb 11 14:30:52 *reads rules* Feb 11 14:31:01 ok - me have the nick now :-p Feb 11 14:31:03 tried installing amule last night but had issues getting 2 the web interface Feb 11 14:31:14 its showing as installed when i telnet in Feb 11 14:31:22 not sure if theres more i need 2 do 2 access it? Feb 11 15:07:33 if any1 gets a chance who knows why amule aint workin 4 me ill leave irc runnin. thanks all!!! Feb 11 15:08:24 mwester: Are you there? Feb 11 16:23:07 anyone here use raid1 on their slug? Feb 11 16:54:59 * joshin imagines a RAID array of 4 flash drives... Feb 11 16:56:18 raid-12765 Feb 11 17:13:42 ? Feb 11 17:32:26 scant: there are folks who have experimented with raid on a slug. What firmware, and what is it you intend to "raid"? Feb 11 17:45:12 mwester: i'm trying to setup raid 1 with 2 200gb disks in the array, connected to a hub, on disk 1 port on the slug, using unslung 6.8 Feb 11 17:49:13 bootable drive is a seperate flash drive on the same hub Feb 11 17:49:33 do you know if i need the raid1 diversion scripts on the wiki with this setup? Feb 11 17:50:15 Anyoen here running lighttpd and php5-cgi? I'm trying to reduce the memory footprint on my slug, and when I run top I see ~8 php5-cgi process running. Is this normal? Feb 11 17:53:41 : why you don't use php-fcgi? It should be more efficient and works fine on my diskstation Feb 11 17:55:12 gda_: didn't know it existed, I'll see if there is a debian package Feb 11 17:56:27 I use an optware ipk, don't know how it's named in debian Feb 11 18:04:22 scant: No diversion scripts required, AFAIK. Feb 11 18:04:59 Hm.. can't seem to find fcgi for debian Feb 11 18:05:02 Unslung won't mount them automatically, so you'll have to deal with mounting them yourself. Feb 11 18:05:22 A diversion script might come into play, perhaps, in order to get Samba to export the mirrored array. Feb 11 18:05:37 Other than that, set it up the way you would any other RAID device. Feb 11 18:05:51 Just don't expect much from it - there are two problems that I see: Feb 11 18:06:11 a) it will be SLOW! (both drives on the same USB connection with software RAID will be slow). Feb 11 18:06:47 oh Feb 11 18:07:00 what if I put each drive on a different port? Feb 11 18:07:00 b) the mirror will be broken everytime you shutdown the SLUG, unless it is very carefully shutdown. You may need another diversion script to catch the "somewhat" orderly shutdown and unmount the array. Feb 11 18:07:40 If you put each drive on a different port, you'll have to follow the wiki article instructions -- complicated to do. Feb 11 18:08:20 That has the same issues at in problem b) that i just mentioned. The fundamental problem is that shutdown on the Linksys firmware is more like a controlled crash. Feb 11 18:08:51 why can't you have a drive connected to a seperate hub, each connected to a different port, and have the boot/swap partitions on a seperate flash, and use the diversion scripts to mount and unmount properly Feb 11 18:09:28 Can't boot Unslung from a hub. Feb 11 18:09:37 i boot unslung from a hub Feb 11 18:10:56 Lucky. If you have other storage devices, it's often random as to which one becomes sda or sdb, versus sdc/sdd/etc. Feb 11 18:11:53 mwester: i'm getting another error which i can't figure out Feb 11 18:11:59 i'm setting up the raid Feb 11 18:12:31 but when it comes to mke2fs it says: Writing inode tables: Terminated Feb 11 18:14:04 sounds like a problem setting up the metadisk beneath. What's fdisk say about the device you're trying to write a filesystem to. Feb 11 18:14:26 i use the busybox fdisk Feb 11 18:14:50 it doesn't say anything except that it's a linux raid autodetect Feb 11 18:15:01 Yes, but what partitions did you set up? Feb 11 18:15:14 one partition, 200gb Feb 11 18:15:16 primary Feb 11 18:15:57 fdisk -l /dev/md0 should print a partition table. Feb 11 18:16:05 let me try that Feb 11 18:16:14 but mine is md1 Feb 11 18:16:29 ok. I would have expected md0. Feb 11 18:17:08 i think my problem is that i don't know how to properly remove failed raid disks from my system Feb 11 18:18:21 I'm far from an expert on any of that. Feb 11 18:19:17 I looked into doing RAID, and after researching it became clear that for my needs, modifying the Linksys disk-to-disk copy to sync the two drives was a better solution. Feb 11 18:20:25 mwester: how do you do that? Feb 11 18:30:43 fdisk says i don't have a valid partition table Feb 11 18:30:47 Install a standard two-native-disk Unslung (booting from the drive in USB port 1). Then either setup the Linksys utility to copy the drive in port 1 to the drive in port 2 -- or you can replace it all with your own cron job. It's not mirrored, but it works for me. Feb 11 18:31:42 i still have an invalid partition table, even after i delete the partition, write it, and recreate a new partition Feb 11 18:33:06 My big fileserver also claims a bad partition table on the md0 -- which is happily mounted on the /boot partition. Which goes to prove that I'm beyond my level of knowlege. :( Feb 11 18:37:15 i guess i trashed my disks Feb 11 18:37:57 the web iterface formats correctly, but mke2fs -j fails with by terminating the writing of the inode tables Feb 11 20:44:30 how do i return my slug to factory default settings using unslung, when i upgrade via sercom some settings are kept, are these stored in nvram? can it be reset? Feb 11 20:48:10 search the wiki for resetting the sysconf partition Feb 11 20:48:59 That's where Linksys keeps most of the persistent settings (such as network settings) for the SLUG Feb 11 20:49:36 http://www.nslu2-linux.org/wiki/HowTo/ResetSysConf Feb 11 20:52:51 marceln: thanks, i didn't know what to search for Feb 11 20:54:12 No problem. That's what the irc channels are for, Feb 11 21:07:09 marceln: do you know if i can reset the sysconf when i have a drive that is unslung? Feb 12 01:37:45 Hi, am I in the right channel to ask a quick question about building OpenSlug-3.10 from the tarball? Feb 12 01:39:41 what script to i change to mount a drive at startup? Feb 12 01:39:42 ptan: You can ask here but #openslug might be better Feb 12 01:39:48 scant: /etc/fstab Feb 12 01:39:53 great. thanks joshin Feb 12 01:40:09 scant: What slug os distribution are you asking about? Feb 12 01:40:16 Unslung Feb 12 01:41:24 Sorry, can't help you with that one. On a more advanced linux install, you would edit /etc/fstab. I'm not sure how unslung would go about doing that. Feb 12 02:19:27 anyone know what CheckBackup does for Unslung and why it would be stopping my backup job? **** ENDING LOGGING AT Mon Feb 12 02:59:57 2007