[00:03] Ubuntu 12.10 have the "miniupnpd" deamon avaliable in the universe repository, but i can't get it work with iptables, it seems like it doesn't integerate correctly with iptables. === arrrghhhAWAY is now known as arrrghhh === arrrghhhAWAY is now known as arrrghhh === arrrghhh is now known as arrrghhhAWAY === arrrghhhAWAY is now known as arrrghhh === arrrghhhAWAY is now known as arrrghhh [02:53] hi, i have a "homework" making a service start up script. But in college we use fedora 15. Since at home i'm using Ubuntu, i thought of making it on ubuntu. But it seems that there is a lot of difference. from syslog to rsyslog. no chkconfig on ubuntu. functions are not at /etc/rc.d/init.d/functions. and are the functions the same ? And maybe there's other thing i haven't seen. ??? [02:57] qcjn, well for one ubuntu moved to upstart recently [02:57] that's a pretty big difference [02:58] syslog and rsyslog - i don't see what that has to do with startup scripts... [02:58] i'm not so familiar with fedora tho [03:00] recently? [03:00] almost 4 years ago [03:00] arrrghhh, syslog rsyslog is because we have to make a script that if some acces or modify a file then it is log in /var/log/my_file_service.log [03:01] patdk-lap, sorry i just moved off of 10.04... [03:01] upstart came in with 9.10 [03:01] yes. which is right before 10.04 [03:01] yep [03:02] i just remember the transition being recent... i'm old :P [03:02] heh, I do the alpha and beta testing [03:02] so that added an extra 6months to me almost [03:02] seens like forever ago, in testing :) [03:02] nice. on quantal already? [03:02] been doing testing on it ya [03:02] nice [03:03] i just went to precise [03:03] it finally went .1 ;) [03:03] I just started upgrading my stuff from lucid to precise [03:03] have my package repo all up now with the fixes and other things I need [03:03] and done all the testing I needed [03:03] yea i had a few hiccups. mostly config file changes i needed to make. [03:03] dnsmasq really threw me for a loop [03:04] I didn't even modify my dnsmasq [03:04] oh wait, I'm not using dnsmasq :) [03:04] haha [03:05] i guess i'm a masochist [03:05] let's have it all in one... oh no it's all broken [03:05] ok, i think i understand the principle of the chkconfig command. What it does when you put the add option it checks in the service script, with grep maybe, what are the option that you have put on the chkconfig line [03:06] I have like 100 vm's [03:06] dang [03:10] no /var/lock/subsys/ either [03:10] must be /run/lock [03:12] qcjn, every linux distro will be slightly different [03:13] ok [03:14] about the only thing similar is the kernel ;) [03:20] arrrghhh, would you know how i can make so that it logs in /var/log/myservice.log in fedora 15 we just had to add this line user.* /var/log/myservice.log in the syslog.conf and restart syslogd [03:20] qcjn, it's similar. change /etc/rsyslog.conf [03:21] er, that might be in /etc/rsyslog.d/50-default.conf actually [03:21] i tried putting it in 50_default but it doesn't work [03:21] neither in rsyslog.conf [03:21] it s always sent to /var/log/syslog [03:21] qcjn, well look at the lines [03:22] they are processed in order [03:22] the *.* -/var/log/syslog sends everything to /var/log/syslog [03:22] there's a user.* that's commented out pointing to /var/log/user.log [03:22] well lines go to all rules [03:22] unless it hits a stop rule [03:22] oh yea, you could send the same information to multiple places [03:22] simultaneously [03:23] qcjn, so uncomment that line and change it to /var/log/myservice.log [03:24] arrrghhh, yes i've seen the user.log , but i want my own [03:25] i don't understand [03:25] i'll try it. but i ve put aline similar as the user.log under the commented one, and it didn't work. Always just the syslog [03:25] change the /var/log/user.log to /var/log/myservice.log [03:25] patdk-lap, must i put a "stop rule " [03:26] cause we can test with logger command [03:27] if you want to not log it, yes [03:28] patdk-lap, no thats not what i want. I want it to be log in myservice.log [03:28] heh? [03:28] qcjn, don't put any stop rules.. [03:28] you said you didn't want it in syslog [03:28] so you put a rule that says, log to myservice [03:29] yes [03:29] then you put a rule that says, don't follow any more rules [03:30] i don't want the other services not to be able to log in syslog. i just want myservice to be log in myservice.log [03:31] qcjn, then add the line i mentioned? [03:31] so you want everything to go to /var/log/syslog and /var/log/myservice.log? [03:31] add a line '*.* -/var/log/myservice.log' [03:32] logger -p user.info "file has been modified" <== this is the line in the sript [03:32] what is this, i don't even... [03:33] that line will log it, and log it with sync active [03:33] i'm setting up lvm for the first time and looking to do a snapshot rotation, but i'm not sure on how to size my snapshot volume, any recommendations? [03:33] but it won't stop it [03:34] the simple way [03:34] it wont stop it to log to syslog. Right. but that doesn't matter. As long has it s logged in myservice.log [03:34] 10-myservice.conf [03:34] ok [03:34] user.* /var/log/myservice.log [03:34] user.* ~ [03:34] done :) [03:34] user.* ~ <== but will this line stop other services from writing to syslog ? [03:35] it will stop anything that matchs [03:35] ah, ok. now i see [03:35] Thanks. I'll try this [03:36] I use that often, to not log annoying stuff I don't care about [03:36] ok [03:37] patdk-lap, so can you explain why the second line is necessary? [03:37] it seems like the first line would be sufficient [03:38] arrrghhh, I have to say it again? it logs to ALL matching lines [03:38] that... i guess just doesn't make sense. [03:38] nothing about the first one says, don't continue [03:38] but i'm not in the right state of mind for this [03:39] the - only means, don't write buffer [03:39] if you use - on all logs, your going kill performance [03:39] so use it when needed [03:39] it's on 'em by default [03:40] it s like saying "write to that file only" if there is another rule, don't follow it. Right [03:40] ya, and by default it's for safety [03:40] anyone who can help with lvm snapshotting around? [03:41] sync logs can be nice and all, but generally I don't see the point of sync writes for syslog/messages, for auth, sure [03:41] maillog, for me atleast, defently not, too much logging for it to be sync [03:45] for now i don't really understand what all does category's of log means. Sean them for the first time yesterday [03:45] s/all does/all those [03:45] seen [03:57] daemon /root/bin/suivi_fic_lsof.sh <=== this is a line in my service, and i get this error ==> ligne 20: daemon : commande introuvable [03:57] . /lib/lsb/init-functions <== this is in the service script to [03:59] earlier i did a "grep daemon /lib/lsb/init-functions" and some line came out. But i'm to much of a novice to tell if the functions we're ok ! [03:59] hello there [03:59] By the way, the rsyslog, works, i tested it with logger [03:59] hi, Kentos [04:00] still giving my dell 2800 the old college try, hoping to get it running [04:01] can't seem to find a way to boot into an install cd or usb [04:01] Kentos, even the alternate CD? [04:02] yeah, i got into the alternate CD i believe but i had no idea what was going on with that, looked like a desktop install or something [04:02] well make sure you download the right disc [04:02] DLing the 32bit yeah [04:02] server or desktop [04:02] about 20 times no so far lol [04:02] lol i didnt buy a server to run ubuntu desktop on it =P [04:03] er [04:03] i guess alternate is for desktop only [04:03] but indeed i have DLed the server ones a lot, the alternate cd doesnt look really like either but some different installer entirely [04:03] sorry, i forgot about that [04:03] the alternate and server installs should be the same from the installer perspective [04:04] just what is installed is different obviously === cpg is now known as cpg|away [04:04] gave me different boot interfaces, only 4 options on the alt installer and the server one wouldnt install properly, didnt detect my nic or a lot of my hardware [04:04] what do you mean didn't detect your nic [04:05] might have to try an older version of the ubuntu server [04:05] is this really old hardware or something? [04:05] did you test the hardware first? is it good? [04:05] said my network adaptor wasnt detected, asked me where to get the driver from, but, i reloaded the old OS on it(which was the previous owners) and the card is working fine [04:06] that doesn't sound like ubuntu server. [04:06] huh? [04:06] "said my network adaptor wasnt detected, asked me where to get the driver from" [04:07] that doesn't sound like anything ubuntu server would do ^^ [04:07] asked you where to get the driver from? that sounds very windows-ish [04:07] yeah gave me an option, 'not installed' 'hdlc' and "use driver on meida' or something similar [04:07] yeah, i suppose it does [04:08] this was during the installation? [04:08] but windows doesnt have a purple background and a text installer lol [04:08] ..... [04:08] regardless, is this really old hardware? [04:09] this was while trying to install from a usb which was odd, i didnt think it could do that. The odd part is it didnt ask me which of the 7 drives to isntall it on [04:09] yeah, its a dell poweredge 2800 [04:09] you can install from usb [04:09] well, some consumer products dont support it that are as old as this server, but it has a usb emulation option, hardware auto and floppy selectionds [04:10] harddrive** [04:10] well i really don't know [04:10] its an interesting interface, Im not familiar with actual server hardware, let alone a server bios and raid card 'bios' etc. [04:10] it sounds like you've tried so much you don't know what you've tried anymore. [04:11] no [04:12] i've tried using many diferent DLs of the iso, but with the real hash check page (not the main support page one that gives false hash values) it looks like it should boot with what i have, however it wont seem to boot from the CD drive, and the checksum on the usb (when done before trying to install) produces errors [04:13] well that's not good [04:13] what are you talking about false values [04:13] oy... the md5sum should be right on the iso [04:14] the md5sum values listed on the main ubuntu howtomd5sum check(or whatever the link is) points to a page that states many different hash values, i've never found one that matched so far. However when i google the hash value checks i found a seperate site that listed the hash values of what i saw on my checks [04:15] lol [04:15] this sounds dubious at best [04:15] which just shows the numbers in a browser listed, no special website design or anything [04:15] well, its all i can find on the hash values that works, and downloading the files never work no matter if i use mirrors or torrents [04:16] do the downloads not complete or something? [04:16] it always produces the hash value that is not directly shown on the ubuntu support pages [04:16] they always complete [04:16] there isn't an md5sum on the iso itself? [04:17] the iso is just an iso file, i could take a look again but thats pages and pages of numbers [04:17] look inside the iso [04:17] it's just like a zip file [04:17] i used winmd5sum for the hash check [04:17] no [04:17] idk about that [04:17] well, that's one place to hashcheck i guess [04:17] that would check if the download is good [04:18] i guess you're not getting a boot menu so you can't integrity check, nvm [04:18] thats what im saying, i do the hash check and no matter where i get the download its always the same hash value [04:18] but it doesnt match the value on ubuntus main support site, let me try and find it again [04:18] Kentos: did you try to install any? [04:18] it should be on the iso [04:19] https://help.ubuntu.com/community/UbuntuHashes [04:19] that one always shows me an incorrect match [04:20] so you burn the iso [04:20] you go to install [04:20] and the installer fails? [04:20] however i never get a different hash value from a check on any DL of the ISO, meaning every iso always shows the same hash value when checked, but of course it doesnt match as i stated before [04:21] as i said [04:21] the MD5 is on the ISO [04:21] md5sum.txt [04:21] at the root of the iso [04:21] no, cant even get it to boot on the cd, i used a usb through the universalusbinstaller, since i can't even get it to show up with a cd [04:21] although i guess that's just md5's of the individual files [04:21] derp, i thought it had the md5 of the iso [04:21] Kentos, that sounds like a hardware/bios issue [04:21] if you can't get it to boot from cd [04:22] no worries, it is an old server, im not sure it will work with the newer 12.04 release [04:22] it should [04:22] if it's not even booting from the cd... lol [04:22] im currently cleaning some scsi drives in hopes that ill get a step further lol no idea how that would help but i'm trying whatever I can [04:23] .... [04:23] you should try booting without anything plugged in, just to see if you can get the thing to boot [04:23] well, plug in the optical drive [04:23] but if you can't even boot like that, your BIOS is not configured correctly [04:24] yeah, ill check it out in a minute here, i was thinking of pulling the HD trays out and see what happens [04:25] so you've checked the BIOS settings? [04:25] sometimes boot from cd is disabled for security reasons [04:25] or so people can't accidently screw things up :P [04:26] yeah i might have, but i didnt see an option to enable or disable boot from cd [04:27] might be the issue [04:27] if it's disabled, it might not show up in the boot order [04:27] so you'll have to enable it [04:27] just boot sequence, and boot disk priority [04:27] no, the ATA drive(the cdrom) should be enabled [04:28] hey you said you can't boot from it [04:28] oddly theres a virtual floppy and virtualcdrom drive on here,. no idea what thats about [04:28] DRAC [04:28] there's probably a DRAC card [04:28] yeah, but i got a usb stick as well lol [04:28] yeah there is [04:28] that's what the virtual stuff is for [04:31] maybe i should disable the RAID drives? not sure what to do lol === cpg|away is now known as cpg [04:31] disable everything [04:31] disconnect everything [04:31] strip it down to the bare essentials [04:32] make sure you can boot from some cd [04:32] that you know works in other machines for example [04:32] ill check it on this machine quick and make sure === arrrghhh is now known as arrrghhhAWAY [04:44] Gnite, andthanks [04:46] alrighty [04:48] seems as though its telling me to reconnect all the drives and reboot the system, im going to let it go forward and try to boot though, the CD was indeed a good cd [05:07] Hey oApocalypse: did you ever get your minidlna project figured out? === n0ts_off is now known as n0ts === cpg is now known as cpg|away === cpg|away is now known as cpg [06:55] Kentos: what happened? === n0ts is now known as n0ts_off === n0ts_off is now known as n0ts [07:50] whats the solution for thread level file locking? === n0ts is now known as n0ts_off === mcclurmc_away is now known as mcclurmc === cpg is now known as cpg|away [11:51] Hey guys. I need a pointer to how I should get my ubunty 12.04 machine to connect to a WPA network using mschapv2 [11:51] Google haven't turned out anything useful so far === n0ts_off is now known as n0ts === n0ts is now known as n0ts_off [13:45] Hey everyone === n0ts_off is now known as n0ts [15:46] hey ubuntu server my server went down this morning at 7:20 and i have no idea why all my hosted services like teamspeak minecraft etc went offline [15:46] after reading the syslogs the last entry nearest the time was - [15:46] Sep 8 07:09:01 Grantleyserver CRON[11129]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete) [15:47] Sep 8 07:17:01 Grantleyserver CRON[11748]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) [15:47] is there any where else is should be looking for information on why the server went down? [15:53] Danawar: perhaps look at what /etc/cron.hourly runs [15:58] Looking into that directory there is nothing just .placeholder [15:59] Could the server have over heated or somthing? where would that be presented in logs? [15:59] The server was on no vga output and no services like ssh were working [16:02] sounds like a hardware crash, if there is any log, it could be in /var/crash [16:02] but that only occurs if you have it set up to, and even then only under certain types of crashes [16:02] you can also check /var/log/kern.log for panics [16:03] I will check both now thanks for your help! [16:04] one other thing, if you have a kernel panic, the keyboard num lock / caps lock / scroll lock lights will flash in various patterns [16:04] Only pidgeon and compiz crashes [16:05] if you're running compiz, you're running a desktop [16:05] there's a reason server doesn't include those things, they're not stable, and a graphics crash can halt a system [16:06] True [16:06] I took the risk because i am a novice and trying to learn server administration and security [16:07] last item in kern log was ufw at 4:00 in the morning im gussing it was probably a graphics crash [16:11] just FYI, the correct way is to install the absolute minimum software needed on the server, and administer it from your desktop with SSH [16:11] there aren't any GUI tools to administer it anyway [16:13] it eliminates unnecessary security risks and potential things to crash === n0ts is now known as n0ts_off [17:58] trying to think of some other neat things to run on my server right now it is just pretty much a sickbeard, couchpotato, usenet downloader/processor [18:53] please help, i'm trying to make specific users only able to access their home directory, i edited the config file but on login of that user it gets Response: 500 OOPS: vsftpd: refusing to run with writable root inside chroot() === cpg|away is now known as cpg [19:04] Troy^, the right solution is to not use FTP [19:04] SFTP has this feature built in, it only needs to be enabled [19:05] SFTP is accessable by a ftp client correct? [19:05] only if it supports it [19:05] but filezilla and winSCP both support it [19:05] there are dozens of other reasons to never use FTP for anything, ever [19:06] http://mywiki.wooledge.org/FtpMustDie if you want to learn them [19:06] http://www.debian-administration.org/articles/590 for an explanation of how to set up sftp for chroots [19:07] it's for debian but ubuntu is close enough [19:08] ok thanks i'll try it out [19:10] so what is suppose to replace ftp [19:11] sftp [19:11] you can use rssh if you only want sftp users to have sftp/scp access [19:17] or you can use the sftponly directive in the config [19:17] as in that example [19:28] seems like something keeps eating my server ram [19:28] when i first boot it uses like 11-19% memory [19:28] 3 days later i'm at 45% [19:31] what are you using to measure it [19:32] rather, do free -m [19:32] ignore the first set of numbers, and instead only pay attention to the free memory +/- buffers/cache [19:32] linux (rightly) uses all free memory as disk cache whenever possible [19:35] hello, I have a new Ubuntu 12.04.1 server installation. I have configured postfix, dovecot, spamasssassin, amavis, and SA is actually flagging spam as it should. I am using the Maildir/ format for email. I want to enable procmail so that the server will automatically move all messages marked as ***SPAM*** to junk e-mail folder. I created a /etc/procmailrc file, which defines DEFAULT and [19:35] MAILDIR as "$HOME/Maildir/" and uncommented the mailbox_command=procmail -a "$EXTENSION" ... however when I do this, spam messages no longer get marked, and it is not moving the messages to its respective location. I need this filter to be system-wide. What do I need to do to get this to function properly? [19:35] oh ok qman__ that makes sense [19:36] 1346m free === cpg is now known as cpg|away [19:39] Also,if you guys would like to see my config files, where would be a good place to pastebin? === arrrghhhAWAY is now known as arrrghhh === arrrghhh is now known as arrrghhhAWAY [19:57] riz0n: cat cfg.conf | pastebinit [19:57] where cfg.conf is interchangeable etc. [20:10] Troy^: http://ubuntuforums.org/showthread.php?p=12226654 [20:13] riz0n: i'll look at it but possibly may not beable to help. i have very little knowledge in running a mail server [20:16] * ^Subject.*\*\*SPAM\*\* [20:16] your missing another "*" [20:16] ? [20:16] after installing ubuntu server on a dell machine (no idea if that is important) the grub menu won't show even with pressed - any ideas how to get the grub menu (without commenting out the "GRUB_HIDDEN" lines in /etc/default/grub) ? [20:18] riz0n: this line * ^Subject.*\*\*SPAM\*\* does not look right to me if your mail is going to have the spam be renamed to ***SPAM*** in front [20:35] guntbert, most likely, your keyboard isn't working in the short amount of time that grub listens for keystrokes [20:35] I'd suggest turning off hidden and using a longer timeout (like 5 seconds) [20:35] at least to troubleshoot it [20:36] you can then turn hidden back on if you confirm it [20:37] qman__: ah, you might be on to the cause - with hidden switched off and timeout=5 I was not able to select anything - so remains the question: what could I do to keep the keyboard activated? [20:37] the culprit is probably the USB keyboard settings in the BIOS [20:38] problem is, a dell or any other OEM board probably won't let you change them [20:40] if your system is old enough to have a PS/2 port and you have a PS/2 keyboard, give it a try [20:40] qman__: entirely possible - thanks for the input - strange thing is that the keyboard works immediately after the system start (F12 for boot menu for instance) [20:40] also, if you're using a wireless keyboard or something equally high-level, try a normal one [20:40] there's a reason USB keyboards took so long to catch on as standard [20:41] the support has always been weird like that [20:41] what is probably happening: Dell BIOS sees USB keyboard and knows how to use it, but is set in a mode where it doesn't send legacy keystrokes to the OS [20:41] no, they are rather new systems - only usb - but it is only a real problem when I mess up the password hash in the preseed file :) [20:41] after grub loads linux, linux knows what to do with it [20:42] qman__: your explanation is very convincing, thanks [20:44] Troy^: Thanks. Here is the issue. When I have the mailbox_command line #'d out, I get messages in the INBOX with ***SPAM*** however when the line is uncommented, spam messages do not have ***SPAM*** prefixed to the subject. I did add the extra \* to the procmailrc file [20:45] hmm riz0n i don't really know what to say [20:49] Troy^: Thanks. I think one problem was, possibily, was I had the the mailbox_command line before the content_filter. I changed those two lines around. [20:49] riz0n: works now? [20:49] Also in the procmailrc file, should I have :0 or :0: ?? [20:50] Troy^: Not sure, I will have to wait for someone to spam me :P [20:50] riz0n: ahh lol [21:00] OK I will wait a few hours and see what happens. if I don't get the results I am aiming to achieve, I will come back and seek more advice. [21:00] guys, a newbie question, is MAAS and Orchestra the same thing? === cpg|away is now known as cpg