[00:58] what would randomly change /etc/resolv.conf? [00:59] on a server. [00:59] NetworkManager [00:59] nonexistent, command-line only [00:59] quite literally a server without a gui :p [01:00] so i struggle to see how network manager applies (should probably mention this is a VM this is occurring on btw) [01:00] NetworkManager isn't a GUI, it's a system service [01:00] You're probably thinking of the NetworkManager applet that can control it from a user session over dbus [01:00] its a VM, last i checked the ISO we used on that VM, it didnt install networkmanager [01:01] but i'm probably nor eading it right :p [01:01] not reading* [01:01] what's its process name then? [01:01] "apt-cache policy network-manager" [01:02] * TheLordOfTime sighs [01:02] not sure whether that's useful or not, i need its current runtime process name to issue a killall, because its breaking the VM's networking [01:02] There isn't one, it consists of multiple tools depending on requirement [01:04] then your statement isnt helpful. the resolv.conf on this server was *fine* withi only one nameserver entry, among other things. it *randomly* started getting modified, and not by any admin or user. [01:04] If the package isn't installed then you don't have to worry about NM being the culprit [01:04] then what would screw with networking? [01:04] resolv.conf is written to by the glibc resolver using resolvconf [01:05] "man resolvconf" [01:05] the issue in this case is an *abrupt* loss of networking randomly, and the only changes to networking config are automatic changes to resolv.conf [01:05] afaict at least. [01:05] no changes by hand to the system would change it [01:05] resolver changes would only affect name resolution. If it is losing connectivity then its something else. Check the system log-files for clues [01:05] right, as I assumed [01:06] which log files are relevant? [01:06] * TheLordOfTime hasnt encountered this issue before [01:07] As the lord of time, I'd have thought you'd know that! :D [01:07] * TheLordOfTime glares at TJ- [01:07] not funny, dude. [01:07] hiyas again -server [01:08] Hey! You're an admin... read the man pages, *explore* the systen... that's how you find out things! [01:08] ... [01:08] some help you are [01:08] ooh,, hissy fit... [01:11] It seems to be his permanent state - excessively demanding, unwilling to read the documentation, or explore the system. Always expects someone else to do the leg-work === mcclurmc is now known as mcclurmc_away === dendrobates is now known as dendro-afk === MikaT_ is now known as MikaT [06:03] Could you please tell me how can i know what is my publick ip address on ubuntu 10.04.3 please? [06:30] i'm getting a wierd error with postgresql-9.1 [06:30] packaging [06:30] first it decided to turn on ssl without symlinking to snakeoil properly [06:32] and apt-get listchanges is stacktracing [06:32] KeyError: 'postgresql-9.1' === chincloud is now known as chincloud_ === chincloud_ is now known as chincloud === mcclurmc_away is now known as mcclurmc === mcclurmc is now known as mcclurmc_away [09:47] I'm setting up a LAMP server. This is my purposed set up: https://gist.github.com/3851707 Does anyone have any suggestions / improvements I should maybe consider? [09:51] not sure whats the cause [09:51] but i cant login locally to my server [09:51] it just keeps asking for login [09:52] i can login through network but not locally === blinkin_ is now known as blinkin [09:55] So you can login from ssh? perhaps the keyboard settings on local are wrong, or just try a simple reboot [09:55] if the environment allows for that [09:56] i'm putting my login right [09:56] it just never asks for password [09:56] i click enter then its login again [09:57] also not sure why my home dir became encrypted [09:57] i can access it without problems, just i didnt do that [09:57] might be result of upgrade to 12.04.1? [09:59] So it never prompts for password? thats odd, and as far as I know the upgrade doesnt encrypt your home dir by default [09:59] not sure if it will even do that [10:02] afaik there were 2 power downs today [10:02] and i didnt restart it since last update [10:16] can anyone see any issues with my pruposed server configuration? https://gist.github.com/3851707 [10:23] gazzwi86, you might disable password login in sshd [10:24] chris| so i could only login with ssh keys? [10:25] gazzwi86, yes [10:25] chris| i can see why it would be useful but I'd want to be able to get in from anywhere should the server go down [10:26] how would you be able to log in if the server goes down? :) [10:28] morning, to increase redundancy on my 12.04 webserver can I bond two physical NICs together then create sub-interfaces (aliases) from bond0 (e.g. bond0:0, bond0:1) to assign multiple ip addresses? [10:28] feisar, yes [10:29] chris|: great, thanks [10:30] can sub-interfaces (bond0:0, bond0:1) be in the same subnet or is that going to cause me trouble? === mcclurmc_away is now known as mcclurmc [10:55] I did a ugrade for some security patches and now it wont detected my eth0. :S i cannot find anything wrong [10:55] dmesg tells me its a e1000e model Intel Gigabyte 82566DM card [10:55] modprobe e1000e does not give me any errors [10:55] can you manually add eth0 to your config? [10:55] ifup eth0 tells me it cannot find device eth0 [10:56] u mean in network/interfaces? [10:56] yes, also, try ifup eth1, it might have changed drivers or something causing it to change number [10:57] tried ifup eth1 [10:57] just says ignoring it [10:57] hmm anyone else have a solution? [10:57] in network/interfaces it already says auto eth0 inet dhcp [10:57] hmm try putting eth1 there [10:58] Alltough this shouldnt happen with an upgrade I have had this happen when migrating virtual machines [11:00] guess system reinstall will be required here [11:00] it also says failed to bring up eth0 [11:00] :S [11:00] hm [11:01] iface does not work for me [11:01] i mean in my case [11:01] no idea what ur talking about [11:02] Hi, we are getting some strange emails concerning the SMART values of our server's harddrives from Munin http://pastebin.com/d7UHm3th now we did some smartctl long tests and they say the disks are healthy, do we need to replace these devices or does anyone know what is going wrong? [11:04] well drag0nius i installed ubuntu-server 12.04 and now it wont enable my eth0 [11:04] it did work yesterday [11:04] then i did a sudo apt-get upgrade [11:04] for some security patching [11:05] and now it wont enable my et0 [11:05] eth0 [11:05] lulwut [11:05] a lspci shows me it's there. [11:05] my server's custom name changed to "UBUNTU" [11:05] modprobe e1000e does nto gives me any errors [11:06] im gonna reinstall it from scratch i guess [11:06] just not today ;d [11:06] why did it change drag0nius anything you did? [11:06] nope [11:06] also, you can set the name using "hostname your.server.com" [11:06] i upgraded to 12.04.1 some days ago i guess but i didnt reset [11:07] then had 2 power downs today [11:07] and everything became weird [11:07] like i can login only through ssh, home became encrypted [11:07] Well if it's nothing critical, it prolly is quickest to just make a clean one [11:07] server name changed [11:08] and this time i'll make some script to install all stuff at once ;d [11:08] xD [11:08] i was pretty much experimenting before, 1st time running linux in cli etc xD [11:09] how would one do some config files edition with a script? [11:09] Ah, I was there at that point once :> [11:11] i prolly have so much trash there i should reinstall anyway [11:11] I've been messing with linux cli since I was 12 (now 19) when I was 13 I had a cluster of 3 old pentium computers... It worked, but I had no goal for it what so ever [11:11] xd [11:11] well i was using some basic cli on some classes [11:11] just got up server for first time like 4 months ago [11:12] its running as router, services etc [11:12] all routers work as wifi/lan hubs xD [11:12] ah, thats allways a nice way to implement a server, alltough no real need it teaches a lot about networking [11:13] yeah [11:13] im gonna have freeride on some networking course this semester ;d [11:13] most stuff i did already [11:14] At the moment I've got two vmware esxi servers running about 8 linux servers, everything I have is open source and free ware [11:14] got any tips how to do that automatic setup? [11:14] installing/completely replacing config files is no deal, but how about those little changes? === cpg is now known as cpg|away [11:14] I have no idea, I allways enjoy working into the night behind the cli, never looked into scripting a whole lot apart from python programs [11:15] hmm [11:15] guess python helps? [11:15] overally [11:16] well you could have python rewrite some files [11:16] its my next goal to learn it [11:16] ok lol i solved it HTDutchy [11:16] some setting in bios had changed but i have no clue which one [11:16] you should join #python and ask them :> [11:16] so i restoed bios to factory default and it worked. [11:16] im learning it anyway [11:16] Hi, we are getting some strange emails concerning the SMART values of our server's harddrives from Munin http://pastebin.com/d7UHm3th now we did some smartctl long tests and they say the disks are healthy, do we need to replace these devices or does anyone know what is going wrong? [11:17] did some net app in java - Vaadin, next one will be with Django :) === Bekos is now known as wouterb [11:17] roniez: hmm weird indeed, nice to see it works === blinkin_ is now known as blinkin [11:17] Bert_2: are the emails coming from your machine or from another source? [11:18] Sorry didnt read the munin part, I'd certainly keep an eye on those disks, how old are they? [11:22] HTDutchy: it's from munin running on another server checking on the server with possibly failing disks [11:22] ok, how old are these disks, becauase runtime of 70hours appears to mean either new disks or hours since last start [11:22] the disks are certainly not new [11:22] we're busy finding out how old they are :p [11:23] Ah, well if they are more then 3-5 years then munin might be correct as thats when disks start failing... Is it a raid setup? [11:24] it's a RAID1 setup, yes [11:24] we only had messages for sda but starting yesterday sdb started complaining [11:24] and according to our info they should be about 3 years old [11:25] HTDutchy: so you recon we'd better replace them? [11:26] Bert_2: well Im not sure, they could run for another 5 years just fine or could fail within a few weeks, But I'd atleast start by replacing one disk to keep the raid running and then use spinrite or other software to see whats wrong [11:27] hi - i would like to setup some kind of syslog-server/service including a useful webinterface for filtering. seems like syslog-ng is a good option for handling the logs - now i am wondering if anyone inhere has experiences i nthat field and could recommend some kind of php/webinterface for that fields. logzilla (former php-syslog-ng) might be 1 option - while i would prefer completlty free solutions. [11:27] Bert_2: since both disks are giving the smart status at about the same time (24hrs) it seems that if they fail they do it at the same time [11:28] HTDutchy: well, taking that server offline will be pretty difficult so we're thinking about indeed replacing one disk and then testing the one we've taken out [11:29] Bert_2: thats what I meant to say, if Im correct the raid should be able to restore to the new disk while its running [11:31] HTDutchy: yeah, we do that all the time on our backupservers ;) [11:43] jamespage: i didn't quite understand the https/juju issue, can you expand please? [11:45] Daviey, looking now - neither do I [11:45] (copied from changelog) [11:45] ahh [12:00] Daviey, https://bugs.launchpad.net/juju/+bug/993034 [12:00] Launchpad bug 993034 in juju "lxc deployed units don't support https APT repositories" [Medium,Fix released] [12:00] this bug [12:01] Daviey, cloud-init can set a proxy, but not differentiate between http and https [12:01] hence the regression [12:03] ahh [12:04] jamespage: And you don't know if apt has been configured to dodge apt-cacher-ng? [12:05] for https [12:05] Daviey, digging into that now [12:12] Daviey, no - its uses it [12:12] https is not explicitly configured [12:13] and apt-cacher-ng won't handle it [12:13] by default that is [12:15] jamespage: this could potentially be an issue. [12:15] jamespage: do you have ideas how we should resolve it? === doko_ is now known as doko [12:17] Daviey, I have some ideas; maybe not use apt-cacher-ng anymore [12:17] I think squid-deb-proxy would handle things better [12:18] jamespage: right.. i think it was a poor decision to ave used apt-cacher-ng to start with === n0ts_off is now known as n0ts === Guest35492 is now known as Kiall [12:20] Daviey, I actually use it with the local provider anyway [12:20] by disabling apt-cacher-ng and running squid-deb-proxy on 3142 as well [12:21] jamespage: I iamgine it's a pretty self contained change? [12:22] if I want users to only use sftp and not ftp do i just block ports 21 and open 22? [12:23] Daviey, yes - but the impact is huge [12:24] everyone who users local-provider will suddenly have a requirement for a new package to install [12:26] jamespage: is that huge? [12:26] flushing the apt-cacher-ng cache on removal is huger IMO :) === dendro-afk is now known as dendrobates [12:29] Daviey, its just hard to communicate - its only a Suggests for good reason === n0ts is now known as n0ts_off [12:32] Daviey, if thats a blocker then we need to stall for today [12:33] I'm happy to push a snapshot to archive; less happy to start making changes to juju... [12:33] jamespage: ahhh, i see [12:33] Daviey, I think juju will tell users that it needs to be installed [12:33] if its not [12:33] jamespage: regressing apt+https seems reasonable for today, with a view of fixing that before release. [12:34] Daviey, final freeze tomorrow right? [12:34] jamespage: this is universe. [12:34] * jamespage shrugs [12:34] oh yes.... [12:42] Daviey, I've finished sniffing - bug 1063697 [12:42] Launchpad bug 1063697 in juju "[FFe] Please update to new snapshot release ~bzr592" [High,New] https://launchpad.net/bugs/1063697 [12:42] looks OK to me other than the regression we just discussed [12:46] jamespage: do you hate me? bug 1060319 [12:46] Launchpad bug 1060319 in juju "FFE - Juju" [Undecided,Triaged] https://launchpad.net/bugs/1060319 [12:47] Daviey, so FFe already approved? [12:48] Daviey, "issues, we can likely expect 0.6 to release next Tuesday." is there really any point in uploading a new snapshot today then? [12:48] quote SpamapS from the juju ML [12:49] meh - I guess as I've done the work we can do it anyway - makes the jump a little less next go... [12:50] jamespage: Oh golly. I'm really sorry. [13:03] Hello all? [13:03] Anyone? heh [13:05] er === fjlacoste is now known as flacoste [13:14] I might be the newest noob in here. I've been using Ubuntu on the desktop since 6.04, good stuff. Just started with a new company, they wanted "any linux server" set up as an Amazon Web Service instance. I saw that you could sneeze out an Ubuntu server with ease. Set one up for them, client asked for a Java app server with Tomcat, Sun Java 6, Git and MySQL 5.x, got that all set up and ready to go. I'm a programer, aside fr [13:23] fusion27: Looks like whatever you were writing got cut of after 'I'm a programer, aside fr', there being a max length on the messages an irc-server relays. [13:24] ahh [13:24] I'm a programer, aside from some 'sysadmin' work I've done at home with this crappy little nettop pc I have Ubuntu on for Plex, Lamp, Samba & Git, I've never donned a sysadmin hat.  That client wants to be able to add users, run sudo-apt get upgrade, sudo apt-get install and possibly chmod & chgrp (those 2 are a guess on my part).  I'm not entirely sure of what sysadmin vocabulary I'm going after here, but is there's an indus [13:25] I'm not entirely sure of what sysadmin vocabulary I'm going after here, but is there's an industry-standard "best practice" to give client's user the rights they need?  Any opinions/guidance is massively appreciated. [13:25] andol: did that whole message get through? [13:27] fusion27: The main question being on how to allow the client to do limited set of priviliged operations, without giving full root access? [13:30] I guess so, I'm a fully-fledged greenhorn with sysadmin, that sounds right. Does that set of privileges fly in the face of any best practices you've run in to before [13:30] Unrestricted access to chmod == root [13:30] Unrestricted *root* access to chmod == root I mean [13:31] fusion27: Your question makes sense, and usually I'd point you to sudo, but as rbasak just pointed out, you hare to be really careful of the side affects, such as in the chmod case. [13:32] I was guessing on chmod and chgrp [13:32] really all I want for them to be able to do is add users, install/remove software and run updates [13:32] Giving permission to install any software is almost as bad [13:32] MIght as well just give them root. [13:33] oh is it? [13:33] I've not really seen any one do anything nefarious on a server [13:33] or stupid [13:33] well anyone, excluding me :D [13:33] fusion27: And in the case of adduser, you loose in case they managed to create an uid 0 user. Not that I think the regular adduser command will allow you to create uid duplications, but still... [13:35] You can achieve what you want if you can define specifically what they need to do and write wrappers [13:35] so just let them run updates, contact us when you want to add users, install software, etc [13:35] ? [13:35] But I wouldn't advise that a newbie sysadmin try this and expect it to be secure [13:36] SpamapS: How do you feel about juju swapping out Suggest from apt-cacher-ng to our favoured squid-deb-proxy? [13:37] Daviey: IMO we should not favor that, but that would require code changes. [13:38] SpamapS: the issue is that the current trunk regresses https/apt access, right? [13:38] Daviey: yes, but thats an apt problem, not an apt-cacher-ng problem. [13:39] SpamapS: Right, but our favoured caching solution is squid-deb-proxy [13:39] (which supports this OOTB) [13:39] Daviey: and really, that was a silly way to fix that bug. Its not a bug. If a charm wants to add an https source, it should setup apt properly not to use a proxy for https. [13:39] Daviey: how does squid support it? [13:40] SpamapS: I thought it did straight pass through ? [13:40] But ok, if you believe charms will work in this scenario, it's not a regression [13:41] Daviey: I just think that its a problem charms can solve themselves, so it shouldn't have been (erroneously) catered to with a change in the inside-the-container config [13:41] Daviey: that said, if s-d-p does somehow support https passthru where a-c-ng does not.. thats a somewhat compelling reason to switch, despite my reservations. :) [13:42] +1 anything that gets rid of apt-cacher-ng [13:42] SpamapS: why was a-c-ng made default ? [13:42] Ng: hello stranger [13:42] Daviey: No idea. [13:43] Ng: lol, the irony of your handle making that statement :) [13:43] which reminds me: are we creating blueprints for r yet? I'd like an apt-improvements one for R, so that I can finish the by-hash work [13:43] SpamapS: that's why I'm making it, every time you people talk about a-c-ng, irssi hilights! [13:43] Daviey: hey :) [13:43] The original CJ was rubbish, this is CJ-ng [13:43] rbasak: yes we should have been creating them for a while now ;) [13:44] rbasak: you do read the mailing list, right? [13:44] Daviey: now and then. But since I've been working full time on MAAS, only around once a week. Normal list reading service is expected to resume next cycle :) [13:44] rbasak: https://lists.ubuntu.com/archives/ubuntu-devel/2012-October/035950.html [13:45] rbasak: You've not missed much :) [13:45] Daviey: thanks! [13:46] Daviey: anyway, I could see making the switch to s-d-p just because its in main. [13:46] SpamapS: right! [13:46] Daviey: its possible switching just involves changing the default proxy port. === niemeyer_ is now known as niemeyer [14:12] SpamapS: the bug about cloud containers having corrupt cache if interrupted is actually nto fixed in q [14:12] i think - looking at src [14:13] oh oops, yeah it is. should be. [14:13] was misreading, thinking the extraction of tarball into container was part of building the cache [14:15] hallyn: yeah I already marked it dup :) [14:15] 10.10 bugs are Won't Fix right? [14:16] SpamapS, 10.10 bugs get "Won't Fix"'d right? for server packages [14:16] (php5 specifically) === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates [14:19] dancer-services is no longer a package (at least in 12.04)? === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates [14:23] smb: will the fix for bug 1021471 (part 1 .. part 2 is another bug, I agree) ship in quantal or is that going to land in the first SRU kernel? [14:23] Launchpad bug 1021471 in linux "clone() hang when creating new network namespace (dmesg show unregister_netdevice: waiting for lo to become free. Usage count = 2)" [High,Confirmed] https://launchpad.net/bugs/1021471 === mcclurmc is now known as mcclurmc_away [14:23] raub: i see dancer-ircd [14:24] SpamapS, Plan is to be in an upload this week (so shipping with quantal) [14:26] holstein: but not dancer-services [14:26] I wonder if it is no longer needed. [14:26] https://launchpad.net/ubuntu/precise/+package/dancer-services [14:26] raub: i was assuming its just part of it [14:27] holstein: that is where I am at. Last time I installed it (1.04), I needed both. But right now I amnot sure anymor [14:28] hallyn, rebooting tangerine for dbus update. lemme know when your build is finished [14:30] smb: \o/ [14:30] smb: I figure the wl bug will take more triage effort :P [14:31] SpamapS, when you're not busy, please let me know how this should be set: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/744371 (against 10.10, which is EOL) [14:31] Launchpad bug 744371 in php5 "PHP5-FPM doesn't always restart on 10.10" [Medium,Confirmed] [14:31] SpamapS, Well at least a similar amount as up to now and by then we are clearly beyond the acceptable time for uploads before release. [14:31] rtg: ok [14:32] or hallyn, or any other bugcontroller [14:32] (its a server package, so i thought i'd ask here first before stabbing someone like bdmurray or a bug-god) [14:32] s/stabbing/poking/ [14:32] TheLordOfTime: is it only valid against 10.10? [14:33] it might be worth asking first if they've reproduced it against 11.04 or later [14:33] smb: right. BTW, are we allowed to patch wl given its proprietary license? I've not looked into it. [14:33] otherwise yes, invalid is appropriate [14:33] hallyn, no activity since 2011-09-08, i'm assuming nobody's tested, my first action would be to ask them to test against 11.04 or at least a non-EOL release [14:33] TheLordOfTime: that'd be right [14:34] TheLordOfTime: thanks [14:34] SpamapS, We can only patch the part we have source for (obviously). So it really depends where the issue lies really. [14:35] SpamapS, But knowing that it strongly depedns on whether using wl or not I can probably look at the special dmesg with that in mind [14:36] hallyn, isnt 11.04 EOL soon [14:36] if not already? [14:36] or am i misreading my numbers [14:36] * TheLordOfTime yawns [14:37] TheLordOfTime: yeah, i think in a month. [14:37] hallyn, if i'm reading the wiki page for Releases, its flagged for October 2012... would the release team have a more specific date? [14:38] TheLordOfTime: well you can ask there, but i assume it's the day of q release. [14:38] rtg: done [14:39] hallyn, ack [14:44] Hi, I'm trying to get a Bond interface up but I'm getting an error: Waiting for a slave to join bond0 (will timeout after 60s) RTNETLINK answers: File exists Failed to bring up bond0. Here is my /etc/network/interfaces http://pastebin.com/cQHFcip4 [14:47] hallyn, did you test that bug in natty? [14:47] https://bugs.launchpad.net/ubuntu/+source/php5/+bug/744371 [14:47] Launchpad bug 744371 in php5 "PHP5-FPM doesn't always restart on 10.10" [Medium,Confirmed] [14:48] feisar: are you missing bond-primary directives? See http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/ifenslave-2.6/precise/view/head:/debian/README.Debian [14:48] rbasak: thanks, I have just been going by the ubuntu guide here: https://help.ubuntu.com/community/UbuntuBonding [14:49] hallyn, given 11.04 EOLs this month, i've suggested that it should be tested against 11.10 [14:49] hallyn, if you're willing, feel free to test that :P [14:50] * TheLordOfTime doesnt have the resources to test at this moment in time [14:50] TheLordOfTime: I had tested it on natty according to my comment. that was the last i looked at that bug [14:50] feisar: I'm not familiar with bonding. I'm just aware of a bug which related to the details for precise having changed. The README is another source of information, anyway. If there's anything wrong in the wiki, please correct it [14:50] hallyn, got a spare 11.10 system lying around for testing? [14:50] hallyn, because for all intents and purposes, 11.04 EOLs this month [14:50] which makes that bug Invalid [14:50] rbasak: sure, thanks [14:50] unless it exists in 11.10 or later. [14:51] TheLordOfTime: i'll give it a shot on 11.10, hold on [14:51] hallyn, if you can't confirm in 11.10 post that, i have to disconnect, and given my bouncer is screwed becuase OVH messed up, i'll only see responses in the public irc logs [14:51] TheLordOfTime: i'll comment in the bug -ttyl [14:55] What is the best way to fully backup a linux based server? [14:59] Jinxed-: depends what you mean by "best way" [15:00] Jinxed: You trying to backup to another server, another disk, or something like S3 ? [15:01] I have a linux box right now, and I can't log into it. I don't think its anything important but I'm borrowing it from someone, so I want to completly image whatever they have so if I need to I can put it all back when I'm done [15:02] Do you have an external hard drive to image the machine to? === kInOzAwA1 is now known as kInOzAwA [15:05] What does set timeout=${GRUB_RECORDFAIL_TIMEOUT:--1} [15:05] mean in /etc/grub.d/00_header? [15:08] hallyn, tangerine is back === TheLordOfTime is now known as TLoT [15:14] hallyn, saw your response. i've tagged the bug with 'maverick' and 'natty', but since i can't set against specific releases of Ubuntu, that duty falls to a dev [15:15] hallyn, and as you said, the init scripts have changed quite a bit since thne [15:15] s/thne/10.10 and 11.04/ [15:16] TLoT: I think the right thng is to mark it fix released in q. if anyone wants to request it be targeted at natty, we can explain again that it's EOL in a month [15:16] hallyn, indeed, you want to do that, or should I? [15:17] TLoT: i'll do it , one sec [15:17] i'm still rebooting after a kernel update, and its sluggishy, so i'm debugging that now [15:17] :P [15:18] TLoT: marked. thanks. ttyl :) [15:19] hallyn, no problem, php5 is one of those packages I like to SRu, so sifting through older bugs and getting them marked fixed, won't fix, invalid, or "Whaaaat?" is one of my self-appointed tasks :p [15:19] * TLoT found the fault that was causing lag [15:20] turns out it wasnt the kernel :p === zz_KristianDK is now known as KristianDK [15:31] hi there, any suggestions as to why when i boot my server(10.04) it says Disconnected from plymouth? [15:34] Is the fix for https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/669481 out? [15:34] Launchpad bug 669481 in grub2 "Timeout should not be -1 if $recordfail" [Medium,Fix released] [15:41] raub, i'm assuming since its Fix Released that'd be a yes [15:41] but i'm not sure :P [15:41] (it does seem to have been SRU'd though) [15:43] TLoT: how ot be sure? I have here 12.04.1 TLS and this is what I saw: http://pastie.org/private/am7gc1xqg8xi12r0nr1bg === Guest33844 is now known as balloons [15:57] hi. i have a server running 12.04. i'd like to upgrade to 12.10, to experiment. i don't want to reinstall though. how can i upgrade to 12.10 beta without reinstalling? [15:58] lunaphyte_: do-release-upgrade [15:58] lunaphyte_: that is, do-release-upgrade -d if you want to upgrade before the release [15:59] lunaphyte_: keep in mind that there's now way to roll that back in case something gets messed up, that is, unless you're running on LVM or Btrfs where you can create a snapshot before the upgrade [16:00] if you're running btrfs, there's apt-btrfs-snapshot doing this automatically for you (if it's installed) [16:00] I was going to mention that: test it out in a vm/lv before going to production so you can snapshot [16:01] RoyK: thanks. no worries. it's nothing criticial at all. it's a virtual guest anyway, so i can use a snapshot if i decide something is important. [16:01] ok [16:01] just do-release-upgrade -d to upgrade to the beta, then === dendrobates is now known as dendro-afk [16:01] that is [16:02] you might need to change /etc/update-manager/release-upgrades [16:02] it's probably set to 'lts' since you're running an LTS release, and then it won't upgrade to a non-LTS-release [16:04] ah, right. i always forget about that [16:04] i wish it wouldn't switch it back when the release you're upgrading to is lts [16:04] it's not much of a job to change it back ;) [16:05] personally, I find it comforting that change is done [16:05] on most servers, I like to stick with LTS [16:05] yeah, it's not a big deal. just annoying because i always forget [16:05] heh. funny, i'm the opposite. [16:05] lunaphyte_: then probably your servers aren't very critical ;) [16:06] :) [16:06] terribly subjective, of course, but they're as critical as anyone else's, sure. [16:06] if they are, better stick with LTS [16:06] nah. [16:06] i'd rather upgrade. [16:07] your choice ;) [16:07] i'm comfortable enough. it's never been a big issue. [16:08] it's another thing, though - I don't want to spend too much time upgrading a bunch of servers every time a new release surfaces [16:08] better spend the time doing useful work ;) [16:10] Hello everyone, I need help "hacking" my working computer lol. Its behind a fcking NAT and I would like to gain ssh access to it. I've got an home server with dyndns... Do you have any idea? [16:10] My working computer is at my office [16:11] ffunenga: you need to setup some sort of VPN, like an ssh tunnel to somewhere, from the inside [16:11] ssh tunneling is trivial [16:12] RoyK: from the inside, I see... nice! thanks [16:12] ffunenga: that is, if it's behind NAT, you can probably setup port forwarding in the router if that's supported [16:13] RoyK: yes, I've though about that but I don't want to open ports. And the router's admin is a very complicated person. I think your VPN trick is a good idea [16:15] ffunenga: just make sure keepalives are on, and it should be run in a loop so that once disconnected (if you get a new IP address or otherwise) it should reconnect - just setup ssh key authentication so you won't have to type a password [16:18] hi, could anyone point me to a HOWTO or similar resource containing advice on how to setup permissions for Apache to read files (and write to a few specific ones) and also for a group of devs to be able to read/write all files? [16:19] I saw this: https://help.ubuntu.com/12.04/serverguide/httpd.html#http-directory-permissions [16:19] but that has left me unsure as to how to give Apache read access [16:22] smb: hey, are you around? [16:22] hallyn, yep, why?... [16:23] smb: i just installed a fresh quantal system from netboot image. did not install qemu-kvm. but kvm_intel is loaded [16:23] smb: the problem with that is that /dev/kvm is created, with the wrong perms [16:23] so now if i install qemu-kvm, until a reboot /dev/kvm has the wrong perms. [16:23] (this is, at least, the explanation of bug ) [16:23] so my question is :) do you knwo why it is modprobed by default? [16:24] i didnt think it used to be [16:24] hallyn, Ah, hm... wonder whether the modules now have aliases... [16:24] hm. ^ that should have said "bug 1057024" [16:24] Launchpad bug 1057024 in libvirt "internal error Process exited while reading console log output: char device redirected to /dev/pts/1 error when creating a vm" [High,Confirmed] https://launchpad.net/bugs/1057024 [16:25] hallyn, Yeah "alias: x86cpu:vendor:*:family:*:model:*:feature:*0085*" [16:25] So now udev is resolving those [16:25] (above is for kvm-intel) [16:25] smb: ok so udev needs to have the rule setting its ownership then? [16:26] hallyn, Either that or maybe libvirt something to change them? Not sure how those are/where done [16:26] smb: qemu-kvm isntalls a udev file :) [16:27] Aha :) [16:28] So on install one needs to rmmod/modprobe the kvm module and things would work? [16:28] Thats why reboot does work... [16:28] smb: right [16:28] smb: which is ugly :) [16:28] if udev ships a file to load kvm_intel, then it shoudl also set the perms [16:28] though, group kvm doesn't exist by default [16:28] hm [16:28] hallyn, No it does not [16:29] so i guess postinst should just chown it? [16:29] people..would it bad idea to install a deb from quantal on precise which dep libs all met? or i'd better off rebuild the deb on precise? [16:29] still ugly, but ok [16:29] hallyn, the module now has info to let it load when a certain cpu class is there [16:30] hallyn, Yeah, probably postinst chown'ing is less ugly [16:39] but wait, that is already being done. [16:50] hm weird, then it should end up with the right permissions... were the wrong ones only group owner or group access rights? [16:51] * smb will try in his vm as soon as it has catched up with the rest of packages [16:59] I'm trying to setup git on one of my servers (ubuntu 12.4) I'm reading help page: https://help.ubuntu.com/community/Git And it stops when installing gitosis. apt manager does not find gitosis package, I've uncommented Canonical's 'partner' repository. [17:01] frojnd: 'apt-cache search gitosis' shows 'gitolite', a similar tool, with a description that includes, "* easy migration from gitosis" -- perhaps gitosis is no longer the favored server [17:03] hello, I want to build a network with 3 servers in different datacenters and hosting providers, I will do it with OpenVPN, is it possible ? [17:05] hallyn, Hm, seems after installation of kvm my /dev/kvm is rw for group kvm... [17:07] sarnold: ok thank you. Now I have to find some kind of instructions to install git server with gitolite [17:07] smb: sorry, i thought i'd commented here, but i only did in the bug. the postinst already *does* the chgrp+chmod [17:07] smb: so my guess is that she has hard disk issues [17:08] hallyn, Actually you did comment here as well. But some problem with that would just have explained Andy's issues, too [17:09] And the fact that the module is now loaded before just is something that really has changed between p and q [17:10] RoyK: thanks for the help. that seems to be just what i was after. [17:14] anyone working with GIS ? [17:15] SpamapS: Someone (not me) might want to merge bacula. New upload in Debian with a securty fix (DSA just out). [17:16] Is there any Dutch user in the house ? :) [17:17] ScottK: jamespage is TIL ... :) [17:17] jamespage: ^^ Bacula needs a merge. [17:18] OK. I figured you'd know who to point that at. [17:18] ScottK: I'm on "holiday" today :) which means "Only working on stuff that is fun" ;) [17:18] Right. Understood. [17:19] I'm sure making jamespage do work qualifies. [17:20] especially work on bacula [17:25] what is the recommended way of setting umask 002 on Ubuntu? [17:26] for Apache [17:26] i.e. www-data should have group write permission [17:41] charlesroper: you want to set the umask to 002 for the apache process? [17:41] yeah [17:42] charlesroper: for that you'll need to do so in /etc/init.d;apache2 [17:42] err [17:42] /etc/init.d/apache2 [17:43] ok, thank you [17:44] SpamapS, I have found advice in various places that says to add `umask 002` to /etc/apache2/envvars [17:45] is that not a good idea? [17:46] charlesroper: its just an alternate place to put it [17:47] charlesroper: sort of makes more sense to me to put it in the init scrip than a thing which is supposed to set environment variables. [17:48] yeah, I see what you mean [17:48] is 'envvars' loaded by a specific apache module? or is it ready by one or another distribution's initscripts? [17:48] SpamapS, thanks for the advice [17:48] :) [17:48] s/ready/read/ === Ursinha_ is now known as Ursinha === dendro-afk is now known as dendrobates [18:10] Hello all and a good evening. I had this crontab command: mysqldump -u dbuser -p XXXX lt2 | gzip > /home/myname/dbasedumps/`\%d\%m\%Y`lt2.sql.gz [18:10] when I check the dumps, the dates aren't inserted in the naming of the file [18:10] what'd I do wrong? [18:11] heh, I was just going to ask what mechanism supported those... [18:11] so there's no way to insert date into the naming of the file? [18:12] DarkStar1: you _probably_ meant to stuff the date(1) command in there; `date +%y%m%d` [18:13] sarnold: I'll try that thanks [18:15] SpamapS, ScottK: on it first thing tomorrow.... [18:36] Does ubuntu server do anything like DFS? [18:37] glusterfs, maybe? [18:37] Is that ocfs2? [18:38] is that directed at me sarnold? [18:38] Praxi: yeah [18:39] DFS = MS Distributed File System. Its main features I would like to replicate outside of MS, consolidated name space, i.e. server shares have the same name no matter where you go, file replication to keep the shares synced [18:40] I've used DFS in the past for multi site shares [18:41] of course there's also the original, AFS, now http://www.openafs.org/ [19:12] I want to strangle whoever messed up grub2 on 12.04 [19:12] I have a headless machine sitting at the grub prompt right now, and I have no console access === n2deep_ is now known as n2deep [19:23] I'm running ubuntu server and have forwarded a few ports to it for different purposes. I have shorewall firewall installed. Are there any other extra precautions that I should take when port forwarding to prevent unauthorized access ? [19:28] is anyone here [19:28] What are the ports? [19:31] well 22 for ssh using public key auth, 80 for my website and another range for torrent [19:32] You could consider blocking some originating IP addresses for known "bad guys". [19:32] There is a great set of IP Addresses to block available from http://www.iblocklist.com/lists.php [19:32] The IP-Blocklists include the TOP-10 Bad Sites from http://www.DShield.com/ [19:33] how would i do that ? [19:33] For ssh, make sure ssh is locked down. And you should consider installing something like Fail2ban. Fail2ban will look at bruteforce attacks against your SSH server and automatically block them. [19:34] yea i did install that [19:34] using public key auth is more secure right ? [19:35] absolutely. [19:35] ok [19:35] what about port 80 for apache [19:36] I never knew about Fail2ban Devo-Kun, thanks for that tip [19:37] I always try to block known-bad originating IP addresses: http://pastebin.ubuntu.com/1268054/ [19:37] but i don't use ufw [19:38] ufw would work on your webserver. I'm not familiar with Shorewall, but I'm sure it can be rigged to do something similar. [19:38] What webapp are you hosting on Apache? [19:39] something that i have been writing [19:39] PHP, Ruby, Python? [19:39] I'm writing a web app to stream music from my server to any browser that supports html5 [19:40] That's cool. [19:40] it uses HTML5/JavaScript/jQuery and some PHP to do client to server side communication [19:40] the best part is that it doesn't require flash [19:41] You should make sure Apache is locked down as much as possible. Install ModSecurity, remove any modules you aren't using, like ModPerl, disable htaccess files, and make sure the permissions are set correctly on your scripts so that if somebody *does* find a bug they won't get very far. [19:41] hmm [19:41] is 755 the correct perms [19:43] Set the files to be 0644, set the dirs to 0755, then make sure those files are all owned by your username/usergroup. [19:43] not root ? [19:44] Then the webserver will have read-only permissions to the files [19:44] no. not root. Never work as root. [19:44] Devo-Kun: how do you go about finding which Apache modules aren't in use? [19:44] yea I'm looking that up now as we speak [19:44] I heard ModPerl was a bad one [19:45] not for security but performance [19:46] Take a look at /etc/apache2/mods-enabled. [19:46] i went in there [19:46] You'll see everything that's turned on. [19:46] how do i know which ones i need/dont need [19:47] i set file/dir perms [19:47] That's harder to figure out. It depends on what you're doing. But the big rocks are the scripting languages. [19:47] i need php only [19:48] i don't see perl mod in the enable folder [19:49] Since you're working with PHP, you probably didn't install anything like Passenger for Ruby. So you're probably gtg. [19:49] no [19:49] why would you want to disable htaccess ? [19:51] .htaccess files are powerful things. They can do good things, like redirect people when URL's change, or they can be used to compromise a system. It's generally better to keep anything you'd put in a .htaccess file, like ModRewrite rules, in the virtualhost configuration file. [19:51] ... if it's static enough to not change of course. [19:51] Actually, there's a pretty big speed increase from disabling .htaccess files. [19:58] what is the scgi module for ? [19:59] Devo-Kun: actually check out this paste bin. those are the currently loaded modules: http://pastebin.com/9JixZc5d [20:01] scgi is an alternative to cgi. You probably aren't using it. You would know if you were. [20:01] nope [20:02] hmm [20:04] i disabled it and when i restart apache i get an error "/etc/apache2/sites-enabled/000-default: [20:04] Invalid command 'SCGIMount', perhaps misspelled or defined by a module not included in the server configuration" [20:04] can i comment out that line ? [20:04] nm [20:05] i just remembered what its for [20:05] devslash: out of curiosity, what are you doing with scgi ? [20:06] i enabled it once for something i tested but ended up ditching. rtorrent server [20:06] i commented it out and its fine now [20:08] in my apache config if i have document root as /var/www and then an entry for does that still refer to /var/www ? [20:11] Unsure if this is the correct channel for this question, but: I'm trying to generate apparmor profiles using aa-complain and aa-logprof but my profiles are almost completely empty, no rules are generated at all. http://pastie.org/private/uoulvjifwy8dkvpgiwjwsw It probably has something [20:11] to do with that I change the rsyslog log format, but I can't find what it's supposed to look like. [20:14] devslash: would actually refer to your root filesystem. Directory refers to paths, Location refers to URL's. [20:15] did you see my paste bin ? === benji is now known as Guest8876 === cpg|away is now known as cpg [21:16] on 12.04 I fixed my /etc/deafult/grub file since the maintainers broke it. Now it's broke again. What gives??? === dendrobates is now known as dendro-afk === soren_ is now known as soren [21:25] n2deep: #define broken, #define fixed. [21:27] n2deep: Because I imagine everything works fine, for everyone else. [21:28] I'll have an authorized_keys in every ~/.ssh folder of each user I want to login using PubkeyAuthentication right? [21:28] zastaph: Yes. [21:31] whats the status of ZFS in Ubuntu Server ? [21:32] zastaph: I think you want: s/Ubuntu Server/Linux kernel. [21:33] zastaph: https://en.wikipedia.org/wiki/ZFS#Linux [21:35] on BSD some has better support than others :) [21:45] http://zfsonlinux.org/ maintains Ubuntu packages. These are third party though - not officially part of Ubuntu AFAIK. === dendro-afk is now known as dendrobates [22:09] Hey happy campers! I'm interested in finding out why my latest ubuntu 12.04 server install won't define a default gateway for eth1 based on the eth1 setting in /etc/network/interfaces? I'm also trying to not use ufw and instead use my trusted script of ages that I call in /root/system/iptables.sh from /etc/rc.local. So far I have to reboot, route add default gw eth1, then /root/system/iptables.sh, for my router to work. [22:10] What am I doing wrong?! :D [22:13] unixbeard: can you pastebin your /etc/network/interfaces ? [22:14] unixbeard: also there's a specific upstart job that is meant to be for applying network interface security... it is a bit confusingly named 'network-interface-security' .. but.. its a good idea to put firewall rules in 'start on starting network-interface-security' upstart jobs. [22:18] SpamapS, well, hey, sure! [22:20] SpamapS: http://pastebin.com/igKwEfmg [22:20] unixbeard: btw, there's an awesome tool in the archive, 'sudo apt-get install pastebinit' .. lets you do 'pastebinit < /path/to/file' .. :) [22:21] I got two engineers behind me breathing down my neck about that very thing man! [22:22] unixbeard: that should definitely result in the right gateway on eth1. Are you seeing any errors in /var/log/upstart/network-interface-eth1.log ? [22:23] From earlier. [22:23] When I reboot, I don't get a default gateway, so I have to manually add it with route add default gw eth1. Then I also have to re-run /root/system/iptables.sh, because iptables -L lists ~no rules~ [22:23] Those are the two problems I'm trying to puzzle out. [22:27] unixbeard: yes, so, do you have errors in /var/log/upstart/network-interface-eth1.log ? [22:27] no! [22:28] unixbeard: ok, thats the stdout of 'ifup eth1' .. which is what interprets /e/n/interfaces [22:30] Well man, the eth0, eth1, eth1:2 through 7 all come up, but no default gateway when it boots and I log in and type route -n, and my iptables is empty.... [22:31] The /etc/rc2.d/S99rc.local calls /etc/rc.local, which has execute bits set, which calls /root/system/iptables.sh, which has all the rules that work etc. [22:31] Well it should call it [22:31] But when I log in and iptables -L, there are no rules. [22:31] So every time I boot I have to add the default route and then run that script. [22:32] unixbeard: can I see the current interfaces file? [22:33] http://pastebin.com/qy1GgijW [22:33] TJ- sorry I set it to expire after 10 minutes :( [22:35] well [22:35] bbiab! [22:36] unixbeard: what happens if you down eth1 then bring it up? is the gateway set then? "sudo ifdown eth1 && ifup eth1" - trying to figure out if for some reason ifup is ignoring the "gateway a.b.c.d." [22:41] TJ-: we will check in a moment. [22:42] unkmar: The other thing to check is that the upstart script for "network-interface.conf" is being executed, since it is responsible for calling "ifup" on each interface that is added === chincloud is now known as Guest66307 [22:48] I think it is a delay issue. [22:51] what is the routing table when the server starts, before you manually issue the route command? ("ip route show") [23:02] admins use firewalls to block incoming mail, right? [23:03] hi ! [23:04] martinphone, block incoming mails? [23:04] normal mails or spam ? [23:05] normal regular mails [23:05] martinphone: firewalls are to provide access controls between who is allowed to use which services across network boundaries [23:05] martinphone: that might be disabled windows shares, allowing bittorrent, allowing email to and from specific servers, etc. everything. [23:06] I was in college, I was a ble to use tor with xchat to chat, but 4 days later they blocked that port, they used their firewall [23:07] now, Im using a tormail account to communicate with a teacher from an uni, and he hasnt answered. Its been a week, and this is very rare, because this teachers usually responds very fast. My 2 cents: the admin identified the "tormail.org" incoming mail as spam, simply because it is not a hotmail [23:07] or, alternatively, the port [23:08] am I misguided? [23:09] probably their mailserver catch your email as spam [23:09] martinphone: in the absence of data, resist the urge to guess [23:09] virusuy, I was able to get 2 answers using that tormail account [23:09] TJ-: we were ssh into server before boot scripts were finished running. [23:09] martinphone: you really have no way of knowing. [23:10] meaning I believe a human manually blocked it for all the wrong reasons [23:10] martinphone: it could be caught as spam either by source (say, using an RBL to block spamhosts) or content (spamassassin throws away anything with a score above 5 -- html is worth 1, loading images is worth another 1, etc...) [23:10] sarnold, this was plain utf8 text, no eye candy [23:10] TJ-: we just didn't wait long enough. [23:10] unkmar: weird... The interfaces must be stalling on something else then. They should be up real early [23:12] martinphone: did you use the word 'enhance' in your mail? :) some admins throw away all mails with the word 'enhance'. (I kid you not.) [23:12] sarnold, no, it was all written in portuguese with some chinese [23:12] whats with the word enhace? [23:13] martinphone: 'enhance your member' or 'enhance your love life'... [23:14] chinese? [23:14] martinphone: was this to a usually english speaking person? [23:14] a lol [23:14] There has been a ridiculous amount of chinese-only spam lately [23:14] no, he is a native portuguese [23:14] he is a university teacher ffs [23:15] so a firewall can be configured to filter out every incoming mail with any chinese character... [23:17] firewalls will generally only block or allow access to ports, unless there's some extreme DPI going on, they leave it to the servers on the ports to do any connect/content dropping [23:18] indeed [23:21] Also depends on the firewall type === psivaa_ is now known as psivaa === TJ- is now known as IamNotReallyTJho === IamNotReallyTJho is now known as TJ- === Ursinha_ is now known as Ursinha