[00:15] <MavKen> is there a way to automatically have a mysql user/db created when I use adduser ?  and then for it to be removed when deleting a user?  I also want the /home/user director removed after deleting user
[00:33] <shauno> MavKen: adduser can run a script when it creates a user (it's subtle in the docs, look for adduser.local in adduser's manpage).  however, it doesn't have access to the user's password, which would complicate issues.  (ditto for man deluser -> deluser.local)
[00:38] <MavKen> ok... wonder if I could create it so that it generated a random password and then used sendmail to send it out
[00:41] <halvors> I've setup a slave dns server with bind9 on ubuntu. But it doesn't write the records received from its master. This because of apparmor, may anyone help me figure out the issue. I don't hav eany idea :(
[00:42] <halvors> Here is the error i'm getting in syslog: http://pastebin.com/uKHE4bFb
[01:26] <rostam> HI general question , I need to  choose a system management software, I am wondering to choose either Puppet or salt. Any recommandation greatly appreciated? thx
[01:40] <NeverHere> Is there a way to reinstall the default config files after apt-get purge?
[02:10] <teward> NeverHere, reinstall the package after the purge, maybe.
[02:10] <NeverHere> teward, i did apt-get install but the config files did not come back
[02:11] <teward> what package if I may ask
[02:11] <NeverHere> postfix
[02:11] <NeverHere> for sasl
[06:01] <gdeeble> If i'm running a file server and install squid, will it work even though it's not a gateway? I'd like it to be there for caching purposes
[06:28] <LLKCKfan> Is there any natural ways to relieve pain without using herbs or weed? No drugs
[06:28] <cfhowlett> LLKCKfan, you are clearly in the wrong channel
[06:29] <cfhowlett> !ot|LLKCKfan,
[06:48] <mapps> hi
[06:48] <LLKCKfan> hi
[06:48] <mapps> having trouble with squid and squidguard..compiled squidguard from source..thought i was working but when i run squidguard -C all on the blacklists its just sitting there
[06:48] <mapps> and i dont think it's working as the squidguard site says it should say started..
[07:18] <codenomics> howdy
[07:18] <codenomics> got a python file that I want to start at boot and can't find a good way to do this, any recommendations?
[07:19] <cfhowlett> !python
[07:19] <codenomics> well that was helpful
[07:20] <codenomics> are you telling me to go ask in #python?
[07:20] <cfhowlett> codenomics, of course - they ARE the experts ...
[07:20] <codenomics> um... this is not a python question more as a "how do I get things to start at boot" question
[07:21] <mardraum> codenomics: man 5 crontab
[07:22] <codenomics> um... ok
[07:22] <codenomics> nevermind
[07:23] <codenomics> I will continue to google it
[07:23] <mardraum> can't read?
[07:23] <codenomics> I can read
[07:23] <codenomics> I can read just fine
[07:23] <mardraum> "Instead of the first five fields, one of eight special strings may appear:" string @reboot  meaning Run once, at startup
[07:23] <codenomics> I know
[07:24] <codenomics> read that
[07:24] <mardraum> good on you.
[07:24] <codenomics> trying to 30 minutes of reading to do this one little thing
[07:25] <codenomics> trying to avoid**
[07:25] <mardraum> yeah, I hate learning too.
[07:25] <codenomics> yeah, that is exactly what I said
[07:25] <mardraum> even when some chucklenuts on irc gives you the exact answer to a vaguely worded question.
[07:25] <codenomics> also, been told this is not the right way to do it
[07:26] <codenomics> vaguely worded? how was that vague?
[07:26]  * cfhowlett bookmarks "chucklenucks" ...
[07:26] <mardraum> sounds like you know more
[07:26] <codenomics> I have a python file that I want to run at boot...
[07:26] <mardraum> why is this "not the right way"?
[07:27] <codenomics> mardraum: I have no idea... please read what I type... "been told this is not the right way"
[07:27] <mardraum> well that clears it all up
[07:27] <codenomics> oh screw it... not going to argue with the buntu trolls
[07:27] <codenomics> nevermind, will ask elsewhere
[07:28] <LLKCKfan> Is there any natural ways to relieve pain without using herbs or weed? No drugs
[07:28] <mardraum> hit your head against the keyboard
[07:28] <mardraum> why would you keep asking that here?
[07:28] <cfhowlett> mardraum, don't feed
[10:22] <NeverHere> how can i create a mailbox for a user and not have then access to the server its on
[10:22] <NeverHere> *them
[10:23] <bekks> Create a virtual mail user. You may have to configure your mailserver to do so first.
[10:25] <NeverHere> how do you do that?
[10:25] <bekks> That depends on the mailserver you are using.
[10:25] <NeverHere> postfix
[10:26] <NeverHere> well
[10:26] <bekks> https://help.ubuntu.com/community/PostfixCompleteVirtualMailSystemHowto
[10:26] <NeverHere> thanks
[12:00] <vedic> Hey guys, I run a small office of 10 people. Currently I don't have any network monitoring & control mechanism. All the users surf the stuff that they should not visit during office hours.
[12:00] <vedic> Also want to block torrent etc. How to setup such a server to monitor? Does setting up a proxy server through which all traffic should pass is the right way?
[12:01] <vedic> Could you suggest tutorial and tools for that?
[12:09] <Seveas> vedic: generally one would block direct internet access and enforce the use of a proxy (e.g. squid). And in the proxy you can enforce things like 'no facebook'.
[12:15] <mardraum> that's the most straightforward technical solution, but I can't help but think in a office of only 10 people you have a HR or rather Management issue.
[12:16] <mardraum> (the technical solution may make that worse. It won't solve it).
[12:17] <vedic> mardraum: You can monitor all the employees all the time specifically if some of them work in shifts (time rotation).
[12:17] <vedic> mardraum: You can't
[12:18] <vedic> Seveas: Thanks. I will read more on squid
[12:18] <mardraum> I'm not suggesting you monitor them
[12:18] <mardraum> I'm suggesting you fix the people problem by perhaps giving them clear guidelines about what is ok and what is not
[12:18] <mardraum> torrenting at work? not ok
[12:18] <mardraum> some personal use? ok
[12:18] <vedic> mardraum: Making guidelines and enforcing them are two different things
[12:19] <vedic> If every body in the world follow guidelines then we don't need police
[12:19] <mardraum> good luck man.
[12:20] <vedic> mardraum: I agree with you that there should be guidelines. I am not creticising but just highlighting the point that setting up technical solution do have their advantages
[12:20] <Seveas> I'm with mardraum on this. We (company with 7000+ employees) only enforce the use of a proxy to enforce the use of virus scanning and blacklist malicious urls (e.g. known phishing urls)
[12:20] <vedic> why can't both go hand in hand
[12:20] <Seveas> other than that one should not solve people problems with technology.
[12:21] <vedic> Seveas, mardraum: Setting up a firewall and preventing all to access internet directly has many security advantages
[12:21] <Seveas> well, yes, that's what I just said :)
[12:22] <Seveas> I should add we do block all other ports as there is nothing work-related they can do via those ports and it helps against attakcs/viruses etc.
[12:22] <vedic> We keep 2 systems in office that can be used in free time to access personal emails, facebook youtube etc. But guidelines doesn't allow them to use work systems. But people still do that
[12:23] <Seveas> the proxy (squid) can also be used for things like ftp and ssh
[12:23] <vedic> I see
[13:17] <JanC> vedic: huh, reading personal mail on a shared company PC?
[13:19] <JanC> you're teaching them bad internet hygiene  :p
[15:31] <halvors> [01:41] <halvors> I've setup a slave dns server with bind9 on ubuntu. But it doesn't write the records received from its master. This because of apparmor, may anyone help me figure out the issue. I don't hav eany idea :([01:42] <halvors> Here is the error i'm getting in syslog: http://pastebin.com/uKHE4bFb
[18:20] <mortrca> I'm a student and I'm trying to teach myself about server virtualization. I have read the virtualization section in the server guide, but I'm not understanding how the different pieces (libvirt, JeOS, and vmbuilder) are supposed to work together.
[18:21] <mortrca> Perhaps I am misunderstanding these components and they don't work together. Either way, could someone shed some light on this for me?
[18:23] <TJ-> libvirt manages the hypervisor; JeOS is a kernel build targeted at known virtual machine environments (VMWare, KVM), vmbuilder create guest images
[18:24] <mortrca> So, JeOS is the host operating system for the virtual systems created by vmbuilder?
[18:25] <TJ-> mortrca: Yes, it was originally a separate install but is now the "minimal" server install
[18:25] <mortrca> Okay
[18:26] <TJ-> mortrca: because we know the small range of devices presented to VMware and KVM guests, the drivers in the image can be limited. A standard install carries every possible driver.
[18:26] <mortrca> TJ-: I thought that was how it worked and tried to get a setup running with that in mind
[18:26] <JanC> JeOS is the guest OS
[18:27] <mortrca> Now I'm confused, I thought it was the host
[18:27] <TJ-> mortrca: "Just enough Operating System"
[18:28] <TJ-> mortrca: because, the guest contains a small subset of hardware, the kernel is minimal size and the only the essential base packages and configuration are needed in the guest
[18:28] <JanC> the hardware that a guest sees is very limited
[18:29] <mortrca> So, JeOS is what would be installed on a virtual machine? If so, what is the virtual machine running on - a full server install?
[18:29] <JanC> only whatever the hypervisors provide
[18:29] <JanC> yes, regular server instal
[18:29] <mortrca> Ah, that clears some things up
[18:31] <mortrca> I think I can figure out the rest of this now. My last question is, where does vmbuilder get the installation media?
[18:32] <JanC> it probably uses debootstrap
[18:32] <JanC> and a quick check seems to confirm that  :)
[18:33] <mortrca> JanC: Can you elaborate? Does this mean I don't need to provide an image for the virtual machines to install?
[18:33] <JanC> yes, no image needed
[18:34] <JanC> it downloads the necessary debs and unpacks them
[18:34] <mortrca> Doesn't seem very efficient, but okay
[18:34] <JanC> actually, it's usually more efficient, especially if you have a local mirror
[18:35] <TJ-> mortrca: Very efficient. Instead of needing an image that carries everything everyone wants, it allows just the packages wanted by the user to be fetched
[18:35] <JanC> no need to run a complicated installer etc.
[18:35] <mortrca> Okay, that makes sense
[18:36] <mortrca> Thanks TJ- and JanC
[18:40] <LLKCKfan> Is there any natural ways to relieve pain without using herbs or weed? No drugs
[18:41] <genii> LLKCKfan: That's not really a support question for your Ubuntu Server
[18:41] <TJ-> I find chopping my head off usually does the trick; that or installing ubuntu server :)
[18:42] <genii> LLKCKfan: Might want to try some channel like #health
[18:42] <LLKCKfan> genii I have
[18:42] <LLKCKfan> No help
[18:42] <hitsujiTMO> LLKCKfan: try: rm -rf /sys/class/pain
[18:43] <hitsujiTMO> LLKCKfan: if it doesn't go away, then run the command with sudo
[18:44] <genii> LLKCKfan: At any rate, try applying heat or ice, perhaps both in an alternating series
[18:45] <JanC> LLKCKfan: so now you are going to troll other channels too?
[18:46] <LLKCKfan> Ice makes it worse
[18:46] <LLKCKfan> And heat does not help
[18:46] <LLKCKfan> Not a troll
[19:23] <teward|phone> how can I pin a PPA to be a higher priority than other packages?
[19:28] <genii> !pinning
[19:34] <teward|phone> genii: that didn't give me any help to answer my question.  It doesn't state how to get the exact statement to put in the pinning for any given PPA
[19:43] <genii> teward|phone: Use something like:  Package: *    then: Pin: release a=<ppaname here>  ..then: Priority: 990
[19:44] <genii> Work, AFK
[19:44] <teward|phone> genii: i'll test that.  fortunately on a 12.04 system the PPA's version number is higher than what's in precise/precise-updates/precise-security/precise-backports, so it's less of an issue
[19:44] <teward|phone> but on a 13.10 server it won't hence the question :/
[19:44] <teward|phone> i can always install it with a version pin but meh
[19:49] <teward|phone> genii: i'll try that, on the 13.10 servers affected
[19:50] <teward|phone> (everything prior is clear because the PPA version is higher than others)
[20:04] <genii> teward|phone: You can additionally add a stanza for the regular repository with a negative number value for Priority, this means it will not get updated from there. But instead of * use the actual packagename(s)
[20:07] <genii> teward|phone: A description of the number values can be found by: man apt_preferences
[22:00] <Titanium> is there a good way to remove lines matching a regex from a file?
[22:00] <Titanium> i tried using sed, but when i redirect the output back into the file... it wipes it
[22:13] <hitsujiTMO> Titanium: use sed -i
[22:14] <JanC> Titanium: use a temporary fil
[22:14] <JanC> * file
[22:15] <JanC> (which is what sed -i does)