/srv/irclogs.ubuntu.com/2010/03/22/#ubuntu-server.txt

VSpikeqman__: I went with imap because i was using a desktop and a laptop, and dual booting on both (win/linux on one and ubuntu/arch on the other) ...00:40
VSpikeqman__: and also because I couldn't decide which email client i liked, so i wanted to have the spam filtering and folder filtering all done server side00:41
VSpikeqman__: it's hard to give up that flexibility once you get used to it00:41
Sorelldoes unbuntu server have a "sleep" mode01:50
Sorellit seems like my server likes to go to sleep01:50
Sorelland I have to ping it to wake it up.01:50
SorellI can't visit the website when this happens or ssh in01:51
Sorellbut if I ping it everything is fine.01:51
Sorellany ideas?01:51
rbergerAre there examples of creating a profile for pam_auth_update so as to enable pam_limits.so for all users including those that su?02:08
=== Guest52256 is now known as au
=== au is now known as Guest28434
bikcmpHello everyone, I'm trying to setup UEC on my box, but, as always, it doesn't quite work as expected.03:04
bikcmphttp://pastebin.com/VzVUJ2pU03:04
bikcmpSeems dead in here.  I'll try #ubuntu.03:06
=== Guest28434 is now known as au
=== au is now known as Guest41322
djveerHey guys, i'm getting errors saying "ata3.01: status: { DRDY ERR }" and "ata3.01: error: { UNC }" when trying to boot my ubuntu server. An attempt to fsck the volume gives me "Buffer I/O error on device sda1, logical block 548742" Error reading block... etc03:35
djveerThis a corrupted file system? or could there be a hardware problem here, and how do I tell03:35
djveer*?03:35
twbdjveer: your disk is dying03:41
twbdjveer: go stick it in the freezer, wrapped in a towel, for half an hour.  Then take it out and dd the data off it.  Then you can attempt to fsck the dd image instead of the dodgy disk.03:42
djveertwb: okay cool thanks for the advice... what dd command would I use? dd if=/dev/sda1 of='filename' bs=1M   or something like that03:43
twbdjveer: if you have dd_rescue, that would be easiest.03:44
djveertwb: okay, i'll look into it. Can it be done with just the standard dd utility though?03:44
djveeri've never honestly used dd_rescue, so not sure of it's function03:44
twbdd_rescue is just dd with some bodgy patches to make it slow down or speed up when reads fail03:53
djveerokay, good to know03:54
twbi.e. it's designed specifically for your current use case03:55
djveertwb: great stuff, thanks :)03:57
=== Guest41322 is now known as au
=== au is now known as Guest76843
ubuntu_user_01my OS hdd is failing and i need to swap it out...i have a raid 6 seperate from that hdd, is it possible to do a fresh install of ubuntu on a new HDD and rebuild or boot the raid 6 post install?04:31
twbubuntu_user_01: sorry, you have the OS on an un-raided single disk, and a separate RAID 6 array that's used for something else?04:35
ubuntu_user_01yess04:38
ubuntu_user_01sorry for the delay04:38
twbubuntu_user_01: is it md raid?04:38
ubuntu_user_01yes mdadm raid 604:38
twbAre you raid6-ing the disks, or partitions on the disks?04:38
ubuntu_user_01raid 6 the disks04:39
twbBummer.04:39
ubuntu_user_018 full hdd in raid 604:39
ubuntu_user_01well thats not good hahaha04:39
twbOtherwise you could easily just put /boot on a second set of raid1 partitions, and move the root partition into the array.04:39
twbWhich is what I'd do for a fresh deployment.04:40
twbI *think* GRUB2 can understand a /boot stored on LVM on md RAID now, but I wouldn't want to rely on it.04:40
ubuntu_user_01can i drop another HDD in and make my failing HDD a raid 1 with the new 1, yank out the failing drive and then rebuild the raid 1 with another new hdd04:40
twbubuntu_user_01: so you would end up with 10 disks, a raid-1 array of two disks for / and /boot, and the original, unchanged raid6 of eight disks for /srv?04:41
ubuntu_user_01wait...i think i am raid partitions04:41
ubuntu_user_01yea04:41
twbThat ought to work04:42
ubuntu_user_01sweet...now i just got to go break down my raid 0 in the hackintosh till i can get some new hdd04:42
ubuntu_user_01haha04:42
twbYou'll need to dance with grub during the transition, so make sure you have a live CD ready, preferably one with mdadm and lvm2 installed in it04:42
ubuntu_user_01alternate cd comes with both correct?04:42
twbNot in rescue mode, although you can probably anna-install them from the CLI while in rescue mode.04:43
twbI would normally use a hand-rolled rescue image, or the CentOS 5 live CD, or knoppix.04:43
twbIMO that's less hassle than trying to use d-i's rescue mode.04:44
ubuntu_user_01kk thanks for the help04:45
axisys_twb: hmm.. so jfs fs gets destroyed if it is external array while the internal disk has the OS which went bad?05:05
axisys_twb: hmm would be nice if jfs behaved like zfs where i can destroy my OS on internal disk and no worry05:06
twbaxisys_: huh?05:06
twbI don't know anything about JFS.05:06
axisys_ubuntu_user_01's raid6 was on JFS aparently based on his comment on #ubuntu05:07
twbaxisys_: surely you mean JFS was on RAID6.05:07
axisys_twb: that was what he said05:08
twbaxisys_: YOU said RAID6 was on JFS, i.e. backwards05:08
axisys_twb: oops.. yep05:08
twbI don't see why the filesystem would matter.05:11
twbHe had his OS filesystem separate from his data filesystem05:11
=== Guest76843 is now known as au
=== au is now known as Guest97869
carmonyWhat command can I run from the terminal to determine what interfaces I have available?05:39
qman__carmony, I assume you mean ethernet interfaces--ifconfig -a will show all the interfaces with drivers loaded05:40
twbqman__: ITYM "ip addr"05:41
carmonyqman__: thanks05:42
qman__twb, I use ifconfig05:42
qman__old habits die hard05:42
qman__it's a temporary means anyway, anything permanent should be in /etc/network/interfaces05:44
swifthi guys, if i start 'vncserver' on my linux box, I should be able to connect to it via vnc right?06:06
swiftit's not working for me06:06
=== Guest97869 is now known as au
qman__swift, vncserver requires an X session to be running to connect to06:32
qman__ubuntu server does not have a GUI06:32
=== au is now known as Guest20298
swiftqman_.. i got it goin.. thanks for your input!!06:33
twbqman__: um, I think vncserver uses a new Xvfb instance06:42
twbAnd installing vncserver ought to have pulled in X.06:42
twbUnless you're talking about x0rfbserver, which exports a normal X instance.06:42
maxagazhi07:00
maxagazmailq returns the following error for thousands of emails: mail system configuration error07:00
maxagazhow to debug it ?07:00
twbMaybe by configuring the mail system correctly?07:09
twbWhat MTA are you using?07:09
=== Guest20298 is now known as au
=== au is now known as Guest33703
=== swift_ is now known as swift
ruben23anyone tired vyatta CE router..?07:44
twbruben23: does it run Ubuntu Server?07:48
ruben23 twb:yes07:50
germanjew_an anyone here please help me with setting up a cloud?08:33
germanjew_can*08:34
twbIs there an ubuntu-cloud channel we can direct these people to?08:34
twbEUC bores me.08:34
=== Guest33703 is now known as au
germanjew_if you help me I'll be gone and you won't be bored anymore08:35
=== au is now known as Guest42419
twbgermanjew_: I can't; I know nothing about EUC08:36
germanjew_hehe ok08:36
twbIt's hard enough for me to keep normal hosts running, let alone a big sort of "blob" of them08:37
sherrgermanjew_: https://help.ubuntu.com/community/UEC08:50
sherrThere's also a PDF best practices doc on Intel's site about Ubuntu :08:51
sherrhttp://software.intel.com/en-us/articles/intel-cloud-builder-best-practices/08:51
sherrgermanjew_: But I cannot help more either because I don't know much about it (and am not that interested currently)08:51
twbsherr: ooh08:56
twbOh, just best practices for euc08:56
twbI thought you meant ubuntu in general08:56
sherrNo, cloud - but still a useful doc with some nice diagrams. Maybe I'm missing the nice diagrams, and that's why I don't see the point ..:-)09:01
germanjew_sherr: thanks alot, but I think I figured out what the problem was09:19
Akoshi everyone09:24
=== Guest42419 is now known as au
=== au is now known as Guest70186
=== _au is now known as au_
=== au_ is now known as Guest19673
eagles05138785hey guys where can i find kernel modules10:19
eagles05138785i just got a 2nd network cable for my server and its not the same as the first one and it seems like i dont have the module installed10:20
_rubennetwork cables dont require drivers10:24
eagles05138785what i mean though is the nics are 2 different broadcome models10:25
eagles05138785one is a pci xpress nic10:25
eagles05138785the other is a normal giga broadcome nic10:26
eagles05138785and the regualr one isnt showing up with an ip or anything when i do ifconfig10:26
eagles05138785_ruben: i got it10:26
eagles05138785had to bring it up10:26
ruben23hi, how do i install  sources for the 2.6.24-27-rt kernel10:34
=== Guest19673 is now known as au_
=== au_ is now known as Guest66551
=== Guest70186 is now known as au
=== au is now known as Guest15784
sherrruben23: apt-get10:43
ruben23 sherr: apst get..? what..? source  2.6.24-27-rt kernel ..?10:44
eagles05138785hey guys i want your feedback on something i have a router connected directly to the outside via cable modem and i have a server which has to nics and i was wondering if i set that up as a firewall should i put that directly to the cable modem and then the router or can i leave my setup the way it is10:45
eagles05138785the router has a simple nat firewall it seems like10:45
sherrruben23: There are manuals installed on every system - useful to know how to find out information yourself i.e. man apt-get. See the "source" option.10:49
Guest66551:11:03
joschihi, I'm trying to boot ubuntu over PXE in a vmware ESXi virtual machine. when the vm has a network interface of the types vmxnet2 or vmxnet3 it throws a kernel panic during the boot process. when the network interface is e1000 compatible, it works as expected11:25
joschiused kernel is 2.6.31-20-server11:25
joschianyone has had similar problems?11:26
=== dendro-afk is now known as dendrobates
=== Guest15784 is now known as au
=== au is now known as Guest41926
=== ogra_ is now known as ogra
=== Guest41926 is now known as au
=== au is now known as Guest82720
pthswhich package proves samba.schema for LDAP?12:59
sherrpths: you can search packages and package contents on packages.ubuntu.com13:02
pmatulispths: that would be samba-doc13:09
pmatulispths: (apt-file search samba.schema)13:10
=== luis__lopez is now known as luis_lopez
=== robbiew_ is now known as robbiew
jalonsI have a failed drive in a 9.04 server raid5 array, when I pass bootdegraded it's still not constructing, however I can assemble it from initramfs (busybox?)13:41
jalonshow can I either A. get bootdegraded (i also tried bootdegraded=true and bootdegraded=1) to work so I can copy data off then try the rebuild, or B. get network going from the initramfs environment so I can copy the data off13:41
=== Guest82720 is now known as au
=== au is now known as Guest56007
sherrjalons: no console access?13:46
sherrI guess "bootdegraded" needs sme updates to the system you haven't got.13:47
jalonssherr: I do have console access13:47
sherrI thought that a degraded RAID would allow bootup but expects you to "hit enter" (or something)?13:48
jalonslooks like in 8.10 they changed it13:48
sherrPainful problem that : https://wiki.ubuntu.com/BootDegradedRaid13:49
jalonsi think it actually tries to continue on, but mdadm is throwing an error that it can't create the array13:49
zullamont: ping when you get a chance can you have a  look at #54295513:49
sherrjalons: there's always a liveCD/recovery mode?13:49
jalonssherr: yeah, waiting on approval to get access to a CDR to burn a recovery cd13:50
jalonsthanks, I'll explore that venue13:50
nijabakirkland: hello!  do you know if there is a way in euca to prevent a node from accepting new instances?13:55
diagohow can I revert a fail apt-get install14:03
mealstromapt-get install -f14:05
mealstrom?14:05
diagofails with the same errors14:05
jalonsresolve the errors14:09
sherrdiago: maybe pastebin your errors ...14:09
diagoit's a syntax error in one of the packages trying to be installed. I just want to kill the attempt14:10
diagothird party package of course14:10
lamont-rw-r--r-- root/root   1549844 2010-03-19 15:18 ./usr/lib/libdns.so.64.1.0 <-- zul: looks pretty non-empty to me...14:11
lamontor is that not what ldconfig.real means by that error?14:12
zulim not sure14:12
lamontanyway, afk for a couple hours - breakfast14:12
jalonsdiago: so the package is throwing a syntax error, so it won't install?  is it listed in dpkg as partially installed?14:13
jalonsyou may be able to dpkg --purge pkg and then apt-get install -f14:13
diagoit is showing as partial but I'm finding out that removing it will totally uninstall open-xchange14:14
diagogreat, MONDAY14:14
jalonsahh dependency hell14:15
jalonsSorry man, at that point I find a new machine and start over.14:15
diagolol... not really an option right now. I'll see what #open-xchange has to say. Thanks though.14:16
=== TrickFin2 is now known as TrickFinlay2
diagocan I run a virtualbox question by in here. Windows host - ubuntu guest?15:06
sorendiago: Depends.15:14
sorendiago: It's easier to say after you asked the question, I guess.15:14
diagook. I'm having trouble using a windows host and ubuntu guest server. The network adapter in the guest can ping the gateway but if I ping an outside address the name is converted by DNS but I receive no packets15:15
_rubensounds like a config issue in the host and/or virtualbox, as in: its not nat'ing/bridging/whatevering properly15:19
sorendiago: Yeah, that doesn't sound like an Ubuntu problem, really. It sounds like something in the hypervisor or on the host side, to be honest. I suggest you try some kind of VirtualBox support forum.15:20
diagook, I just tried a different adapter (intel server) and it seems to be working... strange15:21
diagothanks though15:21
zulttx: nut ffe uploaded15:25
zul2 more to go ;)15:25
diagowell, it works fine when dhcp is used so it must be my config15:26
diagothis is crazy, if the guest receives info from dhcp it works fine, static no dice15:33
_rubendiago: is the static config similar to the dhcp config?15:35
diagofrom what I can tell, the only additional param I am using is network 192.168.0.015:35
diagobut even if I remove that I still get nothing15:35
diagowell, I can get around internal fine15:36
zulmathiaz: when you get a chance can have a look at https://bugs.edge.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/50698515:36
MTecknologyI just got my Ubuntu 9.10 CD's :D15:55
MTecknology1 desktop, 1 server - /me is excited15:55
=== jeiworth_ is now known as jeiworth
smoserttx, do you happen to have any insight on https://bugs.launchpad.net/ubuntu/+source/ec2-api-tools/+bug/54239516:53
ttxsmoser: not really. Maybe doko can help you16:58
ttxsmoser: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=57374217:00
smoseryeah, i just saw that and was going to test the -Djava.net.preferIPv4Stack=true17:01
ttxsmoser: if you confrm it's the same, you should change the package affected and link to the debian bug17:01
smoserworks17:01
ttxsmoser: maybe we can workaround it... but we should keep a bug open against openjdk17:02
RoAkkirkland, found a way to parse the config files17:03
smoserttx, yes.17:03
smoserthanks.17:03
ttxkirkland, mathiaz, smoser: I'm about to call it a day -- anything you need from me ?17:07
smosernot from me.17:07
mathiazttx: not from me.17:07
ttxjsdelfino: I think we worked together circa 1997.17:08
kirklandttx: nope, thanks17:08
kirklandRoAkSoAx: cool17:08
RoAkSoAxkirkland, i'll work on it and post all my code for you to take a look at it17:10
RoAkSoAxkirkland, and I uploaded a branch with the testdriverc change for obtaining the code name: lp:~andreserl/testdrive/codename-change17:10
* ttx disappears17:11
kirklandRoAkSoAx: yeah, i saw that one; it's not quite what i had in mind; i have a better design in mind; don't have time to detail it right now; but i'll try to get it in tonight17:20
kirklandRoAkSoAx: shouldn't affect your modularity, though17:20
RoAkSoAxkirkland, it should since I'm planing to handle that differently, other than that I'll just merge your change sin mine17:21
kirklandRoAkSoAx: cool17:22
kirklandRoAkSoAx: basically, i'm going to move the config code that builds the list of ISOs to a different file17:22
kirklandRoAkSoAx: different config file17:22
kirklandRoAkSoAx: that only gets sourced if we're in the "Select an ISO" code path17:23
kirklandRoAkSoAx: which necessarily requires network connectivity17:23
kirklandRoAkSoAx: I want to avoid requiring network connectivity for those code paths that don't actually need it17:23
kirklandRoAkSoAx: like "testdrive -u /path/to/local/foo.iso"17:23
RoAkSoAxkirkland, woulnd't it be more user to keep the menu but show "no network connectivity, please insert path to iso"? instead of showing the whole menu?17:25
RoAkSoAxkirkland, I have just uploaded my changes to a branch for you to take a look at: lp:~andreserl/testdrive/module17:28
RoAkSoAxan initial modularization is pretty much done, but It still requires many changes to improve the code basically17:29
RoAkSoAxand I'll probably merge the launch_kvm launch_virtualbox and launch_parallels functions from the executable to the "module"17:29
RoAkSoAxkirkland, there's also a "prueba" script that shows how to use the configparser17:30
RoAkSoAxand I'm creating the ISO list in the "module" instead of creating it in the config17:31
kirklandRoAkSoAx: i'm really slammed all day today, so i won't be able to get to it until tonight17:31
RoAkSoAxso that it is used for both, the command line, and the PyGTK interface in the future to create a manu17:31
RoAkSoAxkirkland, its ok, I'm gonna do some work on it today with the way I was planing to parse the config file, so that you can see all that tonight17:32
kirklandRoAkSoAx: awesome17:32
mathiazkirkland: http://paste.ubuntu.com/399417/17:38
mathiazkirkland: http://paste.ubuntu.com/399432/17:52
=== MenZa_ is now known as MenZa
=== luis__lopez is now known as luis_lopez
wack479when running rsync on my ubuntu 9.10 server kernel 2.6.31-20 when it gets to a large file, it kernel panics and then reboots, anyone else had this problem?18:54
RoyK^oh18:59
RoyK^2GB limit?18:59
sorenwack479: Oh, wow. Which filesystem?19:01
Callum__wack479: are you copying to or from a FAT32 filesystem? or any other filesystem with relatively small file size limits?19:04
RoyK^even if was FAT12, a panic is bad news19:04
scar_my friend wants to build a couple of devices that will link to each other sharing processing power and other resources, I've offered to help him out on the software side. For starters we tried Eucalyptus via the 9.10 server cd inside virtualbox19:07
scar_we followed both the server guid and community documentation, but still was not able to get it working19:08
sherrscar_: can't help with the cloud stuff myself, but know you'll need to define how it didn't work in more detail. What exactly didn't work?19:12
scar_one thing that baffle me is that eucalyptus needs 40gb space for both clustor and nodes19:12
scar_sherr I had problems building my own images (with vm-builder) and starting the image afterwards19:13
sherrUEC folks : Good PDF article on Clud Best Practice (with Ubuntu UEC) here :19:13
sherrhttp://software.intel.com/en-us/articles/intel-cloud-builder-best-practices/19:13
sherr(scar_) that's not to help you out specifically19:14
sherrClud? Cloud* :-)19:14
scar_right now I think it's better for me to focus on other possable solutions, since giving each device 40gb hdd space isn't really an option right now19:15
nosse1Hello. After I upgraded my server to karmic, the ssh daemon lets the users log in, even before fsck is done checking the user's disks. How can I change the order?19:17
sherrscar_: where does it state those requirements?19:17
scar_https://help.ubuntu.com/community/UEC/CDInstall19:19
ttxkirkland: did you notice19:21
ttxhttps://lists.ubuntu.com/archives/ubuntu-server/2010-March/003906.html19:21
kirklandttx: sorry, no, haven't gotten to it19:22
ttxkirkland: nothing urgent, just something to keep an eye on, I guess :)19:23
ttxI'll do a few tests when I'll be back on Friday.19:23
kirklandttx: yeah, agreed19:26
ttxkirkland: I experienced sluggish performance under kvm recentely, and it might have been when I did iso testing over qcow2 images.19:27
smoserjdstrand, i just opened bug 544435 i believe its a problem with app armor profiles for libvirt19:39
a|3xhi19:52
a|3xwhen i run posix_getpid in php i get pid of apache process, why is that?19:52
joschia|3x: probably because you're running mod_php19:58
a|3xjoschi: would it be possible to have apache start different process for each page request?20:00
joschisure. run php with mod_cgi or suphp20:01
joschibut this means a certain performance hit20:01
joschinormally you want to avoid that20:01
a|3xthats how its done on centos i believe20:04
a|3xthe problem is i have a long polling app and i would like to prevent clients from long-polling more than once20:05
a|3xto do that i was planning to use pid checking20:05
a|3xis there any other way to do it?20:05
joschiwhy not just check a cookie or (more error-prone) the ip address before starting your expensive calculations?20:09
a|3xwhat if they are behind a nat20:09
joschithen cookies will still work…20:10
a|3xi have non-browser client apps i and would really like to keep them simple and not require cookies20:10
a|3xplus, cookies can be hacked20:10
a|3xactually, this is more of a licensing issue rather than calculation20:12
joschihow would knowing the process id of your php process prevent that in any way?20:12
a|3xlock mysql db lock, get pid in database next to key they provided, see if that process is still alive, if yes, return with key already used error, else save pid, unlock lock, go on20:14
a|3xi could use the db lock for that but i need it for efficient long-poll20:16
a|3xi could set flags in the db but what if the process dies and the flag never gets reset20:16
a|3xhow big of a performance hit is it?20:17
joschithe php binary will have to be loaded for each request20:17
joschisince it's in the cache after the first run, at least it doesn't have to be read from the disk every time20:18
joschia|3x: just try it20:18
a|3xthe question is, after each long-poll event i am going to have everybody requesting it again all at the same time20:19
a|3xquestion: how much of a hit it will be when 100 php processes start all at the same time20:20
a|3xcompared to what i have now20:20
a|3xthat is mod_php20:20
joschi100 * size of a single php binary20:21
joschido your maths ;)20:21
a|3xhow does mod_php work?20:22
a|3xfork?20:23
a|3xno wait20:23
joschia|3x: the interpreter is embedded in the apache processes. that's why you only see apache's pid. no forking is done on a request.20:27
a|3xwould it be possible to see if a particular php script is still executing within some apache process?20:29
a|3xunique id of some sort maybe?20:29
=== Guest66551 is now known as au_
=== au_ is now known as au
=== AntORG_ is now known as AntORG
RoAkSoAxkirkland, is it really necessary to load multiple config files in testdrive?20:54
kirklandRoAkSoAx: yes; talk to hggdh20:54
RoAkSoAxhggdh, ping20:54
RoAkSoAxkirkland, ok, because I really don't see the point of having multiple config files :)20:54
hggdhRoAkSoAx, pong20:55
RoAkSoAxhggdh, is it really necessary to have multiple config files for testdrive, why?20:56
hggdhRoAkSoAx, we need to be able to test different scenarios -- for example, no network connectivity20:56
hggdhor different memory allocations20:56
hggdhetc20:57
hggdhRoAkSoAx, you mean the successive loads?20:57
RoAkSoAxhggdh, yeah20:57
hggdhRoAkSoAx, they do not hurt -- and allows one to only change what is needed20:57
hggdhfor example, I usually base mysefl on /etc/testdriverc, and only add my own changes20:58
kirklandRoAkSoAx: basically, we need 2 ... on distro level set of defaults20:58
kirklandRoAkSoAx: and 1 local one for users to override those20:58
kirklandRoAkSoAx: various people "complained" about where that local one was located20:59
kirklandRoAkSoAx: I thought ~/.testdriverc made perfect sense, but then some people wanted in ~/.config/ and other newfangled locations20:59
kirklandRoAkSoAx: so it's best to just create one process for sourcing a config file, and pass that process an array of locations, in order21:00
RoAkSoAxkirkland, hggdh, uhmmm ok, because I was thinking on doing something like if it does not exist in ~/.testdriverc use the one in ~/.config/ if not, use the default in /etc/testdriverc21:00
kirklandRoAkSoAx: that's not how traditional Unix configs work ....21:00
hggdhRoAkSoAx, I would rather first source the default in /etc/, *then* whatever the user wants21:00
kirklandRoAkSoAx: the traditional Unix config process is a) first source a global config21:00
kirklandRoAkSoAx: b) then source local configs21:00
kirklandRoAkSoAx: please don't go changing this sort of core testdrive functionality21:01
kirklandRoAkSoAx: that part is there for a reason ;-)21:01
hggdhheh. kirkland stated it more nicely21:01
RoAkSoAxkirkland, yeah I just trying to figure out the sourcing of config files since I'm using configparser for that functionality21:01
kirklandRoAkSoAx: right ... so for that, just concatenate all of them together21:02
kirklandRoAkSoAx: and then run the conf parser across it whole blob21:02
kirklandRoAkSoAx: assuming that later variables overwrite earlier ones21:02
hggdhand catenate them in the correct order ;-)21:02
kirklandRoAkSoAx: right, what hggdh said ;-)  order matters!21:02
RoAkSoAxkirkland, i was either thinking on having something like "testdrive-globals" and testdrive-locals and they *had* to be different and nto override, but I guess that we should be able to override in local config a global variable, correct?21:03
hggdhcorrect21:03
hggdhthe global gives the user sane defaults21:03
hggdhthe user config can be as messed up as the user wants, but the global *has* to be sane21:03
kirklandRoAkSoAx: the key being that ***we*** get to change the globals, but ***users*** get to override them with whatever they want21:04
hggdhideally, nobody will ever need to change /etc (heh, at least I can hope)21:04
RoAkSoAxhggdh, kirkland ok so, now a python programming question: is it possible to for example do something like: var = KVM_ARGS, then pass that var to a function, and in the function do something like self.var = "-usb" where self.var should actually be self.KVM_ARGS21:06
RoAkSoAxso to the function I can pass functio(var,value)21:07
RoAkSoAxand var is an attribute in a class21:07
RoAkSoAxset_function(self, var, value)self.var = value21:07
RoAkSoAxsomething like that?21:07
hggdhso you are actually defining a class, and heper methods in it21:07
hggdhas long as the helper methods are in the class, no problem21:08
hggdhI was, in fact, thinking of setting all the config in a class, and passing it to the emulator to be used21:11
RoAkSoAxhggdh, http://paste.ubuntu.com/399537/21:13
RoAkSoAxhggdh, how can I make that self.var = value, if var is a variable, but should refer to a varibale in the class instead of to the variable var21:14
RoAkSoAxidk if you understand me :)21:14
hggdhRoAkSoAx, easier to have all the attributes in the class21:16
hggdhso that you can just do testdrive.mem=<value>21:16
RoAkSoAxhggdh, http://pastebin.ubuntu.com/399538/21:18
RoAkSoAxhggdh, i actually modifying the attributes of the class from the main(), however, I'd rather have a set_values class to be able to set the value to a specified var so that I dont have to do it from main21:19
RoAkSoAxbecause IIRC, it is better to modify the attributes of a class from class functions and not from main, correct?21:19
hggdhRoAkSoAx, opinions vary there ;-) I personally do not like a generic setter like this, makes following the code harder to understand21:22
hggdhif this was an extremely complex programme, then (probably) yes; but you are already using configparser...21:23
hggdhand, BTW, it is better -- following you example -- to do if x: ... elif y: .... elif z: ...21:23
hggdhmay be ugly, but such is life21:24
RoAkSoAxhggdh, haha indeed, but it would be better that way in my opinion, that's why Im wondering if theres a way to do that21:24
hggdhand yes, whenever possible, modify class attributes via helper methods21:24
hggdhmost probably there *is* a way. Not sure it is worth your time (right now)21:25
hggdhalso -- in the helper methods you would probably add syntax and semantic, and whatever, checks21:25
RoAkSoAxhggdh, ok then, since this is just first modularization i guess I will stick to if if if :)21:26
hggdhfor example, the memory size is expected to be an integer, greater than zero and less than <memory available>, expressed in Megas21:27
hggdhso 384 == 384Mbytes21:27
hggdh(of course, this is a simple example, but you could have more stringent checks for, say, URLs)21:28
RoAkSoAxhggdh, kirkland ok. The config loading is done and should work with various configs. the only thing would be that each user will have to add [testdrive] in the config file22:03
RoAkSoAxkirkland, hggdh_ lp:~andreserl/testdrive/module, just pushed my latest changes22:15
=== hggdh_ is now known as hggdh
=== robbiew is now known as robbiew_
a|3xhow would i make apache run php scripts with mod_cgi?22:19
=== ubuntu is now known as kirkland-suds
kirkland-sudsmathiaz: smoser: yeah ...  well, 27kB/s ... no better :-(22:41
smoserbah22:41
kirkland-sudssmoser: mathiaz: smells nice in here though22:41
kirkland-sudssmoser: ask nurmi if Goleta's uplink is a carrier pigeon22:42
Burgundaviakirkland-suds, ping re: byobu22:42
kirkland-sudsBurgundavia: what's up?22:44
kirkland-sudssmoser: actually, i just spiked to 250kB/s22:44
smoserwoohoo22:44
modhey all22:44
Burgundaviakirkland-suds, ripping out my hair for last minute Ubuntu book stuff. Is byobu seeded by default anywhere?22:45
modis it generally true that if I am running RAID 1 with two drives, I should be able to pull one drive and mount it stand alone?22:45
kirkland-sudssmoser: can you see ESSID sbsoap ?22:45
modnot matter the RAID 1 is hardware or software or which ever brand?22:45
smoserno. i've never seen it.22:45
kirkland-sudssmoser: okay, i'm rocking now22:46
Burgundaviakirkland-suds, specifically, it is seeded on the Ubuntu server/desktop/netbook cds? my browsing says no22:46
kirkland-sudsBurgundavia: it's a recommends of screen22:46
kirkland-sudsBurgundavia: actually, it is, as of Karmic22:46
kirkland-sudsBurgundavia: fire up a Lucid desktop ISO (by Testdrive, perhaps, and you should be able to open a terminal on the LiveCD and just run 'byobu')22:47
Burgundaviakirkland-suds, no kvm on this laptop. and now I feel stupid. I saw that dependency chain and for some reason it didn't connect in my mind22:48
Burgundaviathanks22:48
kirkland-sudsBurgundavia: Testdrive works with VirtualBox too ;-)  but yeah, it's seeded22:48
kirkland-sudsBurgundavia: glad to hear byobu's earned a mention in your book22:48
kirkland-sudsBurgundavia: what book is it?22:48
kirkland-sudsmathiaz: screaming through the langpacks now22:49
Burgundaviakirkland-suds, official ubuntu book, the command line chapter22:49
kirkland-sudsBurgundavia: cool ;-)22:49
kirkland-sudsBurgundavia: poke me if you want a byobu deep dive some time; happy to show you the advanced features if you like22:50
Burgundaviakirkland-suds, for the next edition of the server book, we should probably do something, but that isn't my baby.22:51
Burgundaviabut thanks, yes22:51
kirkland-sudsBurgundavia: sure thing; is that Kyle Rankin's book?22:51
Burgundaviayep22:51
kirkland-sudsBurgundavia: cool; i have an email from him that i need to respond to22:52
kirkland-sudsBurgundavia: thanks22:52
Burgundaviakirkland-suds, for a quick sanity check, do you have time for a 10 minute look at what I have written?22:55
hggdhRoAkSoAx, you are mixing tabs and spaces, not a good idea22:56
kirkland-sudsBurgundavia: sure22:57
kirkland-sudsBurgundavia: wanna email it to dustin dot kirkland at gmail dot com ?22:57
Burgundaviadoing so now22:59
Burgundaviakirkland-suds, did you get it?23:03
kirkland-sudsBurgundavia: got it23:04
kirkland-sudsBurgundavia: where's the track changes option?23:04
Burgundaviaedit-->changes-->record23:07
Burgundaviaand edit-->changes-->show23:07
kirkland-sudsBurgundavia: the only suggestion I have really, would be to mention F6 (detach) and byobu -x (re-attach), and F7 scrollback23:07
kirkland-sudsBurgundavia: otherwise, it's a nice concise introduction23:07
Burgundaviathanks23:08
kirkland-sudsmathiaz: smoser: lang packs complete23:09
kirkland-sudson to kernels :-/23:09
kirkland-sudssmoser: mathiaz: bandwidth is great though; should work from here tomorrow23:09
kirkland-suds    21200896  68%  683.60kB/s    0:00:1423:09
mathiazkirkland-suds: is there someone around?23:10
kirkland-sudsmathiaz: there's a few people in here, but there's a cafe with tables and chairs just outside23:10
=== nxvl_ is now known as nxvl
kirkland-sudssmoser: mathiaz: do either of you have a laptop cable lock?23:11
smosernope23:12
mathiazkirkland-suds: nope23:12
kirkland-sudssmoser: mathiaz: bummer23:12
mathiazkirkland-suds: how long is this going to take?23:12
kirkland-sudsmathiaz: it's about 20x faster, but it'll still be a while23:12
kirkland-sudsmathiaz: i'm just on pool/main/l/linux/linux-image-2.6.32-17-preempt_2.6.32-17.26_amd64.deb23:13
kirkland-sudsmathiaz: gotta make it through the rest of main, then universe23:13
kirkland-sudsmathiaz: smoser: http://pastebin.ubuntu.com/399589/23:14
a|3xi am having difficulties setting up suphp, anybody care to help?23:19
a|3xInvalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration23:19
kirkland-sudssmoser: mathiaz: made it through the kernels23:20
RoAkSoAxhggdh, tou mean spaces for def and tabs for everything else?23:23
hggdhRoAkSoAx, no, actually one should use *either* spaces *or* tabs in a Python source, but not both (PEP 8 highly recommends spaces)23:25
hggdhin my vi edit of the source, everything seems to be on the same column (because my vi is configured to \t == 4 spaces)23:25
hggdhRoAkSoAx, bye either/or, I forgot to add -- but not both23:26
hggdhmy, my, am I writing bad today or what?23:26
kirkland-sudshggdh: RoAkSoAx: but I *strongly* prefer tabs and tabs only!23:27
hggdhRoAkSoAx, the master's voice ;-)23:28
kirkland-sudstwo reasons: a) 1 tab = 1 byte, b) anyone can configure their editor to represent a tab as as much (or as little) whitespace as they like23:28
maxba) is largely irrelevant in the face of disks, bandwidth and compression technology of today23:29
hggdhkirkland-suds, as long as it is either/or (but not both) Python feels good...23:30
RoAkSoAxkirkland, hggdh ok, better yet, I love using tabs for coding23:30
maxbb) is a noble goal which starts to fall apart once questions of where the right margin is, and how long statements should be wrapped, enter the picture23:30
RoAkSoAxhggdh, kirkland-suds NAyways, just ping if somethings is need, Call of Duty MW2 awaits me :)23:31
RoAkSoAxlater23:31
maxbBut really, so long as no-one mixes both in a single file, that's a good start23:31
hggdhmaxb, yes indeed, and a lot of hard-core old coders (see coreutils, for example) are moving out of \t23:32
* hggdh does not care, as long as it is only one of them23:33
hggdhok. Time to get the grill23:33
kirkland-sudshggdh: agreed23:37
kirkland-sudsmaxb: understood; (a) is not about bytes-on-disk, it's about left-and-right-arrow to me ;-)23:38
kirkland-sudssmoser: mathiaz: openjdk is figgin huge23:39
a|3xanybody care to help me figure out why my suphp setup is not working?23:39
kirkland-sudssmoser: mathiaz: oh, FCOL ... openoffice :-/23:42
ruben23hi23:52

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