[01:13] i'm down to 30G / 385175 files [01:19] hi === lubotu3` is now known as lubotu3 [06:52] good morning everyone, [07:23] Good Morning! [07:27] morning BigRedS [07:28] morning BigRedS and Gary [07:29] hey everyone [07:29] morning knightwise [07:30] hey bro [07:30] how is you ! [07:31] knightwise: not so bad but could be better, and you? [07:32] doin ok , wish I had some time ni the day where I could actually get work done instead of having to attend meetings [07:32] :) :( [07:54] hello all [07:54] morning MooDoo [08:16] Good morning peeps :) [08:18] Morning all [08:30] Good morning all, happy Chocolate Pudding Day! :-D [08:42] JamesTait: thanks, I now know what I'll have at the LUG tonight [08:42] \o/ [09:05] JamesTait: Aw, I see that just as I get back from the breakfast run [09:06] * BigRedS plans lunch [09:06] hey BigRedS [09:10] Morning! === schwuk_away is now known as schwuk === schwuk is now known as schwuk_away === schwuk_away is now known as schwuk [09:49] woo, internet is back, apparently an engineer came out yesterday to connect someone else and felt the desire to disconnect me \o/ [09:50] "Screw that Azelphur guy, I'm going to mess up his internet, muahahaha" [09:50] mgdm: yup :D [09:51] they do that a lot [09:51] especially virgin [09:51] when they can't find a slot in the cabinet, they just yoink someone else out, happened to us twice [09:51] we got plugged back into someone elses line so our phone number changed [09:51] wtf [09:52] i only found out when wifey phoned me from home and i noticed the caller id was wrong [09:53] if you see inside the cabinets they look pretty chaotic usually [09:53] pretty sure bodging in the fastest way possible is standard [09:54] it's more prevalent on virgin because most of the engineers are contractors, and paid by number of jobs per day. so are in a hurry to get customer running then leave. they don't want a trip to the exchange to setup a new connection. [09:56] friend works for a landlord who owns a house which is listed [09:56] when they got virgin installed the engineers were ordered by their supervisor to bash the cables into the side of the house [09:56] promptly got bollocked by The Authorities [09:56] (the engineers initially went on strike but relented) [09:57] heh [10:25] morning all [11:09] popey, http://www.penny-arcade.com/comic [11:11] hah [11:16] directhex: hahaha [12:06] dental hygeinist this morning. oh the pain of searing gums :( [12:07] I need to floss more [12:07] everyone does [12:07] I did learn recently, however, that flossing need not take ages. [12:07] do it on the toilet [12:07] it's like digging the plague out from between the tooth and gum, just one scrape each side of the gap and move on [12:08] grim [12:08] none of this sawing motion is necessary unless teeth are particularly close together [12:08] mine are very tight fitting [12:08] but i use tape instead [12:10] hadn't been for 2 or 3 years so much paint required [12:11] paint? [12:12] woops, pain [12:38] ah, I wondered if you'd ended up with some back-ally tooth-whitening process [12:39] i do have a gold tooth at the back though [12:39] opulent! [12:40] didn't really have much choice [12:40] pull out or get a crown [12:43] I had to have a molar removed, that was fun.... for varying values of "fun" [12:44] had to one above removed [12:44] then i got a bonus as a dormant winsdom tooth woke up and replaced it === dwd is now known as dwdorig [13:12] gmail now warns you of those "i'm on holiday and lost my wallet mails" [13:12] and you click to report a compromised acct [13:13] oh nice [13:13] mungbean, Aren't all gmail accounts compromised to the NSA by default, now? [13:14] i don't think the NSA ask me to send money to a hotel in the philppines though [13:14] mungbean, That's just what they want you to think. [13:15] ok [13:15] mungbean, Also, looks terribly easy to build pencil into an XPI from the source tarball. [13:17] with xulrunner built in? [13:20] I'll stare at you blankly at this point. Don't XPI's sort of install into Firefox? [13:20] latest pencil not work with FF since v17 [13:21] you need to include an older xulrunner version [13:21] I always feel like I've missed about 12 versions whenever anyone mentions a Firefox version. [13:21] i think latest is 22 [13:21] Right, so in that case, no. [13:30] http://satwcomic.com/all-just-a-game [13:30] popey: ^ [13:38] its easy to get distracted and do something completely different while waiting for tomcat to start [13:53] So, I have a USB pen drive running 12.04 that I'm using to fix some HDD's on my home server. I booted into it fine, found my raid array, installed mdadm and mounted the drives. After a reboot, the USBdrive seems to be having trouble booting and falls into busybox. [13:55] I'm presuming its getting confused about the boot device mid boot but I don't currently have any evidence to support this. [13:57] If I exit I get a kernel panic. I can reinstall the USB pen drive fresh but was wondering if there was a simple fix. [13:59] what does it say just before dropping into busybox? [13:59] and do you know what parameters the kernel's being passed? What's root set to? [14:01] BigRedS, you'll have to bear with me, while I'm trying to familiarise myself with Ubuntu this summer, I still consider myself a novice. [14:04] The message before dropping into busybox is: [drm] Initialised radeon 2.18.0 20080528 for 0000:01:00.0 on minor 0 [14:05] However, just before that I can see some mdadm ish messages. [14:05] And since installing mdadm was the last thing I did I suspect it is related to that rather than the graphics card. [14:06] I don't know how to find out what root is set to or how to find out what's being passed to the kernel. [14:06] ah, cool. I can't remember how extensive busybox is [14:07] It seems fairly basic. [14:07] but you *should* be able to cat /proc/cmdline to see how the kernel was invoked. One part of it is probably something like root=/dev/sda . 'sd' refers basically to SATA and SCSI disks, if you've something like root=/dev/md1 then it's trying to boot from an md array [14:08] yeah, it's incredibly minimal, which is really handy until you need a thing it hasn't got :) [14:09] So it appears to be trying to boot from /cdrom which is what I would expect - again this is a live cd installed onto a USB. [14:10] blkid shows the USB as being at /dev/sde1 and this appears to change from boot to boot. [14:12] Sorry, to clarify, there is no "root=" in cat /proc/cmdline, but a "file=/cdrom" [14:17] ah, cool [14:19] I'd assumed you'd installed it differently... What would be best is to get the error messages that happen just before you're dumped in busybox [14:21] The message immediately preceding busybox is: [drm] Initialised radeon 2.18.0 20080528 for 0000:01:00.0 on minor 0 [14:22] yeah, there should be ones before that complaining about something [14:22] shift+up might scroll upwards [14:22] Okay, sorry I see you said error message. I'll take a look. [14:26] Ah, no worries. TBH, thinking about it, boot is one of the more tempermental and irritating bits of linux - you may find it gets frustrating and a new install is more productive than learning to hate it :) [14:27] I am not able to scroll up. While I'm not certain what I'm looking for: "md127: detected capacity change from 0 to 4000790347776", "md127: unknown partition table", "drm: registered panic notifier" [14:27] Some messages were omitted. [14:28] Yup, I'm sure a clean USB live disk install would fix the problem just felt like a bit of a "fix it with a hammer and never know the problem" approach. [14:30] So, when I have a USB live disk, it boots by copying an instance of the os into ram right? If I install packages and then reboot do these packages get copied back to the USB stick? (As this is what appears to have happened) [14:30] yeah, it's the sort of thing I'd generally advocate - fixing the problem rather than flattening it. But, equally, in your position I'd just redo it :) [14:31] I'm not sure any more, to be honest. I've been puzzled ever since liveCDs moved onto a writeable medium [14:31] probably best to wait for someone who understands livecd/liveusb better than I do :) [14:33] When I drop out of busy box I get: /init: line352: can't open /root/dev/console: no such file [14:34] Kernel panic - not syncing: attempting to kill init! exitcode=0x00000200 [14:36] If I remove the raid array it boots. Do you know a way of preventing it from using mdadm during boot? [14:37] (Assuming that's the issue here) [14:38] Oh ... According to terminal it's not installed ... Very interesting. [14:38] what's not installed? md? [14:38] there's definitely a kernel arg to get it to not do anything with md, but I can't remember what it is [14:39] mdadm. Sorry, are mdadm and md different things? [14:46] md is the name for the whole linux-kernel-software-raid thing [14:46] mdadm is a tool used to interfere with them - "md admin" is mnemonic but I don't know if that' the etymology [14:47] From what I know of mdadm it is. [14:47] Okay, I understand the difference. [14:48] so, yeah, the two are generally essentially synonymous [14:58] advancedgarde: unless things have changed recently (they probably haven't), the actual live image on the USB stick doesn't get changed, a secondary (unionfs?) image is created on the USB stick and any changes you make to the live FS are stored there. Pretty sure it's safe to delete that file. I think it's in a directory called casper [14:58] It's also possible to disable that persistance if you don't want it... somehow [14:58] persistence [15:00] I tried adding raid=noautodetect to the boot line but it had no effect. I'll look into removing Casper now. [15:00] Boot options* [15:50] Solution: I've switched to a machine that supports hot swapping HDDs and I've connected my raid members after boot. [15:58] I was under the impression that all SATA hosts support hot swapping [15:59] Well, my other machine didn't seem to like it - perhaps I was missing something but the drives didn't show up after connecting ... [15:59] Installing 13.04 onto my netbook... [16:00] advancedgarde: it's entirely possible that my impression is just wrong [16:01] Is there a way to remove all files within /a that are present in directory /b? [16:02] rm -rf b/a/* [16:02] Thank you ^^ [16:02] err [16:02] not sure thats what he really wants? [16:02] Did you mean all files in /a that also appear in directory /b? [16:03] Yes I did. [16:03] that would be harder [16:04] I assume it would involve writing a script [16:09] So, is there a usage of rm at the command line that will instead trash the files? [16:11] what do you mean? [16:13] So, if I use rm in terminal, the file is removed. If I delete a file in the GUI, it is sent to the trash (which can then be emptied) Is there a command line tool for trashing? [16:14] why would you want to? [16:14] either you want the file or you don't [16:14] you shouldn't use the 'trash' for storing files you might want in a GUI :P [16:15] Hmm, I'm going to attempt the write a script to remove some files but I'm not confident in my scripting abilities - so a way back would be nice. [16:15] Trash was my first thought, perhaps a move would be equally good. [16:16] test out the script on files you don't really need [16:17] that, and just echo out the commands when you first write the script so you can see what it would do [16:17] rather than actually doing it [16:17] Okay. [16:25] advancedgarde, for x in `ls b`; do echo rm a/$x; done [16:26] advancedgarde, And when you're happy that the rm commands look right, then remove the "echo" (which is printing the command instead of executing it) [16:27] advancedgarde, For yuks, you could also do: for x in b/*; do echo rm a/`basename $x`; done [16:28] advancedgarde, The latter should be faster because it's forking fewer processes (by one, so hardly the most exciting optimization in the world). [16:30] advancedgarde, If you really want to use Trash, then you could read the Trash spec and implement it in a shell script - I don't think it's hard, from what I recall. But you could also do "mv" to a temp dir, which'd be *almost* the same effect. [16:31] Thank you dwdorig, I'm looking over what you've said now ^^. In regards to the trash, I was just curious - mv works just as well for me. === deegee__ is now known as drussell [16:31] there are only ~200 folders to check, so it could be done by hand but I'm trying to expand my knowledge or terminal so ... [16:31] of* [16:33] advancedgarde, Right, it's not a hard bit of scripting. If you do want to do Trash, the spec is at http://standards.freedesktop.org/trash-spec/trashspec-0.8.html [16:33] advancedgarde, It might even be that one of the xdgtools can do it for you. [16:35] advancedgarde, Oh, you realise that's only checking that the file *name* is identical? If you want to check file contents, you'll want to play with diff and return codes. [16:35] file name is sufficient for this. [16:36] But I can see how I could have missed that ;D [16:37] Oh. I'm even credited in the trash spec. I don't remember what I suggested at all. [17:09] For anyone thinking about the move to fibre, quidco are doing £70 cashback on plusnet atm, pretty good deal. [17:18] dwdorig. I've been having some trouble with the script because of spaces in the file name paths. [17:20] Oh, never mind, I fixed it - just had my quotes in the wrong places. === schwuk is now known as schwuk_away [22:04] find -maxdepth 1 -type d -exec echo echo \`find {} -type f \| wc -l \` {} \; [22:04] how do i escape this properly? [22:05] find -maxdepth 1 -type d -exec /bin/bash -- echo \`find {} -type f \| wc -l \` {} \; [22:06] /bin/echo: /bin/echo: cannot execute binary file [22:06] can you use $() instead of the `` [22:06] and escape that? [22:06] maybe [22:07] the idea, if it isnt clear, is to get each directory in current directory, and then count how many files are in it, then prnt the count and the directory name [22:07] i just installed this distro that passes GRUB and looks like it's loading normally, then instead of X i just get the black screen with a solitary [OK] in the upper right - any ideas how to diagnose? [22:07] find -maxdepth 1 -type d -exec echo `find '{}' -type f | wc -l` '{}' \; [22:08] I think. [22:08] no matter what, it won't run echo [22:08] find . -type d -maxdepth 1 | xargs --replace find {} ... [22:08] But you may prefer xargs. [22:08] maybe? [22:08] dwdorig: that won't work, the backticks will be handled by bash before find runs [22:08] Right. :-) [22:08] I'm not sure what the ... is, yet :) [22:09] ali1234, Oh, yes. Quite. [22:09] Try sh -c ? [22:09] close [22:09] now t just echos nothing [22:10] So find -maxdepth 1 -type d bash -c 'echo `find {} -type f | wc -l`' '{}' \; [22:10] needs moar quotes [22:10] Something like that? [22:11] Evening all [22:11] find -maxdepth 1 -type d -exec /bin/bash -c "echo `find {} -type f | wc -l` {}" \; <- this is really close to working, but now it always counts 0 [22:11] for d in `find -maxdepth 1 -type d`; do echo `find '{}' -type f | wc -l` '{} \; done [22:12] dwdorig: that fails if any directory name has spaces in it [22:12] ali1234: for i in `find . -maxdepth 1 -type d`; do j=$(find $i -maxdepth 1 -type f | wc -l); print $j $i; done [22:12] might need to handle spaces, yes [22:13] but that's probably a "$i" [22:13] I'm not sure why I mixed $() and ``, but there you go [22:13] mgdm, Doesn't for seperate its args by spaces too? I can never remember. [22:13] ah, yes, possibly [22:14] there's a find -0 for that purpose, which might not be useful here [22:14] Yes, and xargs does a similar thing if you ask nicely. [22:14] find -maxdepth 1 -type d -exec /bin/bash -c "echo \`find {} -type f | wc -l\` {}" \; <- got it [22:15] Ah, there we go then. [22:15] hmm it still fails on spaces [22:15] find -maxdepth 1 -type d -exec /bin/bash -c "echo \`find '{}' -type f | wc -l\` {}" \; | sort -rn [22:15] works [22:16] I have to admit, I'm not sure why replacing ' ... ` ` ...' with " ... \` \` ... " would make a difference. [22:16] who knows [22:16] Oh, maybe bash sees those too late. [22:16] multiple levels of escaping going on [22:16] Anyway, bedtime. [22:16] * dwdorig & [22:54] AlanBell: do you remember the name of the guy on the right (our right)? [22:58] hmm, Robert someone I think [23:02] even the science museum doesn't know https://twitter.com/sciencemuseum/status/350012008055320578 [23:03] Richard Holmes [23:03] found it via https://twitter.com/RogerHighfield [23:04] were you just at some kind of event? [23:04] recording of The Infinite Monkey Cage [23:04] ah [23:05] 26GB / 212150 files :) [23:06] popey: the glove lady https://twitter.com/connellycharlie/status/350025374333276161 [23:08] i find i can't work radio into my life :( it's just not a medium i can pay attention to [23:09] * popey edited wikipedia to update it [23:09] * popey expects the edit to be reverted [23:10] Can't live without radio. I need the background noise to help me work [23:10] oh balls, I messed it up [23:10] smooth [23:12] ah it'd work at an office job i could imagine [23:12] fixed! [23:12] phew [23:12] http://en.wikipedia.org/wiki/The_Infinite_Monkey_Cage#List_of_episodes [23:12] i tend to flip out when i'm places where builder types put the local radio station on [23:12] i dont listen to it on the radio, i listen to it as a podcast [23:12] i prefer podcasts [23:13] 2 hours of linux outlaws ranting is great [23:13] It is? [23:13] nice one popey :) [23:13] followed by a dose of the linux link tech show [23:13] snoozeshow ☻ [23:14] they never really talk about anything on the tech show. it really is just a chit chat === MyUbuntuBlog is now known as ubuntubob [23:17] night all o/ [23:18] nn