[00:38] <vibedigital> hi. How to send a specific log event by email on ubuntu server 10.04  ?
[00:38] <hmca> anyone here with ubuntu 10.4 and raid6 ? trying to do this - echo "clean" > /sys/block/md1/md/array_state , get a echo write error: Invalid argument
[00:39] <hmca> trying to recover a 10tb raid6
[00:47] <hmca> anyone here ?  trying to do this - echo "clean" > /sys/block/md1/md/array_state , get a echo write error: Invalid argument
[00:48] <jjk9___> hmca:  here but don't know
[00:49] <hmca> desperatly trying to get a 10tb raid6 up again
[00:50] <jjk9___> hmca:  i can try something similar here and see what it does if you can wait a few mins
[00:51] <hmca> jjk9___: thanks, i have seen this as a way out to my problem but ubuntu people get this error Invalid argument
[00:55] <jjk9___> hmca:  so I don't know what this all is.. I have a 2tb raid1 on md1 and  ls -l /sys/block/md1/md/array_state gives -rw-r--r-- 1 root root 4096 2010-08-13 10:10 /sys/block/md1/md/array_state  is there a man page for this stuff?
[00:57] <hmca> jjk9___: following this hoping it can help, http://ubuntuforums.org/showthread.php?t=1538137 , take a look
[00:57] <jjk9___> hmca: k
[00:57] <hmca> mine is raid6 10 1.5TB disks
[00:59] <jjk9___> jjk9___:  reading ...
[01:02] <jjk9___> hmca:  that looks to deep for my tiny mind :( sorry dont think i can be of any help
[01:03] <hmca> jjk9___: thanks
[01:04] <jjk9___> hmca: what does cat /sys/block/md1/md/array_state return?
[01:05] <jjk9___> hmca: for me it returns clean
[01:06] <hmca> jjk9___: inactive
[01:08] <hmca> i have a failed device , faulty removed
[01:08] <jjk9___> hmca:  is there anything that might be done using mdadm?
[01:08] <hmca> i have active devices 9 , working devices 9 and failed devices 1
[01:09] <hmca> i'am assumning , faulty removed using mdadm -E /dev/sdi , means the mdadm is managing the raid, but why is it not runung , active, raid6 is dual redundancy, so i assumed i could just lost a disk
[01:10] <jjk9___> hmca:  I'm not to up on raid 6 can it run with one bad drive? or do you need to put a new one in and use like mdadm to add it to the raid?
[01:10] <hmca> i was assuming it would still run with 1 broken disk
[01:11] <hmca> Disk util on gnome says State: not running, partially asssemble
[01:11] <jjk9___> hmca:  like I say I not so up on raid6 would need to go read about it and that could take forever
[01:11] <hmca> people start working here in arround 8 hours
[01:12] <jjk9___> hmca:  maybe you need to tell the raid to go on without the bad drive?
[01:12] <jjk9___> hmca:  u can do a lot in 8 hrs
[01:14] <jjk9___> hmca: ok I just read wiki on raid6 and they say you can lose 2 drives and still run
[01:14] <hmca> right
[01:15] <hmca> i only have one faulty, so do i need to manualy tell mdadm to remove it from md0?
[01:15] <hmca> lets see how to do
[01:16] <jjk9___> hmca:  i'm searching for docs on that
[01:24] <hmca> http://www.linuxquestions.org/questions/linux-server-73/mdadm-raid-5-single-drive-failure-644325/ , maybe what i am failing 2 understand is that failling a disk as to be replaced, i thouth it could be ok to workl
[01:25] <jjk9___> hmca:  im reading this basic one http://www.review-ninja.com/2009/05/software-raid-raid-arrays-mdadm-on.html
[01:26] <jjk9___> hmca:  I agree it seems like it should keep working however I don't know the behavior when you reboot with a failed rive in the array...
[01:30] <jjk9___> hmca:  what does cat /proc/mdstat tell
[01:30] <hmca> inactive
[01:33] <jjk9___> hmca: so did u reboot into this or did the drive fail while the raid was working. I guess I'm asking if this is from reboot or while working. It looks from the link you gave as if you need to use mdadm to logically remove the failed drive from the array.  I need to try out fail modes on my raid1 for when it happens for real so I know how to handle it
[01:35] <hmca> the system totaly crash while rebilding , i have a 45 drive bays system , only with 10 now , i had to power down the machive , mdadm says the drive as been removed from array , mybe i need to actualy remove it from the system ? is that it ?
[01:36] <jjk9___> hmca: maybe you need to tell mdadm what the new array is . like when you make the array from scratch...
[01:37] <jjk9___> hmca:  I don't think that physical removal makes a diff if ma=dadm already thinks the failed on is gone
[01:37] <hmca> --create / assemble , they have all refused to activate the array , yes but i still removed it , waiting for the machine to come up
[01:38] <hmca> my backplanes are all hotswapable , but i told the os to reboot
[01:38] <jjk9___> hmca: good luck!
[01:39] <jjk9___> hmca:  there might be someone over on #ubuntu who knows about raid6 etc
[01:40] <hmca> jjk9___: i still not beliving but it worked, let me check
[01:41] <jjk9___> hmca:  woohoo!
[01:41] <hmca> it is sayin on proc , reshape + 80,2 %
[01:41] <jjk9___> hmca:  when I replace with raid1 it takes for ever to resync
[01:42] <hmca> now i just need to see if iscsitarget piks the md0 , a see if my hfsplus+ part from mac os x is there
[01:42] <jjk9___> hmca:  so what did the trick?
[01:42] <hmca> i know how to improve speed , give me a sec
[01:42] <hmca> fisicaly removing the disk
[01:43] <jjk9___> hmca:  that really surpriss me but maybe due to startup scripts
[01:43] <jjk9___> hmca:  md startup might have been looking for all and bawking on the bad or something
[01:43] <hmca> i will discuss more on this i u give me a sec/few minuts, need to goo to the mac station to see if the big disk shows up in iscsi
[01:44] <jjk9___> k
[01:51] <hmca> jjk9___: back back, feel happy..., md0 running iscsitarget runing, mac station mounting iscsitarge , violume seems ok/not corrupted
[01:51] <hmca> now for speeding up the rebuilds
[01:52] <hmca> i have the info somewhere, w8
[01:52] <jjk9___> hmca:  glad 2 hear u r out of trouble
[01:53] <hmca> it took a week for a guy in the office to upload almost 8TB into this , very slow process, i didnt wanna him or me to do it again , time is money
[01:53] <echosystm> hi guys
[01:53] <hmca> cheers
[01:53] <echosystm> ive just installed apache - what is the best way to make the www directory writeable by my user?
[01:53] <jjk9___> echosystm:  hi
[01:53] <echosystm> should i symlink it to a folder in home?
[01:54] <echosystm> should i modify the permissions on /var/www?
[01:54] <echosystm> or should i just change the config to point to a folder in home?
[01:56] <jjk9___> echosystm:  on my web server (disclaimer: im no expert) I have the folder owned by the user and apache is a member of the group that can write to that
[01:58] <jjk9___> echosystm:  that way user and apache can write to user folder but user can't write to other folders
[01:59] <fluvvell> echosystem, rather than change apache
[01:59] <fluvvell> ive made the user a member of the www-data group
[02:00] <echosystm> is that all you needed to do fluvvell ?
[02:00] <echosystm> dir /var/www/ is owned by root:root
[02:00] <fluvvell> echosystm, as long as the folders where the www files are going to be have group read/write permissions
[02:00] <fluvvell> yes, but html under that ?
[02:01] <echosystm> root:root
[02:01] <echosystm> lol
[02:01] <jjk9___> fluvvell:  doesn't that mean that the users can access each others  folders if they all belong to www-data?
[02:01] <echosystm> i might just change the apache config to point to somewhere in home, all good
[02:01] <fluvvell> jjk9___, yes but he implied one user
[02:02] <jjk9___> fluvvell:  then np
[02:02] <fluvvell> echosystm, where we had implemented the changes to apache, it came to greif much later when we did upgrades and updates to apache
[02:03] <fluvvell> much better off to keep it closer to the installed standard.
[02:03] <fluvvell> clearly there are configs you *will* change
[02:05] <fluvvell> echosystm, how did you install apache ?
[02:05] <echosystm> apt-get install apache2
[02:06] <fluvvell> and whats your output of    ps aux |grep apache
[02:07] <fluvvell> are the apache processes running as root as well ?
[02:07] <echosystm> one is
[02:07] <echosystm> 4 arent
[02:07] <echosystm> *3 arent
[02:07] <fluvvell> so what user are the other ones running as ?
[02:07] <echosystm> 3 are www-data
[02:08] <fluvvell> yep, I have 1 as root, 5 as www-data
[02:09] <fluvvell> once you set up your virtual hosts, I think the files you create will need to be www-data owned.  I'd not consider myself an expert, but thats been my experience over about 5 or six apache servers we run.
[02:09] <echosystm> the actual www-data folder will be owned by root though
[02:09] <echosystm> so even if i am in www-data myself, i cannot write to that folder
[02:10] <echosystm> im just going to change the document root, its easiest
[02:10] <echosystm> easy to change back if i need to
[02:10] <fluvvell> no but add yourself to the www-data group.
[02:10] <fluvvell> of course the good thing about ubuntu/linux is experimenting :-)
[02:11] <fluvvell> the conventions that are adopted are just there to make things easier and more consistent.
[02:11] <fluvvell> and I guess secure.
[02:12] <echosystm> alrighty, thanks for your help
[02:12] <echosystm> ciao
[03:56] <yaboo> any raid guru's about
[04:02] <MTecknology> !anyone
[04:04] <jjk9> MTecknology:  ask again  i just swung by
[04:05] <MTecknology> jjk9: that was for yaboo asking if anyone is around
[04:05] <jjk9> k
[04:10] <yaboo> ok got a raid 5 unit with three disks, rebooted the array, and getting mount: you must specify the filesystem type when I try to mount it
[04:26] <yaboo> ok, seems no-one knows anything about mdadm and howto recover the disks
[04:28] <jjk9> yaboo:  wot does cat /proc/mdstat  say
[04:28] <yaboo> jjk9, nothing, looks normal till I try to mount the device, and errors with no filesystem
[04:29] <jjk9> yaboo:  if cat /proc/mdstat  returns nothing that's not normal
[04:30] <jjk9> yaboo:  how r u mounting the device?
[04:30] <yaboo> jjk9 cat proc shows there's md0, three disks there etc, nothing out of the ordinary
[04:30] <yaboo> jjk9, mount /dev/md0 /home/storage
[04:32] <yaboo> ok get a lot of superblock errors
[04:34] <jjk9> yaboo:  when do u get the superblk errors?
[04:34] <yaboo> trying fsck -b 8193 /dev/md0
[04:35] <jjk9> yaboo:  what fs do u expect on there?
[04:35] <yaboo> formated it ext3
[04:36] <jjk9> yaboo:  have u tried  -t ext3 when mounting?
[04:39] <yaboo> jjk9, just tried and states wrong fs type, bad option, bad superblock on /dev/md0
[04:41] <jjk9> yaboo:  try fsck.ext3 /dev/md0
[04:43] <jjk9> yaboo:  http://www.linuxquestions.org/questions/linux-software-2/debian-raid-5-rebuild-457098/
[04:44] <yaboo> fsck.ext3: Superblock invalid, trying backup blocks...
[04:44] <yaboo> fsck.ext3: Bad magic number in super-block while trying to open /dev/md0
[04:44] <yaboo>  jjk9
[04:47] <jjk9> yaboo:  u have plumbed the depth of my meager knowledge. I'm all out 4 now. :(
[04:48] <yaboo> jjk9, THANKS
[04:51] <jjk9> yaboo: yw I didn't help much.   btw lots of hits on search  "Bad magic number in super-block while trying to open"
[04:57] <yaboo> jjk9, something to do with superblock invalid
[04:57] <jjk9> yaboo: best of luck
[04:58] <yaboo> jjk9, thanks
[05:00] <twb> I have a lucid router.  I'm trying to add a USB wifi dongle to it, to turn it into a wifi AP./
[05:00] <twb> On Debian, it says I need firmware-ralink (http://wiki.debian.org/WiFi/rt73), but this isn't in Ubuntu (per rmadison).
[05:01] <ajmitch> twb: ralink drivers are generally awful, but you may find that linux-firmware has what you need
[05:01] <twb> Which package is the binary blob in?
[05:01] <twb> OK, looking
[05:02] <twb> I already have linux-firmware installed (presumably its in main, not restricted), so I'll install hostapd and wpa_supplicant and see if it Just Works
[05:02] <ajmitch> which usb dongle do you have?
[05:03] <twb> ajmitch: 148f:2573
[05:03] <ajmitch> quite different from the linksys one that I have then
[05:04] <ajmitch> which is 1737:0078, hopefully you have better luck with it than I've seen
[05:06] <twb> I actually asked the boss to just go buy half a dozen different manufacturers' devices, hoping to get at least one with a "good" chipset
[05:06] <twb> But what happened was he took his old one from home :-/
[05:20] <yaboo> if I format over partition can I recover the data beforehand
[05:21] <twb> yaboo: well, yeah, just back it up before you format it
[05:21] <yaboo> twb seems I have superblock errors and no matter how much I fsck etc, it seems not able to fix the disk
[05:22] <twb> Try sticking in the freezer for an hour (wrapped in cloth)
[05:26] <twb> Of course, it WILL be a complete farce unless Kanno does the soundtrack
[05:26] <twb> Oops, wrong channel.
[06:14] <aegis> Has anyone else had trouble installing Drupal 6 from the package?  It does not create any of the directories/files in /var/www/  ...
[06:18] <twb> It's a packaging violation to place files in /var/www.
[06:20] <twb> Sorry, make that "discouraged" rather than "disallowed" (§11.5.4)
[06:20] <PresuntoRJ> aegis: have you read the "official" community documentation? https://help.ubuntu.com/community/Drupal
[06:21] <PresuntoRJ> aegis: it worked fine the last time I have tried it :D
[06:21] <PresuntoRJ> aegis: of course, if it does not work anymore, you could try to comment in a bug report
[06:22] <PresuntoRJ> aegis: there is also one at the drupal site: http://drupal.org/node/626404
[06:23] <PresuntoRJ> aegis: the files might not live where you would expect them to be, but it should work
[06:24] <PresuntoRJ> aegis: and it should get symliked to the /var/www anyway
[06:25] <PresuntoRJ> aegis: does it help?
[07:54] <yaboo> formated a disk, if I have not written new data on the disk, can I recover the old data on the disk?
[09:48] <huats> morning
[10:38] <twb> Where is lucid's equivalent of /lib/udev/net.agent?
[10:38] <twb> You know, the thing that makes allow-hotplug entries in /etc/network/interfaces *actually work*
[10:39] <twb> Unfortunately there's not debian-to-ubuntu diff on http://packages.qa.debian.org/u/udev.html, because lucid's udev is built from a git snapshot
[10:40] <\sh> twb, regarding some release notes and working with ifenslave-2.6. which had debian wise the "allow-hotplug" format, someone said, we don't have allow-hotplug that's why we are using "auto"
[10:40] <twb> Well, auto is not the same thing
[10:41] <\sh> i know :)
[10:41] <twb> See, there is this bug
[10:41] <twb> When I unplug the SERIAL cable, it removes and readds the USB wifi device
[10:41] <twb> Which results in me not having an AP anymore
[10:42] <twb> (The wifi device is configured as an AP with hostapd.)
[10:43] <\sh> you mean "serial cable" as in "serial cable" and not as in "usb2serial" ... because why should something remove the usb device when unplugging a serial cable
[10:43] <twb> So you would THINK that simply changing "auto wifi0" to "allow-hotplug wifi0" would DTRT, but no, it causes wifi0 to never ever ever be raised, probably because the udev maintainer assumed everyone was using laptops running NM.  ARGH ARGH ARGH.
[10:43] <twb> \sh: yes, it has a real serial port.
[10:44] <twb> Admittedly, I'm then plugging a USB-to-serial bridge into its 9-pin serial port, and the plugging the USB end into my laptop
[10:45] <twb> I'd be amazed if linux can see that it's a USB-to-serial bridge from the serial side
[10:49] <twb> (Sorry about losing my temper; I was expect it to Just Work, like Debian.)
[10:49] <twb> I'll stop working on that now so I don't have to call a glazier
[11:59] <Error404NotFound> I don't know if this is the right place, but againt my script i get "Please enable following functions in your php.ini: filter_var" even though phpinfo() in same directory reveals no disabled functions.
[12:53] <DigitalDeviant> anyone available to answer a question
[12:56] <kaushal> hi
[12:56] <DigitalDeviant> i installed ispconfig3 on my ubuntu server and created the website, uploaded my website but its not working.
[12:56] <kaushal> hi
[12:56] <kaushal> i get Cannot join to channel #ubuntu-virt (You must be invited)
[12:56] <twb> DigitalDeviant: that package is not part of Ubuntu
[12:57] <twb> DigitalDeviant: you will have to talk to whoever supplied it.
[12:57] <twb> kaushal: try #virt (or #libvirt?)
[12:57] <twb> !ops #ubuntu-virt is invite-only
[12:57] <twb> Hmph.
[13:01] <kaushal> twb: ok
[13:01] <kaushal> twb: can someone allow me in there :)
[13:05] <soren> kaushal: It's been discontinued.
[13:06] <soren> kaushal: People attempting to connect to it are redirected here.
[13:06] <soren> kaushal: Since you're already here, you get odd results.
[13:06] <twb> soren: thanks
[13:07] <twb> Might be worth poking #freenode about it in case there's a way to avoid the "odd results"
[13:11] <soren> kim0: Can you take care this? ^^ (I'm assuming you're the one who made the changes based on your comment on the mailing list: https://lists.ubuntu.com/archives/ubuntu-server/2010-August/004512.html )
[13:13] <kim0> My understanding the problem is, when you join #ubuntu-virt while already joined to #ubunt-server, you simply get "invite only channel"
[13:13] <kim0> if so, I already talked to the irc council folks
[13:13] <kim0> and they said, this is a weird Freenode thing that they can't do anything about
[13:14] <twb> Probably they don't want to patch their funky ircd
[13:14] <twb> *patch it any more
[13:14] <kim0> :)
[14:01] <yoosef> hi. ive been running ubuntu server 10.04 for a bit over month now. i use it as fileserver on my lan, its also running openssh-server. everything seems to work fine... but i think the server load averages are bit too high, for system only running samba & openssh-server. load avarages are anything between 1.00 - 1.20. most of the times its 1.00. got 4gb ram and pentium 2.8ghz installed.. any ideas what might cause that load?
[14:13] <AndyGraybeal> hey guys, i'd like to install 'lightning' for all my users.. i can install it to my 'user' folder.. and i don't want to do single installs for all my users.. is there an easy way to accomplish this?
[14:18] <tgywa> Do anyone know if ksplice is stable enough for critical production enviroments?
[14:18] <soren> AndyGraybeal: What's lightning?
[14:26] <twb> yoosef: no.  Ask top(1).
[14:27] <twb> AndyGraybeal: apt-get install sunbird?
[14:27] <twb> AndyGraybeal: or does it have to be the plugin version?
[14:28] <twb> It may be called "iceowl" instead of "sunbird"; the latter is trademark-encumbered.
[14:29] <twb> AndyGraybeal: other than that, you can always just drop it into the appropriate magical folder somewhere in /usr -- the one thunderbird looks in for plugins.  I don't know much about that.
[14:29] <AndyGraybeal> interesting
[14:29] <AndyGraybeal> thank you twb
[14:29] <yoosef> twb: ive used top -command, but nothing seems to use any significant amount of cpu or mem..
[14:29] <AndyGraybeal> soren, lightning is the new sunbird
[14:29] <twb> soren: it's basically sunbird (read: mozilla calendar) as a thunderbird package.
[14:29] <soren> AndyGraybeal: then this is the wrong channel :)
[14:29] <twb> AndyGraybeal: really?  I thought sunbird was newer
[14:51] <AndyGraybeal> twb, i don't know but mozilla recommends moving to lightning from sunbird.  i'm not sure why.
[14:52] <twb> Because they're goats and rabid space-donkeys
[14:53] <AndyGraybeal> exactly
[14:54] <twb> I mean, they're up there with schily and tuomov
[16:04] <ricdanger> hi
[16:12] <kaushal> hi
[16:12] <kaushal> any help document to setup KVM on Ubuntu Server 10.04 ?
[16:13] <kaushal> also when i install Ubuntu 10.04 Server what does one means by Ubuntu Enterprise Cloud ?
[16:14] <kaushal> while installation
[16:16] <sherr> kaushal: there are docs on the Ubuntu site e.g.
[16:16] <sherr> https://help.ubuntu.com/10.04/index.html
[16:17] <sherr> + https://help.ubuntu.com/community/UEC
[16:47] <Datz> Hi, I'm trying to enable cron logging. I'm folling a tutorial: Edit /etc/syslog.conf and uncomment the line starting with cron.*   However, there is no /etc/syslog.conf
[16:48] <Datz> also reading that restarting sysklogd would create such a file. But I don't see "/etc/init.d/sysklogd" although I know that there used to be such a file in my previous desktop install
[16:49] <Datz> Ok, looks like it logs within syslog?
[16:49] <Datz> Does it do the same verbose of logging?
[16:56] <dennis> hey experts... so we upgraded a server from 8.04 -> 10.04 and now the lvm volumes cant be found e.g the system wont reboot
[16:56] <dennis> I've tried booting from live-cd and chrooting into the root running dpkg-reconfigure linux-image-kernel
[16:56] <dennis> without any luck
[16:59] <kaushal> is VM means Virtual Machine ?
[16:59] <kaushal> https://help.ubuntu.com/community/KVM/FAQ
[16:59] <stlsaint> dennis: does your fstab show correct uuid for drives?
[17:02] <dennis> stlsaint, yes but we just changed it to use logical named instead of UID
[17:02] <stlsaint> dennis: well you may want to review your fstab, more than likely that is where your problem is
[17:03] <dennis> ok thanks.. I'll have one more close look
[17:04] <dennis> I fail to understand how an upgrade could change the uuid if my disks tho
[17:16] <kaushal> can i seek help regarding kvm setup on Ubuntu 10.04 Server ?
[17:16] <kaushal> I am actually reading it
[17:16] <kaushal> also what is the difference between UEC and KVM ?
[18:12] <olopez> hello anyone have experience with ubuntu and solaris ldoms ?
[18:35] <Datz> hello, well I think I have some information on why my cronjob isn't working. in syslog I get:  postfix/sendmail[19238]: fatal: open /etc/postfix/main.cf: No such file or directory
[18:36] <Datz> can someone help me with this error?
[18:39] <jjk9> Datz:  I came in late... wots yr cronjob trying to do?
[18:40] <Datz> */5 * * * cat /var/log/fail2ban.log > /var/www/site/fail2ban.log
[18:41] <Datz> the command works fine, but in cron, nothing happens. I noticed that message in syslog every five min
[18:41] <jjk9> Datz:  that is cron trying to send you an email
[18:42] <Datz> no, just create a new file
[18:42] <jjk9> Datz:  sounds like you don't have postfix configured correctly
[18:42] <Datz> I see
[18:42] <jjk9> Datz:  when you run a cron with any output it tries to send email to te cron user
[18:43] <Datz> output as in cat in this case?
[18:43] <jjk9> Datz:  any output from the cronjob
[18:44] <Datz> Ok, just trying to understand.. I have other cron jobs.. and this message only appears in the system log at the interval my failed cron job is running
[18:45] <jjk9> Datz:  if cronjob has no output then no mail from it. If this one fails cron trying to tell cron user that is case
[18:45] <Datz> I see
[18:45] <Datz> thanks
[18:46] <Datz> so if I were to set up postfix/sendmail. I would get a message indicating what went wrong?
[18:47] <Datz> should I run /etc/postfix/post-install?
[18:48] <jjk9> Datz:  if something went wrong wit the cronjob yes. If you just want to see the error you might try piping errors to a file  by putting something like 2>myerrorlogfile
[18:48] <Datz> at end of failing cronjob?
[18:49] <jjk9> Datz:  at the end of the line on cron that you think is failing
[18:49] <Datz> */5 * * * cat /var/log/fail2ban.log > /var/www/site/fail2ban.log 2| ~/error.log  ?
[18:49] <jjk9> Datz: 2 > ...
[18:50] <Datz> sorry, thanks. I'll try it
[18:52]  * Datz waits for it to appear
[18:52] <jjk9> Datz:  do **** on cron line for testing...
[18:54] <Datz> I actually did, with spaces
[18:55] <Datz> * * * * *  cat /var/log/fail2ban.log > /var/www/site/fail2ban.log 2> ~/error.log
[18:55] <Datz> er.. space before 2?
[18:55] <jjk9> Datz:  I just skipped spaces :( sorry , yes 2 is stdout and 3 is stderr so
[18:56] <Datz> ok, spaced :)
[18:56]  * Datz is waiting.. :p
[18:58] <Datz> not seeing anything. THis is exact entry * * * * *  cat /var/log/fail2ban.log > /var/www/site/fail2ban.log 2 > ~/error.log
[18:59] <jjk9> Datz:  ok let me try here wait one
[18:59] <Datz> thanks
[18:59] <RoyK> Datz: no space after 2
[19:00] <Datz> ok
[19:00] <Datz> :)
[19:00] <RoyK> Datz: also, make sure /var/log/fail2ban.log is readable for the user running the cron job
[19:00] <Datz> the command works outside of cron
[19:00] <RoyK> for that user?
[19:00] <Datz> yes
[19:01] <Datz> nothing in ~ yet
[19:01] <RoyK> ok, I think I've seen something like that earlier - try to create a script doing cat ... > log etc and run that script
[19:01] <RoyK> from cron
[19:01] <Datz> humm, ok good idea
[19:05] <RoyK> Datz: or even better - setup fail2ban to log to a named pipe (or fifo) and read from that, copying the info to separate files
[19:06] <Datz> ok, well I created the script, and ran it. It works
[19:06] <Datz> made a cronjob for it "* * * * *  ~/test" <- is that correct
[19:07] <Datz> RoyK: that last option sounds too complex for me currently
[19:07] <jjk9> Datz:  maybe pipe stdout (&2) and stderr(&3) to the log 3>&2 2>~/error.log
[19:07] <Datz> ok
[19:08] <RoyK> jjk9: stdout is file 1 and stderr is file 2
[19:08] <RoyK> stdin is 0
[19:09] <jjk9> RoyK:  err 1 is stdin
[19:09] <Datz> * * * * *  cat /var/log/fail2ban.log > /var/www/site/fail2ban.log 3>&2 2>~/error.log  <- ?
[19:09] <RoyK> Datz: change the crontab to use the log, and beleive me, 0 is stdin, 1 is stdout, 2 is stderr
[19:10] <jjk9> Datz:  so when I try * * * * * echoo "boo" > /root/tt 3>&2 2>tterr3  i   I get errors echoo not found in tterr3
[19:10] <RoyK> echooo asdf > output 2> errors
[19:10] <Datz> ok
[19:11] <RoyK> Datz: but run the script, not the script's contents from cron
[19:11] <jjk9> RoyK: my bad u are right
[19:11] <RoyK> something > output == something 1> output
[19:12]  * Datz is slightly confused
[19:12]  * Datz re-reads
[19:12] <qman__> Datz, I see one problem, your original cron is missing a parameter, "*/5 * * *" is only four
[19:13]  * Datz checks on this
[19:13] <RoyK> Datz: http://pastebin.com/TMwW380D
[19:14] <RoyK> get it?
[19:14] <qman__> also, you don't specify a user
[19:14] <qman__> one job in my /etc/cron.d/, for example
[19:14] <RoyK> qman__: no need to do that with a normal cron job - only the ones in /etc/cron* needs that
[19:14] <Datz> RoyK: got it
[19:15] <RoyK> if adding it with crontab -e, it's run under the current user
[19:15] <qman__> 13 * * * * root [script]
[19:15] <RoyK> if in /etc/cron.d, you need a user
[19:15] <qman__> yeah
[19:15] <Datz> ! it's working
[19:15] <RoyK> :)
[19:16] <Datz> ha.. I triggered ubottu
[19:17] <Datz> it's almost like it started magically working..
[19:19] <Datz> I checked on what qman__ said about 4 time entries, there were 5 at that moment in time, I uncommitted entry and it works..
[19:19] <Datz> heh
[19:19] <Datz> well, thanks guys :)
[19:19] <jjk9> Datz:  also if it fails now and u don't have mail setup then you won't know til next tome u login
[19:40] <alekto> how could a shell initialization file in a home directory that is group writable be a security risk?
[19:50] <RoyK> alekto: some member of the group can add the line 'rm -rf $HOME' at the end - that won't be much fun
[19:54] <alekto> ah, I see.. letting other users be able to delete home dir is not a good idea ;)
[19:56] <alekto> so what about executable files in /usr/sbin that is world writable? could this really harm the system?
[19:57] <RoyK> don't do that
[19:58] <RoyK> executables in system path should _NEVER_ be world-writable
[20:00] <alekto> oh, okay.. what could this result in? everybody shutting down the system?
[20:04] <qman__> that's just asking for an infection
[20:05] <qman__> drop some malicious code into something root uses, wait until root uses it, game over
[20:07] <alekto> hehe, oh shit!
[20:12] <silentwater77> i installed apparmor with apt-get on a fresh lucid minimal. apparmor_status said command not found. /etc/init.d/apparmor start gives me just a new prompt. what do i have to do to make it even start ?
[20:13] <RoyK> silentwater77: apparmor is installed by default iirc
[20:14] <silentwater77> i have a fresh 10.04 minimal...apt-get install apparmor just installed it.
[20:15] <RoyK> that should be enough
[20:15] <silentwater77> apparmor_status says command not found
[20:15] <silentwater77> lsmod  is empty
[20:16] <RoyK> http://pastebin.com/8k1natKe
[20:16] <RoyK> silentwater77: apparmor-utils perhaps
[20:17] <dominicdinada> how to flush user mail i let my cron logs get to big
[20:17] <RoyK> they should be flushed automatically, in realtime
[20:17] <silentwater77> thanks royk...my desktop gives me the same messages
[20:17] <RoyK> what mta are you using?
[20:18] <silentwater77> on my vps i get:     root@dice:/var/log# aa-status
[20:18] <silentwater77> apparmor module is not loaded.
[20:18] <dominicdinada> ebox and webmin show 20,000 msgs from the cron, ebox jobs
[20:18] <RoyK> wtf
[20:18] <silentwater77> should i better go for selinux ?
[20:18] <RoyK> nope
[20:19] <RoyK> I really don't know - I haven't used the minimal setup for some time - regular works well
[20:19] <RoyK> dominicdinada: which mta are you using?
[20:19] <dominicdinada> mta?
[20:19] <RoyK> ubottu: explain mta
[20:20] <RoyK> hm
[20:20] <dominicdinada> !mta
[20:20] <dominicdinada> oh just the system mail
[20:20] <RoyK> postfix? exim? sendmail?
[20:20] <dominicdinada> sendmail i believe is where the logs are
[20:20] <qman__> yeah, ubuntu doesn't have a local mta installed by default, you have to pick one
[20:21] <RoyK> dominicdinada: try postfix
[20:21] <dominicdinada> ok ?
[20:21] <RoyK> best mta there is imho
[20:21] <qman__> I won't disagree
[20:22] <dominicdinada> it is in the postfix mail
[20:22] <dominicdinada> how to flush such high msgs crashes browser tab lol
[20:22] <RoyK> if so, 'postfix flush' will flush the queue
[20:22] <dominicdinada> ?
[20:22] <RoyK> # postfix flush
[20:22] <dominicdinada> ok
[20:23] <RoyK> but with 20k emails in the queue, something is probably quite bad
[20:24] <dominicdinada> RoyK: No it is just how ebox set things to notify... running the flush did nothinh
[20:24] <dominicdinada> nothing* even
[20:24] <RoyK> can you pastebin parts of mailq output?
[20:24] <RoyK> # mailq
[20:24] <dominicdinada> each crontab, logged to a user
[20:24] <dominicdinada> is empty
[20:25] <dominicdinada> is not under this username
[20:25] <RoyK> if mailq is empty, the postfix mail queue is empty
[20:25] <dominicdinada> well duh
[20:25] <RoyK> if the email is distributed to the local accounts under /var/mail, that's where it is
[20:25] <dominicdinada> it is under nobody
[20:26] <silentwater77> fresh ubuntu 10.04 minimal has in daemon log:    init: cron main process (87) killed by TERM signal. is this normal ?
[20:26] <RoyK> dominicdinada: change the email address or add a ~/.forward file in which you set the email address to where the email is to be forwarded
[20:27] <RoyK> silentwater77: not really - check dmesg - perhaps something bad, like an OOM happened
[20:27] <qman__> silentwater77, all that means is init killed cron at some point in time
[20:27] <dominicdinada> b rb looking into it
[20:27] <RoyK> qman__: should init kill cron?
[20:28] <qman__> when shutting down, shouldn't it?
[20:28] <RoyK> well, yes :)
[20:28] <silentwater77> dmesg is empty...i rebooted
[20:28] <RoyK> silentwater77: was this kill in conjunction with a reboot?
[20:29] <silentwater77> yes, message cam just before reboot
[20:29] <qman__> now, if init killed cron when you weren't shutting down, then something's messed up
[20:30]  * RoyK hands qman__ a beer
[20:30] <silentwater77> if i get u right its normal right before shutting down
[20:31] <qman__> yes, by TERM, at shutdown, is normal
[20:31] <silentwater77> thanks, i wondered because i had trouble with packages (mountall, upstart) beeing on hold right after install
[20:31] <RoyK> silentwater77: before a shutdown, all processes are killed, first an attempt is made with SIGTERM and then they are forcibly killed with SIGKILL
[20:33] <silentwater77> ah, i understand, thanks
[20:35] <silentwater77> but i guess its not normal that 2 packages are on hold (mountall, upstart) right after fresh install on a openvz vps
[20:36] <qman__> probably not
[20:36] <qman__> but I've never done a minimal install
[20:36] <silentwater77> im asking because now mysql wont start automatically after reboot
[20:36] <RoyK> silentwater77: Can you try with the standard server install?
[20:38] <silentwater77> standart server is available but not offcial supported by my provider
[20:38] <RoyK> silentwater77: eh - they support the minimal, but not standard??
[20:39] <RoyK> silentwater77: sounds very strange to me, since the standard install is the most commonly used, and disk space required isn't really a lot
[20:39] <silentwater77> yes, they make their on localized template based on ubuntu minimal....
[20:40] <RoyK> their own?
[20:41] <dominicdinada> ok how to delete mail from a system account?
[20:41] <RoyK> imho it would be better if they released the translations instead of keeping them local.....
[20:41] <RoyK> dominicdinada: /var/mail
[20:41] <silentwater77> yes, they have someone who is the "template master". he is in charge for building the templates
[20:41] <silentwater77> i could install all openvz wiki templates like : "ubuntu-10.04-lamp_10.04_i386"
[20:41] <silentwater77> maybe i better go for that
[20:42] <silentwater77> lamp is what i need
[20:42] <RoyK> apt-get install \*
[20:42] <RoyK> :D
[20:42] <silentwater77> ;-)
[20:42] <dominicdinada> -rw-rw----  1 nobody   mail 30891684 2010-09-06 14:07 nobody
[20:42] <dominicdinada> wow
[20:42] <RoyK> lol
[20:42] <dominicdinada> cron,ldf,csf all putting events there lol
[20:43] <dominicdinada> if i just del the file that will mess things up right
[20:45] <silentwater77> i just installed the official ubuntu minimal and ran into the same mountall, upstart issue
[20:45] <RoyK> dominicdinada: yes, but check first - there's probably fixes to be made in cron etc to stop those emails
[20:45] <RoyK> silentwater77: which version?
[20:46] <dominicdinada> RoyK: those mail are fine but not the ebox i was wrong there is 29,000 cron mails for ebox events :O
[20:46] <silentwater77> 10.04 minimal i3386
[20:46] <dominicdinada> cant narrow it and del in smaller sets
[20:47] <RoyK> dominicdinada: can't you just install standard server?
[20:47] <dominicdinada> RoyK:  plz stop answerin g questions with more questions i am trying to clean this mail this moment
[20:48] <RoyK> dominicdinada: that was for silentwater77
[20:48] <RoyK> silentwater77: can't you just install standard server?
[20:48] <dominicdinada> i have dovecot but i am trying to cleasn 29k system mails
[20:49] <silentwater77> no i cant. i have to choose a template for openvz vps
[20:49] <silentwater77> something to choose of : http://wiki.openvz.org/Download/template/precreated
[20:50] <RoyK> silentwater77: I guess you'll have to ask your ISP, then
[20:50] <RoyK> silentwater77: if they support it, they should know
[20:51] <silentwater77> i give it a try with ubuntu-10.04-lamp_10.04_i386
[20:51] <silentwater77> if thats struggling with the same issue i will ask for support then. anyway thank you !
[21:27] <jeiworth> hmm strange, do i have to change anything in a config file to connect to qemu/libvirt on a remoite machine with virt-manager?
[21:36] <RoyK> jeiworth: iirc qemu only listens to localhost
[21:37] <RoyK> by default, that is
[21:37] <jeiworth> hmmm well i found an entry in /etc/libvirt/libvirt.conf: listen_address that was commented out, i set it to the ip of the server but its running some producition systems so i can't restart the service...
[21:39] <RoyK> can't you just start virt-manager on the host?
[21:40] <RoyK> ssh X forwarding and so on
[21:41] <incognito> I am running a server on an hp d530S. It won't boot. I researched the problem and I believe that I need to change a parameter to FRAMEBUFFER=y in my /etc/initramfs-tools/conf.d/splash file, but the file is not in the directory. What should I do?
[21:41] <incognito> Can I copy the file from a desktop instance?
[21:43] <RoyK> incognito: https://wiki.ubuntu.com/FrameBuffer
 can't you just start virt-manager on the host? <-- yeah, no problem there
