UbuntuIRC / 2009 /12 /21 /#ubuntu-server.txt
niansa
Initial commit
4aa5fce
[00:00] <jmarsden> I tend to disagree, but we'll test and find out...
[00:00] <JanC> jmarsden: does it add a virtualhost automaticly, or what?
[00:00] <JanC> (I hope not)
[00:01] <JanC> or at least not enable it
[00:01] <jmarsden> The default virtualhost exists "automatically". phpmyadmin adds a glibal Alias for /phpmyadmin and some config info for the directory where it puts its files, including an AddType.
[00:02] <jmarsden> I'll have a Hardy 8.04.3 server to test in about 2 more minutes... :)
[00:04] <JanC> hm, cherokee uses some sort of "wizards" to configure webapps, that sound like a better approach to me (it's still dead-easy to set up something like phpmyadmin, django, drupal, etc., but nothing is set up by default)
[00:05] <jmarsden> Feel free to create wishlist bugs in LP if you have a workable new approach...
[00:07] <rootlinuxusr> sorry went to grab a sammich
[00:08] <rootlinuxusr> per webmin, i have a default, and a virtual.
[00:09] <jmarsden> Don't use webmin, it is unsupported in Ubuntu.
[00:09] <jmarsden> !webmin
[00:09] <ubottu> webmin is no longer supported in Debian and Ubuntu. It is not compatible with the way that Ubuntu packages handle configuration files, and is likely to cause unexpected issues with your system. See !ebox instead.
[00:09] <rootlinuxusr> usermin? then?
[00:09] <rootlinuxusr> !ebox
[00:09] <ubottu> ebox is a web-based GUI interface for administering a server. It is designed to work with Ubuntu/Debian style configuration management. See https://help.ubuntu.com/community/eBox
[00:12] <jmarsden> Hmmm, I must have used the wrong ISo for my VM installm and got Ubuntu Desktop 8.04.3 instead of server... checking...
[00:12] <rootlinuxusr> could that be the issue, that's it's desktop not server?
[00:13] <jmarsden> No, it shoudn't make a difference to how Apache works.
[00:13] <jmarsden> Although officially you shouldn't be asking for Xubuntu support in #ubuntu-server :)
[00:13] <rootlinuxusr> didnt think so. i know i used a server install disk, but installed xubuntu cause this thing isn't very powerful. true. but i was referred here from #xubuntu >_>
[00:17] <JanC> questions about apache are fine here, doesn't matter much which kernel you use (except for performance under high load and certain hardware support maybe)
[00:21] <jmarsden> rootlinuxusr: OK, I just did a tasksel lamp install, added that phpingo.php file into /var/www/ and browsed to it, and it worked "out of the box".
[00:21] <jmarsden> So somehow your apache has been configured differently to mine, I would suspect... what have you done to it?
[00:21] <rootlinuxusr> okay. so abort, retry, fail i guess. should i completely reinstall or just completely remove everything and try that?
[00:22] <jmarsden> rootlinuxusr: well, that's extreme... what did you change?
[00:23] <rootlinuxusr> i downloaded phpmyadmin, and im assuming the error occured somewhere around here.. http://pastebin.com/d5498c8f0
[00:27] <jmarsden> Um. Why are you manually installing some unusual version of libapache2-mod-php5 ?
[00:27] <rootlinuxusr> because it wasn't found in the apt archives, so i downloaded it from the debian site?
[00:28] <jmarsden> Aargh. so you don't really have a tasksel lamp-server install at all
[00:28] <jmarsden> It might have been good to mention this earlier :)
[00:28] <JanC> actually, that's apache 1.x ?
[00:29] <jmarsden> I just installed things from the 8.04.3 CD and libapache2-mod-php5 most definitely installs just fine (by default as part of the tasksel process)
[00:29] <JanC> "libapache-mod-php5" I mean
[00:30] <jmarsden> JanC: Ah, yes, so it may have done nothing useful... but... in principle, this is now one very non-standard setup for no good reason.
[00:30] <rootlinuxusr> so if libapache-mod-php5 refuses to be downloaded and installed for whatever reason, what should I do? get another disk?
[00:30] <jmarsden> rootlinuxusr: You should apt-get purge all the apache2 related things you installed, then sudo tasksel lamp-server
[00:31] <jmarsden> And it will either find it in the archives, or we will help you debug that issue.
[00:31] <JanC> jmarsden: I'd say all apache & apache2 related packages
[00:31] <jmarsden> What you should not do is guess and grab random stuff from Debian and mix it in and hope!
[00:31] <jmarsden> (and then not tell us you did that!)
[00:32] <rootlinuxusr> well i thought that when i removed all the files from the website that suggests installing tasksel, that would have been removed; or for that matter Im not even entirely sure that it installed in the first place - so i ran the tasksel install method.
[00:32] <rootlinuxusr> !lamp
[00:32] <ubottu> LAMP is an acronym for Linux-Apache-MySQL-PHP. However, the term is often used for setups using alternative but different software, such as Perl or Python instead of PHP, and Postgres instead of MySQL. For help with setting up LAMP on Ubuntu, see https://help.ubuntu.com/community/ApacheMySQLPHP - See also the Server CD installation process (different in Edgy+)
[00:33] <jmarsden> rootlinuxusr: The last command in your pastebin is most definitely not sudo tasksel install lamp-server
[00:33] <jmarsden> So undo all the weord stuff and do that, and we'll take from there.
[00:33] <jmarsden> *wierd
[00:34] <rootlinuxusr> well that wasnt the last from history either, but that was the last related to installing anything related to lamp
[00:34] <rootlinuxusr> per https://help.ubuntu.com/community/ApacheMySQLPHP should i remove all of these? will that take care of things - https://help.ubuntu.com/community/ApacheMySQLPHP
[00:34] <rootlinuxusr> err... apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql
[00:35] <jmarsden> rootlinuxusr: Sounds reasonable, but purge them, not just remove, so their config info goes away too.
[00:36] <uvirtbot> New bug: #498907 in samba (main) "package samba-common 2:3.3.2-1ubuntu3.2 failed to install/upgrade: " [Undecided,New] https://launchpad.net/bugs/498907
[00:36] <rootlinuxusr> http://pastebin.com/d77b75a2a that's the result. is that deb package gone/is my install clean now?
[00:38] <jmarsden> Mostly... there is still a /etc/php5/apache2 directory apparently? Can you manually get rid of that?
[00:38] <jmarsden> Actually all of /etc/php5/ can go
[00:39] <rootlinuxusr> gone.
[00:39] <jmarsden> OK. Now do sudo tasksel install lamp-server # and if you get any errors from it, pastebin them.
[00:40] <rootlinuxusr> asked for pw, and had me retype - normal so far.
[00:40] <jmarsden> Good.
[00:40] <rootlinuxusr> exited with no prompt - back to terminal's prompt
[00:41] <rootlinuxusr> running the echo command from earlier to test.
[00:41] <rootlinuxusr> localhost/phpinfo.php still tries to download.
[00:41] <jmarsden> How are you testing this? From the server using w3m or lynx or what?
[00:42] <rootlinuxusr> firefox.
[00:43] <jmarsden> (I forgot you have a GUI on the "server" :) Something is odd... cached result, I am guessing...
[00:43] <rootlinuxusr> try rebooting and see if that helps?
[00:43] <jmarsden> Stop apache2 and then run sudo htcacheclean -rv
[00:44] <JanC> what do the apache logs say?
[00:45] <rootlinuxusr> when i tried htcach...(copied and pasted) it brings up the man page for it.
[00:45] <jmarsden> JanC: I have a feeling this is mod_disk_cache doing more caching than we want...
[00:46] <jmarsden> rootlinuxusr: My fault, it needs the path to the cache... let me find it...
[00:46] <JanC> why would that module be loaded anyway? ;)
[00:47] <JanC> (or used)
[00:47] <jmarsden> JanC: I don't know, but I fixed this issue for someone before and I think (memory returning as we go here) it related to this.
[00:48] <jmarsden> sudo htcacheclean -rv -p /var/cache/apache2/mod_disk_cache
[00:48] <rootlinuxusr> same thing
[00:49] <rootlinuxusr> http://pastebin.com/m45c286
[00:49] <JanC> maybe remove the space between -p and the URL?
[00:50] <JanC> er, -p and teh path
[00:50] <rootlinuxusr> same
[00:51] <jmarsden> sudo htcacheclean -rv -p /var/cache/apache2/mod_disk_cache -l1
[00:52] <jmarsden> (It requires the -l option apparently)
[00:52] <rootlinuxusr> okay now that did something
[00:52] <jmarsden> OK, now start apache and retest
[00:52] <rootlinuxusr> stats size limit, total size, and total entries were all 0
[00:53] <rootlinuxusr> ^_^ sweet.
[00:53] <uvirtbot> rootlinuxusr: Error: "_^" is not a valid command.
[00:53] <rootlinuxusr> parses fine, thanks. iunno what the issue was apart from my errant ideas as to downloading stuff.
[00:53] <jmarsden> OK, we got it :)
[00:57] <JanC> jmarsden: that sounds like a bug somewhere?
[00:57] <jmarsden> JanC: Yes, and that's the second or third time I've helped someone with that now (this time I'm writing down what it was, for future reference!)...
[00:58] <jmarsden> But I don't know how to trigger the bug (over aggressive use of mod_disk_cache)...
[00:59] <jmarsden> It seems to happen if you do a "confused" apache2/php5 install the first time around, such that even fixing it later using apt-get purge won't clear the problem until you reset that cache.
[00:59] <JanC> why is it used in the first place?
[01:00] <jmarsden> Well, presumably it has performance benefits, why else use caching? But I'm not really sure, it just "is", in Debian/Ubuntu apache2 installations, as far as I know.
[01:02] <JanC> dynamic content should never be cached by default
[01:03] <jmarsden> JanC: But the bad install meant it looked like static content (download the file not run it)... that's the whole problem :)
[01:04] <twb> Presumably over-caching is caused by your applicatin using incorrect HTTP fields, e.g. ETag and Pragma-Cache
[01:04] <JanC> twb: I doubt phpmyadmin has such obvious bugs after all those years?
[01:04] <jmarsden> twb: Well, if it is affecting just a one line .php file, that seems unlikely...
[01:04] <twb> JanC: I don't trust anything that has "php" or "my" in its name :-)
[01:05] <rootlinuxusr> @twb is there something else i should be using?
[01:05] <JanC> twb: I'm not a fan of "php" either, but still, I remember patching phpmyadmin in 2000, so it's been around long enough to get the obvious bugs fixed ;)
[01:05] <twb> Shrug.
[01:06] <twb> rootlinuxusr: I encourage administration of databases via the CLI, just like the rest of the system.
[01:07] <twb> On that basis that 1) sooner or later, you're gonna need to know how to do recovery via a CLI; and 2) exposing ssh alone is better than exposing ssh AND some web-based tool.
[01:07] <twb> OTOH, IANADBA.
[01:08] <jongbergs> hi, im on the process to configure a bind server..need some site that offers a step by step howto..thanks
[01:08] <rootlinuxusr> ianadba?
[01:09] <twb> I am not a DBA
[01:10] <JanC> twb: for 2) the alternative is to port-forward the database to your desktop through an ssh tunnel & run whatever fancy GUI tools you want ;)
[01:10] <twb> JanC: true
[01:10] <twb> And I'd prefer THAT over phpmyadmin, too.
[01:11] <twb> ssh -fX db.debian.org oobase or whatever
[01:11] <twb> Oh, sorry, like you say - mysql probably listens on ports as well as sockets by default
[01:12] <JanC> yeah, I just forward the mysqld port if I want to do that (no X on my server)
[01:12] <jmarsden> jongbergs: First, read the Ubuntu Server Guide, as the /topic here says... https://help.ubuntu.com/9.10/serverguide/C/dns.html has basic info on DNS setup.
[01:16] <centaur5> I know there is another open source project besides unattended that will manage network installs of windows from Linux. Could anybody tell me the name of it?
[01:21] <rootlinuxusr> well i totally would prefer to go CLI but im no programmer...and im just doing this to create a db with tables relating to my cards - with a hidden form to add/remove; and a form for viewing what i have so that when im at the card shop i know that i have/dont have the card...etc...or is there a OS project that already does this?
[01:22] <twb> rootlinuxusr: for CCGs?
[01:22] <rootlinuxusr> baseball preferably xD
[01:22] <twb> Dunno
[01:22] <JanC> you don't need to be a programmer to use the CLI
[01:23] <rootlinuxusr> true. But its a different mindset than I can get a handle around - the for dummies book stumps me... >_>
[01:23] <JanC> back when I started using computers all users had to use the CLI as for most of us there was nothing else (well, when I sterted to use DOS, Windows 2.x existed, but there were no applications for it, and & mac was way too expensive ;) )
[01:24] <twb> There are a bunch of generic asset-tracking utilities, but I can't easily find one geared towards card collections
[01:24] <jmarsden> JanC: Back when I started using computers they used punched cards and paper tape :)
[01:24] <JanC> rootlinuxusr: as you have a GUI, why not use GUI tools anyway? ;)
[01:25] <JanC> jmarsden: just don't drop those punched cards before numbering them ;)
[01:25] <rootlinuxusr> well i have one team all converted to OO.O base, but I'd love to either convert that to mysql; or retype it into mysql for the speed.
[01:25] <JanC> OOo Base can use MySQL
[01:26] <rootlinuxusr> sure can, but with an already existing dbase? and how could i convert that web-based so i can view without having to pull out ssh on my phone - G1 rooted.
[01:28] <JanC> it should be possible to use the same database for all that, but if you don't really want to keep OOo Base around, then just creating a web-based interface might be easier
[01:28] <rootlinuxusr> i sense a great deal of googlin' ahead.
[01:28] <JanC> ☺
[01:28] <twb> JanC: you draw a diagonal line across the top
[01:30] <JanC> twb: ah, should work too indeed (a former teacher of me told me he dropped hours work of punched cards as a student once, which is what I was referrring too)
[01:31] <JanC> not sure if afterwards he numbered them or used a diagonal line or whatever
[01:32] <JanC> I heard that story 15 years ago, so don't remember all details
[01:40] <twb> JanC: everyone drops cards sooner or later
[01:40] <twb> A diagonal line is like journalling only your metadata -- it's not good enough, but it's fast and it's better than nothing :-)
[02:13] <jongbergs> jmarsden: if i use ns1.example.com, should i change my dns server hostname to ns1?
[02:14] <twb> Noooo
[02:14] <twb> ns is a role, so you make a CNAME to the machine's real name.
[02:14] * twb waves around RFC1178-on-a-stick
[02:15] <twb> (Also, renaming a host while it's in production can be a major pain in the arse, especially if it's running FDS and Domino.)
[02:18] <jongbergs> twb: i followed the steps in https://help.ubuntu.com/8.10/serverguide/C/dns.html, but when i run named-checkzone example.com /etc/bind/zones/example.com.db, i got this message zone example.com/IN: NS 'ns1.example.com' has no address records (A or AAAA)
[02:19] <twb> jongbergs: that's saying that ns1.example.com doesn't resolve.
[02:19] <jongbergs> twb: what could be wrong?
[02:19] <twb> Personally I don't use bind as a caching DNS proxy -- I prefer the simplicity of dnsmasq.
[02:21] <jongbergs> twb: i wanted to do some testing to host our school's domain name
[02:22] <twb> jongbergs: oh, you want to host records for your own domain?
[02:23] <twb> BTW, I notice you linked to the 8.10 document. You probably want to run the latest LTS (8.04) or the latest non-LTS (9.10).
[02:34] <henriquev> I've set up a Ubuntu instance on Amazon Ec2 and wanted to turn it off. How do I save an image of its current state? I googled and found nothing, but something that isn't useful for me because I don't have this instance in EBS yet
[02:35] <Zelest> How can I delete/remove a guest that's been created using virt-install? .. I've tried virsh -c qemu:///system destroy <guest> .. but all it does is shutting it down more aggressively, it doesn't remove the actual guest system.
[02:41] <Zelest> If anyone else wonders the same thing.. use "undefine" instead of "destroy" ;)
[02:55] <rootlinuxusr> how do i find the host name?
[02:58] <ScottK> Not very patient that one.
[03:03] <X-M4-X> Hello
[03:05] <X-M4-X> is there anything i can put in ufw to block IP's that send LOTS of packets to the server?
[03:10] <bogeyd6> X-M4-X, there is a script out there to do just that but the name escapes me
[03:10] <jtaji> fail2ban, denyhosts?
[03:10] <bogeyd6> it will cut off an IP that surpasses so many packets
[03:10] <jtaji> or not, I don't think those work on just packets
[03:11] <X-M4-X> I blocked the ping of death on port 7. installed denyhosts for brute force attacks upgraded my password with one to 100/100 strength
[03:12] <X-M4-X> if an ip is rapidly sending packets to my server - it will ban the ip - which is the goal
[03:23] <MTecknology> Dec 20 20:26:44 emplar kernel: [ 342.020945] eth0: increased tx threshold, txcfg 0xd0f01010. <-- Does this line mean anything to you guys?
[03:25] <MTecknology> or is it pretty insignificant?
[03:26] <sub> it looks informational. i wouldn't worry about it unless you're noticing problems with network performance
[03:26] <MTecknology> ok, thanks
[03:27] <twb> bogeyd6: -m recent!
[03:27] <bogeyd6> ???????????/
[03:27] <bogeyd6> ///
[03:27] <twb> bogeyd6: instead of fail2ban
[03:27] <bogeyd6> kk
[03:31] <X-M4-X> aww
[03:31] <twb> http://www.debian-administration.org/articles/187
[03:31] <X-M4-X> something i did blocked connections to the server
[03:32] <twb> -j TARPIT or -j CHAOS are good, too
[03:33] <twb> But if you just want to block hosts that send lots of packets, -m limit is sufficient.
[03:35] <twb> Oops, make that hashlimit.
[03:39] <X-M4-X> looks like im gonna be reinstalling ubuntu server!
[03:39] <twb> Hooray!
[03:40] <X-M4-X> Oh thank you lord in heavan
[03:44] <X-M4-X> OMFG I FEEL RETARDED!
[03:46] <bgoldsmith> newbie question regarding grub2 on karmic server RAID 1 array: if /dev/sdb fails, the system boots with the array in degraded mode. Even if grub-install is used to install grub to /dev/sdb, in case of /dev/sda failure, grub cannot bring up the array as it cant seem to find the root, so ... I found what I need to do on http://riseuplabs.org/grimoire/storage/software-raid/ ... however that is for legacy grub.
[03:47] <bgoldsmith> could someone please point me to the correct steps to follow for installing grub2 to /dev/sdb so that even if /dev/sda fails, the system still boots up
[03:52] <bgoldsmith> installing grub to /dev/md0 does not work
[03:52] <bgoldsmith> anyone here with RAID 1 + grub 2 experience on karmic server ?
[03:56] <twb> bgoldsmith: I last tested that configuration on Lenny, where it completely failed
[03:56] <twb> #grub told me it was All Much Better NowTM
[03:57] <twb> I've had more success with extlinux, though.
[03:58] <bgoldsmith> ouch ... I have to deploy a RAID server in an enterprise environment in the next week, and I've recommended that we go with Ubuntu server
[03:58] <ball> bgoldsmith: why did you recommend that?
[03:59] <bgoldsmith> because - people here are familiar with ubuntu
[03:59] <bgoldsmith> desktop
[03:59] <bgoldsmith> and I won't be here as an admin for long (I
[04:00] <bgoldsmith> have the post of 'principal engg')
[04:00] <ScottK> bgoldsmith: One way around this would be to install Jaunty and upgrade to Karmic (if you don't want Hardy), then you'll have legacy grub.
[04:00] <bgoldsmith> hmmm
[04:00] <bgoldsmith> I was thinking of doing that
[04:01] <bgoldsmith> but for lack of time, I was wondering if there was a GRUB2+RAID1 howto somewhere google couldn't reach
[04:01] <twb> Or just manually request legacy grub
[04:01] <twb> bgoldsmith: it should be about the same as grub legacy + raid1
[04:02] <ball> Fair enough. I'm off to bed, anyway.
[04:02] <bgoldsmith> the only thing that I need to be able to do is fool grub into believing that it is installing on (hd0) when it is installing on sdb.
[04:03] <bgoldsmith> can grub legacy deal with the boot partition on LVM + RAID ?
[04:03] <jongbergs> twb: i have successfuly configured bind9 i forgot to edit one of the A name section from ns to ns1
[04:03] <twb> jongbergs: OK
[04:03] <jongbergs> twb: thanks for your help
[04:04] <jongbergs> twb: is there a default log for bind9?
[04:04] <twb> jongbergs: buggered if I know
[04:04] <twb> jongbergs: ask /var/log/
[04:04] <bgoldsmith> making grub believe that it is installing on (hd0) when installing on /dev/sdb can be done with device (hd0) /dev/sdb and root (hd0,0)
[04:04] <qman__> jongbergs, bind logs to /var/log/syslog IIRC
[04:05] <qman__> a grep -R should find it
[04:05] <bgoldsmith> what is the official way of doing that with grub2 ?
[04:05] <X-M4-X> yay i fixed my server issue by doing ufw allow 80
[04:05] <jongbergs> qman__: i mean for bind9 log?
[04:06] <qman__> jongbergs, so do i
[04:07] <jongbergs> twb: seems that no log facility for bind9, i can't find it at /var/log
[04:07] <qman__> it doesn't have its own log by default
[04:07] <jongbergs> twb: any idea?
[04:08] <jongbergs> qman__: i see..i'll try to check the ubuntu doc to find out..thanks
[04:12] <qman__> jongbergs, I'm not sure what sort of logging you're after
[04:12] <qman__> it logs all errors to either /var/log/syslog or /var/log/messages, can't remember which it is
[04:17] <marks256> Say if i had a 16TB server for file storage. A few months from now I use up all 16TB of space, so i buy another server with 16TB of storage, so now i have 2 16tb servers. What system would i need to put in place so i can combine those to servers into a single 32tb storage space? Would it be a Cluster File System? LVM? what?
[04:18] <qman__> marks256, anything like that would have to have been planned ahead of time
[04:18] <qman__> I don't know how specifically to go about it but I know that much
[04:19] <marks256> qman__, well of course. that's what i'm asking for. i need to know what infrastructure should be set in place
[04:21] <baltadt> I set up a server and I can connect by remote desktop viewer but I can't see the windows when they open. Any ideas
[04:22] <qman__> baltadt, you're going to have to be more specific than that, but by the looks of it, you're in the wrong support channel--this channel only supports ubuntu server edition, meaning no GUIs
[04:30] <baltadt> i need help with remote desktop viewer any one here
[04:31] <qman__> baltadt, remote desktop viewer is a GUI application and is not supported here--see #ubuntu instead
[04:34] <bgoldsmith> marks256 - I was thinking about a drbd based SAN
[04:34] <bgoldsmith> http://www.springerlink.com/content/n358433838h81458/
[04:34] <bgoldsmith> on googling
[04:34] <marks256> bgoldsmith, and what is that exaclty?
[04:35] <baltadt> ok sorry
[04:44] <seq> Hi all. I get dumped in my initramfs with an error about not finding my root device (on lvm). I appear to not have any /dev/md* devices (which contain /boot and my lvm pv). Anybody have any ideas on how to fix?
[04:44] <bgoldsmith> marks256: sorry I
[04:44] <bgoldsmith> am kinda occupied right now
[04:45] <bgoldsmith> marks256 could you please google/wikipedia for SAN and DRBD ?
[04:49] <marks256> bgoldsmith, i did. i'm not sure that's what i need?
[04:50] <marks256> would the SAN be used with LVM then?
[04:53] <X-M4-X> whats the best firewall to use?
[04:56] <seq> Alright, so I think I figured it out. It appears the arrays were not in mdadm.conf. Apparently I can use the output from `mdadm --examine --scan`
[04:56] <twb> X-M4-X: netfilter/iptables is the only real choice.
[04:56] <uvirtbot> New bug: #498943 in ntp (main) "ntp-doc not current" [Undecided,New] https://launchpad.net/bugs/498943
[04:57] <X-M4-X> well i dont care what i have to do, my server and clients will have the best security i can offer.
=== nxvl_ is now known as nxvl
[04:58] <X-M4-X>
=== cmdshftn_ is now known as cmdshftn
[05:07] <seq> Adding my arrays to mdadm.conf and update-initramfs fixed it.
[05:40] <cb1147> I have installed Ubuntu 9.10 alongside an existing Windows 7 installation, but I chose not to install Ubuntu's boot loader for various reasons. When I power on my computer, Windows 7 loads, which is how I want it. I want to manually boot the Ubuntu system from the installation disc. Is this possible? Are there options that I can specify in "Boot Options"? Any information would be...
[05:40] <cb1147> ...greatly appreciated.
[05:42] <twb> You should've asked to install grub in the MBR
[05:42] <twb> It would then have let you pick either OS, and you would only need to change which was the default
[05:49] <cb1147> I am not the only user of the computer and I did not want the installation messing with the MBR. Is it possible to boot it from the installation disc?
[05:51] <twb> Yes, but it'll involve an awful lot of typing each time
[05:52] <twb> Oh, not from an install DISC.
[05:52] <twb> If you had an install KEY, then probably.
[05:53] <twb> Well, it it was extlinux -- I suppose stock ubuntu install key media use syslinux, which won't be able to get the kernel and ramdisk from an ext /boot any more than isolinux would
[05:54] <cb1147> I mostly installed it just to play around with it. I last used Linux many years ago (around 1999) and I just wanted to see what all the Ubuntu hype is about. I was also planning on introducing it to my girlfriend if it is user-friendly enough.
[05:54] <cb1147> But, like I said, I didn't want it touching my MBR.
[05:54] <ScottK> cb1147: The Ubuntu boot loader will let you select Windows to be your default boot. Doing it the way you are trying too is just way hard.
[05:55] <cb1147> Is it possible to set the timeout low enough for my girlfriend to not notice it, but still be able to select Ubuntu if I desire?
=== jongberg1 is now known as jongbergs
=== cb1147 is now known as cwinebrinner
[06:09] <ScottK> Yes
[06:10] <twb> I usually set mine to three seconds
[06:10] <twb> With extlinux, at least, you can set it to have NO delay, but to open the menu if the Scroll or Caps Lock is on, or if the Shift key is held down.
[06:11] <twb> Kinda like the OF on the new world macs.
=== SultansElephant is now known as Gangsta
=== Gangsta is now known as SultanElefante
[07:00] <MTecknology> I have this in my cron; @daily /usr/bin/sudo -u /usr/sbin/logcheck logcheck; I assume it runs 0 0 * * *; but at midnight; no email
[07:00] <MTecknology> oh....... nevermind /me facepalms
[07:10] <twb> @daily is documented in the crontab manpage
[07:10] <twb> You also got sudo's args backwards
[07:11] <twb> If I were you, I wouldn't give the full path -- instead customize PATH at the top of the crontab if you really must
[07:21] <jmarsden> MTecknology: More to the point, why not just edit /etc/cron.d/logcheck instead of creating new (incorrect) cron entries by hand?
=== mylogic_ is now known as mylogic
[07:32] <MTecknology> jmarsden: I could do that too...
[07:40] <alkisg> Hi, I've setup samba as a PDC with the default tdb as a user backend. I'm able to join the domain and logon using Windows clients, but I can't do it with Ubuntu clients. I've installed and configured (to the best of my ability) winbind, what else do I need? Do I need Kerberos?
[07:47] <twb> logcheck already runs daily, doesn't it?
[07:47] <twb> jmarsden: I assumed he was editing that file already :-)
[07:47] <jmarsden> twb: Hourly plus at reboot, by default ...
[07:47] <twb> Oh, I'm confusing it with logwatch
[07:48] <jmarsden> alkisg: I'm not at expert on that, but take a look at the likewise-open5* packages
[07:48] <twb> And here, for STUPID reasons logcheck is running every ten minutes :-/
[07:48] <alkisg> jmarsden: thank you, /me looks...
[08:13] <twb> How does ufw merge the .rules files?
[08:13] <twb> It can't be just calling iptables-restore on each one in turn...
[08:14] <twb> Oh, maybe it's using iptables-restore --noflush
[09:00] <AlexC_> morning,
[09:01] <AlexC_> regarding DKIM and multiple domains - I have many domains which use the mail server 'mail.example.com', so do I need to get DKIM to sign for 'mail.example.com' or 'client-domain.com'?
=== |eagles0513875| is now known as eagles0513875
[09:06] <twb> AlexC_: presumably you can work that out by attempting to validate a test email that comes out of it?
[09:11] <twb> Bloody hell, do you reckon gufw has enough dependencies?
[09:14] <twb> Through gksu, it manages to pull in udev and devicekit
[09:51] <elliotjhug> Hi, quick question which google doesn't seem to provide a quick answer for. I'm getting an error when I try and start bind after an upgrade to Karmic, where do I find its logs? (or make it verbose?)
[09:52] <twb> elliotjhug: for the latter you presumably want /etc/named/named.conf or something
[09:52] <twb> (Just a guess)
[09:53] <elliotjhug> twb, logs would be preferable to changing even more settings (since its likely a config error causing my trouble)
=== alex88[sleep] is now known as alex88
[10:23] <ttx> mathiaz: apropos https://blueprints.launchpad.net/ubuntu/+spec/server-lucid-puppet-etckeeper-integration
[10:24] <ttx> mathiaz: There are a few unrealistic expectations there
[10:24] <ttx> "implement proper file permissions and ownership support in bzr" is quite complex
[10:25] <ttx> "etckeeper: fix .bazaar/ owned as root bug" is also difficult
[10:26] <ttx> "implement new features/commands" is doable, but if we want the feature to go back upstream, we'll need to do it in a VCS-agnostic way
[10:27] <mathiaz> ttx: ok - for the 1st point, I gues this is taken care of by etckeeper
[10:27] <ttx> mathiaz: hm, I'm not sure I follow you, then
[10:28] <mathiaz> ttx: the current design solution we've discussed with puppet upstream is to use a pre/post commit hook
[10:28] <mathiaz> ttx: where puppet would just call etckeeper before/after its run
[10:28] <ttx> right
[10:28] <mathiaz> ttx: the same as the apt integration is done
[10:28] <mathiaz> ttx: etckeeper doesn't keep track of ownership/permissions ?
[10:28] <ttx> mathiaz: ah, yes it does. Not in the best possible way, but it does
[10:29] <ttx> (the best possible way being using a VCS that is natively aware of those)
[10:30] <mathiaz> ttx: right
[10:30] <ttx> when you said "implement proper file permissions and ownership support in bzr" I thought you meant patching bzr to natively support those
[10:30] <mathiaz> ttx: AFAIK no VCS support taht
[10:30] <mathiaz> ttx: correct
[10:30] <ghostlines> i was having some input output errors with my hdd, now I can't even detect it as a device to partition it, is the hdd just dead now?
[10:30] <ttx> mathiaz: that's what I found unrealistic, and not necessary to the completion of the spec
[10:31] <mathiaz> ttx: probably - I was mainly recording the different points of the plan
[10:31] <mathiaz> ttx: we should at least engaged with the bzr team to see what would be required to have ownership/permissions properly handled by bzr
[10:32] <ttx> mathiaz: I engaged that discussion with them already
[10:33] <ttx> mathiaz: they recommended to keep it out of bzr and implement it as a plugin that would integrate the .etckeeper metadata
[10:33] <ttx> mathiaz: rather than a VCS-native implementation
[10:33] <ttx> basically they don't see the need for native permissions/ownership support in the VCS, just to cater for a specific VCS use
[10:34] <mathiaz> ttx: right - I guess that meta-data versioning is not that important
[10:34] <ttx> mathiaz: the problem is, the non-native approach is bug-prone
[10:34] <mathiaz> ttx: using a plugin would work - as long as relevant bzr commands handle permission/ownership correctly
[10:34] <ttx> mathiaz: that's the thing, the plugin has to modify all those commands
[10:35] <ttx> see comments on https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/322327
[10:35] <uvirtbot> Launchpad bug 322327 in etckeeper "Integrated permissions/ownership diff output for etckeeper/bzr" [Wishlist,Confirmed]
[10:35] <ttx> and https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/322339
[10:35] <uvirtbot> Launchpad bug 322339 in etckeeper "Integrated permissions/ownership reset on file operations for etckeeper/bzr" [Wishlist,Confirmed]
[10:35] <ttx> Diff is relatively easy
[10:35] <ttx> since it's quite limited in scope
[10:36] <ttx> but getting the permissions/ownership correct on all file operations...
[10:37] <ttx> mathiaz: anyway, those are etckeeper usability improvements, not /necessary/ to have puppet integration
[10:38] <mathiaz> ttx: right
[10:38] <mathiaz> ttx: the specification covers both puppet and etckeeper
[10:38] <ttx> the .bazaar issue is more pertinent
[10:40] <ttx> mathiaz: maybe we should split it to have a realistic lucid target
[10:40] <ttx> or it will just be deferred, methink
[10:40] <mathiaz> ttx: agreed - the current whiteboard state is more of a dumping ground for high level tasks that need to be done
[10:40] <ttx> on the etckeeper side I'd keep "in main" and ".bazaar"
[10:41] <mathiaz> ttx: the actual plan and work items need to be refined
[10:41] <ttx> mathiaz: I understand, it's just that we tried to review the status of the spec last Friday with jos
[10:41] * mathiaz nods
[10:41] <ttx> to see if it was pertinent for alpha3+
[10:42] <mathiaz> ttx: ok - so what I could do is to update the whiteboard with a reasonable list of work items for lucid
[10:42] <mathiaz> ttx: but I'd rather not loose the other things
[10:42] <ttx> agreed. You can has a "Future work" section in the whiteboard
[10:42] <ttx> have, even
[10:42] <mathiaz> ttx: the more high level/blue sky items (such has proper bzr integration)
[10:42] <mathiaz> ttx: great - I'll update the whiteboard now
[10:43] <ttx> cool, thx
[10:44] <ttx> ah, the very fresh daily ISo now has an installable UEC 1.6.2
[10:44] * ttx rsyncs
[10:45] <mathiaz> ttx: whiteboard updated - let me know if it seems a reasonable target for lucid now
[10:45] <ttx> mathiaz: sure, looks ok for me
[11:12] <knecht> hi there. i installed a new hardisc in ubuntu server 8.10, create a partition and mkfs.ext3 the new partition. Now i want to mount it via fstab, "blkid /dev/sda1" tell me the uuid, and i want to make an entry in fstab with this uuid, but there is no symlink in /dev/disk/by-uuid for that uuid. Do i need to restart a service? Or should i create it manually? Who creates this symlinks in /dev/disk/by-uuid? THANKS
[11:34] <knecht> I want to use uuid to mount a partition via fstab. Should the symlinks in /dev/by-uuid to /dev/sdXX created automaticly when i create/format a partition? Or do i need to create them manually? Cause my new partition is not listed there
[11:36] <arj> did you mkfs.ext3?
[12:32] <foolano> hi guys, is there any reason why dansguardian is not built with --enable-clamd in hardy security?
[12:46] <uvirtbot> New bug: #499029 in eucalyptus (main) "[lucid] eucalyptus-nc upstart script fails to start" [High,Triaged] https://launchpad.net/bugs/499029
[12:53] <knecht> arj: i do mkfs.ext3, but have no symlink in /dev/by-uuid
[12:55] <zul> foolano: maybe because its in universe and probably synced from debian? :)
[12:59] <ScottK> foolano: If it's not, it's a mistake. Please file a bug.
[12:59] <ScottK> zul: No, both Debian and Ubuntu use clamav.
[13:00] <ScottK> cemc: ^^^ Could you have a look?
[13:02] <foolano> IIRC, dansguardian in karmic is built with enable-clamd
[13:07] <khaladu_kj> what will be the best way to virtualize many physical machine into one?
[13:41] <cemc> foolano: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533024. as far as i can tell, it was disabled, then re-enabled in dansguardian 2.10 ?
[13:41] <uvirtbot> Debian bug 533024 in dansguardian "dansguardian: no clamd support" [Important,Fixed]
[13:44] <ScottK> cemc: We should look into making sure we have it enabled.
[13:45] <cemc> ScottK: alright. There is clamav support, just not clamd
[13:45] <ScottK> Ah, I see.
[13:45] <ScottK> cemc: I'd check hardy-backports and make sure it's enabled there.
[13:45] <cemc> but I guess we synced that one from debian and it got disabled there
[13:45] <cemc> nope, it isn't in backports either
[13:46] <ScottK> We're going to do backports -> security soon, so no point in fixing it security if it's OK in backports
[13:46] <ScottK> Probably more than just Hardy then
[13:46] <cemc> ScottK: in backports it's the same package than in security only with some libclamav6 transition stuff
[13:46] <ScottK> OK.
[13:47] <cemc> in 2.10 however in Karmic it IS enabled
[13:51] <ScottK> We should update the backports to match that then.
=== freeflyi1g is now known as freeflying
[13:57] <a_ok> when I do apt-get install apache2; It installes the mpm-worker. how do I change it to prefork?
[13:59] <mathiaz> a_ok: try apt-get install apache2-mpm-prefork
[14:00] <a_ok> mathiaz: rest are deps of course... why didn't I think of that?
[14:00] <a_ok> thanks
[14:03] <mathiaz> ttx: hi
[14:04] <ttx> mathiaz: o/ again
[14:04] <mathiaz> ttx: I've updated https://wiki.ubuntu.com/ServerLucidCloudConfig with a sample config.yaml file
[14:04] <mathiaz> ttx: I'd like to get request on the proposal
[14:04] <ttx> request ?
[14:04] <mathiaz> ttx: should I send to ubuntu-ec2@? or is there another mailing for that?
[14:04] <mathiaz> ttx: I'd like to get feedback on the proposal
[14:04] <ttx> ah
[14:05] <ttx> mathiaz: I'm not up to date on cloud lists
[14:05] <mathiaz> ttx: to which mailing list should I send the request for feedback
[14:05] <mathiaz> ttx: ok
[14:05] <mathiaz> ttx: I'll email the world then
[14:05] <ttx> mathiaz: just a sec
[14:05] <ttx> mathiaz: smoser is working today
[14:06] <ttx> mathiaz: he should know
[14:06] <mathiaz> ttx: right
[14:06] <mathiaz> ttx: I'll track him down
[14:06] <smoser> hello all
[14:07] <smoser> kirkland`, ping, bug 498174 . do we still really need to create static dev entries ?
[14:07] <uvirtbot> Launchpad bug 498174 in eucalyptus "Maximum number of 8 loopback devices low for SC" [High,Fix released] https://launchpad.net/bugs/498174
[14:08] <mathiaz> smoser: hm - here you are!
[14:08] <smoser> uhoh
[14:08] <mathiaz> smoser: I've updated https://wiki.ubuntu.com/ServerLucidCloudConfig with a sample config.yaml file
[14:09] <mathiaz> smoser: I'd like to get feedback on the proposal
[14:09] <mathiaz> smoser: to which mailing list should I send the request for feedback?
[14:09] <mathiaz> smoser: ubuntu-server@? ubuntu-cloud? ubuntu-ec2?
[14:11] <smoser> what does | do ?
[14:12] <mathiaz> smoser: http://en.wikipedia.org/wiki/YAML#Block_literals
[14:12] <ttx> mathiaz: question for you
[14:12] <ttx> http://bazaar.launchpad.net/~ubuntu-core-dev/eucalyptus/ubuntu/annotate/760/debian/eucalyptus-common.postinst
[14:12] <mathiaz> smoser: newlines are preserved
[14:12] <smoser> mathiaz, sure, you can send to those lists. i think that makes sense.
[14:12] <ttx> apparently the "chmod 04754 /usr/lib/eucalyptus/euca_rootwrap" never gets run on a UEC fresh install
[14:13] <ttx> what should be $2 in that case ?
[14:14] <mathiaz> ttx: new install $2 = ""
[14:14] <ttx> so why oh why
[14:14] <mathiaz> ttx: is the rest of the code under if [ -z "$2" ]; then fi run?
[14:15] <mathiaz> ttx: it may be an issue with if ! dpkg-statoverride --list /usr/lib/eucalyptus/euca_rootwrap; then
[14:15] <ttx> mathiaz: I'm not sure
[14:15] <ttx> there isn't any dpkg-override in the fresh install
[14:16] <mathiaz> ttx: right - dpkg-statoverride may be buggy - or the call has changed
[14:16] <ttx> looks like everything else is alright, but maybe it gets picked up by some other pre-flight check
[14:16] <ttx> returns the right thing for me
[14:17] * ttx enters deep testing mode
[14:17] <mathiaz> ttx: is something else changing the permission on euca_rootwrap (init script)?
[14:17] <ttx> mathiaz: I like that idea, but no, not that I can find
[14:17] * mathiaz grabs some lunch in the meantime
[14:23] <smoser> mathiaz, i dont think {{{ are required, are they ?
[14:23] <smoser> mathiaz, where are you (physically? lunch? its 9:23 eastern)
=== sgsax_ is now known as sgsax
[14:41] <a_ok> can someone help me fix rubygems?
[14:42] <a_ok> gem install rake gives me a not found error... I find that rather hard to beleave
[14:49] <StrangeCharm> i'm subscribed to a bug [#454898] in karmic. recently, i got an email saying that the bug's status has changed from 'in progress' to 'fix comitted'. if i download the karmic iso today, will the bug be fixed in that copy?
[14:50] <cyphermox> StrangeCharm, "fix committed" doesn't mean that it's fixed in an iso or in updates, just that the fix is in a branch or otherwise "ready" to be published
[14:51] <StrangeCharm> cyphermox, how can i build an iso with the fix in it?
[14:51] <mathiaz> smoser: I'm in France for christmas
[14:51] <mathiaz> smoser: so it was 3:23 PM when you asked me.
[14:51] <mathiaz> smoser: {{{ is part of the wiki markup
[14:51] <mathiaz> smoser: so no - they're not required
[14:52] <smoser> oh. thanks. sorry for being dense.
[14:52] <smoser> duh, smoser
[14:52] <smoser> (i saw that in the wiki change notification)
[14:56] <cyphermox> StrangeCharm, you'd have to build one from scratch and include the package from karmic-proposed, afaict; but I'm not sure how you actually remaster an iso -- you can check on https://help.ubuntu.com/community/LiveCDCustomization
[14:56] <cyphermox> StrangeCharm, it would probably be easier to just make the system boot and update it afterwards...
=== astechgeek is now known as techgeek
[15:00] <StrangeCharm> cyphermox, can't boot the system. the bug is in cryptsetup, preventing the system from booting
[15:01] <cyphermox> StrangeCharm, there is a workaround described though, do they work for you?
[15:02] <StrangeCharm> though, someone in #ubuntu told me that it might be possible to remaster the risk
[15:02] <StrangeCharm> *disk
[15:02] <cyphermox> yes
[15:03] <StrangeCharm> i don't recall the workaround. if there was one described in the bug, then i must have concluded that either a) i couldn't implement it, or b) it was not applicable to my situation
[15:04] <StrangeCharm> cyphermox, ^
[15:05] <StrangeCharm> though, the livecd might not work for me: i use the server installer disk.
[15:06] <cyphermox> StrangeCharm, which partition doesn't mount?
[15:09] <Storm3y> !help
[15:09] <ubottu> Please don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-)
[15:09] <StrangeCharm> cyphermox, each partition starting from the thrid. that is: /boot mounts. / mounts. then other disks that contain lvms with subsidiaries of / (like /etc, /var, and /tmp) don't get mounted: another process interrupts the second request for passphrase input
[15:09] <Storm3y> !op hi
[15:11] <Thomi> Hi, I'm trying to add a partition to a degraded RAID10 array using mdadm. I'm running "mdadm /dev/md0 --add /dev/sdb3" and it gives the error "/dev/sdb3 not large enough to join array" - but it *is* large enough - it's exactly the same partition layout (and disk model) as the other 3 disks in the array. Am I missing something?
[15:13] <cyphermox> StrangeCharm, could you get to recovery mode?
[15:13] <StrangeCharm> yes, absolutely
[15:13] <cyphermox> ok, from there I guess you still can't manually mount the partitions?
[15:14] <StrangeCharm> i can
[15:14] <cyphermox> ok
[15:14] <StrangeCharm> but i don't want to have to
[15:14] <cyphermox> all of them?
=== sommer_ is now known as sommer
[15:15] <StrangeCharm> i can mount all of the disks that i setup in the installer, and boot the system ok from there, and that's how it's running right now
[15:15] <cyphermox> what I'm getting at is you could mount them, then update cryptsetup, reboot, and see if the updated packages fixes the problem.
[15:15] <ttx> haha
[15:15] <ttx> mathiaz: I solved my mystery
[15:16] <mathiaz> ttx: does this involve some smelly cheeses and wine?
[15:16] <ttx> nah -- chown root:eucalyptus /usr/lib/eucalyptus/euca_rootwrap clears the setuid
[15:16] <StrangeCharm> cyphermox, you're right, i probably could. i was hoping for a solution that would allow me to make a clean install, without any faffing about
[15:16] <ttx> it's run just after
[15:16] <ttx> question is, how could it work before
[15:17] <cyphermox> StrangeCharm, it's slightly more work, but I would probably do that before remastering the ISO. at least to be sure that the fix really does correct the issue for you
[15:17] <ttx> ah, was done through dpkg-statoverride
[15:18] <StrangeCharm> well, the computer hasn't need a reboot since i installed 9.10, so maybe i should just wait until 10.4lts, where the issue should certainly be fixed
[15:19] <cyphermox> StrangeCharm, according to the bug report the cryptsetup package in lucid does have the fix already
[15:19] <cyphermox> however, in my experience, it's best not to rely on hoping a system doesn't need rebooting :)
[15:20] <StrangeCharm> the alpha/beta for lucid?
[15:20] <cyphermox> yes
[15:20] <StrangeCharm> well, it's so infrequent, i'm happy to do it by hand on those occasions, until i can make a clean system that i know will work
[15:23] <a_ok> I have backports enabled but from one package I want to install the original version how do I do that?
[15:25] <genii> a_ok: sudo apt-get install packagename=specific-version also check out pinning versions
[15:25] <a_ok> genii: thanks
[15:26] <genii> a_ok: "specific-version" is the version number as like seen in the result of an apt-cache policy packagename command
[15:27] <uvirtbot> New bug: #499048 in eucalyptus (main) "[lucid] euca_rootwrap is not installed setuid" [High,In progress] https://launchpad.net/bugs/499048
[15:30] <a_ok> genii: well it's more the result of if one version does not work than perhaps the other. seems the only solution is stay away from apt and build from source
[15:33] <genii> a_ok: I'd suggest using the: sudo apt-get install packagename=specific-version way, then whichever works, pin it
[15:33] <genii> !pinning
[15:33] <ubottu> pinning is an advanced feature that APT can use to prefer particular packages over others. See https://help.ubuntu.com/community/PinningHowto
[15:34] <a_ok> genii: none work. but thanks for the info on versions and pinning though. will use that in the future
[15:34] <mathiaz> smoser: about server-lucid-ec2-config
[15:35] <mathiaz> smoser: how about using upstart jobs instead of writing a complete plugin system (where we'll have handle dependencies anyway)?
[15:35] <mathiaz> smoser: for example, for the sample configuration file I've created
[15:36] <mathiaz> smoser: there would be two upstart jobs: one that configures all the apt configuration using data from config.yaml
[15:36] <mathiaz> smoser: and another upstart job to install package once the apt configuration has been done
[15:37] <mathiaz> smoser: extending the syntax is just a matter of writing an upstart job
[15:37] <smoser> regarding dependencies. i dont think you necissarily have to deal with them.
[15:37] <mathiaz> smoser: and sticking it into the right position in the boot process
[15:38] <smoser> well, maybe you do. boot hooks processes in order received.
[15:38] <mathiaz> smoser: well - in my example the package installation needs to be run *after* apt repositories are setup
[15:38] <smoser> so whatever generated that user data woul dhave to deal with dependencies.
[15:39] <smoser> i agree that writing upstart jobs is a good way to make sure that things run at the right time.
[15:39] <smoser> but how are yo ugoing to read that config file and write the upstart jobs?
[15:39] <mathiaz> smoser: and you can plug them at any point during the boot process
[15:40] <mathiaz> smoser: I thought that the boot hooks would do a dump of the user-data file
[15:40] <mathiaz> smoser: or rather of 169.XXX
[15:40] <smoser> the thing that reads the config file and writes the upstart job stilli needs to be done, and has to have logic for how to handle eahc of those config stanzas, right ? unless i'm missing something.
[15:40] <mathiaz> smoser: which should contain the user data *date*
[15:40] <mathiaz> smoser: well - the syntax is YAML
[15:40] <smoser> the input to the "config" is a config section like you showed
[15:41] <smoser> boot hooks would take care to feed that config to *some* program
[15:41] <mathiaz> smoser: how about the following workflow:
[15:41] <mathiaz> smoser: 1. boot hooks put the user-data yaml file somewhere (ex : /etc/instance_config/config.yaml)
[15:41] <mathiaz> smoser: 2. apt_setup upstart job runs
[15:42] <mathiaz> smoser: and parses the the config.yaml fie
[15:42] <mathiaz> smoser: so we need to write an upstart job that does the right thing with config.yaml
[15:42] <mathiaz> smoser: boot hooks don't call anything - we rely on upstart to do that
[15:42] <mathiaz> smoser: it could generate an upstart event
[15:43] <mathiaz> smoser: the point here is to leverage upstart dependency solver
[15:43] <mathiaz> smoser: and one can hook anywhere into the boot process
[15:44] <mathiaz> smoser: so upstart jobs would have to be written to support existing configuration data in config.yaml (like a apt conf upstart job, a package install upstart job)
[15:45] <smoser> i'm not opposed to the above.
[15:45] <mathiaz> smoser: but there is no need to write a framework that handles plugins and calls them accordingly.
[15:45] <mathiaz> smoser: it seems to be the easiest way to implement what we want to me.
[15:45] <smoser> then to insert a handler ("plugin") boothooks would need to be able to wirte an upstart job, and that upstart job would just read the config from some locaiton.
[15:46] <smoser> what i dislike of the above is static entries in /etc/init that do nothing
[15:47] <smoser> unless i'm missing something
[15:47] <mathiaz> smoser: how about a handler boothooks that just reads the user-data option and dumps it somewhere?
[15:47] <mathiaz> smoser: well - you're right. there would be upstart jobs in /etc/init/ that would not be used if there wasn't any config user-data
[15:47] <smoser> i'm ok with boothooks writing user data to a well known location
[15:48] <mathiaz> smoser: right - and then all of other upstart jobs could check wether there is a config.yaml file in the user data
[15:48] <mathiaz> smoser: if not, they don't do anything
[15:48] <smoser> so, there would be a a .conf file in /etc/init for each "type" of supported config
[15:49] <mathiaz> smoser: yes - there would be an /etc/init/apt_conf.conf
[15:49] <smoser> so if you support 75 different config sections, you've got 75 different files in init
[15:49] <mathiaz> smoser: and /etc/init/packages_install.conf
[15:49] <smoser> wait
[15:50] <smoser> i *think* that upstart will read /etc/init/*/.conf (recursively find .conf files in /etc/init)
[15:50] <mathiaz> smoser: there isn't a 1:1 mapping between section in the config.yaml file and plugins (ie /etc/init/*conf)
[15:50] <smoser> thats my ony real issue in the above, is a bunch of jobs sitting there doing nothing
[15:51] <mathiaz> smoser: upstart jobs are free to use whathever part of the configuration files they find useful.
[15:51] <smoser> no, there isn't a 1:1, i understand that, but whatever have, where you would want to break them up
[15:51] <smoser> then 1 per *that*
[15:51] <smoser> which could be lots
[15:51] <mathiaz> smoser: agreed.
[15:51] <mathiaz> smoser: another goal of the spec is to *only* support common operation
[15:52] <mathiaz> smoser: and to help bootstrap an instance into an existing configuration management infrastructure
[15:52] <mathiaz> smoser: I'm not convinced we would end up with lots of additional upstart jobs
[15:52] <smoser> fair
[15:55] <smoser> i'd like to request that upstart jobs at least go into /etc/init/<insert-name>/*.conf. and we should verify the costs of inactive static jobs .
[15:56] <smoser> my guess is it is small, but at very least for any task that checks for existance of a file (user data) you're goign to spawn a subprocess.
[15:56] <smoser> i think we're probably not that anal about boot at this point, but it is wasteful
[15:56] <mathiaz> smoser: right.
=== robbiew is now known as robbiew_
[15:57] <mathiaz> smoser: we could an upstart event to say whether there is a config.yaml file available in user data
[15:57] <mathiaz> smoser: that way all relevant upstart jobs could depend on a user-data-config upstart event.
[15:58] <mathiaz> smoser: we could *user* an upstart event
[15:58] <smoser> true. start on (ec2-config-yaml and whatever else)
[15:58] <smoser> right. and have boothooks emit that
[15:58] <smoser> i do like that mathiaz
[15:59] <smoser> mathiaz, how do you want to handle multiple configs
[15:59] <smoser> you want htem all in one file then?
[15:59] <smoser> my plan was to call the configurator each time there was a 'part' that was a config section
[15:59] <mathiaz> smoser: what do you mean by multiple configs?
[16:00] <smoser> user data is multi-part
[16:00] <mathiaz> smoser: right - so the config.yaml would be a mime part
[16:00] <smoser> there could be multiple parts that are config type
[16:00] <mathiaz> smoser: ok - just concatenate them
[16:00] <mathiaz> smoser: IIRC you can cat multiple yaml file
[16:00] <mathiaz> smoser: and it will be a valid yaml document
[16:01] <smoser> yeah. thats fine.
[16:02] <mathiaz> smoser: could we skip the mimepart document and stick a config.yaml directly in user-data?
[16:02] <mathiaz> smoser: the same way as scripts are handle for now
[16:03] <mathiaz> smoser: that way one could actually do things like: --user-data "packages:\n - puppet"
[16:03] <mathiaz> smoser: or --user-data "packages: [puppet, postfix ]"
[16:03] <smoser> mathiaz, yes, thats the goal
[16:04] <smoser> user data is one of 4 types
[16:04] <smoser> a.) #! script -- its run at S99
[16:04] <smoser> b.) parseable yaml.conf possibly passing some other test to make sure that we dont mis-fire
[16:04] <smoser> c.) mime-multipart message
[16:05] <smoser> d.) unknown - do nothing
[16:05] <smoser> make sense?
[16:05] <mathiaz> smoser: yes!
[16:05] <smoser> thats why its important that the config be human typeable
[16:06] <mathiaz> smoser: right - I've looked at YAML and came up with the config file I've published
[16:06] <mathiaz> smoser: I've also looked into ini syntax - but it would require some tricks to be able to express the kind of structure I've put in the example
[16:07] <mathiaz> smoser: YAML seems very natural for that task IMO
[16:08] <ScottK> Human readability is a major design goal for YAML.
[16:09] <mathiaz> smoser: how about using user-data-yaml-config as the upstart event that the boothook would fire?
[16:09] <mathiaz> smoser: and that other upstart jobs (like apt_conf) would depend on (start on user-data-yaml-config)?
[16:10] <smoser> right
[16:10] <smoser> that is fine for a name, mathiaz
[16:10] <smoser> one other thing i'd like to add to it
[16:10] <smoser> is that on first boot boothooks will emit user-data-yaml-config-firstboot
[16:11] <mathiaz> smoser: hm - I though we would only cover firstboot
[16:11] <smoser> well, how would you *not* fire every time then?
[16:12] <mathiaz> smoser: apt configuration, package installation
[16:12] <mathiaz> smoser: landscape registration, puppet registration
[16:12] <smoser> generic
[16:12] <mathiaz> smoser: you'd wanna do that only on first boot
[16:12] <mathiaz> smoser: not every time the instance reboots
[16:12] <smoser> it is quote possilbe that something wants to run based on that config every time
[16:13] <mathiaz> smoser: right - one use case I haven't factored in is ebs
[16:13] <smoser> in ec2-init, in karmic, there are two types of "how often to run"
[16:13] <smoser> "once ever"
[16:13] <smoser> and
[16:13] <smoser> well, actually 3
[16:13] <smoser> a.) once-ever
[16:13] <smoser> b.) once-per-ami
[16:13] <mathiaz> smoser: that being said we could just emit an upstart event on first boot as wel
[16:13] <smoser> c.) maybe only 2
[16:14] <smoser> mathiaz, yes. but it is possible that some config thing would *want* to run every boot
[16:14] <mathiaz> smoser: and then package_install would start on first-boot and user-data-yaml-config
[16:14] <smoser> so i'd fire 2 events
[16:14] <smoser> right
[16:14] <smoser> and there is also a 'once-ever' event
[16:14] <mathiaz> smoser: the user data doesn't change between reboots?
[16:15] <smoser> it does not change between reboots
[16:15] <smoser> i'll tryo to give an example
[16:15] <smoser> (and try to type)
[16:15] <smoser> a.) once-ever
[16:16] <smoser> right now, localization (setting of default-locale) and apt mirror is only run once ever. ie, on the first boot. after a rebundle it will not run again.
[16:16] <smoser> b.) once-per-ami
[16:17] <smoser> generate of ssh keys is done once per instance, which in ec2 turns out to be "first boot" because for any given thing that can read that filesystem first boot == instance
[16:17] <smoser> c.) it doesn't seem at all unreasonable to me that someone wants to writei a plugin that ccan parse user-data config syntax but wants it to run every boot
[16:18] <smoser> maybe "call-home-on-boot: http://foo.bar.com/wark/?id=akdkdhjdyek"
[16:18] * mathiaz nods
[16:19] <smoser> mathiaz, i like the upstart jobs. thank you for that idea.
[16:19] <mathiaz> smoser: for the last use case, wouldn't it make sense to leverage config.yaml?
[16:19] <mathiaz> smoser: in the sense that one would write an call-home-one-boot upstart job
[16:19] <mathiaz> smoser: and then start an instance with --user-data "call-home-on-boot: http://foo.bar.com/wark/?id=akdkdhjdyek" ?
[16:20] <smoser> yes. absolutely.
[16:20] <smoser> they would
[16:20] <smoser> or i would want them to
[16:20] <smoser> but that would then have:
[16:21] <smoser> start on (local-filesystems and user-data-yaml-config and user-data-yaml-config-boot)
[16:21] <smoser> or what not. ie, some way that it can be called on *every* boot, but the other (apt config and such) run only on first
[16:22] <mathiaz> smoser: right.
[16:23] <mathiaz> smoser: I wouldn't call it user-data-yaml-config-boot - first-boot or something shorter
[16:23] <mathiaz> smoser: it's not really related to user-data-yaml-conig
[16:23] <smoser> this is true. good point.
[16:23] <mathiaz> smoser: more related to the instance booting itself.
[16:24] * smoser gives mathiaz a high five. thank you for makign this better.
[16:24] <mathiaz> smoser: that means you'd have 3 upstart event: first-boot-ever, first-boot, reboot
[16:24] <mathiaz> smoser: and may be prefix them with cloud-
[16:25] <mathiaz> smoser: and I don't think you need to have cloud-reboot
[16:25] <mathiaz> smoser: as jobs using that event would just ... well ... run at every boot
[16:26] <mathiaz> smoser: which is the default case for upstart jobs
[16:28] <mathiaz> smoser: I'd suggest to rename user-data-yaml-config to cloud-yaml-config - to make it a little bit more generic
[16:28] <mathiaz> smoser: and the last bit for the server-lucid-ec2-config spec would be to settle on a local filename
[16:29] <mathiaz> smoser: where the config.yaml would be stored
[16:30] <smoser> mathiaz, s/cloud-yaml-config/cloud-config-yaml/ ?
[16:31] <ttx> smoser: the non-double64-challenged eucalyptus landed in karmic-updates, yay
[16:31] <mathiaz> smoser: hm - I wonder if we really need the yaml part
[16:31] <mathiaz> smoser: cloud-config
[16:31] <ttx> non-double-base64-challenged, to be more exact
[16:32] <smoser> first mover claims main namespace, i'm good with that
[16:32] <smoser> mathiaz, regarding location, right now things are ec2
[16:32] <mathiaz> smoser: the question is what happens if we away from YAML later?
[16:33] <smoser> so /var/lib/ec2 is where it woudl "fit"
[16:33] <smoser> err... but i think maye this is more run-time, so i think
[16:33] <mathiaz> smoser: right - considering that we're running on UEC (and potentially other clouds) I'd move way from ec2
[16:33] <mathiaz> smoser: that's I why I suggest cloud
[16:33] <smoser> /var/run/<something>/ec2/config.yaml
[16:33] <mathiaz> smoser: as the prefix
[16:33] <smoser> i agree with the cloud name
[16:33] <mathiaz> /var/run/cloud/config.yaml
[16:34] <smoser> err, s/ec2///
[16:34] <smoser> i like that.
[16:34] <mathiaz> smoser: is there any reasons to specify that you're running on EC2 rather than UEC?
[16:34] <smoser> not for this, no.
[16:35] <smoser> but it is quite reasonable that a job would need to know that.
[16:35] <smoser> so it will be availble to jobs
[16:35] <mathiaz> smoser: agreed.
[16:36] <mathiaz> smoser: if we provide /var/run/cloud/config.yaml as the standard location for instance configuration - how easy is it to support other Clouds?
[16:36] <mathiaz> smoser: IIRC the rackspace cloud doesn't use the user-data option
[16:36] <smoser> they do have per-instance data (i believe)
[16:36] <mathiaz> smoser: my point here is to try to make config.yaml cloud agnostic so that we don't have to rewrite the upstart jobs
[16:37] <mathiaz> smoser: right - the mechanism for making it available is different than in EC2/UEC though.
[16:37] <smoser> and if the end user has the abillity to insert customized per-instance data, then we're good. it is boot hooks job to copy config-yaml instance data to that location
[16:37] <mathiaz> smoser: right
[16:37] <smoser> i agreed with your point up there. yes.
[16:38] <smoser> one thing....i kind of dont like...
[16:39] <mathiaz> smoser: ok - to summarize: boothooks will provide a cloud config.yaml and then emit an upstart even cloud-config with CFGFILE=/path/to/config.yaml
[16:40] <mathiaz> smoser: and -ec2-config upstart jobs will start on cloud-config and use CFGFILE to get the configuration file
[16:40] <smoser> it need to be fixed in upstart.
[16:40] <smoser> to insert a config handler into an existing instance, the user will then:
[16:40] <smoser> a.) provide config data
[16:40] <smoser> b.) provide a mime-part that is recognized by boothooks as a "config handler" and boothooks will then put it into /etc/init/cloud/ with a given nanme
[16:40] <smoser> the thing that stinks is
[16:40] <smoser> mathiaz, yes.
[16:40] <smoser> now, continuing above.
[16:41] <smoser> the thing that stinks about a and b above is that if they wish to write their config handler in any thing othe rthan posix shell , then they have to
[16:41] <TeTeT> ttx: will your recent changes in auto detecting the cloud controller make it to tomorrow's image?
[16:41] <make> i need to set RAID0 in ubuntu server 910.help me.thanks
[16:41] <smoser> c.) provide a mime-part that is stored in a file and exectued from b.)
[16:41] <smoser> because 'script' can only posix sh
[16:42] <ttx> TeTeT: yes it should
[16:42] <ttx> We should have an intermediary build before that, though
[16:43] <ttx> TeTeT: the workaround is quite easy, if you need to get passed that
[16:43] <mathiaz> smoser: right.
[16:43] <mathiaz> smoser: at least there is a workaround for now
[16:44] <mathiaz> smoser: and boothooks could probably automatically generate the script part for the upstart job
[16:44] <mathiaz> smoser: so that the end user would have to generate two mime-parts:
[16:44] <mathiaz> smoser: 1. an upstart job with the correct dependency line
[16:45] <mathiaz> smoser: 2. the actuall handler
[16:45] <ttx> TeTeT: just replace "avahi-publish -s $CLOUD_IP_ADDR" by "avahi-publish -s CLC" in /etc/init/eucalyptus-cloud-publication.conf
[16:45] <ttx> that will avoid the conflict and let the announce succeed
[16:45] <ttx> (then sudo stop eucalyptus / sudo start eucalyptus)
[16:45] <mathiaz> smoser: then the boothook would actually copy the 2nd part to a known place and add the necessary script section to the upstart job
[16:46] <smoser> well, yeah, but there may be other 'start on' pieces and such
[16:46] <smoser> its not that bad.
[16:46] <TeTeT> ttx: thanks! giving the ip address during the install worked fine for me as a work around. Want to test the split of CLC and CC later this week again. didn't work for me last Thursday/
[16:46] <smoser> heres how you can do it in a #!/bin/sh -e 'script' section
[16:47] <ttx> TeTeT: at that point I only test the "old world"
[16:47] <smoser> mathiaz, http://paste.ubuntu.com/344173/
[16:48] <mathiaz> smoser: right
[16:48] <mathiaz> smoser: so you could generalize that to: exec /path/to/new/handler
[16:48] <smoser> :)
[16:49] <mathiaz> smoser: that would require to have a well-formed script
[16:49] <mathiaz> smoser: which is reasonable IMO
[16:49] <TeTeT> ttx: ok, I volunteer to try the new stuff ;)
[16:50] <ttx> TeTeT: I have yet to look at /what/ the installer is supposed to do
[16:50] <ttx> TeTeT: like, only sync the keys, or download a preseed
[16:50] <ttx> and in the latter case, what's in that preseed :)
[16:51] <ttx> but at this point I'm trying to /not break/ the classic topology
[16:51] <ttx> ...when introducing the crazy sauce.
[16:52] <ttx> TeTeT: given that 1.6.2 was pretty broken, I'm busy making it work too :)
=== robbiew_ is now known as robbiew
[16:53] <smoser> a well formed sscript, mathiaz ?
[16:53] <smoser> what?
[16:54] <mathiaz> smoser: hm - nevermind
=== robbiew is now known as robbiew_
[16:58] <mathiaz> smoser: I've updated https://wiki.ubuntu.com/ServerLucidCloudConfig with what we've discussed above
=== dendro-afk is now known as dendrobates
[17:03] <smoser> thanks mathiaz
[17:20] <n1md4> Hello, I'd like to test UEC (see my post http://ubuntuforums.org/showpost.php?p=8520901&postcount=9), but got stuck on the automated install. At this stage, can anyone assist, or am I inclined to work through the problem myself.
[17:22] <xtjacob> I'm currently configuring a DNS server for my server. The guide i'm following tells me to replace ns1 with the DNS server name. Is that the DNS for my ISP or for my server.
[17:25] <guntbert> xtjacob: configuration of DNS is nothing a beginner should do (except strictly for the local net - for testing purposes only)
[17:26] <xtjacob> then is there anyway i can get my website with a hostname without paying or using a free online service?
[17:27] <X-M4-X> anyone know the command for extracting a rar file unrar is installed already
[17:27] <guntbert> xtjacob: for your own testing or for general availabilty?
[17:27] <kees> ls
[17:27] <kees> hah
[17:28] * kees tries again...
[17:28] <guntbert> X-M4-X: did you look at man rar?
[17:28] <xtjacob> general availability
[17:28] <X-M4-X> what is that
[17:28] <kees> is update-notifier-common installed by default on server installs?
[17:28] <X-M4-X> oh nvm - no i did not
[17:30] <xtjacob> guntbert: general availability
[17:30] <guntbert> !info update-notifier-common
[17:30] <ubottu> update-notifier-common (source: update-notifier): Files shared between update-notifier and adept. In component main, is optional. Version 0.90 (karmic), package size 22 kB, installed size 312 kB
[17:31] <guntbert> xtjacob: then you will have to register a domain anyway
[17:33] <xtjacob> gunbert: is there any way to do this for free?
[17:33] <uvirtbot> New bug: #499128 in samba (main) "package samba 2:3.4.0-3ubuntu5.1 failed to install/upgrade: subprocess installed post-removal script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/499128
[17:35] <guntbert> xtjacob: yes, several, for instance with no-ip.com or with dydns.org - though they have different targets - but google for "free domain"
[17:36] <uvirtbot> New bug: #499142 in samba (main) "Dependencies of smbclient remove kubuntu-desktop and prevent its reinstallation" [Undecided,New] https://launchpad.net/bugs/499142
[17:36] <X-M4-X> i wish i knew who told me to get cpanel on my server - ubuntu isnt a supported OS
=== erichammond1 is now known as erichammond
=== luis__lopez is now known as luis_lopez
[18:20] <xtjacob> this may seem like a dumb question, but what do i type in to FTP into my server? I keep getting connection refused
[18:21] <arj> did you install an ftp server?
[18:22] <xtjacob> i think so how can i tell?
[18:22] <arj> dpkg -l|grep ftp
[18:22] <arj> and what does netstat -anp|grep :21 say
[18:24] <xtjacob> dpkg -l|grep ftp says ii ftp 0.17-19 The FTP client, and netstat -anp|grep :21 says (No info could be read for "-p":geteuid()=100 but you should be root)
[18:25] <arj> sudo netstat -anp|grep :21
[18:25] <arj> but it looks like you dont have an ftp server install
[18:25] <xtjacob> nothing came up
[18:25] <arj> apt-get install proftpd/pure-ftpd/vsftpd
[18:26] <arj> one of those
[18:26] <xtjacob> then do i log in with my username?
[18:26] <xtjacob> ok it worked thanks
[18:31] <xtjacob> also how do i figure out the external IP for my server?
[18:31] <pipedream> ifconfig
[18:32] <xtjacob> which ip do i look at?
=== dendrobates is now known as dendro-afk
[18:49] <MTecknology> Any ideas how I can have my backup server pull backups from a windows system?
=== dendro-afk is now known as dendrobates
[18:49] <MTecknology> I'd prefer not using samba..
[18:51] <MTecknology> I also need to figure out how to have the windows system sent its logs to the logging server
[18:54] <simplexio> MTecknology: i thinkk rsync has cient for win, also possible solutions re ftp server or sftp
[18:54] <genii> MTecknology: I haven't done this for a while now since I don't use Win boxes much anymore. But you can install rsync onto Win boxes using cygwin
[18:55] <MTecknology> I'll try that out
[18:55] <MTecknology> thanks
[18:55] <MTecknology> any ideas about having it send logs to another system?
[18:56] <MTecknology> brb
=== chmac is now known as chmac_away
[20:28] <frojnd> I'm grying to build libtorrent
[20:28] <frojnd> but when I do ./configure I get an error: checking for OPENSSL... configure: error: Package requirements (openssl) were not met:
[20:28] <frojnd> but i Do have installed openssl
[20:30] <xperia> hello to all. anybody here that have knoweledge and experience with postfix ?
[20:30] <andol> !ask | xperia
[20:30] <ubottu> xperia: Please don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-)
[20:31] <lamont> frojnd: apt-get build-dep libtorrent
[20:31] <lamont> or whatever the source package for libtorrent is
[20:31] <lamont> frojnd: you probably are lacking (at least) libssl-dev
[20:32] <binhtran> Hello
[20:32] <frojnd> lamont: how do you know libssl-dev is the one that is lacking? :( I never build before myself I don't really understand what packages is missing
[20:32] <lamont> frojnd: because that's where openssl delivers its development files
[20:32] <binhtran> Can someone help me with an issue I'm having?
[20:33] <frojnd> lamont: ok
[20:33] <lamont> frojnd: apt-get build-dep $package will install the build-deps for that package
[20:33] <lamont> binhtran: without knowing the issue, how can we possibly answer that?
[20:33] <lamont> (don't ask to ask a question, just ask)
[20:34] <binhtran> i have my server running, and I put it in my router's DMZ for a while to see if I could get outside access, and now all my links reroute to cheapnames.net
[20:34] <xperia> okay. i need to teach postfix to send mails with smtpauths. i have changed allready the relayhost setting from "relayhost = [mail.myisp.com]" Port 25 that worked till yet great to "relayhost = [smtpauths.myisp.com]" Port 465.
[20:34] <xperia> For some reason however postfix still send the email to port 25 and not 465. anybody a solution ?
[20:34] <lamont> sounds like you have dns issues
[20:34] <frojnd> lamont: and now I typed make and I got an error: ../../../libtool: line 1210: libtool: compile: cannot determine name of library object from `': command not found
[20:34] <frojnd> make[4]: *** [block.lo] Error 1
[20:34] <frojnd> and so on
[20:35] <lamont> frojnd: debuild -b
[20:35] <lamont> unless you're trying to package unpackaged source
[20:35] <binhtran> wait, what?
[20:36] <lamont> frojnd: see also debian/rules (which is a makefile) for exactly how the source wants to be built
[20:36] <frojnd> lamont: debuild: fatal error at line 606:
[20:37] <frojnd> lamont: cannot find readable debian/changelog anywhere! Are you in the source tree?
[20:37] <lamont> binhtran: not sure I know where to start to help you - and pretty much out of time myself
[20:37] <lamont> frojnd: so you're starting with upstream source, not the debian source package?
[20:37] <frojnd> lamont: I don't know
[20:38] <lamont> frojnd: start with apt-get source libtorrrent :-)
[20:38] <frojnd> lamont: no
[20:38] <frojnd> I need those versions
[20:38] <lamont> that has an upstream source, and a diff between that and the debian package
[20:38] <frojnd> if I wanna to do wtorrent
[20:38] <lamont> frojnd: ah, then in that case, see the docs inside the source for how to build it.
[20:39] <frojnd> lamont: yeah
[20:39] <frojnd> I'm definetally gonna have to learn how to build this
[20:39] <frojnd> :|
[20:39] <lamont> frojnd: the debian package will tell you how the debian maintainer decided to do it...
[20:39] <lamont> but yeah, enjoy
=== Jeeves__ is now known as Jeeves
=== Jeeves is now known as Jeeves_
[21:02] <uvirtbot> New bug: #499129 in samba (main) "package samba 2:3.4.0-3ubuntu5.1 failed to install/upgrade: subprocess installed post-removal script returned error exit status 1 (dup-of: 349469)" [Undecided,Confirmed] https://launchpad.net/bugs/499129
[21:31] <I-Blocklist069> hello
[21:31] <I-Blocklist069> I want to run mkdir /home/samba/backups/`date +%Y-%m-%d`
[21:31] <I-Blocklist069> on a daily cron
[21:32] <I-Blocklist069> but it doesnt work when i do something like 0 1 * * * mkdir /home/samba/backups/`date +%Y-%m-%d`
[21:34] <I-Blocklist069> anyone able to help?
[21:35] <sub> what does it do instead?
[21:36] <I-Blocklist069> nothing
[21:36] <I-Blocklist069> running the command, makes the folder
[21:36] <I-Blocklist069> but in cron
[21:36] <I-Blocklist069> it creates nothing
[21:36] <sub> logging cron anywhere?
[21:37] <I-Blocklist069> dont think so
[21:40] <qman__> you're missing the user to run the job as
[21:40] <qman__> should be 0 1 * * * root mkdir /home/samba/backups`date +%Y-%m-%d`
[21:41] <sub> hm. i had assumed it was in a user's cron but i am wrong to assume anything :D
[21:41] <qman__> true, that wouldn't be necessary in a user crontab
[21:41] <qman__> but I always use cron.d
[21:41] <qman__> easier to manage
[21:45] <maxb> I-Blocklist069: % is a special character in crontabs
[21:47] <maxb> You can read about this in 'man 5 crontab'
[21:48] <I-Blocklist069> so have to comment it out?
[21:48] <qman__> no, just quote the path
=== chmac_away is now known as chmac
[21:49] <I-Blocklist069> i tried to put PATH=/usr/sbin:/usr/bin:/sbin:/bin
[21:49] <I-Blocklist069> at the top
[21:49] <qman__> that's irrelevant
[21:49] <qman__> 0 1 * * * root mkdir "/home/samba/backups`date +%Y-%m-%d`"
[21:50] <qman__> like that
[21:50] <maxb> qman__: no, that is incorrect
[21:50] <qman__> oh, need to escape manually?
[21:50] <maxb> You should read the bit in 'man 5 crontab' about % signs, as I said
[21:50] <qman__> oh yeah
[21:50] <qman__> forgot, crontab is tricky there
[21:51] <Xpistos|work> is it possible to VNC into a headless server without a gui from my laptop?
[21:52] <Xpistos|work> I can ssh in without issue, but there are still things I am need to do with a gui
[21:52] <qman__> Xpistos|work, VNC only works when a GUI is running
[21:53] <qman__> no idea why you'd need one of those stupid things, though ;)
[21:55] <Xpistos|work> qman__: Thanks for the help. I can't convert .mov's to avi and compress them to the size file I want without the gui. I don't know enough of the commands to do it in the command line . . . yet.
[21:57] <X-M4-X> anyone know a FREE WORKING solution alternative to cpanel with a filemanager ehcp and net2ftp is just gay
[22:08] <ScottK> X-M4-X: Looked into ebox?
[22:11] <foolano> X-M4-X: ScottK: eBox doesn't have an FTP module. So he will need something else
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== erichammond1 is now known as erichammond
[22:49] <MatBoy> someone using fuzzyocr here ?
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== dendrobates is now known as dendro-afk
[23:51] <donspaulding> so, I stupidly accepted the default partition setup on my 2TB system. Now I have a 1TB swap partition. I chose "Default with LVM", how can I reclaim the space from /dev/mapper/files-swap_1 and allocate it to /dev/mapper/files-root ?
[23:52] <donspaulding> (I'm in parted right now)
[23:52] <smiter> <--beating his head against the wall right now... (dealing with ubuntu install and black screen)
[23:54] <smiter> can anyone here give a little advice on how to attack this?
[23:54] <stgraber> donspaulding: it'd probably be easier with the LVM tools directly
[23:55] <stgraber> donspaulding: I guess you don't use your swap right now ? (as in, you can temporarily disable it)
[23:55] <donspaulding> stgraber: yeah, the machine's got 12GB of RAM, swap can be disabled.
[23:55] <stgraber> ok, so go with: swapoff /dev/mapper/files-swap_1
[23:56] <stgraber> then: lvreduce /dev/mapper/files-swap_1 -L 2G
[23:56] <stgraber> if you want it to be 2GB large afterwards
[23:56] <stgraber> then, you can: mkswap /dev/mapper/files-swap_1 and re-enable it with: swapon /dev/mapper/files-swap_1
[23:57] <stgraber> that should give you a 2GB large swap if all went well
[23:57] <stgraber> if that's the case, then we can resize the root partition to use the free space
[23:57] <donspaulding> stgraber: lvreduce gave me….. Volume group mapper doesn't exist
=== dendro-afk is now known as dendrobates
[23:58] <donspaulding> is mapper the logical name of a different device I should be passing in to lvreduce?
[23:58] <stgraber> donspaulding: did you include the whole path including files-swap_1 ?
[23:58] <donspaulding> like /dev/files/swap_1?
[23:58] <donspaulding> stgraber: yes
[23:59] <poningru> heh
[23:59] <poningru> quick question for canonical servers what are the naming conventions?
[23:59] <stgraber> donspaulding: ok, then try with: lvreduce files/swap_1 -L 2G
[23:59] <poningru> I see updates are element names
[23:59] <poningru> lithium and germanium