[00:03] hello all [00:04] so, I am installing 8.10 server on my new MSI Wind that I want to use as a NAS with RAID 1 [00:04] does anyone have any ideas of packages or web based admin tools I could install on top of the base server so I can easily administer my new machine? [00:05] Not familiar myself but I believe ebox is the supported one. [00:11] Hi. Is /var/run/reboot-required created on servers too, or is this just a desktop thing? [00:11] (you may have seen this discussion on identi.ca) [00:12] also, is there any documentation on creating a software RAID 1 array? [00:12] I am installing ubuntu on /dev/sdc3, I want to RAID 1 /dev/sdc5 and /dev/sdc6 [00:15] New bug: #325109 in bacula (universe) "package bacula-director-pgsql 2.4.2-1ubuntu6 failed to install/upgrade" [Undecided,New] https://launchpad.net/bugs/325109 [00:15] Probably some postinst script issue [00:17] doesn't check if postgres is running [00:18] hey everyone i could use some help [00:19] im installing the server edition in my server and when i do autoconfig on the network it cant pick it up [00:19] brianwillis1984: Usually: doesn't know what eth driver or: network not connected [00:20] ook how do i fix this [00:20] this is my first server so im new to all of this [00:23] how do i use a dchp protcol? [00:23] dhcp~ [00:27] brianwillis1984: man interfaces can be interesting reading ;) [00:36] hi guys, does anyone know what KVM does to VMs running if i shutdown the KVM machine? [00:36] ie are the VMs gracefully shutdown as if i had executed the showdown command, or is it just like pulling the plug? [00:52] Hey is a any else have some issues with vms on Virtual Box using Ubuntu 8.10 server, I network is all messed up [00:52] if I do ifconfig it displays nothing, if I do dhclient it finds a ip but doesn't on boot [01:10] just got off the phone, they will not do any adjustments to the image, or run a partition adjustment tool their end... Would serial console help at all? [01:14] on ubuntu server whats says eth0 is this nic [01:16] New bug: #323603 in openldap (main) "package libldap-2.4-2 2.4.11-0ubuntu6.1 failed to install/upgrade: package libldap-2.4-2 is not ready for configuration" [Undecided,New] https://launchpad.net/bugs/323603 [01:32] is there a gui for mdadm? === yell0w is now known as yellow_ [05:31] I moved my disks into a new server, and now I have eth6 through eth11 instead of eth0 through eth5. [05:32] I assume this is because the MACs changed, but I can't see macs defined in /etc/network/interfaces. [05:34] OK, the problem is in /etc/udev/rules.d/70-persistent-net.rules [05:45] twb: yea it's defined there [05:45] I acutally use that to remap nic's on my ids sensors to have a standard setup [05:46] I understand the need for the file, I just couldn't find it at first. [05:48] ahh [05:48] twb: sorry if I was paying attention I would have said that before [05:48] np [05:48] In RHEL it's in an even stupider place [05:56] twb: that is why I stay away from RH [05:57] though udev/rules.d is a pretty standard place [05:58] squidly: /etc/sysconfig/networking/ifcfg-ethN [05:58] or some such [05:59] twb: wtf.. you serious? [05:59] wow [05:59] that makes me so glad that I dont ever use RHEL [05:59] I use ubuntu and debian for my servers [07:03] I cannot receive mail. getting the error "poststfix/pipe[8484]: fatal: get_service_attr: unknown username: vmail" where vmail is a val;id user and group, the pipe service is not duplicated or chrooted, and postfix check gives me nothing. What in the world could this be? [07:40] Hi, I managed to delete a user still running irssi in screen, the user has been deleted but screen is still running. How can i stop it? [07:42] <_ruben> lookup the process id using ps or top, sudo kill [07:43] When I do ps -U username it says that user doesnt exist :p [07:43] <_ruben> then look for a numeric username in the complete ps output [07:43] ok, so whats the command for that? [07:44] <_ruben> ps ax for example [07:45] <_ruben> ps aux i mean [07:46] <_ruben> ps uxa | egrep '^[0-9]' [07:46] thanks :) [07:51] It worked. [08:24] moin [08:30] hey, anyone know if there are issues with running apparmor in ubuntu hardy server in a xen guest virtual machine? I seem to remember something like that. [08:46] Hello, I cant seem to get fluxbox to launch from my ubuntu server command line [08:47] how can i fix this? [08:47] UndertakerX2: what's in your ~/.xinitrc ? [08:49] quick question before that, is there a copy and paste function in server? [08:50] and it denies me permsiion to that folder [08:51] UndertakerX2: if you're are using ssh + a terminal emulator to access the server, then yes, you can copy and paste [08:52] UndertakerX2: if you're using a straight console, then you can install and use pastebinit [08:52] im just running the terminal from vmware [08:52] "the terminal from vmware" most likely counts as a terminal emulator, but I'm sure you can also connect via ssh [08:53] more importantly: no, you were not denied permission to that folder [08:54] :s thats what it said [08:54] exactly what did it say? [08:55] err sorry missed part of the line, getting tired :p it gave me -bash: /home/xplorer4x4/.xinitrc: permision denied [08:57] UndertakerX2: can you pastebin the output of the following commands? [08:57] 1) whoami [08:57] 2) ls -lh ~ [08:58] not much to paste bitn, 1: xplorer4x4 2:total o [09:02] UndertakerX2: that is most certainly not the output of either of those commands [09:03] no i just made it up [09:03] be happy to provide a screen to proove it [09:03] UndertakerX2: you did indeed [09:04] UndertakerX2: I don't see how two commands could result in one line of output that doesn't match the data type for either [09:04] UndertakerX2: but, please, give me that screenshot :) [09:04] http://img243.imageshack.us/img243/7738/89862382dk0.jpg [09:06] see? [09:07] i wouldnt waste my time or yours to come in here to make stuff up [09:10] UndertakerX2: numbering the lines instead of pastebinning was confusing, as it made it look like the output was messed up [09:10] sorry i just saw you say that [09:11] my apoligies [09:11] UndertakerX2: in any case, what is the output of: touch ~/.xinitrc [09:12] it did nothing, just took me back to the same comand prompt as before [09:12] good, now what is the output of: ls -lh ~ [09:13] total 0 [09:13] sorry, no, try this: ls -lha ~ [09:15] http://img5.imageshack.us/my.php?image=50772871bt8.jpg [09:17] UndertakerX2: okay, looks good, now run: nano .xinitrc [09:17] and feel free to pastebin it rather than provide a screenshot [09:18] sorry, i would but im in vmware player and it wont allow me to copy and paste [09:19] if you like to help me get set up with shh after this ill be more then happy to pastebin for ya in the future :p [09:19] http://img11.imageshack.us/my.php?image=27851322od0.jpg [09:19] UndertakerX2: most terminal emulators allow you to copy by highlighting, and paste by middle-clicking [09:20] okay, put a new line before the current one [09:20] it should read: !#/bin/sh [09:21] middle click doesnt work :( [09:21] ok got that line in there [09:21] save it, exit, and then type at the command line: startx [09:22] oops [09:22] that should be #!/bin/sh [09:23] ok corrected, now how do i save? :$ [09:23] the ^ means "ctrl" -- hit it in combination with the keys indicated in the menu [09:25] so F2? [09:25] are you going to save nano file? [09:25] then ctrl+x [09:26] y for yes [09:26] yeah it says F2 or ctrl+x [09:26] then you chose :) [09:28] ok hold on i got an error on startx [09:29] http://img502.imageshack.us/my.php?image=60441645fv1.jpg [09:29] thanks to both of you so helping so far :) [09:32] UndertakerX2: looks like X isn't actually fully installed [09:32] UndertakerX2: sudo apt-get install xserver-xorg [09:34] ok installing now, then startx? [09:34] yep [09:35] startx [09:35] wrong window [09:35] lol yep :p [09:35] :p [09:35] happens to everyone eventually :) [09:37] yup [09:37] hmm doesnt seem to want to fully load, i have a blue background, with a dark blue bar at bottom with a clock on it [09:37] that's fluxbox [09:37] right-click your mouse/touchpad for the menu [09:38] oh i thought there was more to it, but new problem, my mouse wont work [09:38] cant move or click [09:39] probably something to do with vmware [09:39] i had a feeling youd say that [09:39] try restarting the virtual machine [09:39] well, if your mouse is working fine except for inside vmware... [09:40] anyway, I have to go to sleep; I will do my best to answer questions that highlight my nick [09:40] vmwares being very problematic as i have to use vmware player to acutally load ubuntu rather then vmware workstation [09:40] good night :) [09:40] thanks [09:41] mouse still doesnt work [09:42] but yeah its 4 am so i suppose i will deal with that tommorow [09:42] larswey, thanks again [09:42] you have the new version of vmware? [09:42] with that stupid webui? [09:42] p_quarles: thanks [09:42] webui? [09:42] no problem :) [09:43] the new version runs a webserver, everything is done with a browser [09:43] no I have workstation 6.5.1 [09:43] ahh, ok [09:43] is that a better version to run? [09:43] i was thinking of vmware server [09:43] no, its horrid :) [09:43] doesnt support Opera.. [09:43] guess thats why its free eh? :p [09:44] hehe, yeah [09:44] was amde free* [09:44] but the old version was better [09:44] also free [09:44] oh i thought they used to charge for server? [09:46] no, that has always been free [09:47] hmm i swore they used to charge but oh well [09:47] hehe, good night :) [09:47] but yeah its 4 am gotta sleep sooner or later, thanks again, night [09:48] I want to backup the installed packages list and all the configuration and customization of my server. [09:48] I've read that I need to backup /etc /root /var/cache/bind /var/lib/dpkg /var/backups /var/www /usr/local [09:49] Yes? [09:49] will there be sensitive data in thouse files? [09:49] like passwords and stuff [09:50] doubt it [09:50] unless you put it there yourself [09:50] do you an example where passwords are stored [09:50] nano the files and see for yourself [09:51] because I want to share my server configuration with someone without exposing it to a security risk [09:51] ls and see if theres anything suspicious [09:52] sound unsecure to me... [09:52] thanks [10:10] /etc/shadow has all system passwords.. someone can attleast run dictionary attacks on them [10:21] simplexio: is there a safe way I can exclude sensitive data and save only config data? [10:24] Davedan: just remove /etc/passwd shadown , groups, shadow- from backups if you dont have anyother programs that save passwords [10:24] Davedan: example i think hat samba saves attleast users somewhere [10:26] simplexio: it has to be 100% safe. If ubuntu has a standard place to save sensitive data it is excellent. If usernames, passwords, IP... are spreaded all over the file system I can't take that risk [10:28] Then use an opt in method rather than opt out. [10:30] Davedan: all unix logins are in those shadown and passwd and groups files, i dont know what programs you have installed [10:57] Koon: Do you have an example of a source package that uses ant to build? tomcat? [10:58] tomcat6 uses ant... also most of the libcommons-*-java stuff does (through CDBS) [10:59] couldn't use the cdbs helpers for tomcat6 though [10:59] Koon: Cool, thanks. [10:59] how to i can config squid 2.7 for a proxy server in a web server ? please help me :-s [11:05] Koon: Ok, that didn't help, apparantly. I have a package here that doesn't obey $DESTDIR and was hoping I could work that out from another package, but I can't seem to spot how it's implemented when using ant? [11:09] Koon: I chose libcommons-net-java (at random), but it seems to not use ant to do the install bit. [11:09] That explains. [11:10] soren > ever tried solaris on kvm? [11:21] soren: in most cases I would say you won't find "ant install" run [11:21] more an "ant package" thing that will produce a built/foo.jar file that you would list in your install.THING file [11:22] not sure what your problem is... let me come and see you [11:51] Hi! Any nginx-experts around? I can't get it to gzip any content, altough I have "gzip on;" in nginx.conf [12:20] piquadrat: I doubt you'll find much help here. AFAIK, we don't even ship nginx, so I think you'd be better helped in another channel. Probably an nginx specific one. [12:24] soren: Ubuntu has nginx in its repositories (0.5.33 in hardy, 0.6.32 in intrepid). I already asked on #nginx, and the one person that was there confirmed that my configuration should be OK. That's why I suspect that there could be a problem with Ubuntu's nginx package [12:29] piquadrat: Compiling nginx yourself would be a straightforward way to clarify this [12:29] maxb: I'm already on it :) [12:51] piquadrat: Oh, you're right. I can't spell, apparantly. [13:29] I have vague memories of a way to find out which process that is using a specific file (or in this case a mounted file system). anyone who knows what I'm referring to? [13:30] ah, now I remember! lsof :D [14:00] hello, short issue installing ubuntu 8.04.2 server on an Fujitsu Siemens Primergy server.. [14:01] there is a RAID card in there, which is recognized, partitioning works ok, but grub doesn't want to install the boot loader [14:01] hi folks, i need a server that can capture 2 adsl connections, on two eth different eth cards, and share the connection with load ballance trough a third one. The main issue is that i need to set a vpn tunnel to a pptp vpn micro$oft server, and allow all the netowork to use this tunnel. Is there a case study for this kind of use of ubuntu server as a router/firewall? [14:07] hm... [14:07] alex_joni: what raid card is that? [14:07] http://eneas.juve.ro/~juve/primergy/ [14:08] Mylex Corporation AcceleRAID 352/170/160 support Device [1069:0050] [14:10] how many disks do you have? [14:10] a lot, right? [14:10] 10 x 32G [14:11] mylex! smells like history! [14:11] is that a hardware raid? [14:11] ivoks: one thing I thought about doing is getting a small IDE drive, and use that as boot.. but it would be nice if I could make it work [14:11] wooo, 32G drives too [14:12] ivoks: yup.. big PCI 64bit card [14:12] domas: U320 SCSI though, not _that_ old [14:12] I guess it's 36G not 32.. [14:12] so, you created two partitions? [14:13] swap and /? [14:13] 3.. /boot / and swap [14:13] I tried initially to let it use the auto partitioner [14:13] (that did a similar thing, but grub failed to install) [14:14] hm... very odd: [14:14] then I booted the server disk in rescue mode, and tried to install grub [14:14] Error running 'tune2fs -l /dev/rd/c0d0' [14:14] then run various incantations of grub-install [14:14] why would it run tune2fs on disk anyway? [14:14] c0d0 is the RAID volume [14:14] but, that's a disk [14:14] tune2fs is for partitions [14:14] I think.. (didn't use funny letters before ;) [14:15] only software raid so far on regular i386 hardware [14:15] cannot open /dev/rd/c0d0p3: No such file or directory [14:16] 10 disks in raid0? [14:17] you just want to loose your data, right? [14:17] lose [14:17] or whatever [14:18] lose [14:18] :) [14:20] i can't figure out why grub failed [14:21] ivoks: I only just joined the conversation, but stuff might call "tune2fs -l" on a disk to make sure there's not already a filesystem on it before it starts to partition it.. [14:21] Could that explain it in this context? [14:21] * soren is too bored to read all of the scrollback :) [14:21] soren: that could be it [14:21] Is this in the installer, perhaps? [14:21] since this happend 2 seconds after 'Reading all physical volumes. This may take a while... [14:21] ' [14:22] EXT3 FS on rd/c0d0p3, internal journal [14:22] EXT3 FS on rd/c0d0p1, internal journal [14:22] Ok. I don't know if that's the reason (I would actually expect it to use udev for that), but it's a possible explanation. [14:22] and p2 is swap [14:22] is it possible to mount an NFS share as any other than root in 8.10? [14:23] frippz: No. [14:23] alex_joni: have you tried with lilo? [14:24] does anyone know of a good tutorial to make a bootable USB drive from an iso image? I need to install ubuntu-server, I have tried UNetbootin, but it isn't working (my machine isn't booting from it...) [14:24] great... Linksys NSS4000 uses root_squash so I can't mount anything on that brick now [14:24] dtcrshr: i don't see how you load balance two adsl connections [14:25] dtcrshr: you get an IP for each connection, you don't decide which IP on which interface, your ISP does that [14:26] so, you can't bond them [14:27] ivoks: lilo does the same thing [14:28] ivoks: You can do load balancing without bonding, though. [14:28] ivoks: with lilo I can specify the installation target [14:29] soren: qos, yes, but i think that dtcrshr wants to load balance VPN tunnel [14:29] but neither /dev/rd nor /dev/rd/c0d0 nor /dev/rd/c0d0p1 work [14:29] alex_joni: and what c0d0 should work, hm... [14:29] lol [14:29] alex_joni: make that 'c0d0 should work' [14:30] alex_joni: did you create empty partition table on disks? [14:30] ivoks: The path /dev/rd/c0d0 does not represent a partition or hard disk device. Please try again. [14:30] ivoks: empty partition table? not that I know.. [14:31] alex_joni: hm... [14:31] ivoks: Well, in that case you can get two vpn connections to the vpn server and bond those on both client and server. [14:31] ivoks: I would /never/ do anything like that, but it's certainly possible :) [14:32] /dev/rd... [14:33] alex_joni: i'm clueless [14:35] ivoks: I selected continue without a bootloader [14:36] and it tells me "to boot manually with the /vmlinuz kernel on partition /dev/rd/c0d0p3 and root=/dev/rd/c0d0p3 passed as a kernel argument." [14:36] does /vmlinuz on /dev/rd/c0d0p3 look ok? shouldn't it come from /boot (c0d0p1) ? [14:36] it should, yes [14:37] maybe it tries the same thing with lilo/grub and that fails [14:37] (I don't see an actual error from grub) [14:38] try with just / and swap [14:38] wihtout /boot [14:38] create swap as p1 and / as p2 [14:40] trying now [14:40] will take a while.. a fresh boot takes about 2 minutes :D [14:43] heh [14:43] i386 only detects 4G of ram, should I try x86_64 maybe? [14:45] a hard boot takes way longer [14:55] do you know what the syntax is to boot from HDD via the install cd [14:55] ? [14:56] [ivoks]: actually, im doing that with a linux router box, and the load balance works just fine [14:57] the issue is that i need a pptpclient on the box, to fetch a tunnel on our vpn [14:57] and the box isnt too friendly to new addons [14:57] i just wondered if i started a ubuntu server configuration, ill be able to do what i want. My biggest problem its time [15:01] hello all, I have used the create a USB Startup disk to hopefully boot from a USB drive [15:02] ivoks: no luck with swap and / either [15:02] :/ [15:03] any idea how to boot from the install cd? [15:03] I mean what boot params to pass to it.. [15:07] i386 linux detect 16GB or RAM [15:08] but you should use 64bit OS on 64bit CPU [15:08] ivoks: should.. I have 8G in this box, but I saw only 4G in the logs [15:08] that's installer kernel [15:08] once you boot it, you should see all 64 [15:08] er... 8 [15:08] :) [15:14] Is there anything special that needs to be done for Vista clients to work with dhcpd in intrepid? [15:15] nope [15:23] I'm having trouble with the clients getting leases. I can see in syslog it tries to send out the dhcpdiscover packet to the clients, but it doesn't show up on the vista machines. [15:24] I have the broadcast address specified, and the always-broadcast flag on. I'm just not sure what else to do [15:25] I have linux thin clients that work fine, as well as XP machines. [15:46] when using apt-mirror, i only get the hardware arch of my current platform, I would like to get both 32bit and 64bit arch's [15:56] anyone have any idea why my system won't boot from the usb drive? [15:56] New bug: #325193 in mysql-dfsg-5.1 (universe) "can not upgrade mysqld (jaunty)" [Undecided,New] https://launchpad.net/bugs/325193 [16:00] why is installing vmware server so difficult [16:01] * crazygir wonders if he should be doing something differently [16:01] luckyone: Some systems just on't boot from USB. [16:01] luckyone: Some USB devices just don't let you boot from them. [16:02] luckyone: And some combinations of systems and USB devices just don't boot. [16:02] hey everybody [16:03] have anybody skills at Freeradius configure ? [16:03] I have a question [16:04] I setup it and always get in log Auth: Login incorrect: [16:05] I check freeradius server as: radtest user1 password1 localhost 1812 test [16:05] soren: I have booted from it twice last night [16:05] soren: it just isnt letting me anymore [16:06] please somebody explain me where I must search answer ? [16:06] I configure server reading this - http://www.debian-administration.org/articles/245 [16:07] and it's not working for me [16:13] I'm trying to mount an SMB-share but I keep getting "wrong fs type". I thought that the package samba-client would provide all necessary stuff to mount SMB/CIFS === dtcrshr is now known as datacrusher [16:19] luckyone: You didn't think that was relevant information? [16:24] totally relevant [16:24] I just was able to boot it and do an install from it last night (but I am stupid and don't know how to setup partitions very well) [16:29] but now I don't know what is going on... why it can't boot from the USB drive... [16:59] hey guys, how can I check what packages depend on a certain installed package? [17:05] nomego: apt-cache rdepends ? [17:07] thank you [17:10] apparently some packages want to install mysql-server even though it's not needed (since we have a dedicated mysql server) [17:10] is there any proper way to resolve this without having to install mysql-server? [17:10] none of the packages I've seen require the actual libs that come with the server packages [17:11] also, are there commands to manage the .dpkg-new files ? [17:14] or rather .dpkg-dist and .ucf-dist === squidly_ is now known as squidly [17:17] anyone here? [17:17] i need quick help please =D [17:18] anyone here? [17:21] !ask > deadbattery [17:21] deadbattery, please see my private message [17:22] i did, sry xD [17:23] Then the answer to your question is 'yes'. [17:50] How to i can setting up squid for a proxy server and tunneling ? [18:27] have anyone upgraded vmware server 1 to 2 on ubuntu server? === vacationlogger is now known as apachelogger [19:12] hello all, when I do sudo lshw | less, it shows eth0 as disabled, does anyone know how I can enable it so I can access my server? [19:13] luckyone: can you pastebin the line for the eth0 device? [19:17] sure, from ls hw? [19:19] ello? [19:25] sudo ifconfig eth0 up enabled it [19:25] but it isn't getting an ipaddress [19:29] Hi everybody. Anybody can help me with freeradius configure at Ubuntu server ? [19:29] I making like this http://www.debian-administration.org/articles/245 [19:30] But when I make radtest user1 password1 localhost 1812 test [19:30] luckyone: sudo dhclient [19:30] in log Auth: Login incorrect: [19:31] p_quarles: why no love from my dhcp server??? [19:31] luckyone: I don't know what that means [19:32] p_quarles: I am not getting any DHCPOFFERS [19:32] luckyone: pastebin the output from the dialogue [19:33] hard to do - I am terminal only on the machine with no eth0 [19:33] rebooting now, going to see if that fixes it [19:33] !info pastebinit | luckyone [19:33] pastebinit (source: pastebinit): command-line pastebin client. In component universe, is optional. Version 0.10-1 (intrepid), package size 9 kB, installed size 88 kB [19:54] i'm having trouble installing on ubuntu server http://pastie.org/379766 [19:59] is there a way i can configure mysql server from the command line? i am scripting its installation so i cant be there to use the ui? (specifically the set a root password screen)? [19:59] kansan: sudo dpkg-reconfigure mysql-server may be what you're looking for [20:00] err sudo dpkg-reconfigure mysql-server-5.0 [20:00] what about the latter question? [20:01] you can script sql statements with mysql -u user -ppassword database -e "sql_statements" [20:01] not sure if that's exactly what you want though [20:02] i want to to script installation of mysql-server as i cant be there to type in a root password [20:05] kansan: you might be able to use kickstart or preseed for that [20:05] hats that [20:06] /usr/sbin/dpkg-reconfigure: mysql-server-5.0 is broken or not fully installed [20:06] why is it so hard to get mysql-server installed ;p? [20:07] how did you install it? sudo apt-get install mysql-server ? was there any error messages? [20:28] kansan: This installs mysql-server without a prompt and without a root password: [20:28] export DEBIAN_FRONTEND=noninteractive [20:28] sudo apt-get install -y mysql-server [20:28] kansan: You can then script setting the root password. [20:31] Or as one line: sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server [20:31] I'm installing a package with apt-get install. If this package has config files, can I find out where these files are using a script? [20:32] Davedan: You might check out the "apt-file" package and command. [20:33] Hmm, isn't apt-file for finding out about packages you *don't* have installed? [20:34] or perhaps "dpkg -L" [20:34] Davedan: dpkg -L packagename will list all files (config and not) contained in the package [20:34] maxb: how can I filter out only the config files? [20:35] Davedan: Who's to say what files can be labeled "config" and which are "data" or "programs" or "other" :) [20:35] Well, "those that are in /etc/" is a good start [20:35] I'll explain what I'm trying to do [20:36] I'm following a post on lifehacker that explain how to save the list of installed packages on ubuntu [20:36] I want to save the config files as well so I can reinstall my ubuntu server [20:36] http://lifehacker.com/5146028/save-synaptic-markings-to-speed-up-ubuntu-reinstallatoin [20:36] this is for the desktop but it can be done on the server too [20:38] Every time I make a change to a config file I either automate it or document the steps for future installs. [20:39] Saving complete configuration is challenging indeed. Especially if you may not be reinstalling the exact same package versions. Also, some config files are not necessarily registered with dpkg. Really the best you can do is tarball /etc/. But even then I'd not blindly overwrite a new installation's /etc with my backup [20:41] Davedan: You might look into the etckeeper package. [20:42] wow. I couldn't imagine it is that complicated :) [20:44] are there any more folders other then /etc ? [20:45] well [20:45] you're best bet is to pick the services that you need config files for [20:45] and then find out where they store config files [20:45] Preferences for indivdual users are kept in $HOME/.various places. [20:45] ^^ [20:45] Spear: Error: "^" is not a valid command. [20:46] Some packages put stuff in /var too. [20:46] if you backup /etc/ and /home/ you're pretty safe [20:46] :P [20:46] But, it if the config files are critical, I would go through each critical service, work out where config files are stored and back them up individually [20:47] thank you. I will [20:47] I hoped the default pagackage config place is documented somewhere but I guess I'll have to hunt it down [20:51] Davedan: The default place is /etc [20:53] um i cant even install mysql-server interactively! [20:53] dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.0; however: Package mysql-server-5.0 is not configured yet. [20:53] dpkg: error processing mysql-server (--configure): [20:53] sudo apt-get -f install [20:54] * ScottK 's fingers do that one almost automatically. [20:54] force install? [20:54] It's more like "fix install" [20:55] http://pastie.org/379827 [20:55] didnt work :( [20:56] No, "apt-get -f install" and no packagenames after [20:56] look in /etc/init.d for the mysql init script. Edit it to add exit 0 just after the shebang and then try again. [20:57] That should let it configure. Then go back and take that out. [20:58] Then do a sudo apt-get dist-upgrade to get whatever packages are being held back. [21:00] ScottK, but that cant be a long term solution [21:00] ScottK, each time i install mysql-server (on my ec2 instance) i get the same error [21:01] Agreed. Just suggesting how to dig you out of the immediate hole and then it'll be easier to troubleshoot [21:02] ok; so it installs [21:02] but if i try to start up mysql-server [21:02] Once the package is configured you can manually try to start mysql and explore why it won't start. [21:02] it wont start ;p [21:02] * ScottK knows zip about mysql, so can't help with that part, but at least dpkg isn't stuck now. [21:03] i am not sure why dpkg is failing hard installing mysql [21:03] its a blank image [21:04] are gcc and the kernel sources not available in a default install of ubuntu-server? [21:04] The dkpg failure was it couldn't start mysql. [21:04] crazygir: You want to install build-essential. [21:05] ScottK: should take care of building vmware modules? [21:06] kansan: Run "mysqld_safe" manually as root, and see what it complains about [21:06] * ScottK doesn't build vmware modules, so can't say for sure. Linux headers are, IIRC, in the linux-source package. [21:07] So with those two you should have compiler and headers. [21:07] awesome [21:07] ec2-67-202-1-110 ~: mysqld_safe [21:07] nohup: ignoring input and redirecting stderr to stdout Starting mysqld daemon with databases from /mnt/mysql_data mysqld_safe[4104]: started STOPPING server from pid file /var/run/mysqld/mysqld.pid mysqld_safe[4110]: ended [21:07] linux-headers rather than linux-source, no? [21:07] Could be. [21:07] * ScottK didn't actually look it up. [21:08] Specifically, linux-headers-$(uname -r) I think [21:09] kansan: messages in /var/log/mysql.err ? [21:12] ok let me check it [21:13] maxb, no output there [21:14] /var/log/daemon.log ? [21:14] maxb, no output either [21:14] it looksl ike its starting/stopping immediately [21:15] kansan: If you were trying to automate the installation of mysql-server and it got hung on the interactive step, it's possible it didn't finish installing. [21:16] kansan: Since you're using EC2, why not start a new instance and do the noninteractive install steps I described and see if this fixes the problem? [21:16] kansan: What about if you just run 'mysqld' as root [21:16] erichammond, before i try to script i want to make sure i can install it when i'm there to push buttons [21:17] erichammond, in the ami i customzied i can't install via apt-get update && apt-get install mysql-server [21:17] even when its fresh [21:17] mysqld: File '/mnt/log/mysql/mysql-slow.log' not found (Errcode: 2) [21:17] 090204 21:17:22 [ERROR] Could not use /mnt/log/mysql/mysql-slow.log for logging (error 2). Turning logging off for the whole duration of the MySQL server process. To turn it on again: fix the cause, shutdown the MySQL server and restart it. mysqld: File '/mnt/log/mysql/mysql-bin.index' not found (Errcode: 2) 090204 21:17:22 [ERROR] Aborting 090204 21:17:22 [Note] mysqld: Shutdown complete root@ec2-174-129-172-86:~# [21:18] Ah, now you have something to fix [21:18] kansan: Looks like you've changed where the logdir (and datadir?) goes. Do those directories exist and have the right permissions? [21:18] yeah i can give it logging [21:19] ah ha [21:19] thanks ScottK / maxb [21:26] does my.cnf get overwritten upon installation? [21:30] i seem to have discovered someone trying to break into my server [21:30] somehow they uploaded a file to a lists/admin/index.php directory [21:30] but i cant find where it is [21:30] any tips? [21:32] "/lists/admin/index.php?_SERVER[ConfigFile]=../../../../../../../../../../../../../../../../etc/passwd" is the path [21:32] ls [21:34] What makes you think it was an upload? [21:34] i didnt put it there [21:34] Where did you get that pathname? [21:34] the server logs [21:34] which logs [21:34] i pasted it in the browser and it gave me my passwd file [21:34] nginx [21:35] Well that sounds like a download not an upload [21:35] right [21:35] but how did it get there [21:35] and where is lists? [21:35] Erm. [21:35] its not in that directory [21:35] You probably shouldn't be running a public http server if you don't understand what it's serving :-/ [21:36] wtf? [21:36] i do understand what its serving [21:36] i DID NOT PUT IT THERE [21:36] that means SOMEONE UPLOADED IT! [21:37] right now i'm trying to figure out where the lists directory is [21:37] Whereever your webserver is configured to map the URL to [21:38] well its not in that directory [21:42] if i can access the php file through the browser, how can i find where the file is? [21:42] are there any logs that php has? [21:43] is it bad if i try to create the mysql user / group mysefl??? (prior to installing mysql)? it would make things much easier! :P [21:44] kansan: hmm, why? the package should do it for you [21:45] maxb, cuz it appears as though the default directory that mysql is looking for logs/files etc.... doesnt exist [21:45] on an installation on ubuntu [21:46] The default is /var/log though, I don't know where your /mnt/log paths came from - that's a customization of some sort [21:47] right [21:48] i'm guesing my.cnf is already on my machine [21:48] i'm not sure why default confit would get the wrong path [21:49] a ha! [21:49] there IS a my.cnf there [21:49] maxb: One reason you might want to create the mysql user yourself is to assign it a fixed uid. This is helpful when copying database files (EBS snapshots) across different instances. [21:49] problem solved! [21:50] so i can create the mysql user prior to installing mysql-server? [21:50] and mysql-server install will check to make sure that there's no group/user called mysql first? [21:50] kansan: It's easy to try :) [21:50] erichammond, sho is; just wanted to make sure its achieveable [21:50] before i script it [21:51] kansan: Fire up an instance, type in 2 commands, and you'll have your answer for $0.10 :) [21:51] heh [21:51] gotta love EC2 [21:51] I am trying to run an unpriviliged service on a high port and forward a low port to it with iptables [21:52] sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8081 [21:52] should i set a password for mysql user? [21:53] I always get connection refused when connecting to port 80 though. Flush all tables first set default policy to ACCEPT, enabled forwarding in /proc/sys/net/ipv4/ip_forward [21:53] agentk, it should be --to-port 8081 [21:54] dazman: HA! Perfect! [21:54] agentk, :) [21:54] dazman: I knew I should not have given up caffine. [21:55] agentk, Haha. [21:59] it seems someone has installed PHPlist on my server, any idea how i can find it? [22:00] search for its files on the server :p [22:00] * Spear will now be quiet [22:01] Well, I don't think that's such a bad idea? Heh. (If you just want to find where it's installed). As the logs saying /lists/, if you have no virtual hosts and using a default install, it's probably /var/www/lists? [22:02] how come my /etc/passwd looks different from installing mysql via command line versus doing adduser? (mine via adduser) mysql:x:1000:1000:,,,:/home/mysql:/bin/bash ;; mysql:x:105:111:MySQL Server,,,:/var/lib/mysql:/bin/false (via installing mysql) [22:02] dazman: i can't seem to find it anywhere [22:03] if i remove the directory that the vhost addresses, it still finds the file [22:03] kansan, it's the same pretty much isn't it apart from the mysql package has given it a full name? [22:03] BBHoss, updatedb && locate lists [22:03] nothing [22:03] dazman, ok didnt know if that mattered (the rest of it) [22:03] BBHoss, If that doesn't work, have a look at the .htaccess at the root of the default vhost, to see if it's a redirect to some random path? [22:04] kansan, also, the mysql way is better, as it assigns the correct home directory and also /bin/false, which is what it should be. [22:04] dazman: see this is nginx, and i'm forwarding all of my *.php connections to fastcgi [22:04] kansan, you don't want it to have a shell really.. as it's not used that way. [22:04] dazman, so how can i set that with adduser [22:05] kansan, erm, without man adduser, I can't remember off the top of my head. [22:05] kansan, have a look at the man page, there will be options to change the shell and home dir from the command line. [22:07] ok, it does it for ANY php, not just that single vhost [22:11] is there any unix command that can tell me the files an application is using, kind of like reverse fuser? [22:15] BBHoss: http://stackoverflow.com/questions/301247/files-being-used-by-a-unix-process [22:15] read the comments [22:15] it offers some solutions to your question [22:16] lsof -p should do the trick ;-) [22:16] Spear: thanks [22:16] Thats ok, all I did was use google :-) [22:52] could somebody post dependencies for installing ubuntu-desktop? [22:53] Just try to install it, but cancel the install and you'll have a list. [22:53] misieq, apt-cache show ubuntu-desktop [22:54] the problem is that i currently don't have ubuntu-server installed, but the desktop version and wish to run it headless so i want to get rid of all the useless stuff [22:55] misieq, http://packages.ubuntu.com/intrepid/ubuntu-desktop [22:56] dazman, yes i know that i can check it this way but i want a *differential* check so i don't remove something important [22:58] sudo apt-get remove ubuntu-desktop then sudo apt-get autoremove should do it. [22:58] ScottK, oh, didn't know that one, thanks a lot [23:00] nope, it doesn't work that way [23:02] What happened? [23:03] nothing apart from removing ubuntu-desktop package [23:24] how can i control what ip address/interface Postfix sends mail from? [23:27] Hi, does anyone know if virtual machines created in Vmware 2.0 can be moved to to a Vmware host running the 1.0 server software [23:27] are they backwards compatible? [23:27] BBHoss: If you have multiple IP addresses configured on the box, you really can't at the application level. The kernel will decide what the best route is. [23:27] ScottK: ok fun [23:27] I have some ubuntu vms that need to be temporarily relocated! [23:36] is there an automated way to install sun-java-5? without requiring me to say YES? or is there any alternative that i can install in a scriptable way (without having to provide confirmation that i agree to their legal baloney_? [23:41] kansan: Yes, there is. It has to do with dumping the conf settings after you have accepted the license and feeding that back in when you are installing it automatically. Trying to find it... [23:41] ah hhh sweet [23:43] kansan: Background info: http://blog.hjksolutions.com/articles/2007/07/27/unattended-package-installation-with-debian-and-ubuntu [23:45] Install script for sun-java6-jdk from Matthew Wilson: http://groups.google.com/group/ec2ubuntu/browse_thread/thread/fbcec97ca6f161e1/10222f0ce00b602d#9ec4c5af21fe78da [23:47] erichammond, wow handy@! [23:47] kansan: Also: http://www.davidpashley.com/blog/debian/java-license [23:48] But using that first link and identifying the current settings for your package is probably the best approach. [23:51] yes thats cool [23:51] only problem is; when i install sun-java5-jre ;; and then run java -v: Could not create the Java virtual machine. [23:52] probably a bad java alternatives thingy [23:54] nope still doesnt work after setting java-alternatives correctly === jmarsden_ is now known as jmarsden|work