/srv/irclogs.ubuntu.com/2009/02/04/#ubuntu-server.txt

luckyonehello all00:03
luckyoneso, I am installing 8.10 server on my new MSI Wind that I want to use as a NAS with RAID 100:04
luckyonedoes 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:04
hadsNot familiar myself but I believe ebox is the supported one.00:05
LaneyHi. Is /var/run/reboot-required created on servers too, or is this just a desktop thing?00:11
Laney(you may have seen this discussion on identi.ca)00:11
luckyonealso, is there any documentation on creating a software RAID 1 array?00:12
luckyoneI am installing ubuntu on /dev/sdc3, I want to RAID 1 /dev/sdc5 and /dev/sdc600:12
uvirtbotNew bug: #325109 in bacula (universe) "package bacula-director-pgsql 2.4.2-1ubuntu6 failed to install/upgrade" [Undecided,New] https://launchpad.net/bugs/32510900:15
geniiProbably some postinst script issue00:15
Laneydoesn't check if postgres is running00:17
brianwillis1984hey everyone i could use some help00:18
brianwillis1984im installing the server edition in my server and when i do autoconfig on the network it cant pick it up00:19
geniibrianwillis1984: Usually: doesn't know what eth driver or: network not connected00:19
brianwillis1984ook how do i fix this00:20
brianwillis1984this is my first server so im new to all of this00:20
brianwillis1984how do i use a dchp protcol?00:23
brianwillis1984dhcp~00:23
geniibrianwillis1984: man interfaces     can be interesting reading ;)00:27
ziggleshi guys, does anyone know what KVM does to VMs running if i shutdown the KVM machine?00:36
zigglesie are the VMs gracefully shutdown as if i had executed the showdown command, or is it just like pulling the plug?00:36
vbabiyHey is a any else have some issues with vms on Virtual Box using Ubuntu 8.10 server, I network is all messed up00:52
vbabiyif I do ifconfig it displays nothing, if I do dhclient it finds a ip but doesn't on boot00:52
Gorlistjust 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:10
vbabiyon ubuntu server whats says eth0 is this nic01:14
uvirtbotNew 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/32360301:16
matt123is there a gui for mdadm?01:32
=== yell0w is now known as yellow_
twbI moved my disks into a new server, and now I have eth6 through eth11 instead of eth0 through eth5.05:31
twbI assume this is because the MACs changed, but I can't see macs defined in /etc/network/interfaces.05:32
twbOK, the problem is in /etc/udev/rules.d/70-persistent-net.rules05:34
squidlytwb: yea it's defined there05:45
squidlyI acutally use that to remap nic's on my ids sensors to have a standard setup05:45
twbI understand the need for the file, I just couldn't find it at first.05:46
squidlyahh05:48
squidlytwb: sorry if I was paying attention I would have said that before05:48
twbnp05:48
twbIn RHEL it's in an even stupider place05:48
squidlytwb: that is why I stay away from RH05:56
squidlythough udev/rules.d is a pretty standard place05:57
twbsquidly: /etc/sysconfig/networking/ifcfg-ethN05:58
twbor some such05:58
squidlytwb: wtf.. you serious?05:59
squidlywow05:59
squidlythat makes me so glad that I dont ever use RHEL05:59
squidlyI use ubuntu and debian for my servers05:59
alienseer23I 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:03
larsweyHi, 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:40
_rubenlookup the process id using ps or top, sudo kill <pid>07:42
larsweyWhen I do ps -U username it says that user doesnt exist :p07:43
_rubenthen look for a numeric username in the complete ps output07:43
larsweyok, so whats the command for that?07:43
_rubenps ax for example07:44
_rubenps aux i mean07:45
_rubenps uxa | egrep '^[0-9]'07:46
larsweythanks :)07:46
larsweyIt worked.07:51
krautmoin08:24
SmokeyDhey, 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:30
UndertakerX2Hello, I cant seem to get fluxbox to launch from my ubuntu server command line08:46
UndertakerX2how can i fix this?08:47
p_quarlesUndertakerX2: what's in your ~/.xinitrc ?08:47
UndertakerX2quick question before that, is there a copy and paste function in server?08:49
UndertakerX2and it denies me permsiion to that folder08:50
p_quarlesUndertakerX2: if you're are using ssh + a terminal emulator to access the server, then yes, you can copy and paste08:51
p_quarlesUndertakerX2: if you're using a straight console, then you can install and use pastebinit08:52
UndertakerX2im just running the terminal from vmware08:52
p_quarles"the terminal from vmware" most likely counts as a terminal emulator, but I'm sure you can also connect via ssh08:52
p_quarlesmore importantly: no, you were not denied permission to that folder08:53
UndertakerX2:s thats what it said08:54
p_quarlesexactly what did it say?08:54
UndertakerX2err sorry missed part of the line, getting tired :p it gave me -bash: /home/xplorer4x4/.xinitrc: permision denied08:55
p_quarlesUndertakerX2: can you pastebin the output of the following commands?08:57
p_quarles1) whoami08:57
p_quarles2) ls -lh ~08:57
UndertakerX2not much to paste bitn, 1: xplorer4x4 2:total o08:58
p_quarlesUndertakerX2: that is most certainly not the output of either of those commands09:02
UndertakerX2no i just made it up09:03
UndertakerX2be happy to provide a screen to proove it09:03
p_quarlesUndertakerX2: you did indeed09:03
p_quarlesUndertakerX2: I don't see how two commands could result in one line of output that doesn't match the data type for either09:04
p_quarlesUndertakerX2: but, please, give me that screenshot :)09:04
UndertakerX2http://img243.imageshack.us/img243/7738/89862382dk0.jpg09:04
UndertakerX2see?09:06
UndertakerX2i wouldnt waste my time or yours to come in here to make stuff up09:07
p_quarlesUndertakerX2: numbering the lines instead of pastebinning was confusing, as it made it look like the output was messed up09:10
UndertakerX2sorry i just saw you say that09:10
UndertakerX2my apoligies09:11
p_quarlesUndertakerX2: in any case, what is the output of: touch ~/.xinitrc09:11
UndertakerX2it did nothing, just took me back to the same comand prompt as before09:12
p_quarlesgood, now what is the output of: ls -lh ~09:12
UndertakerX2total 009:13
p_quarlessorry, no, try this: ls -lha ~09:13
UndertakerX2http://img5.imageshack.us/my.php?image=50772871bt8.jpg09:15
p_quarlesUndertakerX2: okay, looks good, now run: nano .xinitrc09:17
p_quarlesand feel free to pastebin it rather than provide a screenshot09:17
UndertakerX2sorry, i would but im in vmware player and it wont allow me to copy and paste09:18
UndertakerX2if you like to help me get set up with shh after this ill be more then happy to pastebin for ya in the future :p09:19
UndertakerX2http://img11.imageshack.us/my.php?image=27851322od0.jpg09:19
p_quarlesUndertakerX2: most terminal emulators allow you to copy by highlighting, and paste by middle-clicking09:19
p_quarlesokay, put a new line before the current one09:20
p_quarlesit should read: !#/bin/sh09:20
UndertakerX2middle click doesnt work :(09:21
UndertakerX2ok got that line in there09:21
p_quarlessave it, exit, and then type at the command line: startx09:21
p_quarlesoops09:22
p_quarlesthat should be #!/bin/sh09:22
UndertakerX2ok corrected, now how do i save? :$09:23
p_quarlesthe ^ means "ctrl" -- hit it in combination with the keys indicated in the menu09:23
UndertakerX2so F2?09:25
larsweyare you going to save nano file?09:25
larsweythen ctrl+x09:25
larsweyy for yes09:26
UndertakerX2yeah it says F2 or ctrl+x09:26
larsweythen you chose :)09:26
UndertakerX2ok hold on i got an error on startx09:28
UndertakerX2http://img502.imageshack.us/my.php?image=60441645fv1.jpg09:29
UndertakerX2thanks to both of you so helping so far :)09:29
p_quarlesUndertakerX2: looks like X isn't actually fully installed09:32
p_quarlesUndertakerX2: sudo apt-get install xserver-xorg09:32
UndertakerX2ok installing now, then startx?09:34
p_quarlesyep09:34
UndertakerX2startx09:35
larsweywrong window09:35
UndertakerX2lol yep :p09:35
larswey:p09:35
p_quarleshappens to everyone eventually :)09:35
larsweyyup09:37
UndertakerX2hmm doesnt seem to want to fully load, i have a blue background, with a dark blue bar at bottom with a clock on it09:37
p_quarlesthat's fluxbox09:37
p_quarlesright-click your mouse/touchpad for the menu09:37
UndertakerX2oh i thought there was more to it, but new problem, my mouse wont work09:38
UndertakerX2cant move or click09:38
larsweyprobably something to do with vmware09:39
UndertakerX2i had a feeling youd say that09:39
larsweytry restarting the virtual machine09:39
p_quarleswell, if your mouse is working fine except for inside vmware...09:39
p_quarlesanyway, I have to go to sleep; I will do my best to answer questions that highlight my nick09:40
UndertakerX2vmwares being very problematic as i have to use vmware player to acutally load ubuntu rather then vmware workstation09:40
p_quarlesgood night :)09:40
UndertakerX2thanks09:40
UndertakerX2mouse still doesnt work09:41
UndertakerX2but yeah its 4 am so i suppose i will deal with that tommorow09:42
UndertakerX2larswey, thanks again09:42
larsweyyou have the new version of vmware?09:42
larsweywith that stupid webui?09:42
UndertakerX2p_quarles: thanks09:42
UndertakerX2webui?09:42
larsweyno problem :)09:42
larsweythe new version runs a webserver, everything is done with a browser09:43
UndertakerX2no I have workstation 6.5.109:43
larsweyahh, ok09:43
UndertakerX2is that a better version to run?09:43
larsweyi was thinking of vmware server09:43
larsweyno, its horrid :)09:43
larsweydoesnt support Opera..09:43
UndertakerX2guess thats why its free eh? :p09:43
larsweyhehe, yeah09:44
UndertakerX2was amde free*09:44
larsweybut the old version was better09:44
larsweyalso free09:44
UndertakerX2oh i thought they used to charge for server?09:44
larsweyno, that has always been free09:46
UndertakerX2hmm i swore they used to charge but oh well09:47
larsweyhehe, good night :)09:47
UndertakerX2but yeah its 4 am gotta sleep sooner or later, thanks again, night09:47
DavedanI want to backup the installed packages list and all the configuration and customization of my server.09:48
DavedanI've read that I need to backup /etc /root /var/cache/bind /var/lib/dpkg /var/backups /var/www /usr/local09:48
larsweyYes?09:49
Davedanwill there be sensitive data in thouse files?09:49
Davedanlike passwords and stuff09:49
larsweydoubt it09:50
larsweyunless you put it there yourself09:50
Davedando you an example where passwords are stored09:50
larsweynano the files and see for yourself09:50
Davedanbecause I want to share my server configuration with someone without exposing it to a security risk09:51
larsweyls and see if theres anything suspicious09:51
Davedansound unsecure to me...09:52
Davedanthanks09:52
simplexio /etc/shadow has all system passwords.. someone can attleast run dictionary attacks on them10:10
Davedansimplexio: is there a safe way I can exclude sensitive data and save only config data?10:21
simplexioDavedan: just remove /etc/passwd shadown , groups, shadow- from backups if you dont have anyother programs that save passwords10:24
simplexioDavedan: example i think hat  samba saves attleast users somewhere10:24
Davedansimplexio: 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 risk10:26
hadsThen use an opt in method rather than opt out.10:28
simplexioDavedan: all unix logins are in those shadown and passwd and groups files, i dont know what programs you have installed10:30
sorenKoon: Do you have an example of a source package that uses ant to build? tomcat?10:57
Koontomcat6 uses ant... also most of the libcommons-*-java stuff does (through CDBS)10:58
Kooncouldn't use the cdbs helpers for tomcat6 though10:59
sorenKoon: Cool, thanks.10:59
Mohammad[B]how to i can config squid 2.7 for a proxy server in a web server ? please help me :-s10:59
sorenKoon: 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:05
sorenKoon: I chose libcommons-net-java (at random), but it seems to not use ant to do the install bit.11:09
sorenThat explains.11:09
yann2soren > ever tried solaris on kvm?11:10
Koonsoren: in most cases I would say you won't find "ant install" run11:21
Koonmore an "ant package" thing that will produce a built/foo.jar file that you would list in your install.THING file11:21
Koonnot sure what your problem is... let me come and see you11:22
piquadratHi! Any nginx-experts around? I can't get it to gzip any content, altough I have "gzip on;" in nginx.conf11:51
sorenpiquadrat: 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:20
piquadratsoren: 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 package12:24
maxbpiquadrat: Compiling nginx yourself would be a straightforward way to clarify this12:29
piquadratmaxb: I'm already on it :)12:29
sorenpiquadrat: Oh, you're right. I can't spell, apparantly.12:51
frippzI 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:29
frippzah, now I remember! lsof :D13:30
alex_jonihello, short issue installing ubuntu 8.04.2 server on an Fujitsu Siemens Primergy server..14:00
alex_jonithere is a RAID card in there, which is recognized, partitioning works ok, but grub doesn't want to install the boot loader14:01
dtcrshrhi 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:01
ivokshm...14:07
ivoksalex_joni: what raid card is that?14:07
alex_jonihttp://eneas.juve.ro/~juve/primergy/14:07
alex_joniMylex Corporation AcceleRAID 352/170/160 support Device [1069:0050]14:08
ivokshow many disks do you have?14:10
ivoksa lot, right?14:10
alex_joni10 x 32G14:10
domasmylex! smells like history!14:11
ivoksis that a hardware raid?14:11
alex_joniivoks: 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 work14:11
domaswooo, 32G drives too14:11
alex_joniivoks: yup.. big PCI 64bit card14:12
alex_jonidomas: U320 SCSI though, not _that_ old14:12
alex_joniI guess it's 36G not 32..14:12
ivoksso, you created two partitions?14:12
ivoksswap and /?14:13
alex_joni3.. /boot / and swap14:13
alex_joniI tried initially to let it use the auto partitioner14:13
alex_joni(that did a similar thing, but grub failed to install)14:13
ivokshm... very odd:14:14
alex_jonithen I booted the server disk in rescue mode, and tried to install grub14:14
ivoksError running 'tune2fs -l /dev/rd/c0d0'14:14
alex_jonithen run various incantations of grub-install14:14
ivokswhy would it run tune2fs on disk anyway?14:14
alex_jonic0d0 is the RAID volume14:14
ivoksbut, that's a disk14:14
ivokstune2fs is for partitions14:14
alex_joniI think.. (didn't use funny letters before ;)14:14
alex_jonionly software raid so far on regular i386 hardware14:15
ivokscannot open /dev/rd/c0d0p3: No such file or directory14:15
ivoks10 disks in raid0?14:16
ivoksyou just want to loose your data, right?14:17
ivokslose14:17
ivoksor whatever14:17
ivokslose14:18
ivoks:)14:18
ivoksi can't figure out why grub failed14:20
sorenivoks: 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
sorenCould that explain it in this context?14:21
* soren is too bored to read all of the scrollback :)14:21
ivokssoren: that could be it14:21
sorenIs this in the installer, perhaps?14:21
ivokssince this happend 2 seconds after 'Reading all physical volumes.  This may take a while...14:21
ivoks'14:21
ivoksEXT3 FS on rd/c0d0p3, internal journal14:22
ivoksEXT3 FS on rd/c0d0p1, internal journal14:22
sorenOk. 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
ivoksand p2 is swap14:22
frippzis it possible to mount an NFS share as any other than root in 8.10?14:22
sorenfrippz: No.14:23
ivoksalex_joni: have you tried with lilo?14:23
luckyonedoes 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
frippzgreat... Linksys NSS4000 uses root_squash so I can't mount anything on that brick now14:24
ivoksdtcrshr: i don't see how you load balance two adsl connections14:24
ivoksdtcrshr: you get an IP for each connection, you don't decide which IP on which interface, your ISP does that14:25
ivoksso, you can't bond them14:26
alex_joniivoks: lilo does the same thing14:27
sorenivoks: You can do load balancing without bonding, though.14:28
alex_joniivoks: with lilo I can specify the installation target14:28
ivokssoren: qos, yes, but i think that dtcrshr wants to load balance VPN tunnel14:29
alex_jonibut neither /dev/rd nor /dev/rd/c0d0 nor /dev/rd/c0d0p1 work14:29
ivoksalex_joni: and what c0d0 should work, hm...14:29
ivokslol14:29
ivoksalex_joni: make that 'c0d0 should work'14:29
ivoksalex_joni: did you create empty partition table on disks?14:30
alex_joniivoks: The path /dev/rd/c0d0 does not represent a partition or hard disk device. Please try again.14:30
alex_joniivoks: empty partition table? not that I know..14:30
ivoksalex_joni: hm...14:31
sorenivoks: Well, in that case you can get two vpn connections to the vpn server and bond those on both client and server.14:31
sorenivoks: I would  /never/ do anything like that, but it's certainly possible :)14:31
ivoks /dev/rd...14:32
ivoksalex_joni: i'm clueless14:33
alex_joniivoks: I selected continue without a bootloader14:35
alex_joniand 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
alex_jonidoes /vmlinuz on /dev/rd/c0d0p3 look ok? shouldn't it come from /boot (c0d0p1) ?14:36
ivoksit should, yes14:36
alex_jonimaybe it tries the same thing with lilo/grub and that fails14:37
alex_joni(I don't see an actual error from grub)14:37
ivokstry with just / and swap14:38
ivokswihtout /boot14:38
ivokscreate swap as p1 and / as p214:38
alex_jonitrying now14:40
alex_joniwill take a while.. a fresh boot takes about 2 minutes :D14:40
ivoksheh14:43
alex_jonii386 only detects 4G of ram, should I try x86_64 maybe?14:43
alex_jonia hard boot takes way longer14:45
alex_jonido you know what the syntax is to boot from HDD via the install cd14:55
alex_joni?14:55
dtcrshr[ivoks]: actually, im doing that with a linux router box, and the load balance works just fine14:56
dtcrshrthe issue is that i need a pptpclient on the box, to fetch a tunnel on our vpn14:57
dtcrshrand the box isnt too friendly to new addons14:57
dtcrshri just wondered if i started a ubuntu server configuration, ill be able to do what i want. My biggest problem its time14:57
luckyonehello all, I have used the create a USB Startup disk to hopefully boot from a USB drive15:01
alex_joniivoks: no luck with swap and / either15:02
ivoks:/15:02
alex_joniany idea how to boot from the install cd?15:03
alex_joniI mean what boot params to pass to it..15:03
ivoksi386 linux detect 16GB or RAM15:07
ivoksbut you should use 64bit OS on 64bit CPU15:08
alex_joniivoks: should.. I have 8G in this box, but I saw only 4G in the logs15:08
ivoksthat's installer kernel15:08
ivoksonce you boot it, you should see all 6415:08
ivokser... 815:08
ivoks:)15:08
Mark______Is there anything special that needs to be done for Vista clients to work with dhcpd in intrepid?15:14
ivoksnope15:15
Mark______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:23
Mark______I have the broadcast address specified, and the always-broadcast flag on.  I'm just not sure what else to do15:24
Mark______I have linux thin clients that work fine, as well as XP machines.15:25
fw1when using apt-mirror, i only get the hardware arch of my current platform,  I would like to get both 32bit and 64bit arch's15:46
luckyoneanyone have any idea why my system won't boot from the usb drive?15:56
uvirtbotNew bug: #325193 in mysql-dfsg-5.1 (universe) "can not upgrade mysqld (jaunty)" [Undecided,New] https://launchpad.net/bugs/32519315:56
crazygirwhy is installing vmware server so difficult16:00
* crazygir wonders if he should be doing something differently16:01
sorenluckyone: Some systems just on't boot from USB.16:01
sorenluckyone: Some USB devices just don't let you boot from them.16:01
sorenluckyone: And some combinations of systems and USB devices just don't boot.16:02
ircleuserhey everybody16:02
ircleuserhave anybody skills at Freeradius configure ?16:03
ircleuserI have a question16:03
ircleuserI setup it and always get in log Auth: Login incorrect:16:04
ircleuserI check freeradius server as: radtest user1 password1 localhost 1812 test16:05
luckyonesoren: I have booted from it twice last night16:05
luckyonesoren: it just isnt letting me anymore16:05
ircleuserplease somebody explain me where I must search answer ?16:06
ircleuserI configure server reading this - http://www.debian-administration.org/articles/24516:06
ircleuserand it's not working for me16:07
frippzI'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/CIFS16:13
=== dtcrshr is now known as datacrusher
sorenluckyone: You didn't think that was relevant information?16:19
luckyonetotally relevant16:24
luckyoneI 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:24
luckyonebut now I don't know what is going on... why it can't boot from the USB drive...16:29
nomegohey guys, how can I check what packages depend on a certain installed package?16:59
Koonnomego: apt-cache rdepends <package> ?17:05
nomegothank you17:07
nomegoapparently some packages want to install mysql-server even though it's not needed (since we have a dedicated mysql server)17:10
nomegois there any proper way to resolve this without having to install mysql-server?17:10
nomegonone of the packages I've seen require the actual libs that come with the server packages17:10
nomegoalso, are there commands to manage the .dpkg-new files ?17:11
nomegoor rather .dpkg-dist and .ucf-dist17:14
=== squidly_ is now known as squidly
deadbatteryanyone here?17:17
deadbatteryi need quick help please =D17:17
deadbatteryanyone here?17:18
ScottK!ask > deadbattery17:21
ubottudeadbattery, please see my private message17:21
deadbatteryi did, sry xD17:22
ScottKThen the answer to your question is 'yes'.17:23
Mohammad[B]How to i can setting up squid for a proxy server and tunneling ?17:50
nomegohave anyone upgraded vmware server 1 to 2 on ubuntu server?18:27
=== vacationlogger is now known as apachelogger
luckyonehello 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:12
p_quarlesluckyone: can you pastebin the line for the eth0 device?19:13
luckyonesure, from ls hw?19:17
luckyoneello?19:19
luckyonesudo ifconfig eth0 up enabled it19:25
luckyonebut it isn't getting an ipaddress19:25
nnnHi everybody. Anybody can help me with freeradius configure at Ubuntu server ?19:29
nnnI making like this http://www.debian-administration.org/articles/24519:29
nnnBut when I make radtest user1 password1 localhost 1812 test19:30
p_quarlesluckyone: sudo dhclient19:30
nnnin log Auth: Login incorrect:19:30
luckyonep_quarles: why no love from my dhcp server???19:31
p_quarlesluckyone: I don't know what that means19:31
luckyonep_quarles: I am not getting any DHCPOFFERS19:32
p_quarlesluckyone: pastebin the output from the dialogue19:32
luckyonehard to do - I am terminal only on the machine with no eth019:33
luckyonerebooting now, going to see if that fixes it19:33
p_quarles!info pastebinit | luckyone19:33
ubottupastebinit (source: pastebinit): command-line pastebin client. In component universe, is optional. Version 0.10-1 (intrepid), package size 9 kB, installed size 88 kB19:33
kansan i'm having trouble installing on ubuntu server  http://pastie.org/37976619:54
kansanis 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
sommerkansan: sudo dpkg-reconfigure mysql-server may be what you're looking for19:59
sommererr sudo dpkg-reconfigure mysql-server-5.020:00
kansanwhat about the latter question?20:00
sommeryou can script sql statements with mysql -u user -ppassword database -e "sql_statements"20:01
sommernot sure if that's exactly what you want though20:01
kansani want to to script installation of mysql-server as i cant be there to type in a root password20:02
sommerkansan: you might be able to use kickstart or preseed for that20:05
kansanhats that20:05
kansan/usr/sbin/dpkg-reconfigure: mysql-server-5.0 is broken or not fully installed20:06
kansanwhy is it so hard to get mysql-server installed ;p?20:06
sommerhow did you install it?  sudo apt-get install mysql-server ?  was there any error messages?20:07
erichammond1kansan: This installs mysql-server without a prompt and without a root password:20:28
erichammond1export DEBIAN_FRONTEND=noninteractive20:28
erichammond1sudo apt-get install -y mysql-server20:28
erichammond1kansan: You can then script setting the root password.20:28
erichammond1Or as one line: sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server20:31
DavedanI'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:31
erichammond1Davedan: You might check out the "apt-file" package and command.20:32
maxbHmm, isn't apt-file for finding out about packages you *don't* have installed?20:33
erichammond1or perhaps "dpkg -L"20:34
maxbDavedan: dpkg -L packagename will list all files (config and not) contained in the package20:34
Davedan maxb: how can I filter out only the config files?20:34
erichammond1Davedan: Who's to say what files can be labeled "config" and which are "data" or "programs" or "other" :)20:35
maxbWell, "those that are in /etc/" is a good start20:35
DavedanI'll explain what I'm trying to do20:35
DavedanI'm following a post on lifehacker that explain how to save the list of installed packages on ubuntu20:36
DavedanI want to save the config files as well so I can reinstall my ubuntu server20:36
Davedanhttp://lifehacker.com/5146028/save-synaptic-markings-to-speed-up-ubuntu-reinstallatoin20:36
Davedanthis is for the desktop but it can be done on the server too20:36
erichammond1Every time I make a change to a config file I either automate it or document the steps for future installs.20:38
maxbSaving 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 backup20:39
ScottKDavedan: You might look into the etckeeper package.20:41
Davedanwow. I couldn't imagine it is that complicated :)20:42
Davedanare there any more folders other then /etc ?20:44
Spearwell20:45
Spearyou're best bet is to pick the services that you need config files for20:45
Spearand then find out where they store config files20:45
ScottKPreferences for indivdual users are kept in $HOME/.various places.20:45
Spear^^20:45
uvirtbotSpear: Error: "^" is not a valid command.20:45
ScottKSome packages put stuff in /var too.20:46
Spearif you backup /etc/ and /home/ you're pretty safe20:46
Spear:P20:46
SpearBut, 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 individually20:46
Davedanthank you. I will20:47
DavedanI hoped the default pagackage config place is documented somewhere but I guess I'll have to hunt it down20:47
maxbDavedan: The default place is /etc20:51
kansanum i cant even install mysql-server interactively!20:53
kansandpkg: 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
kansandpkg: error processing mysql-server (--configure):20:53
ScottKsudo apt-get -f install20:53
* ScottK 's fingers do that one almost automatically.20:54
kansanforce install?20:54
maxbIt's more like "fix install"20:54
kansanhttp://pastie.org/37982720:55
kansandidnt work :(20:55
maxbNo, "apt-get -f install" and no packagenames after20:56
ScottKlook in /etc/init.d for the mysql init script.  Edit it to add exit 0 just after the shebang and then try again.20:56
ScottKThat should let it configure.  Then go back and take that out.20:57
ScottKThen do a sudo apt-get dist-upgrade to get whatever packages are being held back.20:58
kansanScottK, but that cant be a long term solution21:00
kansanScottK, each time i install mysql-server (on my ec2 instance) i get the same error21:00
ScottKAgreed.  Just suggesting how to dig you out of the immediate hole and then it'll be easier to troubleshoot21:01
kansanok;  so it installs21:02
kansanbut if i try to start up mysql-server21:02
ScottKOnce the package is configured you can manually try to start mysql and explore why it won't start.21:02
kansanit wont start ;p21:02
* ScottK knows zip about mysql, so can't help with that part, but at least dpkg isn't stuck now.21:02
kansani am not sure why dpkg is failing hard installing mysql21:03
kansanits a blank image21:03
crazygirare gcc and the kernel sources not available in a default install of ubuntu-server?21:04
ScottKThe dkpg failure was it couldn't start mysql.21:04
ScottKcrazygir: You want to install build-essential.21:04
crazygirScottK: should take care of building vmware modules?21:05
maxbkansan: Run "mysqld_safe" manually as root, and see what it complains about21:06
* ScottK doesn't build vmware modules, so can't say for sure. Linux headers are, IIRC, in the linux-source package.21:06
ScottKSo with those two you should have compiler and headers.21:07
crazygirawesome21:07
kansan ec2-67-202-1-110 ~:  mysqld_safe21:07
kansannohup: 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]: ended21:07
maxblinux-headers rather than linux-source, no?21:07
ScottKCould be.21:07
* ScottK didn't actually look it up.21:07
maxbSpecifically, linux-headers-$(uname -r) I think21:08
maxbkansan: messages in /var/log/mysql.err ?21:09
kansanok let me check it21:12
kansanmaxb, no output there21:13
maxb/var/log/daemon.log ?21:14
kansanmaxb, no output either21:14
kansanit looksl ike its starting/stopping immediately21:14
erichammond1kansan: 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:15
erichammond1kansan: 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
maxbkansan: What about if you just run 'mysqld' as root21:16
kansanerichammond, before i try to script i want to make sure i can install it when i'm there to push buttons21:16
kansanerichammond, in the ami i customzied i can't install via apt-get update && apt-get install mysql-server21:17
kansaneven when its fresh21:17
kansanmysqld: File '/mnt/log/mysql/mysql-slow.log' not found (Errcode: 2)21:17
kansan090204 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:17
maxbAh, now you have something to fix21:18
erichammond1kansan: Looks like you've changed where the logdir (and datadir?) goes.  Do those directories exist and have the right permissions?21:18
kansanyeah i can give it logging21:18
kansanah ha21:19
crazygirthanks ScottK / maxb21:19
kansandoes my.cnf get overwritten upon installation?21:26
BBHossi seem to have discovered someone trying to break into my server21:30
BBHosssomehow they uploaded a file to a lists/admin/index.php directory21:30
BBHossbut i cant find where it is21:30
BBHossany tips?21:30
BBHoss"/lists/admin/index.php?_SERVER[ConfigFile]=../../../../../../../../../../../../../../../../etc/passwd" is the path21:32
BBHossls21:32
maxbWhat makes you think it was an upload?21:34
BBHossi didnt put it there21:34
maxbWhere did you get that pathname?21:34
BBHossthe server logs21:34
maxbwhich logs21:34
BBHossi pasted it in the browser and it gave me my passwd file21:34
BBHossnginx21:34
maxbWell that sounds like a download not an upload21:35
BBHossright21:35
BBHossbut how did it get there21:35
BBHossand where is lists?21:35
maxbErm.21:35
BBHossits not in that directory21:35
maxbYou probably shouldn't be running a public http server if you don't understand what it's serving :-/21:35
BBHosswtf?21:36
BBHossi do understand what its serving21:36
BBHossi DID NOT PUT IT THERE21:36
BBHossthat means SOMEONE UPLOADED IT!21:36
BBHossright now i'm trying to figure out where the lists directory is21:37
maxbWhereever your webserver is configured to map the URL to21:37
BBHosswell its not in that directory21:38
BBHossif i can access the php file through the browser, how can i find where the file is?21:42
BBHossare there any logs that php has?21:42
kansanis it bad if i try to create the mysql user / group mysefl???  (prior to installing mysql)?  it would make things much easier! :P21:43
maxbkansan: hmm, why? the package should do it for you21:44
kansanmaxb, cuz it appears as though the default directory that mysql is looking for logs/files etc.... doesnt exist21:45
kansanon an installation on ubuntu21:45
maxbThe default is /var/log though, I don't know where your /mnt/log paths came from - that's a customization of some sort21:46
kansanright21:47
kansani'm guesing my.cnf is already on my machine21:48
kansani'm not sure why default confit would get the wrong path21:48
kansana ha!21:49
kansanthere IS a my.cnf there21:49
erichammond1maxb: 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
kansanproblem solved!21:49
kansanso i can create the mysql user prior to installing mysql-server?21:50
kansanand mysql-server install will check to make sure that there's no group/user called mysql first?21:50
erichammond1kansan: It's easy to try :)21:50
kansanerichammond, sho is;  just wanted to make sure its achieveable21:50
kansanbefore i script it21:50
erichammond1kansan: Fire up an instance, type in 2 commands, and you'll have your answer for $0.10 :)21:51
kansanheh21:51
erichammond1gotta love EC221:51
agentkI am trying to run an unpriviliged service on a high port and forward a low port to it with iptables21:51
agentksudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 808121:52
kansanshould i set a password for mysql user?21:52
agentkI 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_forward21:53
dazmanagentk, it should be --to-port 808121:53
agentkdazman: HA! Perfect!21:54
dazmanagentk, :)21:54
agentkdazman: I knew I should not have given up caffine.21:54
dazmanagentk, Haha.21:55
BBHossit seems someone has installed PHPlist on my server, any idea how i can find it?21:59
Spearsearch for its files on the server :p22:00
* Spear will now be quiet22:00
dazmanWell, 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:01
kansanhow 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
BBHossdazman: i can't seem to find it anywhere22:02
BBHossif i remove the directory that the vhost addresses, it still finds the file22:03
dazmankansan, it's the same pretty much isn't it apart from the mysql package has given it a full name?22:03
dazmanBBHoss, updatedb && locate lists22:03
BBHossnothing22:03
kansandazman, ok didnt know if that mattered (the rest of it)22:03
dazmanBBHoss, 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:03
dazmankansan, 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
BBHossdazman: see this is nginx, and i'm forwarding all of my *.php connections to fastcgi22:04
dazmankansan, you don't want it to have a shell really.. as it's not used that way.22:04
kansandazman, so how can i set that with adduser22:04
dazmankansan, erm, without man adduser, I can't remember off the top of my head.22:05
dazmankansan, have a look at the man page, there will be options to change the shell and home dir from the command line.22:05
BBHossok, it does it for ANY php, not just that single vhost22:07
BBHossis there any unix command that can tell me the files an application is using, kind of like reverse fuser?22:11
SpearBBHoss: http://stackoverflow.com/questions/301247/files-being-used-by-a-unix-process22:15
Spearread the comments22:15
Spearit offers some solutions to your question22:15
Spearlsof -p <pid> should do the trick ;-)22:16
BBHossSpear: thanks22:16
SpearThats ok, all I did was use google :-)22:16
misieqcould somebody post dependencies for installing ubuntu-desktop?22:52
ScottKJust try to install it, but cancel the install and you'll have a list.22:53
dazmanmisieq, apt-cache show ubuntu-desktop22:53
misieqthe 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 stuff22:54
dazmanmisieq, http://packages.ubuntu.com/intrepid/ubuntu-desktop22:55
misieqdazman, yes i know that i can check it this way but i want a *differential* check so i don't remove something important22:56
ScottKsudo apt-get remove ubuntu-desktop then sudo apt-get autoremove should do it.22:58
misieqScottK, oh, didn't know that one, thanks a lot22:58
misieqnope, it doesn't work that way23:00
ScottKWhat happened?23:02
misieqnothing apart from removing ubuntu-desktop package23:03
BBHosshow can i control what ip address/interface Postfix sends mail from?23:24
SpearHi, does anyone know if virtual machines created in Vmware 2.0 can be moved to to a Vmware host running the 1.0 server software23:27
Spearare they backwards compatible?23:27
ScottKBBHoss: 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
BBHossScottK: ok fun23:27
SpearI have some ubuntu vms that need to be temporarily relocated!23:27
kansanis 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:36
erichammond1kansan: 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
kansanah hhh sweet23:41
erichammond1kansan: Background info: http://blog.hjksolutions.com/articles/2007/07/27/unattended-package-installation-with-debian-and-ubuntu23:43
erichammond1Install script for sun-java6-jdk from Matthew Wilson: http://groups.google.com/group/ec2ubuntu/browse_thread/thread/fbcec97ca6f161e1/10222f0ce00b602d#9ec4c5af21fe78da23:45
kansanerichammond, wow handy@!23:47
erichammond1kansan: Also: http://www.davidpashley.com/blog/debian/java-license23:47
erichammond1But using that first link and identifying the current settings for your package is probably the best approach.23:48
kansanyes thats cool23:51
kansanonly problem is;  when i install sun-java5-jre ;; and then run java -v:  Could not create the Java virtual machine.23:51
kansanprobably a bad java alternatives thingy23:52
kansannope still doesnt work after setting java-alternatives correctly23:54
=== jmarsden_ is now known as jmarsden|work

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