/srv/irclogs.ubuntu.com/2013/06/26/#ubuntu-uk.txt

ali1234i'm down to 30G / 385175 files01:13
shemeerhi01:19
=== lubotu3` is now known as lubotu3
brobostigongood morning everyone,06:52
BigRedSGood Morning!07:23
Garymorning BigRedS07:27
brobostigonmorning BigRedS and Gary07:28
knightwisehey everyone07:29
brobostigonmorning knightwise07:29
knightwisehey bro07:30
knightwisehow is you !07:30
brobostigonknightwise: not so bad but could be better, and you?07:31
knightwisedoin ok , wish I had some time ni the day where I could actually get work done instead of having to attend meetings07:32
brobostigon:) :(07:32
MooDoohello all07:54
brobostigonmorning MooDoo07:54
bigcalmGood morning peeps :)08:16
diploMorning all08:18
JamesTaitGood morning all, happy Chocolate Pudding Day! :-D08:30
bigcalmJamesTait: thanks, I now know what I'll have at the LUG tonight08:42
JamesTait\o/08:42
BigRedSJamesTait: Aw, I see that just as I get back from the breakfast run09:05
* BigRedS plans lunch09:06
knightwisehey BigRedS09:06
BigRedSMorning!09:10
=== schwuk_away is now known as schwuk
=== schwuk is now known as schwuk_away
=== schwuk_away is now known as schwuk
Azelphurwoo, internet is back, apparently an engineer came out yesterday to connect someone else and felt the desire to disconnect me \o/09:49
mgdm"Screw that Azelphur guy, I'm going to mess up his internet, muahahaha"09:50
Azelphurmgdm: yup :D09:50
popeythey do that a lot09:51
popeyespecially virgin09:51
popeywhen they can't find a slot in the cabinet, they just yoink someone else out, happened to us twice09:51
popeywe got plugged back into someone elses line so our phone number changed09:51
mgdmwtf09:51
popeyi only found out when wifey phoned me from home and i noticed the caller id was wrong09:52
Laneyif you see inside the cabinets they look pretty chaotic usually09:53
Laneypretty sure bodging in the fastest way possible is standard09:53
popeyit'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:54
Laneyfriend works for a landlord who owns a house which is listed09:56
Laneywhen they got virgin installed the engineers were ordered by their supervisor to bash the cables into the side of the house09:56
Laneypromptly got bollocked by The Authorities09:56
Laney(the engineers initially went on strike but relented)09:56
popeyheh09:57
davmor2morning all10:25
directhexpopey, http://www.penny-arcade.com/comic11:09
popeyhah11:11
Azelphurdirecthex: hahaha11:16
mungbeandental hygeinist this morning. oh the pain of searing gums :(12:06
dwatkinsI need to floss more12:07
mungbeaneveryone does12:07
dwatkinsI did learn recently, however, that flossing need not take ages.12:07
mungbeando it on the toilet12:07
dwatkinsit's like digging the plague out from between the tooth and gum, just one scrape each side of the gap and move on12:07
mungbeangrim12:08
dwatkinsnone of this sawing motion is necessary unless teeth are particularly close together12:08
mungbeanmine are very tight fitting12:08
mungbeanbut i use tape instead12:08
mungbeanhadn't been for 2 or 3 years so much paint required12:10
popeypaint?12:11
mungbeanwoops, pain12:12
BigRedSah, I wondered if you'd ended up with some back-ally tooth-whitening process12:38
mungbeani do have a gold tooth at the back though12:39
popeyopulent!12:39
mungbeandidn't really have much choice12:40
mungbeanpull out or get a crown12:40
dwatkinsI had to have a molar removed, that was fun.... for varying values of "fun"12:43
mungbeanhad to one above removed12:44
mungbeanthen i got a bonus as a dormant winsdom tooth woke up and replaced it12:44
=== dwd is now known as dwdorig
mungbeangmail now warns you of those "i'm on holiday and lost my wallet mails"13:12
mungbeanand you click to report a compromised acct13:12
popeyoh nice13:13
dwdorigmungbean, Aren't all gmail accounts compromised to the NSA by default, now?13:13
mungbeani don't think the NSA ask me to send money to a hotel in the philppines though13:14
dwdorigmungbean, That's just what they want you to think.13:14
mungbeanok13:15
dwdorigmungbean, Also, looks terribly easy to build pencil into an XPI from the source tarball.13:15
mungbeanwith xulrunner built in?13:17
dwdorigI'll stare at you blankly at this point. Don't XPI's sort of install into Firefox?13:20
mungbeanlatest pencil not work with FF since v1713:20
mungbeanyou need to include an older xulrunner version13:21
dwdorigI always feel like I've missed about 12 versions whenever anyone mentions a Firefox version.13:21
mungbeani think latest is 2213:21
dwdorigRight, so in that case, no.13:21
MartijnVdShttp://satwcomic.com/all-just-a-game13:30
MartijnVdSpopey: ^13:30
mungbeanits easy to get distracted and do something completely different while waiting for tomcat to start13:38
advancedgardeSo, 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:53
advancedgardeI'm presuming its getting confused about the boot device mid boot but I don't currently have any evidence to support this.13:55
advancedgardeIf 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:57
BigRedSwhat does it say just before dropping into busybox?13:59
BigRedSand do you know what parameters the kernel's being passed? What's root set to?13:59
advancedgardeBigRedS, 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:01
advancedgardeThe message before dropping into busybox is: [drm] Initialised radeon 2.18.0 20080528 for 0000:01:00.0 on minor 014:04
advancedgardeHowever, just before that I can see some mdadm ish messages.14:05
advancedgardeAnd since installing mdadm was the last thing I did I suspect it is related to that rather than the graphics card.14:05
advancedgardeI 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
BigRedSah, cool. I can't remember how extensive busybox is14:06
advancedgardeIt seems fairly basic.14:07
BigRedSbut 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 array14:07
BigRedSyeah, it's incredibly minimal, which is really handy until you need a thing it hasn't got :)14:08
advancedgardeSo 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:09
advancedgardeblkid shows the USB as being at /dev/sde1 and this appears to change from boot to boot.14:10
advancedgardeSorry, to clarify, there is no "root=" in cat /proc/cmdline, but a "file=/cdrom"14:12
BigRedSah, cool14:17
BigRedSI'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 busybox14:19
advancedgardeThe message immediately preceding  busybox is: [drm] Initialised radeon 2.18.0 20080528 for 0000:01:00.0 on minor 014:21
BigRedSyeah, there should be ones before that complaining about something14:22
BigRedSshift+up might scroll upwards14:22
advancedgardeOkay, sorry I see you said error message. I'll take a look.14:22
BigRedSAh, 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:26
advancedgardeI 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
advancedgardeSome messages were omitted.14:27
advancedgardeYup, 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:28
advancedgardeSo, 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
BigRedSyeah, 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:30
BigRedSI'm not sure any more, to be honest. I've been puzzled ever since liveCDs moved onto a writeable medium14:31
BigRedSprobably best to wait for someone who understands livecd/liveusb better than I do :)14:31
advancedgardeWhen I drop out of busy box I get: /init: line352: can't open /root/dev/console: no such file14:33
advancedgardeKernel panic - not syncing: attempting to kill init! exitcode=0x0000020014:34
advancedgardeIf I remove the raid array it boots. Do you know a way of preventing it from using mdadm during boot?14:36
advancedgarde(Assuming that's the issue here)14:37
advancedgardeOh ... According to terminal it's not installed ... Very interesting.14:38
BigRedSwhat's not installed? md?14:38
BigRedSthere's definitely a kernel arg to get it to not do anything with md, but I can't remember what it is14:38
advancedgardemdadm. Sorry, are mdadm and md different things?14:39
BigRedSmd is the name for the whole linux-kernel-software-raid thing14:46
BigRedSmdadm is a tool used to interfere with them - "md admin" is mnemonic but I don't know if that' the etymology14:46
advancedgardeFrom what I know of mdadm it is.14:47
advancedgardeOkay, I understand the difference.14:47
BigRedSso, yeah, the two are generally essentially synonymous14:48
funkyHatadvancedgarde: 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 casper14:58
funkyHatIt's also possible to disable that persistance if you don't want it... somehow14:58
funkyHatpersistence14:58
advancedgardeI tried adding raid=noautodetect to the boot line but it had no effect. I'll look into removing Casper now.15:00
advancedgardeBoot options*15:00
advancedgardeSolution: I've switched to a machine that supports hot swapping HDDs and I've connected my raid members after boot.15:50
funkyHatI was under the impression that all SATA hosts support hot swapping15:58
advancedgardeWell, 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
bashrcInstalling 13.04 onto my netbook...15:59
funkyHatadvancedgarde: it's entirely possible that my impression is just wrong16:00
advancedgardeIs there a way to remove all files within /a that are present in directory /b?16:01
bashrcrm -rf b/a/*16:02
advancedgardeThank you ^^16:02
Seeker`err16:02
Seeker`not sure thats what he really wants?16:02
Seeker`Did you mean all files in /a that also appear in directory /b?16:02
advancedgardeYes I did.16:03
bashrcthat would be harder16:03
bashrcI assume it would involve writing a script16:04
advancedgardeSo, is there a usage of rm at the command line that will instead trash the files?16:09
Seeker`what do you mean?16:11
advancedgardeSo, 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:13
Seeker`why would you want to?16:14
Seeker`either you want the file or you don't16:14
Seeker`you shouldn't use the 'trash' for storing files you might want in a GUI :P16:14
advancedgardeHmm, 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
advancedgardeTrash was my first thought, perhaps a move would be equally good.16:15
Seeker`test out the script on files you don't really need16:16
Seeker`that, and just echo out the commands when you first write the script so you can see what it would do16:17
Seeker`rather than actually doing it16:17
advancedgardeOkay.16:17
dwdorigadvancedgarde, for x in `ls b`; do echo rm a/$x; done16:25
dwdorigadvancedgarde, 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:26
dwdorigadvancedgarde, For yuks, you could also do: for x in b/*; do echo rm a/`basename $x`; done16:27
dwdorigadvancedgarde, The latter should be faster because it's forking fewer processes (by one, so hardly the most exciting optimization in the world).16:28
dwdorigadvancedgarde, 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:30
advancedgardeThank 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.16:31
=== deegee__ is now known as drussell
advancedgardethere 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
advancedgardeof*16:31
dwdorigadvancedgarde, 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.html16:33
dwdorigadvancedgarde, It might even be that one of the xdgtools can do it for you.16:33
dwdorigadvancedgarde, 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
advancedgardefile name is sufficient for this.16:35
advancedgardeBut I can see how I could have missed that ;D16:36
dwdorigOh. I'm even credited in the trash spec. I don't remember what I suggested at all.16:37
AzelphurFor anyone thinking about the move to fibre, quidco are doing £70 cashback on plusnet atm, pretty good deal.17:09
advancedgardedwdorig. I've been having some trouble with the script because of spaces in the file name paths.17:18
advancedgardeOh, never mind, I fixed it - just had my quotes in the wrong places.17:20
=== schwuk is now known as schwuk_away
ali1234find -maxdepth 1 -type d -exec echo echo \`find {} -type f \| wc -l \` {}  \;22:04
ali1234how do i escape this properly?22:04
ali1234find -maxdepth 1 -type d -exec /bin/bash -- echo \`find {} -type f \| wc -l \` {}  \;22:05
ali1234/bin/echo: /bin/echo: cannot execute binary file22:06
mgdmcan you use $() instead of the ``22:06
mgdmand escape that?22:06
ali1234maybe22:06
ali1234the 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 name22:07
daftykinsi 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
dwdorigfind -maxdepth 1 -type d -exec echo `find '{}' -type f | wc -l` '{}' \;22:07
dwdorigI think.22:08
ali1234no matter what, it won't run echo22:08
mgdmfind . -type d -maxdepth 1 | xargs --replace find {} ...22:08
dwdorigBut you may prefer xargs.22:08
mgdmmaybe?22:08
ali1234dwdorig: that won't work, the backticks will be handled by bash before find runs22:08
dwdorigRight. :-)22:08
mgdmI'm not sure what the ... is, yet :)22:08
dwdorigali1234, Oh, yes. Quite.22:09
dwdorigTry sh -c ?22:09
ali1234close22:09
ali1234now t just echos nothing22:09
dwdorigSo find -maxdepth 1 -type d bash -c 'echo `find {} -type f | wc -l`' '{}' \;22:10
ali1234needs moar quotes22:10
dwdorigSomething like that?22:10
popeyEvening all22:11
ali1234find -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 022:11
dwdorigfor d in `find -maxdepth 1 -type d`; do echo `find '{}' -type f | wc -l` '{} \; done22:11
ali1234dwdorig: that fails if any directory name has spaces in it22:12
mgdmali1234: for i in `find . -maxdepth 1 -type d`; do j=$(find $i -maxdepth 1 -type f | wc -l); print $j    $i; done22:12
mgdmmight need to handle spaces, yes22:12
mgdmbut that's probably a "$i"22:13
mgdmI'm not sure why I mixed $() and ``, but there you go22:13
dwdorigmgdm, Doesn't for seperate its args by spaces too? I can never remember.22:13
mgdmah, yes, possibly22:13
mgdmthere's a find -0 for that purpose, which might not be useful here22:14
dwdorigYes, and xargs does a similar thing if you ask nicely.22:14
ali1234find -maxdepth 1 -type d -exec /bin/bash -c "echo \`find {} -type f | wc -l\` {}"  \; <- got it22:14
dwdorigAh, there we go then.22:15
ali1234hmm it still fails on spaces22:15
ali1234find -maxdepth 1 -type d -exec /bin/bash -c "echo \`find '{}' -type f | wc -l\` {}"  \; | sort -rn22:15
ali1234works22:15
dwdorigI have to admit, I'm not sure why replacing ' ... ` ` ...' with " ... \` \` ... " would make a difference.22:16
ali1234who knows22:16
dwdorigOh, maybe bash sees those too late.22:16
ali1234multiple levels of escaping going on22:16
dwdorigAnyway, bedtime.22:16
* dwdorig &22:16
popeyAlanBell: do you remember the name of the guy on the right (our right)?22:54
AlanBellhmm, Robert someone I think22:58
AlanBelleven the science museum doesn't know https://twitter.com/sciencemuseum/status/35001200805532057823:02
popeyRichard Holmes23:03
popeyfound it via https://twitter.com/RogerHighfield23:03
daftykinswere you just at some kind of event?23:04
popeyrecording of The Infinite Monkey Cage23:04
daftykinsah23:04
ali123426GB / 212150 files :)23:05
AlanBellpopey: the glove lady https://twitter.com/connellycharlie/status/35002537433327616123:06
daftykinsi find i can't work radio into my life :( it's just not a medium i can pay attention to23:08
* popey edited wikipedia to update it23:09
* popey expects the edit to be reverted23:09
MyUbuntuBlogCan't live without radio. I need the background noise to help me work23:10
popeyoh balls, I messed it up23:10
ali1234smooth23:10
daftykinsah it'd work at an office job i could imagine23:12
popeyfixed!23:12
popeyphew23:12
popeyhttp://en.wikipedia.org/wiki/The_Infinite_Monkey_Cage#List_of_episodes23:12
daftykinsi tend to flip out when i'm places where builder types put the local radio station on23:12
popeyi dont listen to it on the radio, i listen to it as a podcast23:12
MyUbuntuBlogi prefer podcasts23:12
MyUbuntuBlog2 hours of linux outlaws ranting is great23:13
popeyIt is?23:13
AlanBellnice one popey :)23:13
MyUbuntuBlogfollowed by a dose of the linux link tech show23:13
popeysnoozeshow ☻23:13
MyUbuntuBlogthey never really talk about anything on the tech show. it really is just a chit chat23:14
=== MyUbuntuBlog is now known as ubuntubob
AlanBellnight all o/23:17
popeynn23:18

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!