[21:54] <jeiworth> but i dont think you need x forwarding
[21:55] <jeiworth> or you mean starting virt-manager through an existing ssh connection?
[21:56] <incognito> RoyK: It looks like I need to disable the frame buffer by uncommenting the following line: # defoptions=quiet nosplash nofb in menu.lst and then update grub. Am I correct?
[21:56] <jeiworth> doesn't help me here, i want to try to migrate one vm from the local machine to another server
[21:57] <jeiworth> ...using virt-managers migration function
[21:57] <jeiworth> hrhrhrrr
[21:58] <incognito> RoyK: P.S. since I don't know what the color depth is
[22:03] <incognito> I installed xorg xterm gdm icewm menu firefox gksu and synaptic on my server, and it froze up on the login page. Does any one have a suggestion? Should I use a different desktop manager?
[22:09] <tanathos> hello
[22:27] <RoyK>  
[22:29] <tanathos> Hello RoyK, need help?
[22:30] <RoyK> just ask
[22:31] <tanathos> RoyK, I meant if you need help :) I am the guy that helped you to change the sql root password a few days ago
[22:32] <RoyK> that wasn't me
[22:32] <tanathos> oh sorry you were the one with deny hosts
[22:34] <RoyK> I was
[22:34] <RoyK> that works well, btw
[22:34] <RoyK> except a bug in some installs
[22:35] <tanathos> happy to hear that, today they upgraded the internet connection so I am :)))
[22:41] <oryxtec> hi all
[22:42] <oryxtec> i hve question... i m new to kvm and i m install kvm on my server
[22:42] <oryxtec> please can come one tell me wht is this command vmbuilder kvm ubuntu -c vm2.cfg
[23:11] <linux-x> hello,can some one help me,  i insalled ubuntu-server already, and configure DNS server and every thing working well, just i want now how setting mail server in simple steps,
[23:22] <vlad> hi
[23:22] <vlad> can anyone help with a 10.04 LTS 64-bit install problem?
[23:23] <vlad> install doesn't mount dvd.  changing bios to 'ide' for sata does nothing
[23:23] <vlad> helllooooooooo
[23:24] <vlad> is there anybody IN here?
[23:24] <vlad> just nod if you can hear me
[23:24] <vlad> is there anyone at home?
[23:24] <KurtKraut> vlad, if you need a quicker assistance, please, post your problem in a web forum with richful detail. www.ubuntuforums.org
[23:24]  * _Techie_ nods
[23:26] <vlad> i am first just trying to make a connection, my friend
[23:26] <vlad> ;)
[23:26] <vlad> in a chat room, one expects....well....chatting, not silence
[23:28] <ajmitch> one expects patience from people as well
[23:28] <_Techie_> well this isnt a chat room
[23:28] <vlad> really?  xchat is NOT a chat client that connects to chat rooms?
[23:28] <vlad> fascinating
[23:28] <vlad> what have i connected to, buddy?
[23:28] <_Techie_> im not having a go at you
[23:29] <_Techie_> im just saying that some people dont like offtopic chat
[23:29] <vlad> i have no "off topic" chat
[23:29] <lifeless> in a technical sense it is; in a social sense there are many people who are logged in but not paying active attention to the channel
[23:29] <vlad> it is on topic
[23:29] <vlad> i can't install 64-bit 10.04 server, and haven't found info on the net about it
[23:30] <vlad> was directed here by a ubuntu.com pg
[23:32] <vlad> i am absolutely AMAZED by your lack of social grace and desire to be at least minimally helpful
[23:32] <vlad> have fun hanging out in a chat room, whining at people who try to chat.