/srv/irclogs.ubuntu.com/2014/02/08/#ubuntu-server.txt

MavKenis 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 user00:15
shaunoMavKen: 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:33
MavKenok... wonder if I could create it so that it generated a random password and then used sendmail to send it out00:38
halvorsI'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:41
halvorsHere is the error i'm getting in syslog: http://pastebin.com/uKHE4bFb00:42
=== stiv2k_ is now known as stiv2k
rostamHI general question , I need to  choose a system management software, I am wondering to choose either Puppet or salt. Any recommandation greatly appreciated? thx01:26
NeverHereIs there a way to reinstall the default config files after apt-get purge?01:40
=== freeflying_away is now known as freeflying
tewardNeverHere, reinstall the package after the purge, maybe.02:10
NeverHereteward, i did apt-get install but the config files did not come back02:10
tewardwhat package if I may ask02:11
NeverHerepostfix02:11
NeverHerefor sasl02:11
=== BrianH is now known as Guest72950
=== BrianH is now known as Guest74476
=== Ursinha is now known as Ursinha-afk
=== BrianH is now known as Guest56863
=== NCommander is now known as uid0
=== uid0 is now known as NCommander
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
gdeebleIf 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 purposes06:01
=== Ursinha-afk is now known as Ursinha
LLKCKfanIs there any natural ways to relieve pain without using herbs or weed? No drugs06:28
cfhowlettLLKCKfan, you are clearly in the wrong channel06:28
cfhowlett!ot|LLKCKfan,06:29
ubottuLLKCKfan,: #ubuntu is the Ubuntu support channel, for all Ubuntu-related support questions. Please use #ubuntu-offtopic for other topics (though our !guidelines apply there too). Thanks!06:29
mappshi06:48
LLKCKfanhi06:48
mappshaving 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 there06:48
mappsand i dont think it's working as the squidguard site says it should say started..06:48
codenomicshowdy07:18
codenomicsgot a python file that I want to start at boot and can't find a good way to do this, any recommendations?07:18
cfhowlett!python07:19
ubottupython is a popular Object Oriented scripting language included in Ubuntu. For more on Python please see http://www.python.org/ or #python07:19
codenomicswell that was helpful07:19
codenomicsare you telling me to go ask in #python?07:20
cfhowlettcodenomics, of course - they ARE the experts ...07:20
codenomicsum... this is not a python question more as a "how do I get things to start at boot" question07:20
mardraumcodenomics: man 5 crontab07:21
codenomicsum... ok07:22
codenomicsnevermind07:22
codenomicsI will continue to google it07:23
mardraumcan't read?07:23
codenomicsI can read07:23
codenomicsI can read just fine07:23
mardraum"Instead of the first five fields, one of eight special strings may appear:" string @reboot  meaning Run once, at startup07:23
codenomicsI know07:23
codenomicsread that07:24
mardraumgood on you.07:24
codenomicstrying to 30 minutes of reading to do this one little thing07:24
codenomicstrying to avoid**07:25
mardraumyeah, I hate learning too.07:25
codenomicsyeah, that is exactly what I said07:25
mardraumeven when some chucklenuts on irc gives you the exact answer to a vaguely worded question.07:25
codenomicsalso, been told this is not the right way to do it07:25
codenomicsvaguely worded? how was that vague?07:26
* cfhowlett bookmarks "chucklenucks" ...07:26
mardraumsounds like you know more07:26
codenomicsI have a python file that I want to run at boot...07:26
mardraumwhy is this "not the right way"?07:26
codenomicsmardraum: I have no idea... please read what I type... "been told this is not the right way"07:27
mardraumwell that clears it all up07:27
codenomicsoh screw it... not going to argue with the buntu trolls07:27
codenomicsnevermind, will ask elsewhere07:27
LLKCKfanIs there any natural ways to relieve pain without using herbs or weed? No drugs07:28
mardraumhit your head against the keyboard07:28
mardraumwhy would you keep asking that here?07:28
cfhowlettmardraum, don't feed07:28
NeverHerehow can i create a mailbox for a user and not have then access to the server its on10:22
NeverHere*them10:22
bekksCreate a virtual mail user. You may have to configure your mailserver to do so first.10:23
NeverHerehow do you do that?10:25
bekksThat depends on the mailserver you are using.10:25
NeverHerepostfix10:25
NeverHerewell10:26
bekkshttps://help.ubuntu.com/community/PostfixCompleteVirtualMailSystemHowto10:26
NeverHerethanks10:26
vedicHey 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
vedicAlso 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:00
vedicCould you suggest tutorial and tools for that?12:01
Seveasvedic: 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:09
mardraumthat'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:15
mardraum(the technical solution may make that worse. It won't solve it).12:16
vedicmardraum: You can monitor all the employees all the time specifically if some of them work in shifts (time rotation).12:17
vedicmardraum: You can't12:17
vedicSeveas: Thanks. I will read more on squid12:18
mardraumI'm not suggesting you monitor them12:18
mardraumI'm suggesting you fix the people problem by perhaps giving them clear guidelines about what is ok and what is not12:18
mardraumtorrenting at work? not ok12:18
mardraumsome personal use? ok12:18
vedicmardraum: Making guidelines and enforcing them are two different things12:18
vedicIf every body in the world follow guidelines then we don't need police12:19
mardraumgood luck man.12:19
vedicmardraum: 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 advantages12:20
SeveasI'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
vedicwhy can't both go hand in hand12:20
Seveasother than that one should not solve people problems with technology.12:20
vedicSeveas, mardraum: Setting up a firewall and preventing all to access internet directly has many security advantages12:21
Seveaswell, yes, that's what I just said :)12:21
SeveasI 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
vedicWe 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 that12:22
Seveasthe proxy (squid) can also be used for things like ftp and ssh12:23
vedicI see12:23
=== BrianH is now known as Guest40372
JanCvedic: huh, reading personal mail on a shared company PC?13:17
JanCyou're teaching them bad internet hygiene  :p13:19
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== BrianH is now known as Guest43373
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/uKHE4bFb15:31
=== BrianH is now known as Guest67173
mortrcaI'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:20
mortrcaPerhaps I am misunderstanding these components and they don't work together. Either way, could someone shed some light on this for me?18:21
TJ-libvirt manages the hypervisor; JeOS is a kernel build targeted at known virtual machine environments (VMWare, KVM), vmbuilder create guest images18:23
mortrcaSo, JeOS is the host operating system for the virtual systems created by vmbuilder?18:24
TJ-mortrca: Yes, it was originally a separate install but is now the "minimal" server install18:25
mortrcaOkay18:25
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
mortrcaTJ-: I thought that was how it worked and tried to get a setup running with that in mind18:26
JanCJeOS is the guest OS18:26
mortrcaNow I'm confused, I thought it was the host18:27
TJ-mortrca: "Just enough Operating System"18:27
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 guest18:28
JanCthe hardware that a guest sees is very limited18:28
mortrcaSo, 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
JanConly whatever the hypervisors provide18:29
JanCyes, regular server instal18:29
mortrcaAh, that clears some things up18:29
mortrcaI think I can figure out the rest of this now. My last question is, where does vmbuilder get the installation media?18:31
JanCit probably uses debootstrap18:32
JanCand a quick check seems to confirm that  :)18:32
mortrcaJanC: Can you elaborate? Does this mean I don't need to provide an image for the virtual machines to install?18:33
JanCyes, no image needed18:33
JanCit downloads the necessary debs and unpacks them18:34
mortrcaDoesn't seem very efficient, but okay18:34
JanCactually, it's usually more efficient, especially if you have a local mirror18:34
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 fetched18:35
JanCno need to run a complicated installer etc.18:35
mortrcaOkay, that makes sense18:35
mortrcaThanks TJ- and JanC18:36
LLKCKfanIs there any natural ways to relieve pain without using herbs or weed? No drugs18:40
geniiLLKCKfan: That's not really a support question for your Ubuntu Server18:41
TJ-I find chopping my head off usually does the trick; that or installing ubuntu server :)18:41
geniiLLKCKfan: Might want to try some channel like #health18:42
LLKCKfangenii I have18:42
LLKCKfanNo help18:42
hitsujiTMOLLKCKfan: try: rm -rf /sys/class/pain18:42
hitsujiTMOLLKCKfan: if it doesn't go away, then run the command with sudo18:43
geniiLLKCKfan: At any rate, try applying heat or ice, perhaps both in an alternating series18:44
JanCLLKCKfan: so now you are going to troll other channels too?18:45
LLKCKfanIce makes it worse18:46
LLKCKfanAnd heat does not help18:46
LLKCKfanNot a troll18:46
teward|phonehow can I pin a PPA to be a higher priority than other packages?19:23
genii!pinning19:28
ubottupinning is an advanced feature that APT can use to prefer particular packages over others. See https://help.ubuntu.com/community/PinningHowto19:28
teward|phonegenii: 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 PPA19:34
geniiteward|phone: Use something like:  Package: *    then: Pin: release a=<ppaname here>  ..then: Priority: 99019:43
geniiWork, AFK19:44
teward|phonegenii: 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 issue19:44
teward|phonebut on a 13.10 server it won't hence the question :/19:44
teward|phonei can always install it with a version pin but meh19:44
teward|phonegenii: i'll try that, on the 13.10 servers affected19:49
teward|phone(everything prior is clear because the PPA version is higher than others)19:50
geniiteward|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:04
geniiteward|phone: A description of the number values can be found by: man apt_preferences20:07
=== TheLordOfTime is now known as teward
=== BrianH is now known as Guest51460
Titaniumis there a good way to remove lines matching a regex from a file?22:00
Titaniumi tried using sed, but when i redirect the output back into the file... it wipes it22:00
hitsujiTMOTitanium: use sed -i22:13
JanCTitanium: use a temporary fil22:14
JanC* file22:14
JanC(which is what sed -i does)22:15
=== BrianH is now known as Guest63322

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