/srv/irclogs.ubuntu.com/2014/11/08/#ubuntu-uk.txt

mappsgrrr04:57
mappsfreajking raining04:57
daftykins:D06:10
mapps;D06:11
mappswhat you up to being up so early mate06:19
daftykinsXD06:30
daftykinsbeing one damaged individual06:30
daftykinsjust finished a film06:31
daftykinshttp://www.imdb.com/title/tt0338013/06:31
mappshm let me see06:36
mappsnot sure ive seen thst06:37
mappsgonna watch the cube tomorrow..never seen it:)06:37
daftykinsah yeah06:47
daftykinsthink there are a few to that too?06:47
mappsyea 306:55
mappsu seen 1st?06:55
daftykinsyip think so, many moons ago06:56
=== Lcawte|Away is now known as Lcawte
=== zmoylan-1i is now known as zmoylan-pi
=== DanChapman_ is now known as DanChapman
brobostigonmorning boys and girls.10:11
mappsafternoon15:21
Azelphurcan anyone explain how this works? http://pastebin.com/mVFLutDg15:28
Azelphuraccording to du, I've got like 40GB used, not 250.15:28
* penguin42 looks15:33
penguin42Azelphur: under where?15:34
Azelphurwhat do you mean under where?15:34
penguin42oh I see15:34
penguin42Azelphur: So your /media is a separate 2TB mount?15:34
Azelphuryea15:34
penguin42Azelphur: OK, so there are a few reasons that can happen15:35
ali1234i too do not understand the question15:35
penguin42Azelphur: One reason is that you might have some stuff in /media on the main drive that's hidden by the mount15:35
Azelphurali1234: I'm trying to find out where all my drive space has gone, du is being less than helpful15:35
penguin42Azelphur: So try umounting /media and duing it15:35
ali1234use ncdu not du15:36
ali1234du sucks15:36
penguin42Azelphur: Similarly for /tmp or the like that's a shmfs mount15:36
Azelphurpenguin42: 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:36
Azelphurthere we go, now things are much happier.15:37
Azelphurthanks :)15:39
Azelphurali1234: btw, did you see my silly lights video? :)15:40
ali1234yes15:40
Azelphurhehe15:40
ali1234looks like a good way to get rid of unwanted house guests15:40
Azelphurthat's true, it'd probably be remarkably effective15:40
Azelphurespecially if I played country music instead15:40
ali1234why do you have windows that go to the floor?15:41
Azelphurali1234: the building is circa 1700s and is protected15:42
mappshmm15:48
mappsmy raspberrypi stopped working again..yet was plugged in and net up..anyopne got any ideas what could be causing it?!15:48
penguin42mapps: I'd try adding some warm custard15:53
mapps:D15:56
DJones\o/ New drive installed & setup, just copying data off the old drive now16:00
penguin42mapps: So without knowing the Pi specifically; 1) Check your SD card, they're made of cheese, 2) Check how you're powering it16:06
mappspah:P i cant im not there..so just check sd and cables afaik all fine16:09
mappswhere would it log any errors to that could cause it to die dmesg?16:09
penguin42mapps: 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 SD16:11
penguin42mapps: If it does it regularly then try and setup network or serial logging to another machine16:13
mappsits done it after a week of 24/716:17
mappsmy dad unplugged it and plugged back in it boots up and all works fine agao16:20
mappsif it runs out of memory..too much running would that d oit?16:21
penguin42mapps: 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 itself16:21
penguin42mapps: If you've got a leak somewhere then yes16:21
mappscouldnt ssh to it/reach apache or vpn didnt try pinging16:21
penguin42mapps: ping first :-)16:21
mappswatchdog timer?! surely there wouldnt be anythong to reset after x days if thats what you mean?!16:22
penguin42mapps: 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 reset16:22
mappsah16:23
penguin42mapps: Then you get something that just checks everything is ok, and prods the timer; if anything breaks it resets16:23
mappsas it assumes somethings gone wrong|16:23
mappsya16:23
penguin42yep16:23
mappsif it was rebooting it would be fine..eveything comes back to lie..apache..vpn..iptables rules etc16:23
mappsbut 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:24
penguin42mapps: 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 flashing16:26
=== Lcawte is now known as Lcawte|Away
shaunothere's a fun task for an arduino there .. a hardware watchdog.  that if it hasn't had a 'blink' for long enough it powercycles17:50
penguin42shauno: You don't need an arduino for that; I think you can do it with transistor+capacitor type of thing17:53
penguin42shauno: Or relay+cap17:53
shaunowell yeah.  but arduinos are like Pis .. I have more than I'd like to admit :)17:55
shauno(and can evolve pretty easily .. eg to provide a soft-off)17:56
shaunoI have a troubling amount of these knocking around .. http://oomlout.co.uk/collections/arduino/products/arduino-component-bundle-arcb17:59
penguin42shauno: Oh that's quite a nice little set17:59
shaunoa couple of quid more than it needs to be, but I'm lazy18:00
penguin42yeh, I was thinking it's a bit more pricey than shrimpit18:01
=== Lcawte|Away is now known as Lcawte
mappslol penguin42 re kicking it:D would be nice to know why it does it though18:59
penguin42mapps: Right, but that's what your serial or network console type things help with if you can't get anything from the logs19:27
mappsnot sure what you mean by serial or network console..and on a pi??19:34
camasonEvening. I need to setup OpenVPN on a server in a remote office, but that's going to involve fiddling with network19:38
camasonwhat's the safest way to adjust settings? Any way I can do it and not lock myself out?19:38
ali1234is there a way make it so that malloc will never reuse a virtual address? (other than never freeing memory at all)19:44
ali1234with a 64 bit address space this should be at least feasible19:45
penguin42camason: Give yourself another way in19:45
penguin42camason: setup two vpn setups, only ever work on one at a time19:46
camasonpenguin42 it's more I need to re-jig my eth settings, and I fear one mistake will take the network offline19:46
penguin42ali1234: See man mallopt - but I don't think anything like that lets you do it19:47
penguin42camason: Trust me, it will :-)19:48
penguin42camason: 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 in19:49
camasonyes I was thinking perhaps a script that will execute after 5 mins, replacing /etc/network/interfaces with a known working config, then restarting it19:50
penguin42camason: It is of course difficult to anticipate how you might screw it up19:51
camasonyup!19:51
camasonthere are a myriad of ways when I'm involved :)19:51
penguin42camason: Humans are creative19:52
penguin42camason: Doing things like holding your config files is a good way to be able to roll back; but automating that I've not seen19:52
penguin42 ^your config files in git....19:52
camasonreminds me of a line from The Thick Of It... that I could't replicate here for reasons of taste.19:52
ali1234is it possible to tell valgrind i only care about memory referenced from a single source file?19:54
penguin42ali1234: I know it has ways of marking areas of code, I'm not sure by source file19:55
mappspenguin42,  what did yoiu mean by serial or network console20:05
penguin42mapps: 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 messages20:06
penguin42mapps: Similarly for a rs232/serial console20:06
mappsi dont get it..so how can i do this on the pi20:08
mapps'network console'?:!20:09
penguin42mapps: Is the pi the only machine there or is there another linux machine within spitting distance?20:12
mappsther'es another machine a dell desktop running Linux that i could getr my dad to turn on20:13
mappsbut can you explain what you mean when you say network console that i cant grasp..i know what the console is;p20:13
penguin42mapps: Every piece of text that's output to the console gets sent over the network so that it can be logged20:14
mappsaha20:14
mappssurely errors and that wouldnt tho ..dont see them on console if they go to a log20:15
penguin42mapps: 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't20:16
mappsso if i jhad a console up and was logged in locally with as GUI kernel panics would show in that terminal?20:17
mappsjust be handy to find out so can fix it20:17
mappsi want it running 24/7 and noones gonna be there most the time20:17
penguin42mapps: Best not to have the GUI running, and best to turn the screen blanking off with setterm, but yes20:17
mappsthanks20:18
penguin42mapps: So you can ask someone just to turn a monitor on and take a picture of it before they powercycle it20:18
mappsyea20:18
mappsor network console could be a good idea?20:18
mapps but if i cant reach the pi ..surely its networks down so it wouldnt be able to reach the other machine?20:19
penguin42well that depends how it died20:19
penguin42mapps: Serial consoles are more primitive, they tend to be able to send things with almost everything else gone20:19
mappsso network could still unction but apache/vpn dead?20:19
mappsyea20:19
mappscant access it locally tho;)20:20
penguin42that's why you need another pi to monitor the first pi....20:20
mappsfor network console? ..i could do that with the dell linux machine20:20
penguin42yes you could20:20
penguin42mapps: See https://www.kernel.org/doc/Documentation/networking/netconsole.txt20:21
mappsthanks20:21
mappscould it be as simple as i have too much running on it? vpn/apache/ftpd /mrtg ?20:26
penguin42if you're running out of memory, possibly, but it's unlucky to kill everything20:27
mapps£6.40 or a lite of stolichynia21:40
mapps:D21:40
mappsbargain21:40
penguin42doesn't drink or smoke; what's the good chocolate like...21:51
mappsi smoke more now im here21:53
mappsas foolish as that is21:53
=== Lcawte is now known as Lcawte|Away

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