[04:57] <mapps> grrr
[04:57] <mapps> freajking raining
[06:10] <daftykins> :D
[06:11] <mapps> ;D
[06:19] <mapps> what you up to being up so early mate
[06:30] <daftykins> XD
[06:30] <daftykins> being one damaged individual
[06:31] <daftykins> just finished a film
[06:31] <daftykins> http://www.imdb.com/title/tt0338013/
[06:36] <mapps> hm let me see
[06:37] <mapps> not sure ive seen thst
[06:37] <mapps> gonna watch the cube tomorrow..never seen it:)
[06:47] <daftykins> ah yeah
[06:47] <daftykins> think there are a few to that too?
[06:55] <mapps> yea 3
[06:55] <mapps> u seen 1st?
[06:56] <daftykins> yip think so, many moons ago
[10:11] <brobostigon> morning boys and girls.
[15:21] <mapps> afternoon
[15:28] <Azelphur> can anyone explain how this works? http://pastebin.com/mVFLutDg
[15:28] <Azelphur> according to du, I've got like 40GB used, not 250.
[15:33]  * penguin42 looks
[15:34] <penguin42> Azelphur: under where?
[15:34] <Azelphur> what do you mean under where?
[15:34] <penguin42> oh I see
[15:34] <penguin42> Azelphur: So your /media is a separate 2TB mount?
[15:34] <Azelphur> yea
[15:35] <penguin42> Azelphur: OK, so there are a few reasons that can happen
[15:35] <ali1234> i too do not understand the question
[15:35] <penguin42> Azelphur: One reason is that you might have some stuff in /media on the main drive that's hidden by the mount
[15:35] <Azelphur> ali1234: I'm trying to find out where all my drive space has gone, du is being less than helpful
[15:35] <penguin42> Azelphur: So try umounting /media and duing it
[15:36] <ali1234> use ncdu not du
[15:36] <ali1234> du sucks
[15:36] <penguin42> Azelphur: Similarly for /tmp or the like that's a shmfs mount
[15:36] <Azelphur> penguin42: that was the correct answer, looks like it hasn't mounted my second drive for some reason and is instead writing backups onto the tiny 250GB drive.
[15:37] <Azelphur> there we go, now things are much happier.
[15:39] <Azelphur> thanks :)
[15:40] <Azelphur> ali1234: btw, did you see my silly lights video? :)
[15:40] <ali1234> yes
[15:40] <Azelphur> hehe
[15:40] <ali1234> looks like a good way to get rid of unwanted house guests
[15:40] <Azelphur> that's true, it'd probably be remarkably effective
[15:40] <Azelphur> especially if I played country music instead
[15:41] <ali1234> why do you have windows that go to the floor?
[15:42] <Azelphur> ali1234: the building is circa 1700s and is protected
[15:48] <mapps> hmm
[15:48] <mapps> my raspberrypi stopped working again..yet was plugged in and net up..anyopne got any ideas what could be causing it?!
[15:53] <penguin42> mapps: I'd try adding some warm custard
[15:56] <mapps> :D
[16:00] <DJones> \o/ New drive installed & setup, just copying data off the old drive now
[16:06] <penguin42> mapps: So without knowing the Pi specifically; 1) Check your SD card, they're made of cheese, 2) Check how you're powering it
[16:09] <mapps> pah:P i cant im not there..so just check sd and cables afaik all fine
[16:09] <mapps> where would it log any errors to that could cause it to die dmesg?
[16:11] <penguin42> mapps: Well yes but that depends why it died, if it couldn't get to the SD for example then they won;t have been able to get recorded onto the said SD
[16:13] <penguin42> mapps: If it does it regularly then try and setup network or serial logging to another machine
[16:17] <mapps> its done it after a week of 24/7
[16:20] <mapps> my dad unplugged it and plugged back in it boots up and all works fine agao
[16:21] <mapps> if it runs out of memory..too much running would that d oit?
[16:21] <penguin42> mapps: The other thing then to look for is how dead it is - does it still ping for example?  Also look if there is support for any watchdog timer on it so it can reset itself
[16:21] <penguin42> mapps: If you've got a leak somewhere then yes
[16:21] <mapps> couldnt ssh to it/reach apache or vpn didnt try pinging
[16:21] <penguin42> mapps: ping first :-)
[16:22] <mapps> watchdog timer?! surely there wouldnt be anythong to reset after x days if thats what you mean?!
[16:22] <penguin42> mapps: The idea with a watchdog is that it's a timer that you have to prod every few seconds, if you don't it sends a reset
[16:23] <mapps> ah
[16:23] <penguin42> mapps: Then you get something that just checks everything is ok, and prods the timer; if anything breaks it resets
[16:23] <mapps> as it assumes somethings gone wrong|
[16:23] <mapps> ya
[16:23] <penguin42> yep
[16:23] <mapps> if it was rebooting it would be fine..eveything comes back to lie..apache..vpn..iptables rules etc
[16:24] <mapps> but it just crashes/hangs from what i know..im not there..dad says its on..i cant reach it minute he unplugs and plugs back in works again;(
[16:26] <penguin42> mapps: The other thing you can do is do things like write a program that just continously flashes an LED (I assume it has one you can do that to) - and when you invoke your dad to kick it, he can tell you if the LED is still flashing
[17:50] <shauno> there's a fun task for an arduino there .. a hardware watchdog.  that if it hasn't had a 'blink' for long enough it powercycles
[17:53] <penguin42> shauno: You don't need an arduino for that; I think you can do it with transistor+capacitor type of thing
[17:53] <penguin42> shauno: Or relay+cap
[17:55] <shauno> well yeah.  but arduinos are like Pis .. I have more than I'd like to admit :)
[17:56] <shauno> (and can evolve pretty easily .. eg to provide a soft-off)
[17:59] <shauno> I have a troubling amount of these knocking around .. http://oomlout.co.uk/collections/arduino/products/arduino-component-bundle-arcb
[17:59] <penguin42> shauno: Oh that's quite a nice little set
[18:00] <shauno> a couple of quid more than it needs to be, but I'm lazy
[18:01] <penguin42> yeh, I was thinking it's a bit more pricey than shrimpit
[18:59] <mapps> lol penguin42 re kicking it:D would be nice to know why it does it though
[19:27] <penguin42> mapps: Right, but that's what your serial or network console type things help with if you can't get anything from the logs
[19:34] <mapps> not sure what you mean by serial or network console..and on a pi??
[19:38] <camason> Evening. I need to setup OpenVPN on a server in a remote office, but that's going to involve fiddling with network
[19:38] <camason> what's the safest way to adjust settings? Any way I can do it and not lock myself out?
[19:44] <ali1234> is there a way make it so that malloc will never reuse a virtual address? (other than never freeing memory at all)
[19:45] <ali1234> with a 64 bit address space this should be at least feasible
[19:45] <penguin42> camason: Give yourself another way in
[19:46] <penguin42> camason: setup two vpn setups, only ever work on one at a time
[19:46] <camason> penguin42 it's more I need to re-jig my eth settings, and I fear one mistake will take the network offline
[19:47] <penguin42> ali1234: See man mallopt - but I don't think anything like that lets you do it
[19:48] <penguin42> camason: Trust me, it will :-)
[19:49] <penguin42> camason: Some type of watchdog where you arm the system to reboot itself/put it's self back to a good state is what you need then arm that before you make any change - if you really only have one way in
[19:50] <camason> yes I was thinking perhaps a script that will execute after 5 mins, replacing /etc/network/interfaces with a known working config, then restarting it
[19:51] <penguin42> camason: It is of course difficult to anticipate how you might screw it up
[19:51] <camason> yup!
[19:51] <camason> there are a myriad of ways when I'm involved :)
[19:52] <penguin42> camason: Humans are creative
[19:52] <penguin42> camason: Doing things like holding your config files is a good way to be able to roll back; but automating that I've not seen
[19:52] <penguin42>  ^your config files in git....
[19:52] <camason> reminds me of a line from The Thick Of It... that I could't replicate here for reasons of taste.
[19:54] <ali1234> is it possible to tell valgrind i only care about memory referenced from a single source file?
[19:55] <penguin42> ali1234: I know it has ways of marking areas of code, I'm not sure by source file
[20:05] <mapps> penguin42,  what did yoiu mean by serial or network console
[20:06] <penguin42> mapps: You can configure syslog to send all messages to another host, similarly you can configure the kernel to send console messages to another host; so if the SD card stops or a lot of other stuff fails you still see the messages
[20:06] <penguin42> mapps: Similarly for a rs232/serial console
[20:08] <mapps> i dont get it..so how can i do this on the pi
[20:09] <mapps> 'network console'?:!
[20:12] <penguin42> mapps: Is the pi the only machine there or is there another linux machine within spitting distance?
[20:13] <mapps> ther'es another machine a dell desktop running Linux that i could getr my dad to turn on
[20:13] <mapps> but can you explain what you mean when you say network console that i cant grasp..i know what the console is;p
[20:14] <penguin42> mapps: Every piece of text that's output to the console gets sent over the network so that it can be logged
[20:14] <mapps> aha
[20:15] <mapps> surely errors and that wouldnt tho ..dont see them on console if they go to a log
[20:16] <penguin42> mapps: Well it depends why it's dieing, if you're getting a kernel panic, some types of kernel panic will get to the console and over the network, some won't
[20:17] <mapps> so if i jhad a console up and was logged in locally with as GUI kernel panics would show in that terminal?
[20:17] <mapps> just be handy to find out so can fix it
[20:17] <mapps> i want it running 24/7 and noones gonna be there most the time
[20:17] <penguin42> mapps: Best not to have the GUI running, and best to turn the screen blanking off with setterm, but yes
[20:18] <mapps> thanks
[20:18] <penguin42> mapps: So you can ask someone just to turn a monitor on and take a picture of it before they powercycle it
[20:18] <mapps> yea
[20:18] <mapps> or network console could be a good idea?
[20:19] <mapps>  but if i cant reach the pi ..surely its networks down so it wouldnt be able to reach the other machine?
[20:19] <penguin42> well that depends how it died
[20:19] <penguin42> mapps: Serial consoles are more primitive, they tend to be able to send things with almost everything else gone
[20:19] <mapps> so network could still unction but apache/vpn dead?
[20:19] <mapps> yea
[20:20] <mapps> cant access it locally tho;)
[20:20] <penguin42> that's why you need another pi to monitor the first pi....
[20:20] <mapps> for network console? ..i could do that with the dell linux machine
[20:20] <penguin42> yes you could
[20:21] <penguin42> mapps: See https://www.kernel.org/doc/Documentation/networking/netconsole.txt
[20:21] <mapps> thanks
[20:26] <mapps> could it be as simple as i have too much running on it? vpn/apache/ftpd /mrtg ?
[20:27] <penguin42> if you're running out of memory, possibly, but it's unlucky to kill everything
[21:40] <mapps> £6.40 or a lite of stolichynia
[21:40] <mapps> :D
[21:40] <mapps> bargain
[21:51] <penguin42> doesn't drink or smoke; what's the good chocolate like...
[21:53] <mapps> i smoke more now im here
[21:53] <mapps> as foolish as that is