/srv/irclogs.ubuntu.com/2011/07/17/#ubuntu-server.txt

=== ejat- is now known as ejat
jeeves__how can I set up my Bind server to auto replicate to a set of slave servers external to my network?01:07
jMCgjeeves__: might ask that question in #bind or #dns01:10
jeeves__I asked in Bind, it's a ghost town in there01:10
patdk-lapheh, I already answered that question01:14
patdk-laphttp://www.zytrax.com/books/dns/ch7/xfer.html01:15
patdk-lapoh it was a different channel :)01:16
pdtpatrick1do u guys know of anything similar to rc-status in debian ?? something like daemon tools where is i can type sstat and it shows all services running and how long they've been up ?01:26
pdtpatrick1anyone has knowledge relating to ... http://cr.yp.to/daemontools.html  ??/?01:45
patdk-lapcan't stand them01:45
patdk-lapupstart is suppost to be doing all that stuff now anyways01:46
pdtpatrick1what can't u stand about them ?01:48
pdtpatrick1Im going to have to read up more about upstart01:48
Tommy_nmwhi01:49
Tommy_nmwanyone who has done LAMP web server for real world?01:49
jeeves__Tommy_nmw, what do you mean "for the real world"?01:51
Tommy_nmwjeeves__:  not for testing environment01:52
jeeves__Tommy_nmw, I have one that runs multi-domains, and supports our customer CRM for one of my companies.01:53
Tommy_nmwjeeves__: I am a newbie of ubuntu server and I really do not understand without stepby step screen shot. The thing is I want to setup my php inventory application on LAMP server and make it accessible via domain name instead of IP01:55
Tommy_nmwjeeves__: from the network01:55
jeeves__Tommy_nmw, well, that's a 2 part problem.  You need to set up Bind9, and if you want it internally/externally accessable, you have to set up 2 zones.01:56
Tommy_nmwjeeves__: do I need to buy public IP address?01:57
jeeves__depends.  do you want the outside world to be able to see your LAMP server?01:57
Tommy_nmwhi02:05
littlebearz$VPS.GetNick(14,#archlinux,520)02:05
littlebearzDURgod02:06
=== zz_ng_ is now known as ng_
littlebearz$VPS.GetNick(14,#ubuntu,366)02:12
littlebearz$VPS.GetNick(14,#ubuntu,420)02:12
littlebearz$VPS.GetNetworks()02:12
Tommy_nmwhello02:13
littlebearz$VPS.GetNick(14,#archlinux,478)02:20
littlebearzngochai02:20
Tommy_nmwhello02:21
StrangeCharmwhen i call xemacs from the command line in an x session, it creates an x window. how can i tell xemacs only to launch in the shell?02:24
littlebearz$VPG.GetNick(14,#ubuntu-server,259)02:25
Tommy_nmwhi02:28
Tommy_nmwhow to change time zone from EDT to our local time on server02:28
Tommy_nmw?02:28
=== ejat- is now known as ejat
Tommy_nmwhi02:35
Tommy_nmwhow to shutdown server from ordinary user by adding to sudoer group ?02:35
=== ng_ is now known as zz_ng_
Tommy_nmwhi02:39
Tommy_nmwhow to shutdown server from ordinary user by adding to sudoer group ?02:39
Tommy_nmwhow to shutdown server from ordinary user by adding to sudoer group ?02:39
Tommy_nmwhow to shutdown server from ordinary user by adding to sudoer group ?02:39
Datz_what?02:41
=== Datz_ is now known as Datz
Tommy_nmwDatz: what ? what do you wanna know ?02:47
Tommy_nmwhi02:51
DatzTommy_nmw: I just didn't hear you the first time02:58
Datzyour question is really two questions02:58
DatzI'm sure you can find how to add a user to the sudo group if you look02:59
Datzonce you've done that try man shutdown02:59
Datzsudo file*03:05
johnajohn03:31
kaushalHi04:37
kaushalIf JAVA6 U26 is not made available in hardy, does it mean because Desktop has EOL ?04:38
kaushalI mean Ubuntu Hardy Desktop 8.04 has gone EOL ?04:38
kaushalwhy is it not made available on Server edition since its supported till Apr 201304:39
kaushalcan someone please explain04:39
kaushalhttps://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/79771804:39
uvirtbot`Launchpad bug 797718 in sun-java6 "sun java 6u26 needs packaging" [High,Fix released]04:39
qman__kaushal, strictly speaking, only packages in 'main' are supported throughout the life of the distro05:45
qman__pretty sure sun java is in partner, and may or may not be supported05:45
kaushalqman__: Thanks and that answered my question06:13
kaushalso multiverse, restricted and universe is not supported till 5 years ?06:13
kaushalTrying to understand06:14
kaushalquit06:50
pdtpatrick_Question -- why is it when u use static IP. /etc/resolv.conf keeps going blank after reboot? Is network manager still controlling that file?07:30
=== mendel__ is now known as mendel_
tdnSometimes my mailscan server runs out of disk space or inodes. How do you recommend I monitor this so that I will receive an e-mail some time before it runs out? Should I use nagios for this?07:56
StevenRtdn: yes. nagios can do that, and there are other tools too.07:57
tdnStevenR, what other tools do you recommend?08:03
StevenRicinga (I think that's how it's spelt) seems popular, though it's a frontend to nagios.08:03
tdnOk.08:03
StevenRI've not used anything else actually08:04
tdnI would like something that runs alone on each machine.08:04
tdnLike a cron job or something.08:04
tdnOr a deamon.08:04
StevenRwhy?08:04
tdnBecause otherwise I have to solve trust issues with having one machine login to others.08:04
StevenRnah08:04
tdnThis is how it is solved with nagios.08:04
StevenRyou could use the nrpe agent on each server to report to a central location08:05
tdnYes. I thought about that. However, nrpe seems rather complex to get up and running.08:05
tdnI already have a nagios server though.08:05
tdnIt just probes if hosts are up via network.08:06
tdn(icmp ping and tcp connect)08:06
StevenRwell, do disk space checks via nrpe (it's not that hard) or SNMP08:06
tdnSNMP?08:07
StevenRyes08:07
tdnHow?08:08
tdnSNMP is a protocol.08:08
tdnWith what tool then?08:08
StevenRnagios08:09
StevenRit'll do snmp checks.08:09
tdnOh.08:09
tdnOk.08:09
tdnI think I just have to look further into nagios then.08:09
StevenRat my last job, it did cpu (windows and linux), disk, system load, temperature (for a room monitoring system) and airflow (for our extraction fans).08:10
tdnOk. Do you have a sample configuration I can see?08:11
StevenRnot anymore08:11
tdnOk.08:11
StevenRI don't have access any more08:11
StevenR(If I still worked there, I'd pastebin you some config chunks)08:12
tdnOk.08:31
=== zz_ng_ is now known as ng_
cyber638can anyone help me with bind911:46
quentusrexcyber638, what seems to be the issue?11:47
cyber638Can anyone tell me how to write dns record of yahoo.com ... I am using bind9 and I want to make my own dns server11:47
StevenRcyber638: why do you want to do that?11:47
quentusrexcyber638, So you want to have your own DNS server on your network? Correct?11:47
cyber638yes11:48
quentusrexcyber638, Then after setting up your own local DNS server you want to override the ip address for yahoo.com?11:48
cyber638yup... I want to resolve the DNS for all sub domains of yahoo.com11:49
quentusrexcyber638, do you mind telling me why you want to do this?11:49
cyber638sorry I don't mean to override it.... but actually in our college we have dns server which is very very slow..... so we want to make our own dns server for some websites which we visit daily....11:50
quentusrexcyber638, Aah, I see. You want to cache the values so that they are returned faster, not override the values.11:51
cyber638no cache11:51
cyber638I want a complete independent dns....11:51
cyber638just for yahoo.com, google.com & gmail.com11:52
StevenRcyber638: I'd advise against that.11:52
quentusrexcyber638, So you want to have to manually go and change all values for all the dns entries each time yahoo or google change theirs?11:52
StevenRIPs change.11:52
quentusrexand sometimes they change often.11:53
cyber638quentusrex , if yahoo and google change their dns entries then is there any way to update it automatically11:53
quentusrexcyber638, yes, that would be a caching dns system.  Only one request actually has to lookup the value, then all other requests get the cached copy.11:54
cyber638oh ok... then tell me how to do it for yahoo.com and I will do it for remaining websites11:54
quentusrexand the cached copy is kept for as long as yahoo and google specify it should be kept.11:55
quentusrexcyber638, For bind9 it can cache 'all' sites dns entries if you would like.11:55
quentusrexcyber638, This setup is similar to what you will probably want: http://tldp.org/HOWTO/DNS-HOWTO-3.html11:56
quentusrexThat would configure your dns server to resolve dns entries itself(talk directly to the name servers for yahoo and google) then cache the entries.11:56
cyber638I am getting difficulty to understand it11:59
cyber638A.ROOT-SERVERS.NET.     6D  IN      A       198.41.0.4 ==> how to write it for yahoo.com11:59
quentusrexcyber638, You don't need to deal with that.11:59
quentusrexthe ubuntu bind9 package includes the initial entires for the root name servers.12:00
cyber638so you mean I just copy paste those things in respective files as written on the website....12:01
quentusrexhttps://help.ubuntu.com/community/BIND9ServerHowto12:01
quentusrexcyber638, do you have an ubuntu server installed?12:01
cyber638no its ubuntu only12:01
cyber638I have installed bind9 too12:01
quentusrexcyber638, do you see the files that are already in /etc/bind/12:02
cyber638yes12:02
quentusrexyou should probably read through them starting with /etc/bind/named.conf12:03
quentusrexcyber638, just glance through them so you know what the default configurations are.12:03
cyber638ok.. already tried them before but failed to do ...12:05
cyber638as you know google has its dns like 8.8.8.812:05
cyber638similiarly I wanted to create my dns server but only for one website like yahoo.com12:05
quentusrexcyber638, yes, and google provides 8.8.4.412:05
quentusrexcyber638, If I understand you correctly then you are trying to go the wrong direction(slightly).12:06
cyber638why?12:06
quentusrexIf you are only looking for dns resolution speed improvements, so that browsing common sites is faster then you need a DNS server that caches lookups.12:07
cyber638my intention is to learn how to make DNS server ... not to cache it12:07
quentusrexWhich is not as complicated as you probably think it is. You only need to have about 3 extra lines in the configurations.12:07
quentusrexcyber638, But you should never try to host somebody elses domain.12:07
cyber638yes... I don't want to host any domain... I just want to create DNS server which will resolve the names into ip address of yahoo.com and for all its subdomain12:08
quentusrexcyber638, correct. but you don't have to specify the information manually.12:08
quentusrexBind9 is smart enough to look up the information properly.12:09
cyber638yes... so can you tell how to do it12:09
quentusrexUsing http://paste.ubuntu.com/ can you paste the contents of /etc/bind/named.conf12:09
quentusrexcyber638, I will be glad to walk you through the process.12:10
cyber638ok12:10
cyber638here is the link http://paste.ubuntu.com/645811/12:10
quentusrexThank you and can you paste /etc/bind/named.conf.options and /etc/bind/named.conf.local please.12:11
quentusrexI do not need the default-zones pasted.12:11
cyber638ok12:13
cyber638named.conf.options at http://paste.ubuntu.com/645814/12:14
cyber638named.conf.local at http://paste.ubuntu.com/645816/12:14
quentusrexAlright, good. Very stripped down configs to start with.12:14
quentusrexNow, the first question for you cyber638 : Do you want your server to resolve the lookups itself, or do you want your ISP's DNS server to do the 'heavy work'.12:15
cyber638i want my server to resolve the lookups itself12:15
quentusrexOk, then just a moment.12:15
quentusrexcyber638, please run this command on the ubuntu DNS server:   dig @localhost google.com12:19
quentusrexand pastebin the output.12:19
cyber638http://paste.ubuntu.com/645821/12:20
quentusrexit seems bind is not started, please run: service bind9 start12:21
quentusrexthen rerun the dig command.12:21
cyber638http://paste.ubuntu.com/645823/12:22
cyber638listen our university blocks the connection at port 52 and 53 for all ip except the ip of open dns12:25
quentusrexThen it sounds like you will need to setup opendns as a forward. Just a moment.12:26
cyber638but there is a problem12:27
quentusrexUncomment the forwarders section  and replace 0.0.0.0 with 208.67.222.22212:27
cyber638ok12:28
quentusrexthen you can run: rndc reconfig12:29
quentusrexand that should have bind9 update the configurations.12:29
cyber638here are the results http://paste.ubuntu.com/645825/12:30
quentusrexGood.12:30
quentusrexrun it again, and check the Query time12:30
quentusrexsee how long it takes now.12:30
cyber638its 0msec12:30
cyber638got cache12:30
quentusrexthat's it.12:31
quentusrexAny request for a DNS entry that isn't already cached will be forwarded to opendns, then cached.12:31
cyber638ok but I have 1 last problem12:31
cyber638our university block game websites like miniclips.com and to block it they use open dns12:32
cyber638but when I use ip address for opening website then the website get opened12:32
quentusrexalright, time for a small experiment.12:32
quentusrexrun the dig command for the domain for something that is blocked.12:33
quentusrexWhat is the result?12:33
cyber638oh ok12:33
cyber638here is the result http://paste.ubuntu.com/645830/12:34
cyber638miniclips.com.0INA67.215.65.130 ==> all blocked websites are sent to this ip12:34
quentusrexIs that the actual ip address?12:34
quentusrexaah, ok.12:34
quentusrexSo, let's try something a bit different.12:34
cyber638ok...12:34
quentusrexreplace the ip address for your forwarder with 8.8.8.812:35
cyber638already tried it...12:35
quentusrexthen run: rndc reconfig12:35
quentusrexthen: rndc flush12:35
cyber638they have blocked port 52 and 53 for all ip except for open dns12:35
quentusrexhmm, let me think about this one for a moment.12:35
cyber638but I have one more idea12:35
cyber638can we dig on some webpage12:36
cyber638and put that data into bind912:36
cyber638I have one more way... proxy is allowed in our university but it slows the speed... so can we use proxy to dig, once we get the data then we will remove the proxy...12:39
quentusrexcyber638, At the moment I can't think of a simple solution to the problem. Other than just adding an entry in your /etc/hosts file. But that doesn't help windows clients.12:41
cyber638that's not the problem...12:41
cyber638i want it in ubuntu12:41
quentusrexyou only want the ubuntu machines to be able to get the real ip of the sites?12:42
cyber638we don't have problem with operating system as our friends use both OS....12:42
cyber638they just want to play online games so they can even play them using ubuntu12:42
cyber638but I want the DNS to resolve the ip address of all subdomains of miniclips.com12:43
quentusrexAah, then life is easy. Just add this line to the file /etc/hosts    "8.8.8.8 the.domain.com"12:43
quentusrexreplace the ip address with the correct ip address of the site, and replace the domain with the correct domain12:43
cyber638I already tried it but there is problem12:44
quentusrexand you can just add a: "8.8.8.8 *.domain.com" to resolve all subdomains.12:44
cyber638but what if e.miniclips.com will have some other ip address12:44
quentusrexaah, /etc/hosts can not support wildcards.12:46
cyber638yeh ....12:46
cyber638if there any way to lookup the DNS of the miniclips for its subdomain12:46
quentusrexcyber638, you might want to look into dnsmasq12:47
quentusrexbut I have to go.12:47
cyber638what is dnsmasq12:47
cyber638oh ok12:47
quentusrexhttps://help.ubuntu.com/community/Dnsmasq12:47
cyber638when u will be back12:50
cyber638is there anyone who can help me with bind913:01
cyber638????13:01
=== airtonix_ is now known as airtonix
Loranthello, anyone tried to set up a DiabloII server under ubuntu?14:13
TuxBrothersimple question: I created a forward zone. domain.name.local to the Windows AD Server, let's say 192.168.1.2. the BIND9-server, on 192.168.1.3, hosts name.local, and needs to <forward> domain.name.local to 192.168.1.214:40
TuxBrotherbut nslookup domain.name.local 192.168.1.3 fails: server fail. 192.168.1.2 just works14:41
TuxBrotherI blame Windows 2K8 R2, I think I need to allow somewhere to pickup the forwards, am I right?14:41
mmncsI have a VPS with two websites running on it and I would like to setup mail. Since its just a drupal site and a wordpress site I only need one mail for each website and the guides I have been looking at are quite extensive, what would you recommend?14:45
qman__mmncs, to handle more than one domain name, you need to go the long way and set up virtual mailboxes14:46
qman__with only one you could use local system users and be done, but with more than one, you can't14:46
mmncsdamn I was hoping I could avoid that14:46
SpamapSor just use aliases. :-P14:46
SpamapSmmncs: honestly.. just use gmail for domains ;)14:47
mmncsbut how do I set that up14:47
qman__well, you _could_ use local users, but then you couldn't have two users by the same name, one on each domain14:47
qman__they'd be the same user14:47
SpamapSyou can accept mail for 2 domains on one server and just use aliases to differentiate14:47
SpamapSvirtual mailboxes isn't "the long route" tho.. its like.. 2 lines in 2 files.14:48
mmncssounds interesting, how would I go about that and would I also be able to send mails from the server, my drupal site?14:48
mmncsSince I would def want to avoid going the long way and gmail is just fine, since its only two mail accounts14:50
qman__just install postfix with the 'internet site' configuration14:51
mmncsdone that14:51
qman__then, as long as the domain you used is correct14:51
qman__and your DNS is set up right14:51
qman__you're good to go14:51
mmncshow is that14:52
TuxBrotheranyone?14:52
qman__TuxBrother, I don't know, as I have not set up such a configuration; however, I would enable BIND secondaries and put the zones in both, unless you need dynamic updates14:53
TuxBrotherAn AD needs dynamic updates14:54
qman__I work with AD on a daily basis14:54
qman__it's not strictly necessary14:54
qman__just a nicety14:54
TuxBrotheranother question14:55
TuxBrotherI have a dd-wrt router14:55
mmncsqman__, how do I then setup my sites to send mail and how do I setup the receive portion, if you have a guide that would be great14:55
TuxBrothercan I configure that to forward domain.name.local to 192.168.0.2, and all other domains to 192.168.1.3?14:55
qman__mmncs, if you installed postfix that way, sites can just use the system mail functions, such as php's mail(), and it will work14:55
qman__TuxBrother, I don't think dd-wrt has anything that sophisticated in it14:56
mmncsqman__, cool thanks, and how about the receiving part14:56
qman__you forward based on port numbers14:56
TuxBrotherahh14:57
TuxBrotherwhat do you recommend?14:57
qman__mmncs, your server will receive mail, but it will only deliver for the domain it's configured with, to users that exist14:58
TuxBrotherI need that only the AD Domain dns-requests go to Win2K8R2 (domain.name.local), and all other domains (name.local) to the linux box14:58
qman__that's where aliases or virtual mailboxes, etc. come in14:58
qman__TuxBrother, I would just put both zones on both boxes and be done14:59
qman__the only way to do that is forwarding14:59
mmncsqman__, but I have two domains for each website14:59
qman__you were going about it the right way, but I don't have an answer for your original question14:59
qman__mmncs, that's where the virtual mailboxes come in15:00
qman__then you configure your server with multiple domains and users for those domains, and your server will receive for those too15:00
mmncsqman__, and that is the long way?15:01
qman__yes15:01
mmncsqman__, ok thanks15:02
TuxBrotherqman__, do you know anybody that could answer my question?15:07
qman__TuxBrother, no, I would suggest looking into 2008 guides though15:08
qman__provided you set up forwarding right in BIND, which is well documented, that would be the only thing left15:08
mmncsIm using ufw as firewall how do allow postfix, should it be: sudo ufw allow Postfix or sudo ufw allow Postfix Submission ?15:11
TuxBrotherand I can't find that one15:14
TuxBrotherWindows only knows this sentence: Forwarders are DNS servers that this server can use to resolve DNS queries for records that this server cannot resolve.15:16
TuxBrotherwell, I am looking for this one: Forwarders are DNS servers that USE this server to resolve DNS queries for records that THAT server cannot resolve.15:16
TuxBrothererror (network unreachable) resolving 'domain.name.local.0.0/A/IN': 2001:500:1::803f:235#5315:38
TuxBrotheripv6 perhaps cause this?15:38
TuxBrotherthis error message appears on a lookup15:38
=== ng_ is now known as zz_ng_
uvirtbot`New bug: #811948 in postfix (main) "package postfix 2.8.2-1ubuntu2.1 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 75" [Undecided,New] https://launchpad.net/bugs/81194817:06
=== zz_ng_ is now known as ng_
cerberosHow do I install Firefox for use with xvfb? When I try apt-get install all I see are GUI versions. I want to run it headless http://coreygoldberg.blogspot.com/2011/06/python-headless-selenium-webdriver.html18:48
uvirtbot`New bug: #811976 in nut (main) "Update nut to 2.6.1-2" [Undecided,New] https://launchpad.net/bugs/81197619:07
=== niekie_ is now known as niekie
druciferreLooking for help changing the array name in the superblock information for mdadm array... The only thing I can find on google is changing the device name from /dev/md0 to /dev/md1... this is not what I want... when you do mdadm --query --detail /dev/md0 it shows "Name: sysresccd:0" I want to change that...20:28
=== ng_ is now known as zz_ng_
fluvvelldruciferre, I'm unclear as to what kind of name you are looking for. And my  mdadm --query --detail /dev/md0 gives a whole page of data about the array, but no name. Same result on 8.04 and 10.04 server22:53
druciferrefluvvell, it depends on what version of the superblock you use22:54
druciferrei bet your version is less than 1.022:54
druciferrefluvvell, http://linux.die.net/man/5/mdadm.conf look under the "ARRAY" section for "name="22:55
druciferrefluvvell, more details from the mdadm(8) man page  -->  -N, --name=    Set a name for the array. This is currently only effective when creating an array with a version-1 superblock. The name is a simple textual string that can be used to identify array components when assembling.22:56
fluvvelldruciferre, gotcha. Yep, mine are 0.9 superblocks.23:03
druciferrefluvvell, the only way i ever found to change that name/label was to zero out the superblocks and recreate the array...23:04
fluvvelldruciferre, I've generally only had to refer to the separate elements by their UUID, so hadn't come across the need to name them otherwise23:04
druciferrefluvvell, despite having been using an md array for over a year, this is the first point in time when i've begun investing time in really understanding how it works...23:06
druciferrefluvvell, one of my drives dying is what prompted all this...23:07
fluvvelldruciferre, I've had raid1 arrays for about 4 years at various sites, but never felt the need to name them. Have had to replace about 4 failing devices so far.  The main cause I've discovered is insufficient cooling of drives. Incidentally, while googling your reference to superblock 1.0, I discovered wikipedia has an mdadm page, Breif but interesting.23:12
fluvvellwhile I've had some angst over drive replacement, they have usually ended up being quite straight forward.  It might be a different story with RAID5 perhaps.23:13
druciferrefluvvell, after my drive died, i noticed a huge amount of dust in the front cover blocking the fan i had cooling the drives... so you're probably right, but you can bet I will be cleaning the dust out of once or twice a month from now on23:14
fluvvelldruciferre, or filter your server cabinet. Or get your computer box off the carpet ;-)  Businesses that have un-sealed car parks or workshops adjacent to the office have been the sites I've struggled with dust the most.23:16
druciferreI have hard wood floors... the server is a custom built mini-tower that is sitting on the floor, and i do have plans to get it off the floor as soon as I can find something to sit it on23:17
fluvvellI note that kernel.org has an announcement for a new version of mdadm.  "Subject:  ANNOUNCE: mdadm 3.2.2 - A tool for managing Soft RAID under Linux" Dated June 17th 2011. Probably won't migrate into ubuntu for a version or so.23:18
fluvvelldruciferre, If its dust on hardwood, One of my engineer clients had a small cabinet made with a place for a removable dust filter on the front. They can change it monthly, cuts dust considerably. We are in a cool climate I might add.23:20
druciferrefluvvell, do you know anything about acl permissions ?23:20
fluvvellAccess control lists. I23:21
fluvvellve tried to keep clear of them...23:21
fluvvellThere is a samba add on I believe....23:21
druciferreOh well, thanks23:22
fluvvellSorry. I've seen sites with it working but not had personal experience.23:23
druciferrewas trying to find out if the settings are stored on the disk like the unix permissions are, or if I need to backup the acl settings23:25
quentusrexfluvvell, did kernel.org mention what was changed in the new version of mdadm?23:59

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