/srv/irclogs.ubuntu.com/2009/03/22/#ubuntu-server.txt

jmarsdenBegs: sudo chmod 0755 somefile   # In other words, make sure you have root privileges when running the chmod ?00:05
moz_anyone know why my USB wireless connection seems to be disconnecting when I changed my port forwarding configuration on port 8000:06
moz_every single time I change it, it disconnects00:08
=== jmarsden_ is now known as jmarsden
sparky_Ok, so I have a raid 5 setup on a 8.04.2 home server.  I added another drive to it and it is in the process of reshaping.  I have uped the speed_limit_min from 1000K/s to 10000K/s but I only see a raise in speed from 1500K/s to 3700K/s.  From what I have found thur google it should have increased alot more the just 1200k/s and I have tried other speeds too (lower and higher values).  The max is set at 200000K/s, any sugge02:12
giovani3maybe your cpu is maxed out?02:16
sparky_nope, i have ran top and have been watching the cpu and the most usage that happens is about 2 or 3%02:17
giovani3run "vmstat 5 5"02:17
giovani3and paste the output at www.pastebin.ca02:18
sparky_http://www.pastebin.ca/136771602:19
giovani3this is while it's rebuilding raid?02:20
sparky_correct02:20
sparky_it has been building for about 24hrs now02:20
giovani3yeah, honestly, I don't know -- that seems odd, how little disk traffic there is02:21
giovani3sorry I can't be of more help02:21
sparky_so vmstat is for diskusage?02:21
giovani3no, vmstat shows a variety of things, as you can see from the column headers there02:22
giovani3it shows memory, disk io, cpu usage, etc02:22
sparky_my raid is reshaping not rebuilding would that matter any?02:23
sparky_while my raid is reshaping would it be a bad idea to copy files to it, would the reshaping take longer?03:12
sparky_also, if i shutdown my server in the middle reshaping will it resume reshaping after the start up or will start reshaping from the begining?03:13
JanCit will probably take a little longer03:14
JanCnot sure about rebooting while the reshaping is busy though03:16
sparky_ok, thx03:16
AnArrayfulOfPerlmy dns server works fine when i call it by it's internal name but is does not work when i call it by my outside ip address. what's wrong?04:22
twbAnArrayfulOfPerl: why would your DNS server be providing DNS services to the WAN?04:33
AnArrayfulOfPerlcause my domain's registrars' DNS servers ar shitty04:36
bitsbam_hey all06:57
AnArrayfulOfPerlmy dns server works fine when i call it by it's internal name but is does not work when i call it by my outside ip address. what's wrong?06:57
bitsbam_hey again06:59
twbAnArrayfulOfPerl: I would not expect a DNS server to listen to upstream interfaces.07:00
AnArrayfulOfPerli mean i am having my modem forward DNS to my server and it does kinda work07:01
twbAnArrayfulOfPerl: what are you actually trying to achieve?07:03
AnArrayfulOfPerlmy domain's registrars' DNS servers are shitty and i have a very nice network connection so i would like to host my own DNS server07:04
twbAnArrayfulOfPerl: do you mean hosting a cache of an upstream DNS server, or do you mean hosting the A record for your own machine?07:05
AnArrayfulOfPerlhosting the A record for my own machine07:05
twbI don't know why you'd bother.  Just use zonedit or dyndns or whatever.07:06
AnArrayfulOfPerlbecause i already have a domain and i don't want to have to pay for DNS07:06
twbzoneedit claims to be gratis for the first few domains.07:08
bitsbam_hey all07:08
AnArrayfulOfPerlk, i never have heard of zonedit07:09
timburkeeverydns also works nicely07:09
AnArrayfulOfPerlk07:09
timburkerun by the same guy who started opendns07:09
AnArrayfulOfPerli wuv opendns07:09
bitsbam_i use zoneedit07:09
bitsbam_never had a complaint07:09
bitsbam_how long can a MySQL replication slave be down before it might be a problem re-syncing with the master?07:11
twbDunno; I tend to prefer postgres or, for toys, sqlite.  You could try #mysql.07:12
bitsbam_right, will do07:12
BentFranklin3:45 I have Kubuntu 8.10.  I want shell scripts to be able to send emails.  Do I need sendmail?  What else?07:48
twbBentFranklin: you need a mail transport agent.07:49
BentFranklinHi twb!07:49
BentFranklinOk, all I need is the client stuff.  The mails erver is one my ISP07:49
BentFranklinMaybe I just install Thunderbird?  I suppose there is a way to control it from command line.07:51
ropetinYou can use Mutt to send E-Mails from the CLI, might do what you want07:52
twbBentFranklin: thunderbird is an MUA, not an MTA.07:52
AnArrayfulOfPerlTelnet and google ;-)07:53
twbIn theory, MUAs are not supposed to speak SMTP natively; they are supposed to rely on an MTA on the localhost to accept and relay the mail.07:53
twbUnfortunately Outlook and friends have started a trend of doing SMTP inside the MUA, meaning that only end users (and not scripts) can send mail.07:54
ropetinBut any modern MUA does talk SMTP, even Mutt these days07:54
AnArrayfulOfPerlTelnet and google07:54
twbThis is particularly bad if e.g. SMART or cron errors rely on emailing you to notify you of problems.07:54
ropetinAnArrayfulOfPerl: mailfrom:<me@myserver.com> ?07:54
BentFranklinYes, I want messages from cron jobs07:54
ropetinrcpt to: :)07:55
AnArrayfulOfPerlyes07:55
ropetinOld school :)07:55
twbAnArrayfulOfPerl: you cannot use netcat (or if you really insist, telnet) to inject mail into gmail unless you can speak SSL by hand.07:55
twbBentFranklin: you will want to install an MTA, then.  This will provide a file /usr/sbin/sendmail which scripts will use to forward mail to the appropriate person.07:56
twbOf the two MTAs in the `main' category, I would recommend postfix over exim4.07:56
AnArrayfulOfPerlSorry i've not been in serverey stuff for a looooooooooong time think perl 2 ;)07:56
BentFranklinSo, sendmail is an email server?  Or do I tell it the IP of my SMTP server?  Or both?07:58
ropetinNo love for qmail? :)07:58
AnArrayfulOfPerlmore like qfail07:58
twbBentFranklin: I don't know what an "email server" is.07:58
twbBentFranklin: sendmail is a mail transport agent (MTA).  All Unix MTAs provide a file "/usr/sbin/sendmail", which bears only historical ties to the sendmail MTA.07:59
ropetinBentFranklin: the problem is most people these days don't understand really how email works, so the idea of an 'email server' isn't really valid07:59
BentFranklinInteresting...08:00
twbBentFranklin: you probably want to configure your MTA to forward all outbound mail to a "smart host", and to not accept inbound mail at all.08:00
twbBentFranklin: that "smart host" will be your ISP or company mail server.08:00
ropetinAnArrayfulOfPerl: I agree with the qfail comment, but I spent so long supporting it I know bunches of little tricks for it, so it ends up being easier for me to use than postfix08:00
ropetinexim gave me hives just reading about it, so I never really tried it08:01
BentFranklinI'm going to try postfix.08:21
krautmoin12:17
=== jwstolk is now known as jwstolk_lurking
CarlFKu-server.. I am trying to mount a external drive.  so that the user can write to it.  I can mount it, but touch: cannot touch `/media/sdc1/x': Permission denied15:16
CarlFK/dev/sdc1 on /media/sdc1 type ext3 (rw,noexec,nosuid,nodev,user=juser)15:17
orudieScottK, around ?15:24
giovani3CarlFK: right ... you don't have permissions15:24
CarlFKgiovani3: I chmoded the mount point before it was moutned.  that reall makes a difference?15:25
giovani3CarlFK: ext3 has permissions inside of it ...15:25
giovani3ls -l /media/sdc115:26
giovani3and paste the output on www.pastebin.ca15:26
CarlFKoh, sorry - got it working15:26
orudiehi i'm trying to set up mail fliter get this error http://pastebin.com/m5887ecda15:28
orudiegiovani3, ...15:31
orudiehttp://pastebin.com/m6ded6e4d15:34
orudiei'm at this guide trying to set up mail filter https://help.ubuntu.com/8.10/serverguide/C/mail-filtering.html15:34
orudiei removed the user15:41
orudiebut i guess not entlirely ?15:41
giovani3I guess not ... why did the user exist in the first place?15:41
orudiebecause this is the second time i'm following this guide15:41
orudieremember ?15:41
orudiei had problems before15:41
giovani3no, of course I don't remember15:42
orudieok15:42
giovani3sudo grep -i amavis /etc/passwd15:42
giovani3run it15:42
orudieok i did15:43
giovani3any results?15:43
orudieyeah shows system user15:44
giovani3guess you didn't remove the user then15:44
orudiei did deluser amavis15:44
orudieok now i did15:44
orudiegiovani3, http://pastebin.com/m303bd22915:47
giovani3sounds like you've completely messed up your system15:47
giovani3I can't help you15:47
giovani3maybe someone else here can15:48
orudiecompletely messed up my system ?15:48
orudiehere is the entire output15:49
orudiehttp://pastebin.com/m439715da15:49
orudiemessed up my system? the only commands i run are were from this guide15:52
orudiecan spamassassin be set up without antivirus ?16:14
ivoksspamassassin doesn't do antivirus at all16:15
l337ingDisorderCan anyone help? I'm running ubuntu server and I've installed the partimage-server package. Everything works when I run it manually, but I'd like to have it automatically run on startup. I can find how-to's for running on startup for gnome, but with ubuntu server there's no gnome.. Does anyone know how to auto-run a program with the command-line-only Ubuntu Server?16:15
ivoksl337ingDisorder: /etc/rc.local is your friend16:16
l337ingDisorderawesome, thanks :)16:16
l337ingDisorderand that'll run even if no one has logged in yet?16:16
orudieivoks, hi my friend16:16
ivoksl337ingDisorder: open it and read it :)16:16
l337ingDisorderivoks: Hmm.. seems to imply that runs at the END of the runlevel.. I need this to run when the system starts up, not when someone logs out16:17
l337ingDisordernot when someone logs in either, just when the system first starts up16:17
ivoksl337ingDisorder: so, you really don't know what runlevel is, right?16:18
ivokslinux has runlevels16:18
ivoks0 1 2 3 4 5 616:18
ivoks0 is shutdown16:18
l337ingDisorderwell I have a vague understanding.. runlevel 0 = off, 1 = root, etc16:18
ivoks1 is single user16:18
ivoks6 is reboot16:18
orudieivoks, http://pastebin.com/m439715da16:18
ivoksothers are available for customization16:18
ivoksto make story short, user can't even login before the end of runlevel16:19
ivoksso, /etc/rc.local is really what you want16:19
l337ingDisorderbut I would tend to think the "end" of the runlevel would be when the system finishes that runlevel (ie, if I was logged in as runlevel 5, which I believe is standard, then that runlevel would end when I log out). Is that incorrect?16:19
orudieivoks,  chown: invalid user: `clamav:adm'16:19
ivoksl337ingDisorder: you don't log into runlevel16:19
ivoksrunlevel runs16:20
ivoksends and then users can login16:20
l337ingDisorderahh ok16:20
ivokscheck /etc/rc2.d/16:20
l337ingDisorderthanks :)16:20
ivoks2 is default runlevel in ubuntu16:20
ivokswhen everything from /etc/rc2.d/ is finished, users can log in16:20
ivoksnotice that last is 'starting rc.local'16:20
l337ingDisorderlast question.. if I want to execute something with rc.local do I need 'exec' at the beginning of the line?16:21
ivoksno16:23
orudieivoks, do you feel like helping today ?16:24
ivoks'ivoks, do you feel like doing my job?'16:25
orudielol16:25
orudiei just need to set it up and forget about it16:25
ivoksthat's worst thing you can do16:26
ivoksso,you don't want antivirus,but still, you install it16:26
ivokswhy?16:26
orudiei mean for forget about it for now16:26
orudiei dont know if i need antivirus for mail16:27
l337ingDisorderivoks: thanks eh!16:27
ivokswell, do you get viruses over email?16:28
orudiebut surely spamassassin i need to have set up16:28
ivoksfighting spam is more complex than just installing spamassassin16:29
orudiei would imagine16:29
orudieso should I go on with the guide ?16:30
ivoksyes16:30
orudienext command is this sudo apt-get install dkim-filter python-policyd-spf16:30
orudieshould i run it ? i'm afraid its gonna give an error i tried it before16:31
ivokswell, you didn't finish installing amavis and clamv16:32
ivokspeople don't read these days?16:32
orudieivoks, i'm just really stuck16:32
orudiethis stuff is totally new to be but yet it needs to get set up16:33
ivoksthen install clamav16:33
ivokssudo apt-get install amavisd-new spamassassin clamav16:33
orudieivoks, http://pastebin.com/m5b7f4dba16:34
orudiechown: invalid user: `clamav:adm'16:35
orudieivoks, this talks about this error http://bit.ly/Qc9x16:36
=== jwstolk_lurking is now known as jwstolk
orudieivoks,  should i do sudo adduser --system --no-create-home --disabled-password --disabled-login --shell /bin/false --group --home /var/lib/clamav clamav16:37
ivoksyes16:38
orudieivoks, http://pastebin.com/m14f0356916:38
orudiebetter, but some errors16:39
ivokswhat ubuntu version is that?16:40
orudie8.1016:40
roy_hobbsIs it possible to have your MTA (postfix) and MDA (dovecot) on separate machines?  Or in general does every MDA need at least a simple MTA on the same machine?16:41
ivokssure they can be on different machines16:42
ivoksbut you should somehow deliver mail to another machine16:42
ivoksyou can use MTA for that, or on a lower level, NFS/DRBD16:43
roy_hobbsYou mean mount the mailstore from the MDA on the MTA?16:43
ivoksyes16:43
ivoksor other way arround16:44
roy_hobbs=)16:44
ivoksdepends on where the load is higher16:44
orudieivoks, not sure whats next16:44
ivoksorudie: sudo apt-get purge clamav.*16:45
ivoksorudie: sudo apt-get install clamav clamav-daemon16:45
orudieawww what a beauty16:46
orudie:)16:46
orudiei seriously just said that at loud16:46
orudieno errors ivoks daemons started16:47
orudie * Starting ClamAV virus database updater freshclam                                                                         [ OK ]16:47
orudie * Starting ClamAV daemon clamd                                                                                             [ OK ]16:47
orudieivoks, sudo apt-get install dkim-filter python-policyd-spf16:48
orudie ?16:48
orudieshould i run that now ?16:48
ivoksyes, continue with the guide16:49
orudiedo i need pyzor and / or razor ?16:49
orudieit says its optional16:49
Nafallorazor is good for shaving :-)16:50
orudieNafallo, and whats pyzor good for ?16:50
orudie:)16:50
Nafalloorudie: dunno. shaving pythons? :-P16:51
orudielol16:51
orudieivoks, any thought on pyzor / razor ?16:52
ivoksif you don't know what they are, don't use them16:53
orudieE: Couldn't find package unzoo16:54
orudieis that a typo ?16:54
orudieunzoo ?16:54
orudie.zoo archives16:55
orudieivoks, do i need to do sudo adduser clamav amavis16:56
orudie ? thouse users are already created right ?16:56
ivoksyes16:56
ivoksyou are adding clamav user to amavis group16:56
orudieok done16:56
orudieStarting SpamAssassin Mail Filter Daemon: spamd.16:58
orudieit didnt tell me if it was started OK16:58
orudiebut no errors so i guess its fine ?16:58
orudiei'm upto the step where it tells me to uncomment 4 lines in /etc/amavis/conf.d/15-content_filter_mode17:00
orudienow need to edit /etc/amavis/conf.d17:01
ivoksyou shouldn't be doing this on a production system17:03
ivokssince you don't know exactly what you are doing...17:04
orudieivoks, i know but i dont have any other choice17:04
orudiei'm upto postfix config17:05
orudiethis is whats really throwing me off17:05
orudieivoks, it tells me to add a whole bunch of text to the master.cf17:06
ivoksthat's right17:06
ivoksand that's ok17:06
ivoksyou need that17:06
orudieso just copy paste all that to the buttom of master.cf right below the last line ?17:06
orudiethen it says add another 2 lines right below "pickup" transport service17:07
orudieso right below this line ? pickup    fifo  n       -       -       60      1       pickup17:08
ivoksyes17:08
orudieok done17:08
orudiehttp://pastebin.com/m181e44d117:09
orudieivoks,17:09
ivoksyes?17:10
orudienow cant connect to smtp17:12
orudiesame as i when i tried this on my own a few days ago17:12
ivokscheck the logs17:12
ivoks /var/log/mail.log17:12
orudieyep looking at the logs here17:12
ivoksalways remember to look at the logs17:12
orudiehttp://pastebin.com/m239cfce517:12
ivoksif something doesn't work, you aren't lost, you can always find out what's wrong17:13
orudieyup i am looking at logs tail17:13
ivoksthere, it even said which line17:13
orudieobserving whats happening17:13
ivoksnow, take a look at the guide17:13
orudiei see , line 2417:13
orudiebut17:13
orudiethat was before i tried17:13
ivokscontent_filter doesn't go into master.cf17:13
ivoksyou've didn't read carefully17:14
orudieyou mean this ? sudo postconf -e 'content_filter = smtp-amavis:[127.0.0.1]:10024'17:15
moz_im getting really frustrating problems, where my wireless connection is being lost not always but often whenever i perform a certain action, like trying to view on ftp a directory called "user", and its not simple losing signal as i have another wireless windows machine im on at the moment next to it working fine17:15
ivoksorudie: right...17:15
moz_it is also disconnects often but not always whenever i run a certain gimp script17:15
ivoksorudie: paste your master.cf on pastebin17:15
moz_and i have to replug in my USB wireless device to get it working again, i have no idea why17:15
orudieivoks, so remove this line from master.cf ?ok i will17:15
moz_i just tried it again, 3 times in a row my wireless connection disconnects when I view a certain directory i cant get to it, anyone have any idea whats happening, what oculd be causing this sort of problem ?17:18
ivoksmoz_: on server?17:19
moz_ivoks: yeah17:19
* ivoks doesn't see connection between gimp and server17:19
orudieivoks, http://pastebin.com/m76d25eb517:19
moz_ivoks: this time its ftp, whenever i open the directory /var/www/user/ which has a list of about 150 pictures, it will disconnect17:20
moz_and will fail to reconnect untill i replug my usb wireless device17:20
ivoksorudie: put [tab] in front of the lines you added bellow the pickup17:21
ivoksorudie: guide tells you to put some space17:21
ivoksstrange... dmesg shows nothing?17:21
ivoksorudie: http://pastebin.com/m5b9f44 like this17:22
orudieyup done17:22
moz_ivoks: im a bit new, i see dmesg is a kind of device log? how can i see its recent activity?17:23
ivoksmoz_: tail -f /var/log/dmesg17:23
moz_thanks17:23
ivoksmoz_: then do whatever you do to break the connection17:23
orudieivoks, ok well mail is working now at least17:24
orudienot sure if spam is blocked though17:24
ivoksorudie: check the source of the mail17:24
ivoksorudie: headers17:24
ivoksit should have 'X-Virus-Scanned' header17:25
ivoksand that's very basic anti-spam17:25
ivoksanyway, i'm leaving now17:26
orudieivoks, wait bro how do i check the source ?17:26
orudieyou mean html source ?17:26
ivoksmail isn't html17:27
moz_ivoks: typical it works! but i'll leave this log open no doubt it'll go wrong soon17:28
orudieivoks, http://pastebin.com/m2540ae9017:28
ivoksorudie: follow the guide17:30
ivoksTroubleshooting17:30
orudieok i will, how does main.cf look though ?17:31
orudiei think im getting that error because i didnt add $myhostname = 'mail.example.com' to /etc/amavis/conf.d/50-user file17:33
ivoksomg17:34
ivoksIf you see the following error in /var/log/syslog when amavisd is trying to scan a message:17:34
orudie?17:34
orudiethats the reason ?17:35
orudiehe left :(17:40
=== chrisadams is now known as Chrisadams
=== Chrisadams is now known as chris_d_adams
=== Noah0504 is now known as Noah0504|away
jerrymcfartshey I was wondering if anyone tried installing http://mixblendr.com/19:41
=== Noah0504|away is now known as Noah0504
moz_can anyone reccomend a popular USB wireless stick that works natively with ubuntu-server, im tired of having problems with them19:51
moz_that i wont have any driver issues with and is also a reliable stick19:51
=== hessml|away is now known as hessml|away|away
=== Noah0504 is now known as Noah0504|away
=== Noah0504|away is now known as Noah0504
supertankerHey, this is more of a sort of linux 'theory' question...should my little Ubuntu server have Make and such on it so I can, say, compile an ircd?20:52
p_quarlessupertanker: well, yes, if you need to compile things, you need the build-utils; that's not really theory20:53
andolsupertanker: Just install it when/if you need it. build-essential is a convienient meta-packages.21:03
supertankerThanks21:03
Noah0504Eh, can anyone help me out with Samba?  I've been able to configure it in the past, but I was trying to make it a little more secure, but all of the documentation I read is a little confusing.21:07
zoxNoah0504: i might help if you specify the exact problem :-)21:28
supertankerWow, andol, build-essential *really* is convenient! Thanks21:29
storrgiewould anyone know about smart monitoring in linux?21:32
MianoSMsourceforge has some good info21:33
storrgieMianoSM: i saw one on there that was a boot utility... i want to be able to check on a booted up machine... have a big array I would like to be checking.21:34
Noah0504zox: Well, I used to just have one share that had different folders in it for people or things around the house.  I started looking into sharing home directories, which appears to work on my Mac, but Windows won't let me log in.  Also, I need to make a share that is basically public for my media center.21:36
zoxNoah0504: you can user security as 'user' and use [private] and [public] sections, thats how i setup my samba server21:48
Noah0504zox: I have that set up for home shares right now.  I can log in perfectly on my Mac, but Windows isn't having it.  Also, how do I set permissions for a public share?21:49
zoxNoah0504: guest only = yes; guest ok = yes and you must also specify the guest account in [global] section and also that user must have write permissions to the path21:52
Noah0504Ah, okay.  Well, I'll keep going at it.  I think I'm getting close to accomplishing everything now.21:53
Noah0504Thanks.21:53
zoxnp, hope it works if not let us know.. if we can we will help out21:54
=== Noah0504 is now known as Noah0504|away
=== asac_ is now known as asac

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