/srv/irclogs.ubuntu.com/2008/09/05/#ubuntu-server.txt

warchief_ryanAnyone know how to make a NAT box but still be able to use the host box with iptables? Ive seen a few "guides" but they don't seem to say if you can still use the host box, from the command its looks like there just forwarding everything...00:27
warchief_ryanexample,00:34
warchief_ryaniptables -A FORWARD -i eth0 -o eth1 -m state ESTABLISHED,RELATED -j ACCEPT,00:34
warchief_ryaniptables -A FORWARD -i eth1 -o eth0 -j ACCEPT,00:34
warchief_ryaniptables -A FORWARD -j LOG,00:34
warchief_ryaniptables -i NAT -A POSTROUTING -o eth0 -j MASQUERADE.00:34
warchief_ryanim new to iptables but that looks like it would just forward everything, so I wouldn't be able to connect to that box and have it send and receive packets right?00:37
warchief_ryanlike if I tryed to ssh into it00:38
ajmitchFORWARD chain is separate from INPUT00:43
ajmitchso you can still ssh to it00:43
warchief_ryanso it would still recognise packets for the host that aren't meant to be forwarded to box's behind it?00:45
ajmitchyes00:45
=== p0w4h` is now known as p0w4h
=== Dedicated is now known as dedi_away
twbTo save me a few minutes of searching, does anyone have the URL for Ubuntu's end-of-life policy for LTS releases?00:56
leoneltwb: https://wiki.ubuntu.com/Releases01:17
twbThanks.01:17
Overandjdstrand: thanks, re: ufw data location01:27
Overandjdstrand: Looks like I misread the wiki article, ah well.01:28
jdstrandnp01:36
spiritssightany one recommend a good Dynamic DNS provider for website that uses gmail for the mail and a desktop for the webserver with a dynimic IP and also has ssl cert02:13
spiritssightalso has more then one subdomain02:13
=== fReAkY[t] is now known as freaky[t]
uvirtbotNew bug: #239640 in openvpn-blacklist (main) "openvpn-vulnkey disagrees with openssl-vulnkey" [Undecided,Invalid] https://launchpad.net/bugs/23964006:16
=== dedi_away is now known as Dedicated
arvind_khadridoes squid have GUI??07:48
arvind_khadriany proxy server which has a GUI?07:49
uvirtbotNew bug: #264946 in dovecot (main) "Please update dovecot to 1.1.3" [Undecided,New] https://launchpad.net/bugs/26494607:51
uvirtbotNew bug: #264966 in openvpn (universe) "openvpn initscript no longer details the VPNs started" [Undecided,New] https://launchpad.net/bugs/26496609:26
=== Abracadabr4 is now known as Abracadabra
NCommanderkees, ping?09:52
ghatakHi, is it possible to use logrotate to only delete files older than a certain period of time and not do any rotation of logs or compression ?10:06
sorenmdz: re vnc/kvm/evdev: It's the vnc frontend that needs to translate the incoming keycodes to pc scan codes. I don't know how familiar you are with NC, but it used to be that VNC sent keysyms over the wire, but back in January or February or thereabouts we added an extension to VNC that allows it to send scan codes instead, thus obviating the need to specify a keymap on the kvm command line, which it used to use to translate keysyms to scan codes.10:08
sorens/ NC/VNC/10:09
sorenevdev, howver, changed the key code -> scan code mapping, so this went bonkers.10:09
mdzsoren: I'm not (knowingly) using VNC; is that used for local X display as well or something?10:10
sorenIn the end, we found a way to detect evdev on the host, and make use of a different mapping when it's in use.10:10
sorenmdz: It's used by virt-manager.10:10
sorenmdz: ..and virt-viewer.10:10
sorenmdz: The frontend you get when you use kvm directly is SDL-based, and isn't quite fixed yet.10:11
sorenBut the recommended way to use kvm anyway is through libvirt, so for all the recommended uses of kvm, the problem is fixed. I'm waiting for a patch for the SDL thing from upstream. It's not far off, but the guy working on it has been on holidays for the past couple of weeks.10:12
sorenmdz: You use a dvorak keymap, right? You must have had your share of pain dealing with qemu in the past?10:14
uvirtbot`New bug: #264982 in samba (main) "Segfault in Samba" [Undecided,New] https://launchpad.net/bugs/26498210:21
NCommandersoren, qemu is why I went back to QWERTY from Dvorak10:25
sorenNCommander: You don't have to anymore.10:29
NCommanderI don't remember Dvorak10:30
NCommanderI tried using the Dvorak keyboard on my old desktop and find I don't remember how to touch type it anymore ;.;10:30
NCommanderbrb10:32
mdzsoren: yes, I do, and no, I never had a problem with qemu10:44
sorenmdz: Oh, right, your keyboard does remapping in hardware?10:47
sorenmdz: Well, anyone who uses a non-US keyboard will know the pain it used to cause. With that new VNC extension all the known problems were solved. I would have been very sad to see it go away.10:49
NCommandermdz, you have a hardware Dvorak keyboard? Nice!10:49
uvirtbot`New bug: #265004 in postfix (main) "postfix upgrade does not replace /etc/postfix/postfix-script" [Undecided,New] https://launchpad.net/bugs/26500411:26
mdzsoren: how is the kernel handled for building EC2 VMs?12:05
sorenmdz: Xen has its own bootloader. You pass a kernel and initrd (and kernel command line) to the hypervisor. In EC2, this works by building a manifest that describes where to find the filsystem images, and the kernel, and the initrd.12:10
soren...so the kernel and initrd are entirely seperate from the image.12:10
mdzsoren: so we don't include a kernel or modules at all?12:16
sorenmdz: I'm still trying to work out the details of that. It depends somewhat on what the final outcome of the kernel is.12:23
sorenmdz: But I'm thinking "no".12:23
=== Bambi_BOFH is now known as Kamping_Kaiser
zulsoren: I was thinking about that last night and we might have to include the modules on the domU because there are use cases where poeple use things like asterisk on ec213:08
sorenI think that's meant to be handled separately, then.13:10
zul?13:10
sorenThe way i've seen it done is that the initramfs contains the essential things like net and blk, and anything else gets wgotten.13:10
zulare you sure?13:11
sorenNot entirely. I may be confused by looking at both init scripts and image building scripts over the last few days.13:12
zulheh13:12
=== vk5foss is now known as kgoetz
=== `6og is now known as Kamping_Kaiser
chumleyI'm needing to set up a backup mail server. If the primary goes down, this system would queue the mail until the primary server comes back up. There is an option during install called "Internet with smarthost". I tried this yesterday and it appears to work. Is that the best way to set this up?14:23
uvirtbot`New bug: #265058 in openvpn (universe) "openvpn2.1~rc7 fails to pick up the CN of certificates" [Undecided,New] https://launchpad.net/bugs/26505814:31
zulwhat if the smarthost goes down?14:39
chumleyI'd like the ubuntu box to hold the mail and then deliver it when it comes back up.14:40
=== Deeps_ is now known as Deeps
=== nxvl_ is now known as nxvl
uvirtbot`New bug: #265102 in bacula (universe) "bacula not compiled with FORTIFY_SOURCE" [Medium,Confirmed] https://launchpad.net/bugs/26510217:46
ScottKleonel: http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/2008-September/000049.html17:48
leonelScottK: suscribed to the list  and checking those patches ...20:03
ScottKleonel: Great.20:52
fomigo I have a problem with Nautilus in Ubuntu 8.04. It doesn't work properly - CPU 50%, but in Nautlues over root it's all right. Maybe someone knows about it anything?21:10
=== _Nicke_ is now known as Nicke
jdstrandkees: so, I consider you a bit of an lvm guru...21:37
* kees blushes21:37
jdstrandkees: I recently had a drive just totally crap out on me and  won't even show up in the BIOS21:37
jdstrand(post)21:37
jdstrandit was drive #2 in an lvm setup (no raid, data easy to  replicate)21:38
jdstrandbut, in the interest of time, I'm hoping I can get to the data on drive one21:38
keesjdstrand: what sort of LVs did you have in your VG?21:38
jdstrandkees: it seems this should be possibly (I'm not sure drive #2 even really had much on it)21:38
jdstrandkees: you mean the fs?21:39
keesjdstrand: I actually mean the allocation of LV onto physical extents.21:39
keesdid you have 1 big LV, or many small, etc?21:39
* jdstrand goes and checks21:39
jdstrandoh, well just one big one21:40
keeswas it larger than drive 1?21:40
jdstrandkees: I had just the one for a large backup disk21:40
* kees nods21:40
jdstrandkees: 2 160GB identical drives21:40
keeslvdisplay -m LVPATH   will show you were it was allocated physically21:41
jdstrandkees: yeah, that's part of the problem-- lvdisplay was no help because of the way the drive died21:42
keesah, the VG won't start?21:42
jdstrandcorrect21:42
keeshrm... this is now in a bit of a murky area for me.  Let me check the vgchange man page21:43
keesjdstrand: is it the only VG on the system?21:43
Goosemoosei set up apt-cacher, but im a bit confused on how to enter this in to preseed.cfg21:43
jdstrandyes21:43
Goosemooseanyone got a sec? the preseed.cfg docs are a bit confusing on this21:44
keesjdstrand: does  vgchange -a y    error out?21:44
jdstrandkees: it looks like I have the commands I used to set it up though21:44
jdstrand$ sudo vgchange -a y No volume groups found21:44
keeshunh.21:45
keessudo pvdisplay /path/to/drive/121:45
jdstrandkees: if you mean:21:46
jdstrandsudo pvdisplay /dev/sdc21:46
jdstrandor sdc[123]21:46
jdstrandI get:21:46
keesyeah, meant the partition21:46
jdstrand$ sudo pvdisplay /dev/sdc3 No physical volume label read from /dev/sdc3 Failed to read physical volume "/dev/sdc3"21:47
keesbasically, is LVM able to read the "good" drive at all?21:47
jdstrandkees: doesn't seem so, but fdisk can see the partition table21:47
keeswhoa, that's really odd21:48
keescan you pastebin the commands you used to create it?21:48
jdstrandkees: I have in my notes that I used partition typ 8e, but see in fdisk that it's 83...21:48
keessomething seems to have clobbered the drive?  or re-ordered it?21:49
jdstrandkees: http://paste.ubuntu.com/43737/21:49
jdstrandkees: this is not the exact commands after all..21:50
keesyeah, looks fine.  (I've seen people do "whole drive" LVM stuff, and it's just painful)21:50
mathiazGoosemoose: http://paste.ubuntu.com/43738/ <- does that help ?21:50
jdstrandkees: but I guarantee it is what I used, caused that's my recipe :)21:51
keesso... if pvdisplay doesn't think it's an LVM PV, that's pretty unfun.  :(21:51
jdstrand(with the possible exception of the extents)21:51
keesjdstrand: I wonder if pvscan shows anything?21:52
keesor pvscan -n ?21:52
jdstrandno21:52
NCommanderhey kees21:53
Goosemoosemathiaz ,looking21:54
jdstrandkees: this machine goes way back and I remember when upgrading to hardy, I redid the drives21:54
keesheya NCommander21:55
jdstrandkees: maybe I only added the other drive to the lv21:55
jdstrandkees: I won't waste any more of your time. thanks!21:55
NCommanderkees, I talked to the archive admins on doing the PIE changes21:55
NCommanderAnd worked out generally how it can be done21:55
keesjdstrand: hrm.  yeah, if there's no PV signature, I'm stumped.  :P21:55
Goosemoosemathiaz, i already have that part setup, this is for the apt setup21:55
keesNCommander: ah cool.  who did you talk with?21:55
NCommanderkees, slangasek, pitti, and I'm blocking on the last name21:55
Goosemoosethe preseed i d/l had additional repositories, does the info you listed cover the apt-cacher already?21:56
Goosemooseseemed like they were two different things21:56
NCommanderkees, it generally agreed that rebootstrapping the base system due to the static libraries is required since we have circular dependencies. However, they don't feel a full archive rebuild is needed, thus we just need to make sure any important packages are properly touched21:56
mathiazGoosemoose: the three entries I've used are used to setup the mirror option in the install21:56
mathiazGoosemoose: adding aditional apt repositories is also possible21:57
mathiazGoosemoose: it depends on what you wanna do21:57
Goosemooseok21:58
keesNCommander: yeah, sounds right.21:58
keesNCommander: can you document this stuff on the PIEExperiment wiki?21:58
keesjust so we have a record of issues and solutions21:58
NCommanderkees, once I make sure my resulting compiler works, I'm waiting on the regression testing21:59
keesheh21:59
cameronhWhen I enable AHCI for my SATA drive in my BIOS, Grub won't work (I get error 18 -- apparently Selected cylinder exceeds maximum supported by BIOS)22:00
NCommanderkees, ATM, I'm having trouble making the spec string changes "stick" so to speak22:01
keesNCommander: did you see the patches I wrote?22:01
NCommanderkees, yeah, but your patches would affect all architectures22:01
keestrue, true.22:01
NCommanderI need the CPU dependent CC1 strings22:01
keeslook in debian/rules.patch (or something?).  it has per-arch patches.22:02
NCommanderHrm22:02
NCommanderIf a per architecture rules patch is possible then I could do it that way22:02
keesyeah, that's what made patching it such a PITA.  My first few attempts would break PPC builds, etc.22:03
NCommanderkees, the i386 biarch build likes to break, so I'm still having compiler issues22:06
Goosemooseanyone figure out how to get a computer to join a domain from a preseed.cfg ?22:29
Goosemooseand user login authenticated against AD?22:29
uvirtbot`New bug: #266910 in likewise-open (main) "likewise-open does not clean up conf files" [Undecided,New] https://launchpad.net/bugs/26691022:41
jdstrandkees: well seems like it was user error-- just had the one bad drive in the lv22:42
keesjdstrand: d'oh.22:42
jdstrandya, total d'oh!22:42
Goosemooseanyone figure out how to get a computer to join a domain and log in a user against AD from a preseed.cfg ?23:20

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