/srv/irclogs.ubuntu.com/2012/04/09/#ubuntu-server.txt

KutakizukariIs there a way to block port 22 SSH till I need to log in? I know dome9.com does this but looking for the free way if can do.00:09
KM0201hmm, not sure00:10
maxbKutakizukari: If you feel it's necessary, you could go with a port knocking approach00:12
maxbAlternatively, accept only pubkey-based logins, denying passwords completely, and trust that to be secure enough00:13
Kutakizukariwas using fail2ban but the bots just grab another ip address and try again.00:13
maxbPossibly backed up with a fail2ban approach00:14
Kutakizukariis there docs on pubkey-based logins for ubuntu server 10.04 LTS?00:14
patdk-lapKutakizukari, you want a knock solution probably00:15
patdk-lapwhere you hit up a special port y, and it enables access to other port x for that ip for x min00:15
Kutakizukaripatdk-lap: never heard of it, will look it up. Thanks00:15
patdk-laphttp://www.shorewall.net/PortKnocking.html00:16
Kutakizukarican port y be sniffed out to lead to port x?00:16
Kutakizukariwill look into it, again thank you00:17
maxbPubkey based SSH is a standard part of OpenSSH. I know it's described in the man pages, no idea if anyone's bothered to write customized documentation for Ubuntu; really there's little to nothing distro-specific00:17
patdk-lapnot without someone intercepting your traffic, while you do it00:17
maxb!info knockd00:17
ubottuknockd (source: knockd): small port-knock daemon. In component universe, is optional. Version 0.5-3ubuntu1 (oneiric), package size 26 kB, installed size 168 kB00:17
patdk-lapodd, no need for a userbased program, as iptables can do it all itself00:18
maxbit can?00:18
patdk-lapsure00:18
patdk-lapthe link above is almost raw iptables commands00:18
maxbI've never come across one iptables rule mutating the ruleset itself before00:19
patdk-lapI never said 1 iptables rule :)00:19
patdk-lapbut a collection of 4 will do it, and protect against portscans00:19
patdk-lapif you don't care about portscans, 2 rules, the normal accept 22 and the portknock port00:20
maxbInteresting. I was not aware of the 'recent' module00:21
patdk-lappart of normal ubuntu iptables00:22
patdk-lapno xtables needed00:22
romulobrhi, i want my server to be able to send emails. I followed ubuntu server guide and successfully (i think) installed postfix with dovecot, but i don't know what to do next, can you help me?01:47
=== Lcawte is now known as Lcawte|Away
* pehden is away: I'm busy04:23
* pehden is back (gone 00:00:01)04:23
=== ejat- is now known as ejat
journeemanHi all. Trying to delete a node from the MAAS web interface gives an `Internal Server Error'. Anyone else facing this?06:29
journeemancobbler.log shows the "At least one interface needs to be defined" exception being raised. checking my cobbler config06:52
mmmfungohello! i was referred here in an attempt to get my usb ports running at 2.0 instead of 1.108:02
mmmfungogood morning! im having an issue with my usb ports and was hoping for some help...i recently installed a firewire/usb/audio front panel and the ports are only recognized as usb 1.1, even though the board and panel both support 2.0..the output of lsusb and lspci as well as the motherboard and front panel info can be seen here : http://paste.ubuntu.com/921401/ .. lsmod here : http://paste.kde.org/454208/ .. the chipset, according to08:02
mmmfungothe manual is an Intel 82801GH 1/O Controller Hub (ICH7DH) and im using 11.10..any help in getting the ports up to speed and running as 2.0 would be greatly appreciated08:02
wmphello, i have problem with 12.04 and repositores09:25
wmpi want to install php5.4 from ppa and i have error:09:26
wmpDepends: libonig2 (>= 5.2.0) which is a virtual package.09:26
wmp            Depends: libqdbm14 (>= 1.8.74) which is a virtual package.09:26
wmpwhere i can found this package?09:26
sw!info libqdbm14 | wmp10:34
ubottuwmp: libqdbm14 (source: qdbm): QDBM Database Libraries [runtime]. In component universe, is optional. Version 1.8.77-4build1 (oneiric), package size 142 kB, installed size 384 kB10:34
=== bitmonk_ is now known as bitmonk
=== Talant__ is now known as Talant
=== Lcawte|Away is now known as Lcawte
* koolhead11 thinks everyone is having Easter Fun time12:28
tashIs it easy to mount external storage locally to use as your, say, mysql data drive?  I am not sure if fdisk -l will show external storage14:01
=== Kiall_ is now known as Kiall
rurufufussgreetings, is there a command line gui (like that of aptitude) for updating alternatives?14:14
rurufufuss(e.g trying to set valgrind to point to the newer version)14:14
=== greppy is now known as kc9uls
=== kc9uls is now known as greppy
=== greppy is now known as technomage
=== technomage is now known as greppy
uvirtbotNew bug: #977270 in samba (main) "package samba-common 2:3.5.8~dfsg-1ubuntu2.3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 10" [Undecided,New] https://launchpad.net/bugs/97727015:01
wmpsw: thx15:30
aeolhey, does anyone here work for Canonical?15:45
aeolI have been trying to convince my boss (who knows nothing about linux) that we should use Ubuntu in prod instead of Redhat and it seems no one at Canonical can be bothered to respond to my request to purchase their enterprise services15:49
rocketsIs there a way to apt-get install security updates only15:54
rocketsaeol, I've contacted canonical sales several times and always gotten an immediate reply sir.15:55
Picirockets: I don't think I understand your question, apt-get should always pull the highest version package available.15:56
aeol@rockets how did you contact them? there is no phone number, only a web page to submit a contact request15:57
romulobrcan you help me to set up an email server to send emails only, i followed the tutorial on ubuntu guide, and things seems to be working, but my client can't send emails.15:57
* koolhead11 digs url to pass aeol 15:59
koolhead11aeol, https://forms.canonical.com/sales/  this might help16:00
rocketsPici, I only want to install security updates not general bugfixes or new versions16:00
rocketse.g. i only want to install things from hardy-security16:01
Picirockets: Then comment out the updates and backports lines in /etc/apt/sources.list16:01
rocketsPici, how is it that unattended updates can install only security updatse16:02
rocketsbut theres no way to do that manually from apt16:02
hallynrbasak: hey, did you get around to running the lxc testsuite on arm 2 weeks ago?16:14
hallynif not, could you, this week? :)16:15
hggdhjamespage: do you perform remote Jenkins job submission in the server lab? I am finding that if I pass ?token=... I get a 40316:22
hggdhjamespage: if I take '?token=...' out, and go for a basic auth, it works16:22
wbullock8can anyone help me with an issue I'm having regarding and IP Address change and using apt-get update16:32
wbullock8I changed the IP address and now I can't get apt-get update to connect... but I'm able to see everything on the internet16:33
wbullock8the moment I change the IP address back to what it was apt-get update works fine16:33
wbullock8any help would be super awesome!16:34
bluefrogyou change from what to what?16:39
bluefrogand how do you change it, what is your dns server and so on. we need ino16:39
bluefroginfp16:39
kirklandSpamapS: howdy!17:09
kirklandSpamapS: curious, still no apache upstart script, eh?17:09
SpamapSkirkland: I see no reason for there ever to be one.17:09
SpamapSshocking I know17:09
kirklandSpamapS: erm?17:10
SpamapSbut really, apache has a rich init.d script that they maintain perfectly.17:10
kirklandSpamapS: okay17:10
SpamapSand I don't see apache ever being part of the system plumbing17:10
kirklandSpamapS: so, let's say I have a script that I want to run before apache starts17:10
kirklandSpamapS: what's the best way for me to do that?  modify the apache init script itself to call me?17:10
kirklandSpamapS: or put myself just before them in the init.d list?17:11
SpamapSkirkland: start on starting rc RUNLEVEL=[2345] .. will run your script before *all* sysvinit.17:11
kirklandSpamapS: hmm17:11
SpamapSkirkland: (needs to be a 'task' too)17:11
kirklandSpamapS: and I need networking to be up17:12
SpamapSkirkland: its up17:12
kirklandk17:12
SpamapSas of 11.10 anyway17:12
SpamapSbefore that.. you never knew when networking was "up"17:12
SpamapSkirkland: apache is less important now anyway. Seriously, I think its day has passed. nginx will *blow your mind* how much better it is.17:13
kirklandSpamapS: them's strong words17:13
SpamapSyep17:13
SpamapSI haven't tried apache 2.4 yet..17:13
SpamapSbut nginx certainly utterly destroyed 2.2 in every way for omgubuntu.co.uk17:14
kirklandSpamapS: yeah, jcastro was raving about it too17:14
SpamapSThe area where apache will win out is in mods for auth and stuff.. but many of those are making their way into nginx land as well.. so I think its only a matter of time before we see a real shift.17:15
patdk-wkI have 2.4 installed on percise to play with17:16
patdk-wkbut haven't done any performance testing yet17:16
SpamapSkirkland: also I'm not as excited about moving every service into upstart. I think its more important that classes of services be moved there, but stuff like apache that just pops up on a port can happily stay in sysvinit land for as long as it makes sense.17:17
patdk-wkdoesn't that run into dependancy issues?17:18
patdk-wkexpecially if I need to make sure my fastcgi servers are running before apache17:19
SpamapSpatdk-wk: why do you need to make sure your fastcgi servers are running before apache?17:21
SpamapSwhat if they are on another host?17:21
SpamapSIts a false hope to try and get all daemons started in the right order in a modern system.17:21
patdk-wkif they are on another host, apache will retry the connection17:21
SpamapSRight17:22
patdk-wkif you use a socket file, I think it just errors17:22
SpamapSand if they are local, it will retry as well. :)17:22
patdk-wkor maybe that was fixed17:22
SpamapSpatdk-wk: right, fixed.. because thats a bug if it doesn't. :)17:22
rocketsWhat is the official way to change the hostname of an ubuntu 10.04 server permanently? I'm seeing so much conflicting advice. I'm seeing edit /etc/hosts, create an /etc/hostname, just use the hostname command (doesn't do it). I'm not sure which I should do.17:22
SpamapSpatdk-wk: either way, whats more important is that network clients be generous about retries and degrade themselves/report errors properly.. not that daemons are all started in the right order.17:23
patdk-wkrockets, lots of changes to do that :)17:23
SpamapSOrdering is nearly impossible in a truly distributed system.17:23
rocketspatdk-lap, What is the "proper" way :P17:23
patdk-wkpersonally? grep -R oldname /etc/17:23
patdk-wkand change every file you locate :)17:24
patdk-wkit's in 5 places I can think of, in a normal plain install17:24
rocketslol17:25
SpamapSrockets: the modern way is to have DHCP handing out hostnames, and change it on the DHCP server. :)17:25
rocketsin other words, it's unmanageable :D17:25
rocketsSpamapS, yeah well, we don't have dhcp on virtual slices on linode17:25
SpamapShow do they do that? do they inject /etc/network/interfaces for you or something?17:26
SpamapSI'm genuinely curious.17:26
rocketsmm17:26
patdk-wkwell, for most things, just /etc/hosts, /etc/hostname will do it17:26
rocketsill pastie my interfaces file for you if you're interested17:26
patdk-wkbut then you have other configs, like mail server, xmpp server, webserver, ...17:26
rocketspatdk-lap, yeah but nothing is configured yet17:26
rocketsits a new host17:26
patdk-wkwell, then you should only have to touch those two files then17:26
patdk-wkthen reboot it17:27
rocketsi just dont want the randomly generated string for a hostname i have17:27
SpamapSrockets: no thats ok, I'm just wondering how virtual providers can do it any other way.17:27
rocketsSpamapS, actually my /etc/network/interfaces contains NOTHING other than loopback17:27
rocketsmaybe they do have some sort of internal dhcp17:27
SpamapSrockets: wow.. eth0 isn't even listed?17:27
rocketsSpamapS, nope17:27
rocketsI have no idea how they do it17:27
rocketsits xen though17:27
SpamapSweird17:27
patdk-wkwhat kernel?17:27
rocketsoh wait17:28
SpamapSperhaps they jiggered their own startup scripts in17:28
rocketsim looking at the wrong server17:28
rocketslulz17:28
rocketshold on17:28
rocketsyeah it looks like it is dhcp, "auto eth0"17:28
rocketsiface eth0 inet dhcp17:28
* SpamapS really hopes virtual host providers fall in line and start using the official Ubuntu cloud images instead of all this weirdness.17:28
rocketsi dont have ctonrol over the dhcp though17:28
SpamapSrockets: gotchya17:28
rocketsSpamapS, well, this is 10.04 when they had to make their own modified kernel to make it work17:28
rocketsbecause it wasnt xenified or something17:29
SpamapSrockets: we have 10.04 EC2 images.. EC2 == xen.. so... ?17:29
rocketsor maybe that was for kvm17:29
patdk-wkya, I use the ec2 kernel on xen17:29
rocketsthis is what slicehost told me, but im using linode now17:29
SpamapSmeh, well anyway.. no worries. So with dhcp You may have to tell it to not overwrite your hostname17:29
rocketsSpamapS, nah, /etc/hostname works17:29
SpamapSrockets: hopefully that sticks. :)17:30
rocketsSpamapS, I just tested it.17:30
rocketswell i suppose my lease hasn't been renewed17:30
rocketswe'll see hehe17:30
SpamapSrockets: reboot would test it17:30
rocketsSpamapS, i've rebooted several times17:30
patdk-wkif it doesn't, go edit /etc/dhcp3/dhclient.conf17:31
SpamapSrockets: alright, could you please go delete all the confusing docs you read from the intarwebs kthxbai17:36
rocketslol17:37
uvirtbotNew bug: #977376 in lxc (universe) "lxc ubuntu-cloud template does not properly handle userdata" [High,Confirmed] https://launchpad.net/bugs/97737617:46
thesheff17I currently use apt-mirror and manage my own mirror.  I wonder if it is was possible to create a date based mirror where I could just do http://ubuntuMirror/ubuntu/20120904/ and it would only contain those files from that date off the mirror...so basically a rolling snapshot of a mirror.17:49
adam_gwin 1017:49
hallynutlemming: haven't checked your patch yet, but if you haven't yet, could you roll in the minor change that stgraber has staged at ubuntu:lxc ?18:03
hallyn(lunch, biab)18:05
zuladam_g: im thinking we should do some more database smarts in the packaging18:17
adam_gzul: like?18:20
zuladam_g: backup a copy of the database if the schema changes18:20
adam_gzul: how does that happen for a populated databse with millions of rows?18:21
adam_gor for an external database18:21
zuladam_g: i dont know yet18:21
adam_gzul: i dont see that happening for 12.04, tbh18:21
zuladam_g: well yes not for 12.0418:22
uvirtbotNew bug: #977313 in openssh (main) "Too many logins - sessions not cleared" [Undecided,New] https://launchpad.net/bugs/97731318:22
zuladam_g: its just a gleam in my eye right now18:23
thesheff17I would love a way to use source.list with a date of a snapshot of mirror.  I wrote a program that symlinks all of the mirror to a folder in apache but I'm sure certain text files change...it prob should also have db behind it.18:24
SpamapSzul: smarts in packaging == fail usually. ;)18:27
SpamapSzul: that sounds like something openstack should support.18:27
zulSpamapS: *cough* bacula18:27
SpamapSas in, if its going to do a schema change, it should have a '--backup' option that does the backup, we shouldn't do it all in the preinst or something.18:28
SpamapSthat stuff always comes back in floods of apport bugs :-P18:28
RoyKsomething tells me this value is a bit above "normal"   7 Seek_Error_Rate         0x000f   045   045   030    Pre-fail  Always       -       1128297246805918:44
SpamapSRoyK: thats a bit above normal, if the saucer section of the Enterprise is only considered "a bit" of the whole ship.18:45
RoyKsomething in the terms of "To say that Richard Mayhew was not very good at heights would be ... It would be like describing the planet Jupiter as bigger than a duck."18:47
RoyKdrive still works, though18:47
RoyKbut I would guess replacing it soon, as in tomorrow, might be a good idea ;)18:48
railsraiderhi guys, my HAproxy went down completely unresponsive and i had to hard boot it, i am trying to figure out why19:18
railsraideri have fail2ban, arno-iptables, and chkrootkit installed19:18
railsraiderall i can see from the logs is that eth0 went promiscuous and i think that accepted all traffic19:19
sebokiehello19:20
sebokieI have a ubuntu server with nfs running with only 127.0.0.1 allowed for my share19:21
sebokiethen I create a ssh tunnel between the client and the server as described here: http://nfs.sourceforge.net/nfs-howto/ar01s06.html19:21
sebokiehowever I am not able to mount the nfs share, and I don't get any error message19:22
sebokieis it supposed to be logged by the server when someone attempts to mount a nfs share?19:23
hallynjdstrand: http://paste.ubuntu.com/922334/  I assume given the comments in the code, I'm on my own with this failure?19:25
rocketsHere's a silly question: is there a way to make all subdirectories of a directory inherit the parent's permissions when created? I tried sgid, no dice.19:28
jdstrandhallyn: yeah-- why qemu isn't output anything from 'info block' seems like a regression19:36
hallynjdstrand: it does output for info block19:36
jdstrandhallyn: I'm confused19:36
hallynI assumed the 'kill monitor; run nc by hand' bit was just not working19:37
hallynjdstrand: if i just run qemu by hand and say 'info block', i get results19:37
jdstrandhallyn: but that isn't what the script is doing. it is launching it via livirt, then trying to connect to libvirt's monitor file19:39
hallynjdstrand: i see, i was thinking it failed getting any output at all.  but still, if i do 'info block' by hand, it works.19:40
jdstrandhallyn: in fact, based on the weird formatting of the error output, it looks like 'nc -U <libvirt monitor file>' failed19:40
hallynon the bright side, it's the last failing case i think \o/19:40
hallyn<frown>19:41
jdstrandhallyn: there is a timeout there-- I know I can't run test-qemu.py on a heavily loaded system. maybe the your system was under high load?19:41
hallynjdstrand: hm, ok, i'll try again then, thanks.19:41
jdstrand(as in, maybe you are seeing with list-libvirt.py the types of things I would see with test-qemu.py)19:42
rocketsAn especially dumb question - I can't seem to find a regular git client package in the lucid repos. Is it not there? I see a lot of things that refer to git but no actual git19:47
rocketsah, git-core19:47
=== alaing is now known as funkymonk
uvirtbotNew bug: #977498 in tomcat6 (main) "tomcat6-instance-create fails on paths with spaces" [Undecided,New] https://launchpad.net/bugs/97749820:06
=== Myrtti_ is now known as Myrtti
gary_posterzul or adam_g, I've got an openstack question if one of you have a moment.  For Canonistack, I want the publicDnsName and privateDnsName to have a *.canonistack domain suffix rather than a *.novalocal domain suffix.  That way, with a bit more configuration on chinstrap, devs can set up a .ssh/config stanza that makes everything just work (particularly nice for juju).  AFAICT, that's controlled on the Openstack side20:27
gary_posterby nova.network.linux_net's dhcp_domain value, so I asked IS to make that change, along with the resolution bits on chinstrap.  They've done so, and I've tested, and things are not quite working as I hoped yet.  The change does make the vm correctly report its hostname as, for instance, server-8275.canonistack, but publicDnsName and privateDnsName now have no suffix at all, for instance reported as simply "server-8220:27
gary_poster75" by euca-describe-instances.  Is there another openstack setting we can make to get those values to report the *.canonistack names, or is this an openstack bug, or can you suggest some other path to try to find out the answer?20:27
gary_postereh, that was a novel, sorry20:27
smoserSpamapS, bug 82069920:38
uvirtbotLaunchpad bug 820699 in tgt "tgt will be stopped but not restarted on transition from runlevel 1 to 2" [Medium,Confirmed] https://launchpad.net/bugs/82069920:38
smoseri was about to open "tgt does not start on installation"20:38
smoseris that a dupe of this bug ?20:38
hggdhjcastro: there?20:42
jcastroyo20:43
=== bemu_ is now known as bemu
hggdhjcastro: OK. I already fscked my maas install -- forgot the useruser password...20:43
hggdhjcastro: anyway of recovering apart from full uninstall & reinstall?20:43
jcastrono clue, I've only done rudimentary set up with it20:44
hggdhheh20:44
* hggdh goes for the reinstall20:44
jcastrowait!20:44
jcastrowe should figure that out20:44
* hggdh waits20:44
=== Arc__ is now known as a5m0
hggdhjcastro: another thing -- I installed maas-dhcp, and nothing changed in the dnsmasq config20:45
hggdhat least visibly20:45
jcastrohggdh: no clue that one either, but here's the first one: http://askubuntu.com/questions/120436/how-do-i-reset-my-maas-username-password20:46
jcastromatsubara: any idea? ^^20:46
hggdhjcastro: will follow the Q, thanks20:47
jcastro"maas changepassword" seems to exist20:47
hggdhjcastro: and... it works! -- it does change the password without requiring to enter a current one20:48
matsubarahggdh, jcastro: you can flush the db and create a new password20:48
hggdh(pretty much like sudo passwd xyz)20:49
matsubarawell, I guess that's even easier :-)20:49
jcastroah but how do you list users?20:49
jcastrowithout dumping the whole db I think?20:49
hggdhyeah, adding an answer to askubuntu now20:51
hggdhjust a sec20:51
* jcastro nods20:51
matsubarajcastro, not very easy but you can do something like this: http://pastebin.ubuntu.com/922456/20:52
jcastrohggdh: ^^ good enough for an answer for now, heh20:53
hggdhmatsubara: better than 'sudo dumpdata |grep username'20:53
hggdhwich is what I used20:53
hggdhjcastro: I will edit the answer to add super-matsubara's way of finding an user20:54
Davieyhola20:54
DavieyHow is everyone?20:54
guntbertDaviey: welcome - do have a support question?20:57
guntbert*do you have ...20:57
Davieyguntbert: I hadn't, no.. do you?20:58
smoserutlemming, any ideas here: http://paste.ubuntu.com/922462/20:58
smoserthat is from a us-east-1 instance20:59
smoserfreaking slow20:59
guntbertDaviey: no, are you aware that this channel is not intended for chatter? If yes - my apologies20:59
zullol20:59
hggdhDaviey: you got no support question??20:59
jcastrohe should be kicked out!21:00
hggdhLOL21:00
utlemmingsmoser: cloud-front?21:00
zulDaviey: you are the weakest link good bye21:00
* sw hands Daviey the AK4721:00
Davieyguntbert: Are you sure this channel isn't for chatter?21:01
smoserutlemming, just a download from cloud-images.ubutnuc.om21:02
* guntbert tries hard to get his foot out of his big mouth :-)21:02
utlemmingsmoser: I'm checking from eu-west-1 right now21:02
hggdhoooohhh Daviey gains superpowers, and kills self21:03
utlemmingsmoser: I get pretty decent internet (15Mb/s) and I pull the images this morning at around 200k, so I am wondering if its crossing that small puddle in between New York and the UK21:04
smoserwell, normally i think its better than that.21:05
smoseri'mi using lftp and pget now21:06
guntbertDaviey: to answer your last question: according to the /topic I should be sure - listening to some of the regulars here I get doubts :)21:06
patdk-wkutlemming, the speed is kind of iffy21:06
patdk-wksome days I can get 2-8MB/sec, others I'm happy to even get 100k21:06
utlemmingsmoser: 7.0MB/s in Eeu-west-121:06
smoserutlemming, well...21:07
smoseri have strong suspicion that you can't really trust that.21:07
smoserthat things get cached.21:07
smoserie, if you had run that 2 times, magically the second would be faster.21:07
utlemmingSo we need a European to test my theory21:09
* patdk-wk builds one21:10
Davieyutlemming: I am a European !21:11
hggdhno, you are English...21:11
patdk-wkswallow?21:11
utlemmingDaviey: Can you do "wget http://cloud-images.ubuntu.com/server/precise/20120409/precise-server-cloudimg-amd64.tar.gz -O /dev/null" and report the time that it took?21:12
Davieyutlemming: European datacentre or homeish adsl?21:12
utlemmingDaviey: which ever one is less-likely to implement caching and if the DC isn't Canonical or Amazon, that might be the best benchmark21:13
Davieyutlemming: Non-Canonial or Amazon, Downloaded: 2 files, 211M in 19s (11.1 MB/s)21:14
patdk-wkthat all?21:15
patdk-wk2012-04-09 17:15:09 (11.8 MB/s) ashburn,va21:15
patdk-wk2012-04-09 17:16:43 (6.04 MB/s) comcast (maryland) home21:17
utlemmingsmoser: my home slowness is due to a 62% packet loss thanks to L321:18
RoyKL3?21:22
swDaviey: utilised /kick over my AK47! :<21:22
hallynjdstrand: ok, it's simpler than i thought21:23
hallynjdstrand: the _stop_daemon() just does killall -9 libvirt-bin21:23
hallynupstart respawns it :)21:23
hallynhm, no21:23
hallynok, i need to figure out why it's not going away,b ut second part was,21:24
hallynthe monitor isnow json21:24
hallynso 'info block' will give back errors regardless21:24
jdstrandoh, that would do it :\21:25
jdstrandannoying21:25
hallynyes21:28
hallynjdstrand, but wait... courtesy of our dberrange,21:30
hallynvirsh qemu-monitor-command --hmp qatest-i386  'info block'21:30
SpamapSsmoser: back from long lunch.. looking now21:30
jdstrandhallyn: oh, easy enough-- then on release >= 12.04 pass '--hmp'21:31
hallynyup :)21:32
RoyKjdstrand: I first read --hmp as something like --hrmpff!21:57
jdstrandRoyK: hehe22:08
ideamanAnyone: I'm scripting an install in Ubuntu, and having some issues matching a string with sed. Any takers?22:22
SpamapSideaman: just ask, and hang out for a while. Some people read backscroll :)22:24
ideamank22:24
SpamapSideaman: also askubuntu.com and serverfault.com are good places as well22:24
ideamancool thanks22:24
Patrickdkthe question, we will never know22:25
ideamanI'm trying to replace lines 7 and 11 with new text via sed, so I have sed -i 's/old text/new text/7' but anything I try never works...22:26
ideamanthe best I can get is a global replace /g, which I don't want22:26
Patrickdkseems odd way to do it22:27
ideamanI'm up for any suggestions22:27
Patrickdk'7 c \New line here'22:28
ideamanPatrickdk: thanks a million, that's so much easier22:32
smoserSpamapS, tgt ?22:32
SpamapSsmoser: still reading22:32
smoserk22:32
locusehi.  i'm putting my 1st ubuntu-servers into production.  i'd like to configure critical-power event recovery (effectively, yank the power cord in mid operation ...) so that after power recovery, the server automatically powers up, trying a maximum of "5" times if unsuccessful.  BIOS is involved, i'd guess, but what are the appropriate pieces on a headless Ubuntu server?22:38
Patrickdklocuse, you would need a bios to do that22:43
Patrickdkwell really probably a bmc22:44
Patrickdkand the ones I have only let you do it 3 times, not less, and not more22:44
Patrickdkand it requires some kind of os watchdog program22:44
Patrickdkand the amount of time that os watchdog program checks in, is fixed22:44
PatrickdkI normally turned those things off, cause the bios couldn't boot fast enough, before it would timeout, let along the os starting up22:44
locusePatrickdk: "bmc"?22:45
Patrickdkyep22:45
locuseacronymitis .... ah, that's Baseboard Management Controller (BMC)22:46
locusehm.  one'd think this'd be a bit more straighforward .22:47
SpamapSsmoser: I have not forgotten you on tgt..22:51
SpamapSsmoser: that upstart job is *really* really wrong.22:57
SpamapSsmoser: that said, the reason tgt is not started on install is that the postinst does not start it22:58
SpamapSsmoser: dh_installinit --no-start -u"start 89 2 3 4 5 . stop 11 1 ."22:58
SpamapSsmoser: which is intentional22:59
SpamapSsmoser: remove the args to dh_installinit and that will be fixed23:00
SpamapSsmoser: also the stop on is wrong.23:00
SpamapSas is the start on actually23:00
miceiken_How do I make my ubuntu server obtain the correct time and date?23:09
SpamapSmiceiken_: install the 'ntp' package23:10
SpamapSmiceiken_: note that ntp will refuse to change the time/date by a large amount (it will just keep the time accurate), so you  may *also* want to install 'ntpdate' and force it in while ntp is not running.23:11
miceiken_i just did an "ntpdate ntp.ubuntu.com"23:11
miceiken_what about timezones though, does it figure that out by itself?23:12
SpamapSmiceiken_: you need to set your timezone during install, but yes, NTP always communicates with NTP servers in UTC23:23
smoserSpamapS, so how bad is it that that doesn't start ?23:25
smoserand how, if you dpeend on it, should you start it ?23:25
SpamapSsmoser: it affects all users, but has a workaround (manually start it) so I'd call it Medium.23:26
smoserwell, as you said, its by design.23:26
SpamapSsmoser: for something that Depends: tgt .. they can workaround by making sure it is started. But I'd think at that point.. just make it start.23:26
SpamapSits not so much by design..23:26
SpamapSas by the way its always been23:26
SpamapSpolicy suggests that if there is a sane default configuration, a daemon should be started on installation23:27
SpamapSnot knowing tgt, I can't answer whether that if is true or not23:27
miceiken_wow how do I not know this23:29
miceiken_how do I output the time23:29
miceiken_from the server23:29
RoyKdate23:29
miceiken_great, thanks RoyK23:30
miceiken_and thank you SpamapS, my time is all syncronized now :)23:30
RoyKdate +%H:%M23:30
RoyKfor instance23:30
smoserSpamapS, the daemon will start, will listen on a standard port, and have no targets if queried.23:32
smoserso, for my limited knowledge, that is a sane default23:32
SpamapSsmoser: agreed. Thats probably a bug worth fixing in precise.. whether we do it b4 release or not.. I dunno ;)23:48
smoserwell, personally, id say if its not fixed before release, then its not fixed in precise.23:52
smoserbug 97762123:52
uvirtbotLaunchpad bug 977621 in tgt "tgt does not start after installation" [Undecided,New] https://launchpad.net/bugs/97762123:52
smoserSpamapS, ^23:52

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