/srv/irclogs.ubuntu.com/2012/05/12/#ubuntu-server.txt

nathwillposeidon: https://help.ubuntu.com/12.04/serverguide/00:02
cc77JonEdney, I alway do aptitude update then aptitude safe-upgrade00:14
JonEdneycc77, whats the difference if you dont mind me asking?00:15
cc77update lists the newest packages. And mind asking, found you something btw: https://help.ubuntu.com/community/AptitudeSurvivalGuide00:17
cc77JonEdney, basically safe-upgrade just updates all packages. And full-upgrade will also latest ubuntu version.00:19
cc77so safe-upgrade is what you need.00:19
JonEdneyOkay, I get that.  Thanks for the link also.00:19
cc77I assigned a static ip to my server but dns is not working. opening resolv.conf in nano the comment shows I should edit that file. But if I do anyway it works. What file should I edit for dns then?00:23
cc77oops same mistake as before editL00:24
cc77correction: the comment shows that I SHOULD NOT EDIT that file00:24
pdtpatrickQuestion - would someone please explain/help me with .deb packaging. I'm using deb helper and i've gone through the PackagingGuide.pdf -- and i still cannot understand how you move files around. For instance, if i want the .deb file when installed to have files in /etc/ and then /home/user/.filename   .. where/how do i do that ?  would this be the dh_installdeb helper script ?00:43
=== Lcawte is now known as Lcawte|Away
virusuypdtpatrick: you should ask that kind of question in #ubuntu-motu00:49
pdtpatrickGood point. THanks00:49
virusuyyou're welcome00:50
poseidonI don't suppose there would be a gitorious package01:50
poseidonI've been having the hardest time installing it01:50
=== YankDown1nder is now known as YankDownUnder
=== oCean_ is now known as oCean
=== Myrtti_ is now known as Myrtti
randomDudei need to totally purge and remove all config files for apache2, why doesn't apt-get remove apache2 remove the config files... why doesn't apt-get purge remove the config files. why doesn't apt-get install apache2 --reinstall rewrite the config files? why doesn't  dpkg-reconfigure apache2 rewrite the config files... none of the above rewrites the config files even if /etc/apache2 doesn't exist08:46
randomDudeunhappy with apt-get08:46
randomDudenone of the above rewrites or creates fresh config files if /etc/apache2 does or does not exist.08:46
DigiDazHi all, I'm looking for help with an SSH problem, anyone here?09:46
mah454_Hello09:52
mah454_i need run sample bash script when postfix server send message09:53
mah454_How can do this ?09:53
DigiDazYou may well be far better asking in a postfix channel09:56
DigiDazI'm sure that will be simple09:56
=== Lcawte|Away is now known as Lcawte
tarvidmysqld won't start12:16
tarviddumped an 11.10 reloaded on 12.0412:16
tarvidPlugin 'FEDERATED' is disabled.12:17
tarvidmysqld  now started but drupal cannot connect12:42
=== fenris is now known as Guest83592
RoyKDoes Ubuntu Precise support TRIM on LVM?14:33
Patrickdkhmm14:35
Patrickdkyes14:36
Patrickdkhas since 10.10 it looks like14:36
Patrickdkoh opps, 11.04 :)14:37
Patrickdklooks like it's automatically/always enabled, for all dm devices, except for crypt, that you have to manually enable it for14:38
Patrickdkhttps://www.redhat.com/archives/dm-devel/2011-January/msg00035.html14:39
RoyKhrmf - just started installing precise server from usb stick, and it gives an error "unable to mount cdrom"14:44
RoyKany idea what that might be?14:44
Patrickdknope :( wonder if it has to do with that new combined iso/usb image thing14:44
PatrickdkI haven't done a usb install since 10.04 came out14:45
JonEdneyo/14:45
SpamapSI did a USB install of 12.04 last week15:23
SpamapSon a Mac, no less. Worked fine.15:23
mikeh_anybody running mysql 5.0.96 on ubuntu 8.0.4?15:23
mikeh_sorry mysql 5.0.96 on ubuntu 12.0415:24
Psi-JackErmm..15:40
Psi-JackWhy would you be running THAT old of MySQL on Ubuntu 12.04 so current?15:41
Psi-JackMySQL 5.0 is NOT recommended for use.15:41
carroarmato0hello, I'm having some trouble with importing templates in Maas. When I issue the command "maas-import-isos" I get "mount: Could not find any loop device."  and then "failed to import precise-x86_64  profile precise-x86_64 not found, inheritance not possible".  I'm running the Node on which Maas is installed in an LXC container.17:41
stgrabercarroarmato0: that's because mounting .iso files isn't allowed by default in the container17:43
stgrabercarroarmato0: easiest way to allow it is (sorry it's going to be a bit long):17:43
stgraber1) sudo cp /etc/apparmor.d/lxc/lxc-default /etc/apparmor.d/lxc/lxc-default-with-iso17:43
stgraber2) edit /etc/apparmor.d/lxc/lxc-default-with-iso, rename the profile from lxc-container-default to lxc-container-default-with-iso17:43
stgraber3) still in /etc/apparmor.d/lxc/lxc-default-with-iso, add a "mount fstype=iso9660," to the profile (or whatever fstype you want)17:44
stgraber4) sudo /etc/init.d/apparmor reload17:44
stgraber5) edit your container configuration (/var/lib/lxc/<container>/config) and uncomment the lxc.aa_profile line and set it to lxc-container-default-with-iso17:44
stgraber6) restart your container17:45
stgraberI tested that solution for someone else with the same need at the Ubuntu Developer Summit and it worked as expected17:45
carroarmato0stgraber: thank you very much, I was also suspecting it had to do with apparmour, will give it a try!17:47
stgrabercarroarmato0: you can usually confirm it by looking at the bottom of the "dmesg" output, apparmor blocking specific calls are listed in there17:48
carroarmato0stgraber: hmm tried what you said but I'm not noticing anything from apparmour, but it still fails on the mounting part18:03
stgrabercarroarmato0: oh, right, I forgot one step, sorry. You also need to allow lxc to access /dev/loop*18:05
stgrabercarroarmato0: grabbing the exact line now18:06
carroarmato0stgraber: thx :)18:06
stgraber#loop18:06
stgraberlxc.cgroup.devices.allow = b 7:* rwm18:06
stgraberadd that to your /var/lib/lxc/<container>/config18:06
carroarmato0stgraber: jup, magic seems to be happening18:08
stgraberhehe :)18:08
carroarmato0stgraber: aan't maas isn't complaining about missing templates :)  thank you very much18:08
carroarmato0*and18:08
carroarmato0trying to run a poor man's cloud on my laptop to play around with maas, juju and charms18:09
carroarmato0aspiring to become a witch doctor casting voodoo on servers18:10
stgrabercool, good to hear it all works fine now18:14
poseidonAnyone know of a package for installing gitorious, or a complete walkthrough for installing it on ubuntu 12.04.  The ones I followed with 11.04 seem to throw errors18:26
DigiDazAs anyone had any problems using ssh to ubuntu servers?18:37
carroarmato0DigiDaz: nope18:38
DigiDazI've been having a lot of problems and I've seen a few recent posts popping up whilst googling for an answer but if there was anything happening on a large scale I would expect you would have seen activity here18:39
DigiDazI'm beginning to think its some sort of hack or malware18:40
carroarmato0DigiDaz: what kind of problem are you experiencing?18:40
DigiDazBasically, SSH not connecting, its timing out, this has just started happening in the last couple of weeks but to a number of servers18:41
poseidonDigiDaz: Do you have a firewall running?18:42
DigiDazIf the timeout in sshd config file is upped to about 10 minutes it eventually gets there, keys work fine, someone elsewhere did say they solved it but didn't specify how, they said it was something to do with pam_unix18:42
DigiDazI may well have IP tables running on them18:43
poseidonssh is working fine for me18:43
poseidonI have the default config, though I only let whitelisted ip addresses connect18:43
DigiDazThis is wierd, the first alert that I am getting is when servers start failing nightly backup using ssh, thing is these boxes have been running a long time, sometimes never even get logged into for weeks, perhaps months at a time18:45
DigiDazIts not like anything at all has changed18:45
DigiDazIts also happened on a couple of Debian squeeze boxes too, again this has been the last couple of weeks on boxes that have been running for months18:47
carroarmato0DigiDaz: have you checkt the logs on those boxes? People who have recently logged in, the commands they issues?18:48
carroarmato0*checked18:48
DigiDazNo, one logs in, except me, I have checked logs, done searches for modded files etc18:48
DigiDazI have one now I can't get into, I'm just gonna reboot it into safe mode in a minute and then change the ssh timeout, I know I will get back on but its wwhats causing this thats beginning to bother me18:50
carroarmato0is it just ssh which takes a lot of time?  As in: does the network feel slower?18:50
DigiDazIt will probably take about best part of 10 minutes to log in18:50
poseidonHow long does it take you to ping the host18:51
DigiDazIf I then change it to using keys to log in it back to fast as ever18:51
DigiDazping times are fine, everything is fine, its just password based login thats turned mega slow18:51
poseidonah, probably isn't network connection then18:51
poseidonI have password login disabled18:52
DigiDazNo, its also multiple servers, multiple data centers etc18:52
DigiDazI'm thinking of dong that myself, I know I have been lazy security wise18:52
poseidonheh18:53
DigiDazMoreover, even ssh@localhost fails to so its definitely not network related18:53
poseidonI'm lazy and use keys and ssh-agent for everything18:54
poseidonI don't even know what my root password is18:54
DigiDazlol18:54
poseidonI have it written down somewhere18:54
poseidonSome long ass thing18:54
DigiDazThere are a couple of posts flying around with exactly the same problem and they are recent too18:55
poseidonhttp://askubuntu.com/questions/134298/how-do-i-set-up-gitorious-server-on-ubuntu18:56
poseidongahh, hope this one works18:56
DigiDazI want to try and reinstall pam, see if that fixes it but I don't know how to do it properly, apt get remove it gives some badass warning that you are just about to trash your system18:56
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
carroarmato0stgraber: have you encountered the problem where nodes would stay in Commissioning permanently?19:17
=== dendro-afk is now known as dendrobates
=== dendrobates is now known as dendro-afk
Psi-JackAnyone here using the dovecot-postfix/mail-delivery-stack packaged setup? I'm having a complication with it not being able to deliver mail to subfolders in the mail using username+extension@mydomain20:20
Psi-JackIt gives me errors trying saying the directory doesn't exist, yet, it does.20:20
PatrickdkPsi-Jack, never used the combined package, I use them both though21:02
Psi-JackHmmm.21:02
Patrickdkwhy not use sieve?21:03
Psi-JackPatrickdk: It's supposed to be, actually. heh21:03
Patrickdkhmm? what lda are you using?21:03
Psi-Jackdovecot-lda currently.21:03
Patrickdkwhat line for it in your master.cf?21:03
Psi-JackIt's not, it's setup as a mailbox_command, by that mail-stack21:04
Psi-Jackmailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-mail-stack-delivery.conf -m "${EXTENSION}"21:04
Patrickdkoh, your using only local users21:04
Psi-JackCorrect.21:04
Patrickdkseems too simple21:05
Psi-JackI'm /also/ trying to get Dovecot to actually use Kerberos binded LDAP connections for userdb+passdb21:05
Psi-Jackbut, I'm failing that too, it seems. heh21:05
Patrickdkodd21:07
Patrickdkthat usecase isn't in the dovecot config for local users21:07
Patrickdkand I can't believe that is an accident21:07
Psi-Jackheh21:07
Patrickdkhttp://wiki.dovecot.org/LDA/Postfix21:08
Patrickdkare you actually using deliever? or dovecot-lda?21:08
Patrickdkcause they are largely different21:08
Psi-JackYeah.. That particular mailbox_command was setup by the mail-delivery-stack package.21:09
Psi-JackAhh, deliver21:09
Patrickdklike I said, I configure dovecot and postfix, myself21:09
Patrickdkyou don't have a dovecot-lda program at all?21:09
Psi-JackI have it, yes.21:09
Patrickdkthen your using dovecot-lda, not deliever21:09
Patrickdkusing dovecot 2.x21:09
Patrickdkhttp://wiki2.dovecot.org/LDA/Postfix21:10
Patrickdkbest use those examples21:10
Psi-JackErr, wait.21:10
Patrickdkdovecot-lda is a 2.x thing, it replced deliever, from 1.x21:10
Psi-JackI just have dovecot-lmtp21:10
Psi-Jackd21:10
Patrickdklmtp is a 2.x thing :)21:10
Psi-JackThis is all Ubuntu 12.04, so it's all very current stuff.21:11
Patrickdk12.04 is a dovecot 2.x :)21:11
Psi-Jackheh21:12
Psi-JackSo, no dovecot-lda, just deliver and optionally lmtpd, cause I was considering, once I get this all working, having front-ended smtpds to deliver mail by lmtpd21:12
Patrickdkheh?21:13
Patrickdkare you sure?21:13
Patrickdkthe file /usr/lib/dovecot/dovecot-lda doesn't exist?21:13
Patrickdkdovecot --version21:13
Patrickdkit should be like 2.0.13 I think21:14
Psi-JackHmmm21:15
Psi-JackYeah, it does.21:15
Psi-JackHeh21:15
Patrickdkdeliever is only a symlink anymore, as it doesn't exist in 2.x21:15
Psi-JackAnd deliver is a symlink yeah21:15
PatrickdkI would change that config to the 2.x format, instead of the old 1.x format21:16
Patrickdkatleast21:16
Patrickdkmailbox_command = /usr/lib/dovecot/dovecot-lda -c /etc/dovecot/conf.d/01-mail-stack-delivery.conf -f "$SENDER" -a "$RECIPIENT"21:17
Patrickdkbut I still dunno if that -m ${extension} would work or not21:17
Patrickdkmost likely not cause of permissions21:17
Psi-JackHmmm, or maybe it needs to be INBOX/${EXTENSION}21:18
Patrickdkas local users normally go into /var/mail/, where as the extention thing, would require putting it into the user home folder21:18
Psi-JackNo.21:18
Patrickdkthat depends on your dovecot config and folder layout21:18
Psi-JackAll my mail is Maildir in their homes.21:18
PatrickdkI don't put it into INBOX/* atleast21:18
Psi-JackHmmm21:20
Psi-JackI think I found my problem with LDAP/GSSAPI ;)21:21
Psi-JackSuwheeeeet!21:21
Psi-JackSo far, it works, but I wonder if it'll properly renew it's Kerberos ticket now.21:22
Psi-JackMay 12 17:23:09 testmail01 dovecot: lda(psi-jack): msgid=<4FAED4BF.5070606@hostdruids.com>: save failed to open mailbox testpool: Mailbox doesn't exist: testpool21:23
Psi-JackThat's the error I get though with delivery.21:23
Psi-JackMay 12 17:23:09 testmail01 dovecot: lda(psi-jack): msgid=<4FAED4BF.5070606@hostdruids.com>: saved mail to INBOX21:23
Psi-JackThat's the end result.21:23
Patrickdkand what does your maildir folder look like?21:24
Psi-JackIt's got .INBOX.Testpool, and .Testpool directories in it.21:25
Patrickdkwith uppercase?21:25
Psi-JackCorrect21:25
Psi-JackOh sheash..21:27
Psi-JackMay 12 17:27:07 testmail01 dovecot: lda(psi-jack): msgid=<4FAED5AC.7030902@hostdruids.com>: saved mail to testpool21:27
Psi-JackWhy the heck is it case sensative!?21:27
Patrickdkcause your filesystem is :)21:27
Patrickdkor just make it sane, and tell dovecot to lowercase everything :)21:28
Psi-Jackit should be smarter than that!!21:28
Patrickdkuse zfs?21:28
Psi-JackHmmm21:28
Psi-JackWell, I /do/ intend to hook this up to my NAS storage home directory.21:28
Psi-JackBut.. That also shares out my /home/& through autofs21:29
Psi-JackBah.. That's just silly though..21:30
Psi-JackI mean, the idea of using +extensions is for like, signing up to mailing lists with that and not having to bother with actual filtering.21:31
Patrickdkheh, I don't use it for that21:33
PatrickdkI use sieve for filtering21:33
PatrickdkI defently don't want my +stuff autofiltered21:33
Patrickdkthe idea of it though, is so I can easily filter it later if I wanted to though21:33
Patrickdkatleast the way I use it21:34
* Psi-Jack nods.21:34
PatrickdkI think you can make a simple sieve command to autofilter it like that21:34
Patrickdknot sure, but I think my brother uses it that way21:35
=== almaisan-away is now known as al-maisan
Psi-JackHeh21:37
Psi-JackWell, I just installed a sieve extension to Thunderbird.21:37
Psi-JackCourse, I have NO idea how to do manual sieve. ;021:37
Patrickdkheh, it's hard to get the handle on all the options21:40
Patrickdkbut not hard after that21:40
Psi-JackWell, I'll be learning it. I'm trying to replace my Zimbra mail server solution with my own more managable, upgradable solution.21:40
Psi-JackAnd a /lot/ less resources required for it. heh21:41
Patrickdkdunno21:41
Patrickdkmy mail server requires 10gigs of ram these days :(21:42
virusuyPatrickdk: 10G ?21:42
virusuyhow many users ?21:42
Patrickdknormally, about 800 imap sessions active21:42
Patrickdkabout 60 active pop21:42
Psi-JackPatrickdk: heh, mine would never need that much. ;)21:42
PatrickdkI never looked to see how many per day or whatever21:42
Psi-JackBut, so far, finally have my Kerberos+OpenLDAP solution, with autofs on most of my servers now, even my desktop has Kerberos auth and autofs mounting. :D21:43
glosoliWhat anyone would recommend for usage with VDS for Ubuntu Server ? I mean some kind of web interface or what ?21:45
virusuyglosoli: and VDS stands for ?ยก21:46
glosoliVirtual Dedicated Server21:47
Psi-JackYay!21:47
virusuygreat, thanks21:47
Psi-JackA new bling acronym.21:47
Patrickdkwhat exactly is a virtual dedicated server?21:48
Patrickdkjust by it's name, it can't happen :)21:48
glosolianother version Of CLoud Server, virtual private server or whatever, some kind of market trick21:48
glosolianyway, what web interface anyone of you recommend  ?21:48
qman__recommend not using a web interface21:49
glosoliqman__: hmm just curious why21:50
glosoli ?21:50
qman__because they're almost universally broken and insecure21:50
glosolihmm sounds fair, thanks for advice then21:50
glosoliqman__: do you use virtualenvs for server or something like that ?21:51
glosoliI am thinking to deploy OpenERP, not sure if VirtualENV would be smart21:51
glosolior not21:51
qman__sounds like buzzword of the month to me21:51
qman__what are you really trying to accomplish?21:51
glosoliqman__: well, I need to deploy OpenERP in server,  with basic modules, and then develop some in some kind of period, the whole thing will be used for production :)21:53
qman__glosoli, still doesn't mean much to me, I'm not a software developer and ERP is just another buzzword to me, but I see no reason why virtualenv would give you trouble, it's a dev tool22:01
glosoliqman__: well I never did something with clouds servers, I see the dir tree, there is a home dir, and I am not aware if it would be good to create something like /home/workspace22:01
glosoli:?22:01
qman__but web interfaces for general server management like webmin and friends or website managers like plesk are generally crap, see also !webmin22:01
glosoliqman__: well I trust you, won't even check it :P22:02
glosolianyone can help me with locales problem "http://dpaste.org/bcrwO/" ?23:03
glosolihttp://dpaste.org/bcrwO/23:03
glosoliI can't seem to find in which file they are located to fix the errors23:04
=== al-maisan is now known as almaisan-away
qman__glosoli, iirc, you need language-pack-en and any other language packs you wish to have installed23:55

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