[CentOS-docs] ¡Marcos Ortiz te ha dejado un mensaj e en Badoo!

2010-09-24 Thread Badoo
¡Tienes un nuevo mensaje en Badoo!

Marcos Ortiz te dejó un mensaje.
Haz click en este enlace para verlo:
http://us1.badoo.com/marcosluis2186/in/GZba-jJeopY/?lang_id=7

Más gente que también te está esperando:
Relquis (Trinidad, Cuba)
Yadiria (Trinidad, Cuba)
Elcubanito (Trinidad, Cuba)

http://us1.badoo.com/marcosluis2186/in/GZba-jJeopY/?lang_id=7

Si al hacer click sobre el enlace, no funciona, copia y pega la dirección en tu 
barra del navegador.

Este email es parte del procedimiento para que leas los mensajes de Marcos 
Ortiz. Si has recibido este email por equivocación, por favor, ignóralo. Tras 
un corto periodo de tiempo el mensaje sera eliminado del sistema.

¡Diviértete!
El Equipo de Badoo


Has recibido este email porque un usuario de Badoo te ha dejado un mensaje en 
Badoo. Este mensaje es automático. Las respuestas a este mensaje no estan 
controladas y no serán contestadas. Si no quieres recibir más mensajes de 
Badoo, háznoslo saber:
http://us1.badoo.com/impersonation.phtml?lang_id=7mail_code=21email=centos-docs%40centos.orgsecret=invite_id=664706user_id=1120826244___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


[CentOS-es] error no puedo agregar usuarios en centos

2010-09-24 Thread Roberto Gonzalez Lagos
me da el siguiente error:

con adduser nombre y useradd nombre me da el siguiente error: command not found

-- 
Saludos,

Roberto Gonzalez Lagos
Analista Programador Computacional
Contador
Movistar 90134924
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


[CentOS] performance and interrupts

2010-09-24 Thread Mag Gam
I am playing around with irqbalance to tune my 8 core system so I came
across this page,
http://kb.fusionio.com/KB/a65/irqbalance-avoid-overloading-cpu-0-with-interrupt-requests.aspx

Now, lets say I disable irqbalance which will stop my autobalance and
I pin all of my interrupts to core 0 and pin eth0 and eth1 to core 1.
My application is network and CPU hungry. I am planning to dedicate
cpu 3 to 8 for the application using taskset.  Is there any draw back
to this?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] In the press, once again

2010-09-24 Thread Timo Schoeler
May be a little bit off topic, but this gave me hard laugh:

http://www.theregister.co.uk/2010/09/24/sysadmin_file_tools/

Windows admins use a virtualized CentOS machine to copy files because
their own tools are not able to handle copying a bigger amount of data. :)

Cheers,

Timo
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] performance and interrupts

2010-09-24 Thread JohnS

On Fri, 2010-09-24 at 08:57 -0400, Mag Gam wrote:
 I am playing around with irqbalance to tune my 8 core system so I came
 across this page,
 http://kb.fusionio.com/KB/a65/irqbalance-avoid-overloading-cpu-0-with-interrupt-requests.aspx
 
 Now, lets say I disable irqbalance which will stop my autobalance and
 I pin all of my interrupts to core 0 and pin eth0 and eth1 to core 1.
 My application is network and CPU hungry. I am planning to dedicate
 cpu 3 to 8 for the application using taskset.  Is there any draw back
 to this?
---
NO but be aware of what your doing as to not starve out Kernel Threads.
Whats the kernel? It want hurt to give them priority either. Gbit and
higher nics I would give them there own cpu.  It may take quit a while
to come up with the optimal configuration though.
Example:
cpu0 app priority 60 - 99 no ionice is app dependent 
cpu1 app
cpu2 eth0
cpu3 eth1
cpu4 fusionio
cpu5 fusionio
cpu6 kthreads 
cpu7 kthreads, misc

John

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Tom Bishop
+1 Just Awesome.ROFL.too funny :)


Thanks for the link

On Fri, Sep 24, 2010 at 8:23 AM, Timo Schoeler
timo.schoe...@riscworks.netwrote:

 May be a little bit off topic, but this gave me hard laugh:

 http://www.theregister.co.uk/2010/09/24/sysadmin_file_tools/

 Windows admins use a virtualized CentOS machine to copy files because
 their own tools are not able to handle copying a bigger amount of data. :)

 Cheers,

 Timo
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Timo Schoeler
thus Tom Bishop spake:
 +1 Just Awesome.ROFL.too funny :)
 
 
 Thanks for the link

Maybe stuff for then next newsletter...?

 On Fri, Sep 24, 2010 at 8:23 AM, Timo Schoeler
 timo.schoe...@riscworks.netwrote:
 
 May be a little bit off topic, but this gave me hard laugh:

 http://www.theregister.co.uk/2010/09/24/sysadmin_file_tools/

 Windows admins use a virtualized CentOS machine to copy files because
 their own tools are not able to handle copying a bigger amount of data. :)

 Cheers,

 Timo
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Chris W Tucker
* Timo Schoeler (timo.schoe...@riscworks.net) wrote:
 May be a little bit off topic, but this gave me hard laugh:
 
 http://www.theregister.co.uk/2010/09/24/sysadmin_file_tools/
 
 Windows admins use a virtualized CentOS machine to copy files because
 their own tools are not able to handle copying a bigger amount of data. :)
 
 Timo
 
Good stuff :)
Cheers,
Chris


pgpxbPvmbPLaA.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread ken

CCing the CentOS group on this... maybe someone there knows how to
handle the error.

On 09/23/2010 03:19 PM ken wrote:
 On 09/23/2010 01:29 PM Mathieu Baudier wrote:
 As it turns out, I don't have the Argeo version.  If I'm still
 having
 But you have the java browser plugin?

Sorry to not answer this part in my previous email.  I wanted to search
around to see if I could get the answer for myself... and it hasn't been
easy.

Apparently I don't have the java plugin browser installed.  I've tried
to install it using the rpm.bin file at
http://java.com/en/download/linux_manual.jsp?locale=enhost=java.com,
but it's erroring out: /bin/sh: bad interpreter: Text file busy.

I've never seen that error before.


 Can you please send me the output of your 'java -version' command
 please?
 
 # java -version
 java version 1.6.0_0
 OpenJDK Runtime Environment (IcedTea6 1.6) (rhel-1.13.b16.el5-i386)
 OpenJDK Client VM (build 14.0-b16, mixed mode)
 
 


-- 
Find research and analysis on US healthcare, health insurance,
and health policy at: http://healthpolicydaily.blogspot.com/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread Mathieu Baudier
 Apparently I don't have the java plugin browser installed.  I've tried
 to install it using the rpm.bin file at
 http://java.com/en/download/linux_manual.jsp?locale=enhost=java.com,
 but it's erroring out: /bin/sh: bad interpreter: Text file busy.

If you want to keep it simple, I would not try to install at the same
time the base CentOS OpenJdk RPMs and the Sun RPM.
If you don't care much about control (in the free software sense) on
your Java installation and just need the plugin, I guess you should go
for the Sun RPM after uninstalling the base OpenJdk packages.

Maybe some people on the list have other opinions / tips.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread Barry Brimer
Quoting Mathieu Baudier mbaud...@argeo.org:

  Apparently I don't have the java plugin browser installed.  I've tried
  to install it using the rpm.bin file at
  http://java.com/en/download/linux_manual.jsp?locale=enhost=java.com,
  but it's erroring out: /bin/sh: bad interpreter: Text file busy.

Have you tried using dos2unix against the downloaded file?



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Gabriel Ogunleye
Thank you *SO* much!

I needed some real world evidence to prove that syncing large amounts of
data across windows is a PITA! I'm currently doing something so similar!
And I use linux to do it, and no one can understand why. That link has
been printed, and strategically left on someones desk, with a post-it
note sayin - This is why I use linux :)

-Original Message-
From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
Behalf Of Timo Schoeler
Sent: 24 September 2010 14:23
To: CentOS mailing list
Subject: [CentOS] In the press, once again

May be a little bit off topic, but this gave me hard laugh:

http://www.theregister.co.uk/2010/09/24/sysadmin_file_tools/

Windows admins use a virtualized CentOS machine to copy files because
their own tools are not able to handle copying a bigger amount of data.
:)

Cheers,

Timo
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Hakan Koseoglu
On 24 September 2010 14:23, Timo Schoeler timo.schoe...@riscworks.net wrote:
 Windows admins use a virtualized CentOS machine to copy files because
 their own tools are not able to handle copying a bigger amount of data. :)
Although I read the article with some amusement, I have to wonder
what's wrong with rsync (has a Windows port, albeit somewhat slow with
Cygwin implementation). His fallback is using cp which I found utterly
incomprehensible.

-- 
Hakan (m1fcj) - http://www.hititgunesi.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Les Mikesell
On 9/24/2010 10:37 AM, Hakan Koseoglu wrote:
 On 24 September 2010 14:23, Timo Schoelertimo.schoe...@riscworks.net  wrote:
 Windows admins use a virtualized CentOS machine to copy files because
 their own tools are not able to handle copying a bigger amount of data. :)
 Although I read the article with some amusement, I have to wonder
 what's wrong with rsync (has a Windows port, albeit somewhat slow with
 Cygwin implementation). His fallback is using cp which I found utterly
 incomprehensible.

The current (1.7.x) cygwin ssh/rsync are OK, but there is a long history 
of earlier versions randomly hanging when rsync was running under sshd 
(i.e. started remotely).  It always worked with rsync configured as a 
standalone daemon or when executed from the windows side using ssh to a 
unix/linux target.

This used to be a problem when using backuppc to back up windows files 
with rsync.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] necessary/unused rpm packages

2010-09-24 Thread Alice Anderson
Is there a way to identify if an rpm package is unused, or how much it is
used?

I would like to reduce my load time by removing unused packages in my
kickstart, but do not want to cause problems for users on active systems by
guessing which ones are not necessary (I load everything with kickstart
now).  If I could find the packages are not used I could start by excluding
them from a load and be fairly certain my users would not be impacted.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread miguelmedalha


 May be a little bit off topic, but this gave me hard laugh:

 http://www.theregister.co.uk/2010/09/24/sysadmin_file_tools/

VERY nice! Thank you for the link!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread m . roth
Mathieu Baudier wrote:
 Apparently I don't have the java plugin browser installed.  I've tried
 to install it using the rpm.bin file at
 http://java.com/en/download/linux_manual.jsp?locale=enhost=java.com,
 but it's erroring out: /bin/sh: bad interpreter: Text file busy.

 If you want to keep it simple, I would not try to install at the same
 time the base CentOS OpenJdk RPMs and the Sun RPM.
 If you don't care much about control (in the free software sense) on
 your Java installation and just need the plugin, I guess you should go
 for the Sun RPM after uninstalling the base OpenJdk packages.

 Maybe some people on the list have other opinions / tips.

Well, other than that openjdk has not supplied/supported the java browser
plugin since last year, and the workaround is to install Sun's, er,
sorry, Oracle's java

   mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Benjamin Franz
On 09/24/2010 08:37 AM, Hakan Koseoglu wrote:
 On 24 September 2010 14:23, Timo Schoelertimo.schoe...@riscworks.net  wrote:

 Windows admins use a virtualized CentOS machine to copy files because
 their own tools are not able to handle copying a bigger amount of data. :)
  
 Although I read the article with some amusement, I have to wonder
 what's wrong with rsync (has a Windows port, albeit somewhat slow with
 Cygwin implementation). His fallback is using cp which I found utterly
 incomprehensible.


Until Cygwin's developers decide the join the rest of the window's 
universe in having an *uninstaller* it will remain not installed - 
ever on many people's systems, including mine.  It is completely 
unacceptable that it is happy to install, but that you have to 
*manually* rip it out piece-by-piece if you ever want to uninstall it.

-- 
Benjamin Franz

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Adam Tauno Williams
On Fri, 2010-09-24 at 09:54 -0700, Benjamin Franz wrote:
 On 09/24/2010 08:37 AM, Hakan Koseoglu wrote:
  On 24 September 2010 14:23, Timo Schoelertimo.schoe...@riscworks.net  
  wrote:
  Windows admins use a virtualized CentOS machine to copy files because
  their own tools are not able to handle copying a bigger amount of data. :)
  Although I read the article with some amusement, I have to wonder
  what's wrong with rsync (has a Windows port, albeit somewhat slow with
  Cygwin implementation). His fallback is using cp which I found utterly
  incomprehensible
 Until Cygwin's developers decide the join the rest of the window's 
 universe in having an *uninstaller* it will remain not installed - 
 ever on many people's systems, including mine. 

+1.  There are numerous things with Cygwin that are very messy.  It
avoid it at nearly all costs.

IMO, a windows system with Cygwin and Cygwin tools isn't really a
Windows system anymore;  it is an crippled and ugly hybrid.

 It is completely 
 unacceptable that it is happy to install, but that you have to 
 *manually* rip it out piece-by-piece if you ever want to uninstall it.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread ken

On 09/24/2010 10:53 AM Barry Brimer wrote:
 Quoting Mathieu Baudier mbaud...@argeo.org:
 
 Apparently I don't have the java plugin browser installed.  I've tried
 to install it using the rpm.bin file at
 http://java.com/en/download/linux_manual.jsp?locale=enhost=java.com,
 but it's erroring out: /bin/sh: bad interpreter: Text file busy.
 
 Have you tried using dos2unix against the downloaded file?

Thanks for jumping in, but I doubt that would resolve the issue.

First, the file (from java.com) is specifically for Linux RPM... or so
it's labeled on the website.  So I'd strongly doubt that would be the
problem.

Secondly (and more definitively), the script contains a sum command
(containing something like a CRC, I'm guessing) which checks its own
contents and then bails if it detects that it's been altered.  So unless
I want to do some pretty serious hacking, I can't alter the script.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Brunner, Brian T.
 

  Until Cygwin's developers decide the join the rest of the window's 
  universe in having an *uninstaller* it will remain not installed - 
  ever on many people's systems, including mine.
 
 IMO, a windows system with Cygwin and Cygwin tools isn't 
 really a Windows system anymore;  it is an crippled and ugly hybrid.

Cygwin rocks.
No Windows functionalities are lost by installing Cygwin.
Cygwin has the SAME uninstall that Windows does: install CentOS.
*THAT* unfortunately, loses many widely used Windows capabilities, like
support for most video games.
*THAT* is the reason I still have Windows at all!

Getting back to CentOS... 
***
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This footnote also confirms that this
email message has been swept for the presence of computer viruses.
www.Hubbell.com - Hubbell Incorporated**

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread James A. Peltier
It was funny, but it would have been more efficient to use tar over netcat 
instead of CP or rsync to initially populate the directory.  It would be a 
steady data stream to the network and wouldn't beat up on the file system as 
bad as rsync would.

Good read none the less. :)

- Original Message -
| May be a little bit off topic, but this gave me hard laugh:
| 
| http://www.theregister.co.uk/2010/09/24/sysadmin_file_tools/
| 
| Windows admins use a virtualized CentOS machine to copy files because
| their own tools are not able to handle copying a bigger amount of
| data. :)
| 
| Cheers,
| 
| Timo
| ___
| CentOS mailing list
| CentOS@centos.org
| http://lists.centos.org/mailman/listinfo/centos

-- 
--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_s...@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On a CentOS 5 server, I am having a hard time configuring BIND to
answer to 4 IP addresses for 2 domain names.

Currently, I have four IP addresses, for sake of discussion they are:
1.1.1.1
1.1.1.2
1.1.1.3
1.1.1.4

Additionally, I have two domain names. For sake of discussion:
exampleA.com
exampleB.com

My goal is to have 1.1.1.1  1.1.1.2 as the nameservers for
exampleA.com, and 1.1.1.3  1.1.1.4 as the nameservers for
exampleB.com. Apache is running on this machine, and should of course
serve pages for the sites.

I think that I've got the apache configuration down, but the BIND
configuration is eluding me. I've read the following fine manual, but
I am still stuck:
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-bind.html

Additionally, I have googled for how to configure bind for multiple
domain names and the like, but I see no mention of the IP addresses
configuration. Can I simply configure any IP address that the server
answers to as the nameservers? What am I missing?

Thank you in advance!

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] necessary/unused rpm packages

2010-09-24 Thread Robert Heller
At Fri, 24 Sep 2010 09:15:58 -0700 CentOS mailing list centos@centos.org 
wrote:

 
 
 
 Is there a way to identify if an rpm package is unused, or how much it is
 used?
 
 I would like to reduce my load time by removing unused packages in my
 kickstart, but do not want to cause problems for users on active systems by
 guessing which ones are not necessary (I load everything with kickstart
 now).  If I could find the packages are not used I could start by excluding
 them from a load and be fairly certain my users would not be impacted.

rpm -q --whatrequires will show what packages depend on a given package:

sauron.deepsoft.com% rpm -q --whatrequires gcc
gcc-c++-4.1.2-48.el5
gcc-java-4.1.2-48.el5
gcc-gfortran-4.1.2-48.el5
apr-devel-1.2.7-11.el5_5.2
apr-devel-1.2.7-11.el5_5.2
sauron.deepsoft.com% rpm -q --whatrequires gcc-c++
no package requires gcc-c++
sauron.deepsoft.com% rpm -q --whatrequires gcc-gfortran

I *could* remove gcc-c++, expect that I frequently compile C++
programs...

Unless you ask your users, you won't know what packages/programs they
are actually using...

Presumably, you should have some idea of this already: are your users
office workers or computer programmers?  If office workers what sorts of
office productivity stuff do they do (write text documents, create bar
charts, create presentations, etc.)?  If computer programmers, which
programming languages do they use?  Do they use an IDE or make? 
Automake, autoconf, etc.?  Debuggers?

 
 MIME-Version: 1.0
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 
  

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
hel...@deepsoft.com   -- http://www.deepsoft.com/ModelRailroadSystem/

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Les Mikesell
On 9/24/2010 11:54 AM, Adam Tauno Williams wrote:

 On 24 September 2010 14:23, Timo Schoelertimo.schoe...@riscworks.net   
 wrote:
 Windows admins use a virtualized CentOS machine to copy files because
 their own tools are not able to handle copying a bigger amount of data. :)
 Although I read the article with some amusement, I have to wonder
 what's wrong with rsync (has a Windows port, albeit somewhat slow with
 Cygwin implementation). His fallback is using cp which I found utterly
 incomprehensible
 Until Cygwin's developers decide the join the rest of the window's
 universe in having an *uninstaller* it will remain not installed -
 ever on many people's systems, including mine.

 +1.  There are numerous things with Cygwin that are very messy.  It
 avoid it at nearly all costs.

There are some separately packaged components like deltacopy and cwrsync 
that just install ssh and rsync that might make it easier to deal with. 
  All you really need is the one dll and an executable, but it is pretty 
hard to get that from the cygwin installer.

 IMO, a windows system with Cygwin and Cygwin tools isn't really a
 Windows system anymore;  it is an crippled and ugly hybrid.

I'd call it 'enhanced' rather than crippled, since the point of using 
the tools is normally to make windows act like a more sensible unix box, 
but it is still sort of an ugly hybrid.

But in any case it is really hard to beat rsync and ssh for moving files 
around.


-- 
   Les Mikesell
lesmikes...@gmail.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread Les Mikesell
On 9/24/2010 11:28 AM, m.r...@5-cent.us wrote:

 Apparently I don't have the java plugin browser installed.  I've tried
 to install it using the rpm.bin file at
 http://java.com/en/download/linux_manual.jsp?locale=enhost=java.com,
 but it's erroring out: /bin/sh: bad interpreter: Text file busy.

 If you want to keep it simple, I would not try to install at the same
 time the base CentOS OpenJdk RPMs and the Sun RPM.
 If you don't care much about control (in the free software sense) on
 your Java installation and just need the plugin, I guess you should go
 for the Sun RPM after uninstalling the base OpenJdk packages.

 Maybe some people on the list have other opinions / tips.

 Well, other than that openjdk has not supplied/supported the java browser
 plugin since last year, and the workaround is to install Sun's, er,
 sorry, Oracle's java

Has Oracle been any more sensible about building an RHEL-style (with 
appropriate locations and alternatives setup) RPM than Sun was?

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread James A. Peltier
- Original Message -
| On a CentOS 5 server, I am having a hard time configuring BIND to
| answer to 4 IP addresses for 2 domain names.
| 
| Currently, I have four IP addresses, for sake of discussion they are:
| 1.1.1.1
| 1.1.1.2
| 1.1.1.3
| 1.1.1.4
| 
| Additionally, I have two domain names. For sake of discussion:
| exampleA.com
| exampleB.com
| 
| My goal is to have 1.1.1.1  1.1.1.2 as the nameservers for
| exampleA.com, and 1.1.1.3  1.1.1.4 as the nameservers for
| exampleB.com. Apache is running on this machine, and should of course
| serve pages for the sites.
| 
| I think that I've got the apache configuration down, but the BIND
| configuration is eluding me. I've read the following fine manual, but
| I am still stuck:
| http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-bind.html
| 
| Additionally, I have googled for how to configure bind for multiple
| domain names and the like, but I see no mention of the IP addresses
| configuration. Can I simply configure any IP address that the server
| answers to as the nameservers? What am I missing?
| 
| Thank you in advance!
| 
| --
| Dotan Cohen
| 
| http://gibberish.co.il
| http://what-is-what.com
| ___
| CentOS mailing list
| CentOS@centos.org
| http://lists.centos.org/mailman/listinfo/centos

Have a read for the listen on directive for BIND which tells BIND what 
interfaces/IP Addresses to bind to.  Alternatively, you could just configure 
BIND identically on both machines and ensure that they are setup in a 
master/slave configuration so that each name server could answer requests for 
both domains and publish both name server records in each domain.

--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_s...@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Les Mikesell
On 9/24/2010 12:08 PM, James A. Peltier wrote:
 It was funny, but it would have been more efficient to use tar over netcat 
 instead of CP or rsync to initially populate the directory.  It would be a 
 steady data stream to the network and wouldn't beat up on the file system as 
 bad as rsync would.

I'll trade being able to stop/start and repeat the same command (rsync) 
for a few extra packets over my local net any day.

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread James A. Peltier


- Original Message -
| On 9/24/2010 12:08 PM, James A. Peltier wrote:
|  It was funny, but it would have been more efficient to use tar over
|  netcat instead of CP or rsync to initially populate the directory.
|  It would be a steady data stream to the network and wouldn't beat up
|  on the file system as bad as rsync would.
| 
| I'll trade being able to stop/start and repeat the same command
| (rsync)
| for a few extra packets over my local net any day.
| 
| --
| Les Mikesell
| lesmikes...@gmail.com
| 
| 
| ___
| CentOS mailing list
| CentOS@centos.org
| http://lists.centos.org/mailman/listinfo/centos

Keep in mind I mentioned to initially populate the directory.  Had the tar 
over netcat failed you could still then use rsync to restart.

Just a thought is all. ;)
--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_s...@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
 Have a read for the listen on directive for BIND which tells BIND what
 interfaces/IP Addresses to bind to.

Thanks, I am aware that Apache can be told to listen only to specific
addresses. Can BIND be told to listen on all addresses? Your post
implies that this is the default (which makes sense, as so does
Apache), maybe I am chasing a non-issue?

In other words, I should configure BIND to answer to exampleA.com and
to exampleB.com with no regard to IP addresses. then in the control
panel for each domain name configure the nameservers to my liking
(with addresses that the server answers to, naturally)? That's it?


  Alternatively, you could just configure BIND identically on both machines 
 and ensure that
 they are setup in a master/slave configuration so that each name server could 
 answer
 requests for both domains and publish both name server records in each domain.


There is only one machine. All four addresses point to it.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Eric Viseur
Maybe a Round-Robin configuration ?

2010/9/24 Dotan Cohen dotanco...@gmail.com

  Have a read for the listen on directive for BIND which tells BIND what
  interfaces/IP Addresses to bind to.

 Thanks, I am aware that Apache can be told to listen only to specific
 addresses. Can BIND be told to listen on all addresses? Your post
 implies that this is the default (which makes sense, as so does
 Apache), maybe I am chasing a non-issue?

 In other words, I should configure BIND to answer to exampleA.com and
 to exampleB.com with no regard to IP addresses. then in the control
 panel for each domain name configure the nameservers to my liking
 (with addresses that the server answers to, naturally)? That's it?


   Alternatively, you could just configure BIND identically on both
 machines and ensure that
  they are setup in a master/slave configuration so that each name server
 could answer
  requests for both domains and publish both name server records in each
 domain.
 

 There is only one machine. All four addresses point to it.

 --
 Dotan Cohen

 http://gibberish.co.il
 http://what-is-what.com
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 19:26, Eric Viseur eric.vis...@gmail.com wrote:
 Maybe a Round-Robin configuration ?


Thank you Eric, but I may have been unclear. There is only one
physical server, but it answers to four IP addresses.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Les Mikesell
On 9/24/2010 12:21 PM, Dotan Cohen wrote:
 Have a read for the listen on directive for BIND which tells BIND what
 interfaces/IP Addresses to bind to.

 Thanks, I am aware that Apache can be told to listen only to specific
 addresses. Can BIND be told to listen on all addresses? Your post
 implies that this is the default (which makes sense, as so does
 Apache), maybe I am chasing a non-issue?

 In other words, I should configure BIND to answer to exampleA.com and
 to exampleB.com with no regard to IP addresses. then in the control
 panel for each domain name configure the nameservers to my liking
 (with addresses that the server answers to, naturally)? That's it?


   Alternatively, you could just configure BIND identically on both machines 
 and ensure that
 they are setup in a master/slave configuration so that each name server 
 could answer
 requests for both domains and publish both name server records in each 
 domain.


 There is only one machine. All four addresses point to it.


You are making it much more complicated than necessary. I'd configure 
apache to use named virtual hosts and listen on all addresses (but you 
might want to tie https to specific addresses so you can tie connections 
to the right certificates), and bind to listen on all addresses and 
answer for all your domains.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 19:38, Les Mikesell lesmikes...@gmail.com wrote:
 You are making it much more complicated than necessary.

That is what I suspected! I know that when Linux gets difficult, it is
because I'm doing it wrong!


 I'd configure
 apache to use named virtual hosts and listen on all addresses (but you
 might want to tie https to specific addresses so you can tie connections
 to the right certificates),

Exactly how it is configured.


 and bind to listen on all addresses and
 answer for all your domains.


So, then, the association of a FQDN with any particular IP address is
only done in the domain name's control panel where the nameservers are
set?


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread James A. Peltier


- Original Message -
|  Have a read for the listen on directive for BIND which tells BIND
|  what
|  interfaces/IP Addresses to bind to.
| 
| Thanks, I am aware that Apache can be told to listen only to specific
| addresses. Can BIND be told to listen on all addresses? Your post
| implies that this is the default (which makes sense, as so does
| Apache), maybe I am chasing a non-issue?
| 
| In other words, I should configure BIND to answer to exampleA.com and
| to exampleB.com with no regard to IP addresses. then in the control
| panel for each domain name configure the nameservers to my liking
| (with addresses that the server answers to, naturally)? That's it?
| 
| 
|   Alternatively, you could just configure BIND identically on both
|   machines and ensure that
|  they are setup in a master/slave configuration so that each name
|  server could answer
|  requests for both domains and publish both name server records in
|  each domain.
| 
| 
| There is only one machine. All four addresses point to it.
| 
| --
| Dotan Cohen
| 
| http://gibberish.co.il
| http://what-is-what.com
| ___
| CentOS mailing list
| CentOS@centos.org
| http://lists.centos.org/mailman/listinfo/centos


BIND has listen on directives as well, but if this is a single box 
configuration it's not necessarily required as it will listen on all interfaces.

As far as configuring the domains, well that's pretty simple. In your DNS 
records for each domain you would define NS records such as this

$TTL 1d
@   IN  SOA ns1.exampleA.com. hostmaster.exampleA.com. (
2010092401  ; PUT SEQUENCE NUMBER HERE 
(/MM/DAY/CHANGE #)
3600; Refresh every hour
600 ; Retry   - every ten minutes
604800  ; Expire  - after one week
 1h ) ; Minimum 1H
IN  NS  ns1.exampleA.com.
IN  NS  ns2.exampleA.com.

;; Hosts Section

ns1 IN A 1.1.1.1
ns2 IN A 1.1.1.2
www IN A 1.1.1.3

Keep in mind that you don't need A records for the NS records if you are 
pointing to a different name server so your exampleB your records might look 
like this


$TTL 1d
@   IN  SOA ns1.exampleB.com. hostmaster.exampleB.com. (
2010092401  ; PUT SEQUENCE NUMBER HERE 
(/MM/DAY/CHANGE #)
3600; Refresh every hour
600 ; Retry   - every ten minutes
604800  ; Expire  - after one week
 1h ) ; Minimum 1H
IN  NS  ns1.exampleA.com.
IN  NS  ns2.exampleA.com.

;; Hosts Section

www 1.1.1.4

Notice that the NS records point to ns1 and ns2.exampleA.com.

Notice the A records for www.example{A,B} which should match your Apache 
instances if you are doing IP based hosting.  If you are doing name based 
hosting you *could* DNS round robin the requests.

Master and Secondary DNS configurations are defined in your named.conf file.  
This doesn't matter in your necessarily for your configuration, but thought I 
would point it out.


On the master

zone examplea.com {
type master;
file zone.examplea.com;
allow-transfer { ns2.examplea.com }
};


On the secondary

zone examplea.com {
type slave;
masters { ns1.examplea.com };
file zone.example.com;
};


--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_s...@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] grep contents of file on remote server

2010-09-24 Thread Tim Dunphy
Hello,

 I am attempting to grep the contents of a key file I have SCP'd to a
remote server. I am able to cat it:

[code]
[bluethu...@lbsd2:~]$:ssh r...@sum1 cat /root/id_rsa.pub
r...@lcent01.summitnjhome.com's password:
ssh-rsa 
B3NzaC1yc2EBIwAAAQEApnUSYyrM96qIBZKjwSNYycgeSv/FAKE-KEY-DATA--KEY-DATA-PWReyVuOn9Fb/uH/FAKE-KEY-DATA-+ttLzUELGrfn/n+FAKE-KEY-DATA-/FAKE-KEY-DATA-/FAKE-KEY-DATA-/FAKE-KEY-DATA-==
bluethu...@lbsd8-2.summitnjhome.com
[/code]

But I cannot cat / grep it in order to determine if this key is
already in the authorized_hosts file of the remote host.

[code]
[bluethu...@lbsd2:~]$:ssh r...@sum1 grep `cat /root/id_rsa.pub`
/root/.ssh/id_rsa.pub
r...@lcent01.summitnjhome.com's password:
/root/.ssh/id_rsa.pub:ssh-rsa ssh-rsa
B3NzaC1yc2EBIwAAAQEApnUSYyrM96qIBZKjwSNYycgeSv/FAKE-KEY-DATA--KEY-DATA-PWReyVuOn9Fb/uH/FAKE-KEY-DATA-+ttLzUELGrfn/n+FAKE-KEY-DATA-/FAKE-KEY-DATA-/FAKE-KEY-DATA-/FAKE-KEY-DATA-==
bluethu...@lbsd8-2.summitnjhome.com==: No such file or directory
grep: r...@bt-laptop: No such file or directory
[/code]

Ultimately, what I would like to do is script this in order to
automate this process:

[code]
#!/bin/sh
HOSTS=sum1 sum2 virt1 virt2 virt3 virt4 virt5 virt6 virt7
SSHDIR=~/.ssh
RSYNC=/usr/local/bin/rsync
KEYFILE=/home/bluethundr/.ssh/id_rsa.pub
CAT='/bin/cat'
GREP='/bin/grep'

for h in $HOSTS ; do
 scp $KEYFILE r...@$h:~/
 if   [ $? = 0 ]; then
  echo ;  echo ;  echo
  echo KEY TRANSFERRED TO $h
 else
   echo KEY Transfer To $h has FAILED
   exit 1
 fi
 ssh r...@$h $CAT /root/id_rsa.pub | $GREP -i /root/.ssh/authorized_keys
 if [ $? = 1 ]; then
  ssh r...@$h $CAT /root/id_rsa.pub  /root/.ssh/authorized_keys
  if   [ $? = 0 ]; then
  echo ;  echo ;  echo
  echo KEY APPENDED TO $h Authorized Hosts
 else
   echo KEY APPEND FAILED
 fi
 exit 1
fi
done
[/code]

This is what results from the above script:

[code]
[bluethu...@lbsd2:~/bin]$:./key-export.sh
r...@lcent01.summitnjhome.com's password:
id_rsa.pub
100%  417
0.4KB/s   00:00



KEY TRANSFERRED TO sum1
./key-export.sh: /bin/grep: not found
r...@lcent01.summitnjhome.com's password:
[/code]

And I'm pretty sure I have those variables set correctly in order to
execute those commands:

[code]
[bluethu...@lbsd2:~/bin]$:ssh r...@sum1
r...@lcent01.summitnjhome.com's password:
Last login: Fri Sep 24 07:34:02 2010 from 192.168.1.44
#
#   SUMMITNJHOME.COM#
#   TITLE:   LCENT01  BOX   #
#   LOCATION:SUMMIT BASEMENT#
#   #
#


[r...@lcent01:~]#which grep
/bin/grep
[r...@lcent01:~]#which cat
/bin/cat
[/code]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread m . roth
Les Mikesell wrote:
 On 9/24/2010 11:28 AM, m.r...@5-cent.us wrote:

 Apparently I don't have the java plugin browser installed.  I've tried
 to install it using the rpm.bin file at
 http://java.com/en/download/linux_manual.jsp?locale=enhost=java.com,
 but it's erroring out: /bin/sh: bad interpreter: Text file busy.

 If you want to keep it simple, I would not try to install at the same
 time the base CentOS OpenJdk RPMs and the Sun RPM.
 If you don't care much about control (in the free software sense) on
 your Java installation and just need the plugin, I guess you should go
 for the Sun RPM after uninstalling the base OpenJdk packages.

 Maybe some people on the list have other opinions / tips.

 Well, other than that openjdk has not supplied/supported the java
 browser plugin since last year, and the workaround is to install
Sun's, er,
 sorry, Oracle's java

 Has Oracle been any more sensible about building an RHEL-style (with
 appropriate locations and alternatives setup) RPM than Sun was?

Haven't seen anything yet... except where Oracle put their name in place
of Sun's in the latest release of java, and *broke* a huge amount of
software... including Eclipse, becuase for some inane Java (sorry, I'm
repeating myself) reason, they were looking for the string Sun
Microsystems, instead of *just* the version and subversion release
numbers

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Les Mikesell
On 9/24/2010 12:43 PM, Dotan Cohen wrote:

 and bind to listen on all addresses and
 answer for all your domains.


 So, then, the association of a FQDN with any particular IP address is
 only done in the domain name's control panel where the nameservers are
 set?

What's a control panel?  Bind is going to want a zone file for each 
domain where it is the primary nameserver and an A record for each host 
in that domain.  You may have some GUI tool to manage them.  But any 
instance of bind can be primary for any number of domains.  The 
association with the IP address(es) that will receive the queries 
happens when you register the domain into the public dns system and you 
can register the same server(s) as primary for many domains.

-- 
   Les Mikesell
lesmikes...@gmail.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 19:49, James A. Peltier jpelt...@sfu.ca wrote:
 BIND has listen on directives as well, but if this is a single box 
 configuration
 it's not necessarily required as it will listen on all interfaces.


Yes, I actually do want it to listen on all addresses (only one NIC),
I don't know why I thought that it had to be explicitly configured.


 As far as configuring the domains, well that's pretty simple. In your DNS 
 records for each
 domain you would define NS records such as this

 $TTL 1d
 @               IN      SOA     ns1.exampleA.com. hostmaster.exampleA.com. (
                                2010092401      ; PUT SEQUENCE NUMBER HERE 
 (/MM/DAY/CHANGE #)
                                3600            ; Refresh every hour
                                600             ; Retry   - every ten minutes
                                604800          ; Expire  - after one week
                                 1h ) ; Minimum 1H
                IN      NS      ns1.exampleA.com.
                IN      NS      ns2.exampleA.com.

 ;; Hosts Section

 ns1     IN     A     1.1.1.1
 ns2     IN     A     1.1.1.2
 www     IN     A     1.1.1.3

 Keep in mind that you don't need A records for the NS records if you are 
 pointing to a different name server so your exampleB your records might look 
 like this


 $TTL 1d
 @               IN      SOA     ns1.exampleB.com. hostmaster.exampleB.com. (
                                2010092401      ; PUT SEQUENCE NUMBER HERE 
 (/MM/DAY/CHANGE #)
                                3600            ; Refresh every hour
                                600             ; Retry   - every ten minutes
                                604800          ; Expire  - after one week
                                 1h ) ; Minimum 1H
                IN      NS      ns1.exampleA.com.
                IN      NS      ns2.exampleA.com.

 ;; Hosts Section

 www             1.1.1.4

 Notice that the NS records point to ns1 and ns2.exampleA.com.


That is quite the point: I need the nameservers for exampleA.com and
exampleB.com to be different!


 Notice the A records for www.example{A,B} which should match your
 Apache instances if you are doing IP based hosting.  If you are doing
 name based hosting you *could* DNS round robin the requests.


If the nameservers are for specific addresses, and Apache serves based
on FQDN as opposed to based on address, then I think that Apache can
answer on all addresses.


 Master and Secondary DNS configurations are defined in your
 named.conf file.  This doesn't matter in your necessarily for your
 configuration, but thought I would point it out.


 On the master

 zone examplea.com {
        type master;
        file zone.examplea.com;
        allow-transfer { ns2.examplea.com }
 };


 On the secondary

 zone examplea.com {
        type slave;
        masters { ns1.examplea.com };
        file zone.example.com;
 };



Thanks. I will do another for exampleB.com as well, to keep them separate.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread Les Mikesell
On 9/24/2010 12:55 PM, m.r...@5-cent.us wrote:

 Well, other than that openjdk has not supplied/supported the java
 browser plugin since last year, and the workaround is to install
 Sun's, er,
 sorry, Oracle's java

 Has Oracle been any more sensible about building an RHEL-style (with
 appropriate locations and alternatives setup) RPM than Sun was?

 Haven't seen anything yet... except where Oracle put their name in place
 of Sun's in the latest release of java, and *broke* a huge amount of
 software... including Eclipse, becuase for some inane Java (sorry, I'm
 repeating myself) reason, they were looking for the string Sun
 Microsystems, instead of *just* the version and subversion release
 numbers

That's interesting... Well, no, it's strange.  Does openjdk still have 
the sun name in the right place?  And I thought RH had made their 
version of eclipse work with gjc before deciding to put Sun java in 
their update stream and later going with openjdk.

-- 
   Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 19:59, Les Mikesell lesmikes...@gmail.com wrote:
 What's a control panel?

It is the web-based interface for the domain name registrar, in which
one configures the name servers for the domain name that he bought
from them.


  Bind is going to want a zone file for each
 domain where it is the primary nameserver and an A record for each host
 in that domain.

Yes.


 You may have some GUI tool to manage them.

Oh, no, I'm trying to learn the _right_ way! That's why I'm here!


 But any
 instance of bind can be primary for any number of domains.  The
 association with the IP address(es) that will receive the queries
 happens when you register the domain into the public dns system and you
 can register the same server(s) as primary for many domains.


Yes, but I'd rather have different name servers for exampleA.com and
exampleB.com. The two domain names are for competing websites, there
should be no hint that they are associated.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] grep contents of file on remote server

2010-09-24 Thread Les Mikesell
On 9/24/2010 12:50 PM, Tim Dunphy wrote:
 Hello,

   I am attempting to grep the contents of a key file I have SCP'd to a
 remote server. I am able to cat it:

 [code]
 [bluethu...@lbsd2:~]$:ssh r...@sum1 grep `cat /root/id_rsa.pub`

Put single quotes around the whole command you want to send to the 
remote.  Otherwise your local shell is going to process the backtick 
expansion before anything else.  And grep is just as capable of reading 
the file as cat anyway.

-- 
   Les Mikesell
lesmikes...@gmail.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Hakan Koseoglu
On 24 September 2010 18:04, Brunner, Brian T. bbrun...@gai-tronics.com wrote:
 No Windows functionalities are lost by installing Cygwin.
 Cygwin has the SAME uninstall that Windows does: install CentOS.
cwrsync comes with an uninstallable package and works OK, makes
copying loads of files across Windows boxen bearable. The commercial
alternatives to Cygwin are not very good either. When I raised a
ticket with one of them because a simple call to a binary inside a
shell was so incredibly slow they told me that they were twice as fast
as their main competitor, Cygwin. When I mentioned to them the same
script runs literally hundred times faster on CentOS and that's the
real competition, they shut up.

I have to admit I always thought the reason I preferred resorting to
cwcygwin when such problems knocked on my own door was my own lack of
knowledge on some uberuseful tool in Windows but it appears that's not
the case, as an out of the box scriptable platform, it is still as
pathetic as it was 10-15 years ago (even probably worse since in
Win3.1 I could record macros for the GUI).
-- 
Hakan (m1fcj) - http://www.hititgunesi.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread m . roth
Les Mikesell wrote:
 On 9/24/2010 12:55 PM, m.r...@5-cent.us wrote:

 Well, other than that openjdk has not supplied/supported the java
 browser plugin since last year, and the workaround is to install
 Sun's, er, sorry, Oracle's java

 Has Oracle been any more sensible about building an RHEL-style (with
 appropriate locations and alternatives setup) RPM than Sun was?

 Haven't seen anything yet... except where Oracle put their name in place
 of Sun's in the latest release of java, and *broke* a huge amount of
 software... including Eclipse, becuase for some inane Java (sorry, I'm
 repeating myself) reason, they were looking for the string Sun
 Microsystems, instead of *just* the version and subversion release
 numbers

 That's interesting... Well, no, it's strange.  Does openjdk still have
 the sun name in the right place?  And I thought RH had made their
 version of eclipse work with gjc before deciding to put Sun java in
 their update stream and later going with openjdk.

No idea, but here's the tale:
http://it.slashdot.org/story/10/07/28/2121259/Oracles-Java-Company-Change-Breaks-Eclipse

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Les Mikesell
On 9/24/2010 1:07 PM, Dotan Cohen wrote:

   But any
 instance of bind can be primary for any number of domains.  The
 association with the IP address(es) that will receive the queries
 happens when you register the domain into the public dns system and you
 can register the same server(s) as primary for many domains.


 Yes, but I'd rather have different name servers for exampleA.com and
 exampleB.com. The two domain names are for competing websites, there
 should be no hint that they are associated.

Probably a waste of time.  If anyone cares, they'll track down the 
domain and IP range ownership anyway (there are sites that do it 
automatically).  So unless you've used company aliases in the domain 
registration and gotten separate isp connections for your addresses the 
connection will still show.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread Les Mikesell
On 9/24/2010 1:15 PM, m.r...@5-cent.us wrote:

 That's interesting... Well, no, it's strange.  Does openjdk still have
 the sun name in the right place?  And I thought RH had made their
 version of eclipse work with gjc before deciding to put Sun java in
 their update stream and later going with openjdk.

 No idea, but here's the tale:
 http://it.slashdot.org/story/10/07/28/2121259/Oracles-Java-Company-Change-Breaks-Eclipse

A couple of notes: (a) it only affected windows - has to do with needing 
to know platform-specific options when starting the initial jvm, and (b) 
an update backed out the change in a couple of days.  So overall, I'd 
say worse things have happened - and in things like gcc.

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] performance and interrupts

2010-09-24 Thread Mag Gam
Thanks for the reply.

I am just playing around to understand this.


On Fri, Sep 24, 2010 at 9:43 AM, JohnS jse...@gmail.com wrote:

 On Fri, 2010-09-24 at 08:57 -0400, Mag Gam wrote:
 I am playing around with irqbalance to tune my 8 core system so I came
 across this page,
 http://kb.fusionio.com/KB/a65/irqbalance-avoid-overloading-cpu-0-with-interrupt-requests.aspx

 Now, lets say I disable irqbalance which will stop my autobalance and
 I pin all of my interrupts to core 0 and pin eth0 and eth1 to core 1.
 My application is network and CPU hungry. I am planning to dedicate
 cpu 3 to 8 for the application using taskset.  Is there any draw back
 to this?
 ---
 NO but be aware of what your doing as to not starve out Kernel Threads.
 Whats the kernel? It want hurt to give them priority either. Gbit and
 higher nics I would give them there own cpu.  It may take quit a while
 to come up with the optimal configuration though.
 Example:
 cpu0 app priority 60 - 99 no ionice is app dependent
 cpu1 app
 cpu2 eth0
 cpu3 eth1
 cpu4 fusionio
 cpu5 fusionio
 cpu6 kthreads
 cpu7 kthreads, misc

 John

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 20:18, Les Mikesell lesmikes...@gmail.com wrote:
 Probably a waste of time.  If anyone cares, they'll track down the
 domain and IP range ownership anyway (there are sites that do it
 automatically).  So unless you've used company aliases in the domain
 registration and gotten separate isp connections for your addresses the
 connection will still show.


I know. The domain names _are_ in fact registered to different
entities, though. The best hint is that the nameservers are on the
same C block.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread Keith Roberts

On Fri, 24 Sep 2010, Mathieu Baudier wrote:


To: CentOS mailing list centos@centos.org
From: Mathieu Baudier mbaud...@argeo.org
Subject: Re: [CentOS] CentOS, Firefox, and Java Plugin


Apparently I don't have the java plugin browser installed.  I've tried
to install it using the rpm.bin file at
http://java.com/en/download/linux_manual.jsp?locale=enhost=java.com,
but it's erroring out: /bin/sh: bad interpreter: Text file busy.


If you want to keep it simple, I would not try to install at the same
time the base CentOS OpenJdk RPMs and the Sun RPM.
If you don't care much about control (in the free software sense) on
your Java installation and just need the plugin, I guess you should go
for the Sun RPM after uninstalling the base OpenJdk packages.

Maybe some people on the list have other opinions / tips.


Here's a link on the Centos forum regarding Java:

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=27062forum=38post_id=111413#forumpost111413

FWIW - Eclipse IDE 3.6.0 Helios from upstream will NOT work 
with the default Centos Java package. So you will need to 
install Sun's Java to get Eclipse working on Centos.


HTH

Keith Roberts

-
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread Keith Roberts
On Fri, 24 Sep 2010, Les Mikesell wrote:

 To: centos@centos.org
 From: Les Mikesell lesmikes...@gmail.com
 Subject: Re: [CentOS] CentOS, Firefox, and Java Plugin
 
 On 9/24/2010 12:55 PM, m.r...@5-cent.us wrote:

 Well, other than that openjdk has not supplied/supported the java
 browser plugin since last year, and the workaround is to install
 Sun's, er,
 sorry, Oracle's java

 Has Oracle been any more sensible about building an RHEL-style (with
 appropriate locations and alternatives setup) RPM than Sun was?

 Haven't seen anything yet... except where Oracle put their name in place
 of Sun's in the latest release of java, and *broke* a huge amount of
 software... including Eclipse, becuase for some inane Java (sorry, I'm
 repeating myself) reason, they were looking for the string Sun
 Microsystems, instead of *just* the version and subversion release
 numbers

 That's interesting... Well, no, it's strange.  Does openjdk still have
 the sun name in the right place?  And I thought RH had made their
 version of eclipse work with gjc before deciding to put Sun java in
 their update stream and later going with openjdk.

Well yes, it does work OK. The point being though it's an 
old (stable) release of Eclipse, but nothing near the current 
Eclipse 3.6.0 Helios release.

I'm in the middle of moving now, but when the dust settles I 
will put my 'Installing Eclipse Helios 3.6.0 for PHP 
developers' on Centos 5.5 on my site. It covers Java, 
Xdebug, PDT, necessary repos, and starting to use the PDT 
plugin for debugging local and remote PHP scripts. I might 
even throw in a few screencasts. But that's another story 
getting OT now.

Best Wishes,

Keith Roberts

-
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-





 --
   Les Mikesell
 lesmikes...@gmail.com
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] mcelog

2010-09-24 Thread m . roth
Ok, we've got a new machine that's throwing ECC errors. I've gotten new
memory overnighted to me from the manufacturer, and replaced it, oops, not
that end of the bank, as their support told me, this end of the bank, as
the mobo manual I found online shows (Supermicro).

Still throwing errors. Ok, try to get more info Last week, I moved
/var/log/mcelog to /var/log/mcelog.1, and touched /var/log/mcelog. This
week, I tried running mcelog manually, and via /etc/cron.hourly/mcelog,
and get *nothing* at all. /var/log/message only screams that there are ECC
errors, so I need more data. I've even tried reinstalling mcelog, but no
joy.

Anyone got any ideas here, how to get it to say something?

   mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread Les Mikesell
On 9/24/2010 2:23 PM, Keith Roberts wrote:

 Well yes, it does work OK. The point being though it's an
 old (stable) release of Eclipse, but nothing near the current
 Eclipse 3.6.0 Helios release.

 I'm in the middle of moving now, but when the dust settles I
 will put my 'Installing Eclipse Helios 3.6.0 for PHP
 developers' on Centos 5.5 on my site. It covers Java,
 Xdebug, PDT, necessary repos, and starting to use the PDT
 plugin for debugging local and remote PHP scripts. I might
 even throw in a few screencasts. But that's another story
 getting OT now.

My take on things is that java and a lot of other things are really 
intended to work with several versions concurrently available - and 
perhaps running concurrently, where RPM wants to only have one and even 
with alternatives can only make one the default.  So any time you don't 
want the defaults, you have some design decisions to make.  Still, I'm 
surprised that Sun and RH didn't make nice and have a publicly available 
RPM that puts things in RH-style places.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Question on installing .run file

2010-09-24 Thread Jerry Geis
I am trying to automate the install of the ati driver package.
Basically all I do is hit return about 6 times and take all the defaults.

I tried to do this in a file that I then made executable with 744:

sh ati-driver-installer-10-8-x86.x86_64.run  EOF









EOF



but then it starts like its doing something but never does anything.

How might I automate such an install script. Again all I do is hit 
return 6 times
and accept all the defaults.

Thanks,

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
Thank you for all the help so far. To conclude:
I have one physical server that answers to the following IP addresses:
1.1.1.1
1.1.1.2
1.1.1.3
1.1.1.4

I need 1.1.1.1  1.1.1.2 to be the name servers for exampleA.com, and
1.1.1.3  1.1.1.4 to be the nameservers for exampleB.com. I have these
files:

# cat /etc/named.conf

options {
directory /etc;
pid-file /var/run/named/named.pid;
listen-on {
any;
};
};

zone . {
type hint;
file /etc/db.cache;
};

zone exampleA.com {
type master;
file /var/named/exampleA.com.hosts;
};
zone exampleB.com {
type master;
file /var/named/exampleB.com.hosts;
};



# cat /var/named/exampleA.com.hosts

$ORIGIN exampleA.com.
$TTL 1h
exampleA.com. IN  SOA ns1.exampleA.com. ns2.exampleA.com. (
1; Serial - increment me
10800
3600
604800
38400 )
exampleA.com. IN  NS  ns1.exampleA.com.
exampleA.com. IN  NS  ns2.exampleA.com.
exampleA.com. IN  A   1.1.1.1
exampleA.com. IN  A   1.1.1.2



# cat /var/named/exampleB.com.hosts

$ORIGIN exampleB.com.
$TTL 1h
exampleB.com. IN  SOA ns1.exampleB.com. ns2.exampleB.com. (
1; Serial - increment me
10800
3600
604800
38400 )
exampleB.com. IN  NS  ns1.exampleB.com.
exampleB.com. IN  NS  ns2.exampleB.com.
exampleB.com. IN  A   1.1.1.3
exampleB.com. IN  A   1.1.1.4



How does that look?

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS, Firefox, and Java Plugin

2010-09-24 Thread Keith Roberts
On Fri, 24 Sep 2010, Les Mikesell wrote:

 To: centos@centos.org
 From: Les Mikesell lesmikes...@gmail.com
 Subject: Re: [CentOS] CentOS, Firefox, and Java Plugin
 
 On 9/24/2010 2:23 PM, Keith Roberts wrote:

 Well yes, it does work OK. The point being though it's an
 old (stable) release of Eclipse, but nothing near the current
 Eclipse 3.6.0 Helios release.

 I'm in the middle of moving now, but when the dust settles I
 will put my 'Installing Eclipse Helios 3.6.0 for PHP
 developers' on Centos 5.5 on my site. It covers Java,
 Xdebug, PDT, necessary repos, and starting to use the PDT
 plugin for debugging local and remote PHP scripts. I might
 even throw in a few screencasts. But that's another story
 getting OT now.

 My take on things is that java and a lot of other things are really
 intended to work with several versions concurrently available - and
 perhaps running concurrently, where RPM wants to only have one and even
 with alternatives can only make one the default.  So any time you don't
 want the defaults, you have some design decisions to make.  Still, I'm
 surprised that Sun and RH didn't make nice and have a publicly available
 RPM that puts things in RH-style places.

Granted. My workaround is to just point apps to the 
particular version of the JVM I want to use to run it, 
without trying to uninstall the default Java package. For 
example, running Eclipse with Sun's (Oracle's) Java:

To run Eclipse with an alternate Java runtime environment, 
the path to the Java virtual machine's binary must be 
identified.

Once the path to the virtual machine's binary has been 
identified, try running Eclipse with the following command:

  ./eclipse -vm /path/to/jre/bin/java

For an actual example, it might look something like the 
following:

./eclipse -vm /usr/lib/jvm/sun-java-6/bin/java
./eclipse -vm /opt/sun-jdk-1.6.0.02/bin/java

Regards,

Keith

-
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread James A. Peltier


- Original Message -
| Thank you for all the help so far. To conclude:
| I have one physical server that answers to the following IP addresses:
| 1.1.1.1
| 1.1.1.2
| 1.1.1.3
| 1.1.1.4
| 
| I need 1.1.1.1  1.1.1.2 to be the name servers for exampleA.com, and
| 1.1.1.3  1.1.1.4 to be the nameservers for exampleB.com. I have these
| files:
| 
| # cat /etc/named.conf
| 
| options {
| directory /etc;
| pid-file /var/run/named/named.pid;
| listen-on {
| any;
| };
| };
| 
| zone . {
| type hint;
| file /etc/db.cache;
| };
| 
| zone exampleA.com {
| type master;
| file /var/named/exampleA.com.hosts;
| };
| zone exampleB.com {
| type master;
| file /var/named/exampleB.com.hosts;
| };
| 
| 
| 
| # cat /var/named/exampleA.com.hosts
| 
| $ORIGIN exampleA.com.
| $TTL 1h
| exampleA.com. IN SOA ns1.exampleA.com. ns2.exampleA.com. (
| 1; Serial - increment me
| 10800
| 3600
| 604800
| 38400 )
| exampleA.com. IN NS ns1.exampleA.com.
| exampleA.com. IN NS ns2.exampleA.com.
| exampleA.com. IN A 1.1.1.1
| exampleA.com. IN A 1.1.1.2

formatting for NS records is incorrect.  It should just read

   NS ns1.exampleA.com
   NS ns2.exampleA.com

where is your ns1.exampleA.com entry?
where is your ns2.exampleA.com entry?


| # cat /var/named/exampleB.com.hosts
| 
| $ORIGIN exampleB.com.
| $TTL 1h
| exampleB.com. IN SOA ns1.exampleB.com. ns2.exampleB.com. (
| 1; Serial - increment me
| 10800
| 3600
| 604800
| 38400 )
| exampleB.com. IN NS ns1.exampleB.com.
| exampleB.com. IN NS ns2.exampleB.com.
| exampleB.com. IN A 1.1.1.3
| exampleB.com. IN A 1.1.1.4

NS records are same as above.  Correct your formatting.

A records are not needed for NS records from a different zone, only for that 
zone

| How does that look?

Broken! :)

--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_s...@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread James A. Peltier


- Original Message -
| - Original Message -
| | Thank you for all the help so far. To conclude:
| | I have one physical server that answers to the following IP
| | addresses:
| | 1.1.1.1
| | 1.1.1.2
| | 1.1.1.3
| | 1.1.1.4
| |
| | I need 1.1.1.1  1.1.1.2 to be the name servers for exampleA.com,
| | and
| | 1.1.1.3  1.1.1.4 to be the nameservers for exampleB.com. I have
| | these
| | files:
| |
| | # cat /etc/named.conf
| |
| | options {
| | directory /etc;
| | pid-file /var/run/named/named.pid;
| | listen-on {
| | any;
| | };
| | };
| |
| | zone . {
| | type hint;
| | file /etc/db.cache;
| | };
| |
| | zone exampleA.com {
| | type master;
| | file /var/named/exampleA.com.hosts;
| | };
| | zone exampleB.com {
| | type master;
| | file /var/named/exampleB.com.hosts;
| | };
| |
| |
| |
| | # cat /var/named/exampleA.com.hosts
| |
| | $ORIGIN exampleA.com.
| | $TTL 1h
| | exampleA.com. IN SOA ns1.exampleA.com. ns2.exampleA.com. (
| | 1; Serial - increment me
| | 10800
| | 3600
| | 604800
| | 38400 )
| | exampleA.com. IN NS ns1.exampleA.com.
| | exampleA.com. IN NS ns2.exampleA.com.
| | exampleA.com. IN A 1.1.1.1
| | exampleA.com. IN A 1.1.1.2
| 
| formatting for NS records is incorrect. It should just read
| 
| NS ns1.exampleA.com
| NS ns2.exampleA.com
| 

correction!  It should read

   NS ns1.exampleA.com.

Please note the trailing period


| where is your ns1.exampleA.com entry?
| where is your ns2.exampleA.com entry?
| 
| 
| | # cat /var/named/exampleB.com.hosts
| |
| | $ORIGIN exampleB.com.
| | $TTL 1h
| | exampleB.com. IN SOA ns1.exampleB.com. ns2.exampleB.com. (
| | 1; Serial - increment me
| | 10800
| | 3600
| | 604800
| | 38400 )
| | exampleB.com. IN NS ns1.exampleB.com.
| | exampleB.com. IN NS ns2.exampleB.com.
| | exampleB.com. IN A 1.1.1.3
| | exampleB.com. IN A 1.1.1.4
| 
| NS records are same as above. Correct your formatting.
| 
| A records are not needed for NS records from a different zone, only
| for that zone
| 
| | How does that look?
| 
| Broken! :)
| 
| --
| James A. Peltier
| Systems Analyst (FASNet), VIVARIUM Technical Director
| Simon Fraser University - Burnaby Campus
| Phone : 778-782-6573
| Fax : 778-782-3045
| E-Mail : jpelt...@sfu.ca
| Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
| MSN : subatomic_s...@hotmail.com
| 
| Does your OS has a man 8 lart?
| http://www.xinu.nl/unix/humour/asr-manpages/lart.html
| 
| 
| ___
| CentOS mailing list
| CentOS@centos.org
| http://lists.centos.org/mailman/listinfo/centos

-- 
--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_s...@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 22:06, James A. Peltier jpelt...@sfu.ca wrote:
 formatting for NS records is incorrect.  It should just read

                   NS ns1.exampleA.com.
                   NS ns2.exampleA.com.


Thanks. (I added the periods)

 where is your ns1.exampleA.com entry?
 where is your ns2.exampleA.com entry?


Where _should_ they be? So far as I've been able to google, I cannot
tell... This is what all the examples look like that I have been able
to find.


 Broken! :)


Ou!


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
Ah, some better examples here:
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-bind-zone.html

How is this file:

# cat /var/named/exampleA.com.hosts

$ORIGIN exampleA.com.
$TTL 1h
exampleA.com. IN  SOA ns1.exampleA.com. ns2.exampleA.com. (
1; Serial - increment me
10800
3600
604800
38400 )
  IN  NS  ns1.exampleA.com.
  IN  NS  ns2.exampleA.com.
exampleA.com. IN  A   1.1.1.1
exampleA.com. IN  A   1.1.1.2
ns1   IN  A   1.1.1.1
ns2   IN  A   1.1.1.2






-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Alexander Dalloz
Am 24.09.2010 22:12, schrieb Dotan Cohen:
 On Fri, Sep 24, 2010 at 22:06, James A. Peltier jpelt...@sfu.ca wrote:
 formatting for NS records is incorrect.  It should just read

   NS ns1.exampleA.com.
   NS ns2.exampleA.com.

 
 Thanks. (I added the periods)
 
 where is your ns1.exampleA.com entry?
 where is your ns2.exampleA.com entry?

 
 Where _should_ they be? So far as I've been able to google, I cannot
 tell... This is what all the examples look like that I have been able
 to find.
 
 
 Broken! :)

 
 Ou!

http://www.zytrax.com/books/dns/

That is a good source to read up about bind configuration.

As a sidenote please be aware, that if someone directly queries your
ns1.exampleA.com for exampleB.com zone records he will get proper
answers. If you would need to prevent this for any reason you would need
a extended bind config design using views.

While the zytrax book has lessons about views you can too find a resource in

http://www.cymru.com/Documents/secure-bind-template.html

Regards

Alexander
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] grep contents of file on remote server

2010-09-24 Thread Robert Heller
At Fri, 24 Sep 2010 13:50:11 -0400 CentOS mailing list centos@centos.org 
wrote:

 
 Hello,
 
  I am attempting to grep the contents of a key file I have SCP'd to a
 remote server. I am able to cat it:
 
 [code]
 [bluethu...@lbsd2:~]$:ssh r...@sum1 cat /root/id_rsa.pub
 r...@lcent01.summitnjhome.com's password:
 ssh-rsa 
 B3NzaC1yc2EBIwAAAQEApnUSYyrM96qIBZKjwSNYycgeSv/FAKE-KEY-DATA--KEY-DATA-PWReyVuOn9Fb/uH/FAKE-KEY-DATA-+ttLzUELGrfn/n+FAKE-KEY-DATA-/FAKE-KEY-DATA-/FAKE-KEY-DATA-/FAKE-KEY-DATA-==
 bluethu...@lbsd8-2.summitnjhome.com
 [/code]
 
 But I cannot cat / grep it in order to determine if this key is
 already in the authorized_hosts file of the remote host.
 
 [code]
 [bluethu...@lbsd2:~]$:ssh r...@sum1 grep `cat /root/id_rsa.pub`
   ^^
Why the backticks around cat? The above evaluates the *local*
/root/id_rsa.pub, and then passes the result lines as arguments
(filenames) to grep on the remote machine, which of course makes no
sense...

What does the output of 

ssh r...@sum1 grep `hostname` /root/id_rsa.pub

display?  You don't need to cat the file to grep it.  Grep does
understand how to use fopen() all by itself, it does not need any help
from cat... :-)


 /root/.ssh/id_rsa.pub
 r...@lcent01.summitnjhome.com's password:
 /root/.ssh/id_rsa.pub:ssh-rsa ssh-rsa
 B3NzaC1yc2EBIwAAAQEApnUSYyrM96qIBZKjwSNYycgeSv/FAKE-KEY-DATA--KEY-DATA-PWReyVuOn9Fb/uH/FAKE-KEY-DATA-+ttLzUELGrfn/n+FAKE-KEY-DATA-/FAKE-KEY-DATA-/FAKE-KEY-DATA-/FAKE-KEY-DATA-==
 bluethu...@lbsd8-2.summitnjhome.com==: No such file or directory
 grep: r...@bt-laptop: No such file or directory
 [/code]
 
 Ultimately, what I would like to do is script this in order to
 automate this process:
 
 [code]
 #!/bin/sh
 HOSTS=sum1 sum2 virt1 virt2 virt3 virt4 virt5 virt6 virt7
 SSHDIR=~/.ssh
 RSYNC=/usr/local/bin/rsync
 KEYFILE=/home/bluethundr/.ssh/id_rsa.pub
 CAT='/bin/cat'
 GREP='/bin/grep'
 
 for h in $HOSTS ; do
  scp $KEYFILE r...@$h:~/
  if   [ $? = 0 ]; then
   echo ;  echo ;  echo
   echo KEY TRANSFERRED TO $h
  else
echo KEY Transfer To $h has FAILED
exit 1
  fi
  ssh r...@$h $CAT /root/id_rsa.pub | $GREP -i /root/.ssh/authorized_keys
  if [ $? = 1 ]; then
   ssh r...@$h $CAT /root/id_rsa.pub  /root/.ssh/authorized_keys
   if   [ $? = 0 ]; then
   echo ;  echo ;  echo
   echo KEY APPENDED TO $h Authorized Hosts
  else
echo KEY APPEND FAILED
  fi
  exit 1
 fi
 done
 [/code]
 
 This is what results from the above script:
 
 [code]
 [bluethu...@lbsd2:~/bin]$:./key-export.sh
 r...@lcent01.summitnjhome.com's password:
 id_rsa.pub
 100%  417
 0.4KB/s   00:00
 
 
 
 KEY TRANSFERRED TO sum1
 ./key-export.sh: /bin/grep: not found
 r...@lcent01.summitnjhome.com's password:
 [/code]
 
 And I'm pretty sure I have those variables set correctly in order to
 execute those commands:
 
 [code]
 [bluethu...@lbsd2:~/bin]$:ssh r...@sum1
 r...@lcent01.summitnjhome.com's password:
 Last login: Fri Sep 24 07:34:02 2010 from 192.168.1.44
 #
 #   SUMMITNJHOME.COM#
 #   TITLE:   LCENT01  BOX   #
 #   LOCATION:SUMMIT BASEMENT#
 #   #
 #
 
 
 [r...@lcent01:~]#which grep
 /bin/grep
 [r...@lcent01:~]#which cat
 /bin/cat
 [/code]
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 
  

-- 
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software-- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
hel...@deepsoft.com   -- Contract Programming: C/C++, Tcl/Tk


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Robert Heller
At Fri, 24 Sep 2010 19:43:11 +0200 CentOS mailing list centos@centos.org 
wrote:

 
 On Fri, Sep 24, 2010 at 19:38, Les Mikesell lesmikes...@gmail.com wrote:
  You are making it much more complicated than necessary.
 
 That is what I suspected! I know that when Linux gets difficult, it is
 because I'm doing it wrong!
 
 
  I'd configure
  apache to use named virtual hosts and listen on all addresses (but you
  might want to tie https to specific addresses so you can tie connections
  to the right certificates),
 
 Exactly how it is configured.
 
 
  and bind to listen on all addresses and
  answer for all your domains.
 
 
 So, then, the association of a FQDN with any particular IP address is
 only done in the domain name's control panel where the nameservers are
 set?

It is in bind's database (zone files).  In named.conf you associate
domains (all but the leftmost part of the FQDN) with zone files and
zone files map from hostnames (left-most part of the FQDN) to ip
addresses.

Fragment of named.conf:

zone deepsoft.com {
type master;
file deepsoft.com.zone;
// IP addresses of slave servers allowed to transfer
deepsoft.com
allow-transfer { any; };
};

zone wendellfullmoon.org {
type master;
file wendellfullmoon.org.zone;
// IP addresses of slave servers allowed to transfer
deepsoft.com
allow-transfer { any;};
};


In deepsoft.com.zone file are 'IN A' records that bind mumble.deepsoft.com to
some IP address and in wendellfullmoon.org.zone are 'IN A' records that
bind mumble.are 'IN A' records that bind mumble.wendellfullmoon.org to
some IP address.

 
 

-- 
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software-- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
hel...@deepsoft.com   -- Contract Programming: C/C++, Tcl/Tk

 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Robert Heller
At Fri, 24 Sep 2010 21:05:25 +0200 CentOS mailing list centos@centos.org 
wrote:

 
 On Fri, Sep 24, 2010 at 20:18, Les Mikesell lesmikes...@gmail.com wrote:
  Probably a waste of time.  If anyone cares, they'll track down the
  domain and IP range ownership anyway (there are sites that do it
  automatically).  So unless you've used company aliases in the domain
  registration and gotten separate isp connections for your addresses the
  connection will still show.
 
 
 I know. The domain names _are_ in fact registered to different
 entities, though. The best hint is that the nameservers are on the
 same C block.

Which is still meaningless.  Some name servers serve *hundreds* of web
sites, many competing with each other.  Often large hosting companies
will serve hundreds of web sites, all with the *same* IP address and
many in competion with each other.  As a line of reasearch, this is
somewhat fruitless.  And it is doubtful anyone would really care --
anyone who is tech savey enough to know how use dig, whois, etc. knows
how BIND and Apache work and know all about virtual hosting, etc.

 
 

-- 
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software-- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
hel...@deepsoft.com   -- Contract Programming: C/C++, Tcl/Tk


 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 22:24, Alexander Dalloz ad+li...@uni-x.org wrote:
 http://www.zytrax.com/books/dns/

 That is a good source to read up about bind configuration.

 As a sidenote please be aware, that if someone directly queries your
 ns1.exampleA.com for exampleB.com zone records he will get proper
 answers. If you would need to prevent this for any reason you would need
 a extended bind config design using views.

 While the zytrax book has lessons about views you can too find a resource in

 http://www.cymru.com/Documents/secure-bind-template.html


Wow, thank you! There is some good reading there, especially the
security link. Lots of little holes to exploit!

I will be up for the night!

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 22:24, Robert Heller hel...@deepsoft.com wrote:
 Which is still meaningless.  Some name servers serve *hundreds* of web
 sites, many competing with each other.  Often large hosting companies
 will serve hundreds of web sites, all with the *same* IP address and
 many in competion with each other.  As a line of reasearch, this is
 somewhat fruitless.  And it is doubtful anyone would really care --
 anyone who is tech savey enough to know how use dig, whois, etc. knows
 how BIND and Apache work and know all about virtual hosting, etc.


Agreed 100%. But I'm not the only decision-maker and I'm learning in
the process anyway. This seems to be a rite-of-passage that I should
have gone through some time ago.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 22:24, Robert Heller hel...@deepsoft.com wrote:
 So, then, the association of a FQDN with any particular IP address is
 only done in the domain name's control panel where the nameservers are
 set?

 It is in bind's database (zone files).  In named.conf you associate
 domains (all but the leftmost part of the FQDN) with zone files and
 zone files map from hostnames (left-most part of the FQDN) to ip
 addresses.


Thank you. That is quite what I had suspected, and of course the zone
files that I am experimenting with reflect that. How is this:


# cat /var/named/exampleA.com.hosts

$ORIGIN exampleA.com.
$TTL 1h
exampleA.com. IN  SOA ns1.exampleA.com. ns2.exampleA.com. (
   1; Serial - increment me
   10800
   3600
   604800
   38400 )
 IN  NS  ns1.exampleA.com.
 IN  NS  ns2.exampleA.com.
exampleA.com. IN  A   1.1.1.1
exampleA.com. IN  A   1.1.1.2
ns1   IN  A   1.1.1.1
ns2   IN  A   1.1.1.2


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Robert Heller
At Fri, 24 Sep 2010 21:58:09 +0200 CentOS mailing list centos@centos.org 
wrote:

 
 Thank you for all the help so far. To conclude:
 I have one physical server that answers to the following IP addresses:
 1.1.1.1
 1.1.1.2
 1.1.1.3
 1.1.1.4
 
 I need 1.1.1.1  1.1.1.2 to be the name servers for exampleA.com, and
 1.1.1.3  1.1.1.4 to be the nameservers for exampleB.com. I have these
 files:
 
 # cat /etc/named.conf
 
 options {
 directory /etc;
 pid-file /var/run/named/named.pid;
 listen-on {
 any;
 };
 };
 
 zone . {
 type hint;
 file /etc/db.cache;
 };
 
 zone exampleA.com {
 type master;
 file /var/named/exampleA.com.hosts;
 };
 zone exampleB.com {
 type master;
 file /var/named/exampleB.com.hosts;
 };
 
 
 
 # cat /var/named/exampleA.com.hosts
 
 $ORIGIN exampleA.com.
 $TTL 1h
 exampleA.com. IN  SOA ns1.exampleA.com. ns2.exampleA.com. (
 1; Serial - increment me
 10800
 3600
 604800
 38400 )
 exampleA.com. IN  NS  ns1.exampleA.com.
 exampleA.com. IN  NS  ns2.exampleA.com.
 exampleA.com. IN  A   1.1.1.1
 exampleA.com. IN  A   1.1.1.2

You need:

ns1.exampleA.com. IN  A   1.1.1.1
ns2.exampleA.com. IN  A   1.1.1.2

And you might also consider:

www.exampleA.com. IN  A   1.1.1.1
www.exampleA.com. IN  A   1.1.1.2



 
 
 
 # cat /var/named/exampleB.com.hosts
 
 $ORIGIN exampleB.com.
 $TTL 1h
 exampleB.com. IN  SOA ns1.exampleB.com. ns2.exampleB.com. (
 1; Serial - increment me
 10800
 3600
 604800
 38400 )
 exampleB.com. IN  NS  ns1.exampleB.com.
 exampleB.com. IN  NS  ns2.exampleB.com.
 exampleB.com. IN  A   1.1.1.3
 exampleB.com. IN  A   1.1.1.4

And:

ns1.exampleB.com. IN  A   1.1.1.3
ns2.exampleB.com. IN  A   1.1.1.4

And you might want to consider:

www.exampleB.com. IN  A   1.1.1.3
www.exampleB.com. IN  A   1.1.1.4


 
 
 
 How does that look?
 

-- 
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software-- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
hel...@deepsoft.com   -- Contract Programming: C/C++, Tcl/Tk

 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Robert Heller
At Fri, 24 Sep 2010 22:12:44 +0200 CentOS mailing list centos@centos.org 
wrote:

 
 On Fri, Sep 24, 2010 at 22:06, James A. Peltier jpelt...@sfu.ca wrote:
  formatting for NS records is incorrect.  It should just read
 
                    NS ns1.exampleA.com.
                    NS ns2.exampleA.com.
 
 
 Thanks. (I added the periods)
 
  where is your ns1.exampleA.com entry?
  where is your ns2.exampleA.com entry?
 
 
 Where _should_ they be? So far as I've been able to google, I cannot
 tell... This is what all the examples look like that I have been able
 to find.

With the rest of the IN A records for exampleA.com (and correspondingly
for exampleB.com).  You need *addresses* for your name servers as well
as for your web servers.  And you might also want to have www.mumble
address records as well.  And if these site are sending E-Mail, MX
records would be *polite*.  MTAs often toss E-Mail from addresses
lacking MX records...  And if you have a MX record pointing to
mail.exampleA.com and/or mail.exampleB.com, you will need IN A records
for the mail. hosts as well.  Or you can use CNAME records.

 
 
  Broken! :)
 
 
 Ou!
 
 

-- 
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software-- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
hel...@deepsoft.com   -- Contract Programming: C/C++, Tcl/Tk



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Les Mikesell
On 9/24/2010 3:39 PM, Dotan Cohen wrote:
 On Fri, Sep 24, 2010 at 22:24, Robert Hellerhel...@deepsoft.com  wrote:
 So, then, the association of a FQDN with any particular IP address is
 only done in the domain name's control panel where the nameservers are
 set?

 It is in bind's database (zone files).  In named.conf you associate
 domains (all but the leftmost part of the FQDN) with zone files and
 zone files map from hostnames (left-most part of the FQDN) to ip
 addresses.


 Thank you. That is quite what I had suspected, and of course the zone
 files that I am experimenting with reflect that. How is this:


 # cat /var/named/exampleA.com.hosts

 $ORIGIN exampleA.com.
 $TTL 1h
 exampleA.com. IN  SOA ns1.exampleA.com. ns2.exampleA.com. (
 1; Serial - increment me
 10800
 3600
 604800
 38400 )
   IN  NS  ns1.exampleA.com.
   IN  NS  ns2.exampleA.com.
 exampleA.com. IN  A   1.1.1.1
 exampleA.com. IN  A   1.1.1.2
 ns1   IN  A   1.1.1.1
 ns2   IN  A   1.1.1.2


I think that's reasonable - but note that from the rest of the world's 
perspective the ns1, ns2 IP's are going to come from the glue records 
from the upstream DNS that would have been added when you registered the 
servers as primary for the domain.  For anything else, the query gets 
passed on to your server.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 22:41, Robert Heller hel...@deepsoft.com wrote:
 You need:

 ns1.exampleA.com. IN      A       1.1.1.1
 ns2.exampleA.com. IN      A       1.1.1.2


Here I have found conflicting information, it seems that some sources
suggest this instead:
ns1 IN  A   1.1.1.1
ns2 IN  A   1.1.1.2

Any idea?

 And you might also consider:

 www.exampleA.com. IN      A       1.1.1.1
 www.exampleA.com. IN      A       1.1.1.2


Yes, of course! Thanks.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 22:41, Robert Heller hel...@deepsoft.com wrote:
 With the rest of the IN A records for exampleA.com (and correspondingly
 for exampleB.com).  You need *addresses* for your name servers as well
 as for your web servers.

I see.


  And you might also want to have www.mumble
 address records as well.

Added!


  And if these site are sending E-Mail, MX
 records would be *polite*.  MTAs often toss E-Mail from addresses
 lacking MX records...  And if you have a MX record pointing to
 mail.exampleA.com and/or mail.exampleB.com, you will need IN A records
 for the mail. hosts as well.  Or you can use CNAME records.


Thanks. There will be no email, though.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 22:47, Les Mikesell lesmikes...@gmail.com wrote:
 I think that's reasonable - but note that from the rest of the world's
 perspective the ns1, ns2 IP's are going to come from the glue records
 from the upstream DNS that would have been added when you registered the
 servers as primary for the domain.  For anything else, the query gets
 passed on to your server.


I did see mention of the term glue records earlier while googling,
only now am I googling it...

Oh, it looks like I may need to set those too. When I configured
ns1.exampleA.com  ns2.exampleA.com in the registrar's control panel,
I did enter the 1.1.1.1  1.1.1.2 addresses. Should that be enough?

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread James A. Peltier


- Original Message -
| On Fri, Sep 24, 2010 at 22:41, Robert Heller hel...@deepsoft.com
| wrote:
|  You need:
| 
|  ns1.exampleA.com. IN A 1.1.1.1
|  ns2.exampleA.com. IN A 1.1.1.2
| 
| 
| Here I have found conflicting information, it seems that some sources
| suggest this instead:
| ns1 IN A 1.1.1.1
| ns2 IN A 1.1.1.2
| 
| Any idea?
| 
|  And you might also consider:
| 
|  www.exampleA.com. IN A 1.1.1.1
|  www.exampleA.com. IN A 1.1.1.2
| 
| 
| Yes, of course! Thanks.
| 
| --
| Dotan Cohen
| 
| http://gibberish.co.il
| http://what-is-what.com
| ___
| CentOS mailing list
| CentOS@centos.org
| http://lists.centos.org/mailman/listinfo/centos


This is a matter of preference, but may depend on your configuration too.  I'm 
lazy so I use short form

http://www.zytrax.com/books/dns/ch6/mydomain.html


--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_s...@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html

-- 
--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_s...@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread James A. Peltier


- Original Message -
| - Original Message -
| | On Fri, Sep 24, 2010 at 22:41, Robert Heller hel...@deepsoft.com
| | wrote:
| |  You need:
| | 
| |  ns1.exampleA.com. IN A 1.1.1.1
| |  ns2.exampleA.com. IN A 1.1.1.2
| | 
| |
| | Here I have found conflicting information, it seems that some
| | sources
| | suggest this instead:
| | ns1 IN A 1.1.1.1
| | ns2 IN A 1.1.1.2
| |
| | Any idea?
| |
| |  And you might also consider:
| | 
| |  www.exampleA.com. IN A 1.1.1.1
| |  www.exampleA.com. IN A 1.1.1.2
| | 
| |
| | Yes, of course! Thanks.
| |
| | --
| | Dotan Cohen
| |
| | http://gibberish.co.il
| | http://what-is-what.com
| | ___
| | CentOS mailing list
| | CentOS@centos.org
| | http://lists.centos.org/mailman/listinfo/centos
| 
| 
| This is a matter of preference, but may depend on your configuration
| too. I'm lazy so I use short form
| 
| http://www.zytrax.com/books/dns/ch6/mydomain.html

Damn fingers!

It depends on your configuration because if you don't define $ORIGIN 
example.com. you need to fully qualify

--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_s...@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 23:13, James A. Peltier jpelt...@sfu.ca wrote:

 |  You need:
 | 
 |  ns1.exampleA.com. IN A 1.1.1.1
 |  ns2.exampleA.com. IN A 1.1.1.2
 | 
 |
 | Here I have found conflicting information, it seems that some sources
 | suggest this instead:
 | ns1 IN A 1.1.1.1
 | ns2 IN A 1.1.1.2
 |
 | Any idea?
 |
 This is a matter of preference, but may depend on your configuration too.  
 I'm lazy so I use short form

 http://www.zytrax.com/books/dns/ch6/mydomain.html


I see, James, thanks.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Warren Young
On 9/24/2010 10:54 AM, Benjamin Franz wrote:
 Until Cygwin's developers decide the join the rest of the window's
 universe in having an *uninstaller* it will remain not installed -
 ever on many people's systems, including mine.  It is completely
 unacceptable that it is happy to install, but that you have to
 *manually* rip it out piece-by-piece if you ever want to uninstall it.

You make Cygwin sound like some kind of malware that gets its hooks into 
the system and has to be forced to let go.

Effective uninstallation is easy.  Stop any Cygwin services.  (sshd, 
crond, etc.)  Stop X.  Delete c:\cygwin.  Delete icons.  Done.

That's a condensed version of this item from the Cygwin FAQ:

 http://www.cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-all

There are a few more things you could clean up, but they're all harmless 
to leave laying around.

An uninstaller would be nice, but it's not as desirable as for programs 
that do scatter files all over the system, set up auto-runs, install 
drivers, etc.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Les Mikesell
On 9/24/2010 4:02 PM, Dotan Cohen wrote:
 On Fri, Sep 24, 2010 at 22:41, Robert Hellerhel...@deepsoft.com  wrote:
 You need:

 ns1.exampleA.com. IN  A   1.1.1.1
 ns2.exampleA.com. IN  A   1.1.1.2


 Here I have found conflicting information, it seems that some sources
 suggest this instead:
 ns1 IN  A   1.1.1.1
 ns2 IN  A   1.1.1.2


They are the same.  The $ORIGIN is normally appended to names, but not 
when it has a trailing '.' (in which case you include it yourself).

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] In the press, once again

2010-09-24 Thread Gary Greene
On 24/9/10 2:16 PM, Warren Young war...@etr-usa.com wrote:
 On 9/24/2010 10:54 AM, Benjamin Franz wrote:
 Until Cygwin's developers decide the join the rest of the window's
 universe in having an *uninstaller* it will remain not installed -
 ever on many people's systems, including mine.  It is completely
 unacceptable that it is happy to install, but that you have to
 *manually* rip it out piece-by-piece if you ever want to uninstall it.
 
 You make Cygwin sound like some kind of malware that gets its hooks into
 the system and has to be forced to let go.
 
 Effective uninstallation is easy.  Stop any Cygwin services.  (sshd,
 crond, etc.)  Stop X.  Delete c:\cygwin.  Delete icons.  Done.
 
 That's a condensed version of this item from the Cygwin FAQ:
 
  http://www.cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-all
 
 There are a few more things you could clean up, but they're all harmless
 to leave laying around.
 
 An uninstaller would be nice, but it's not as desirable as for programs
 that do scatter files all over the system, set up auto-runs, install
 drivers, etc.
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

Which if necessary can all be done using a Batch or Windows Scripting Host
script pretty easily.

-- 
Gary L. Greene, Jr.
IT Operations
Minerva Networks, Inc.
Cell:   (650) 704-6633
Office: (408) 240-1239



smime.p7s
Description: S/MIME cryptographic signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
All right, I think this should do it:

$ORIGIN exampleA.com.
$TTL 86400
exampleA.com. IN  SOA ns1.exampleA.com. ns2.exampleA.com. (
2; Serial - increment me
10800
3600
604800
38400 )
   IN  NSns1.exampleA.com.
   IN  NSns2.exampleA.com.
   IN  A 178.63.65.136
   IN  A 178.63.65.188
wwwIN  A 178.63.65.136
wwwIN  A 178.63.65.188
ns1IN  A 178.63.65.136
ns2IN  A 178.63.65.188

What say the wise among us?

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread James A. Peltier
- Original Message -
| All right, I think this should do it:
| 
| $ORIGIN exampleA.com.
| $TTL 86400
| exampleA.com. IN SOA ns1.exampleA.com. ns2.exampleA.com. (
| 2; Serial - increment me
| 10800
| 3600
| 604800
| 38400 )
| IN NS ns1.exampleA.com.
| IN NS ns2.exampleA.com.
| IN A 178.63.65.136
| IN A 178.63.65.188
| www IN A 178.63.65.136
| www IN A 178.63.65.188
| ns1 IN A 178.63.65.136
| ns2 IN A 178.63.65.188
| 
| What say the wise among us?
| 
| --
| Dotan Cohen
| 
| http://gibberish.co.il
| http://what-is-what.com
| ___
| CentOS mailing list
| CentOS@centos.org
| http://lists.centos.org/mailman/listinfo/centos

Looks good.  you can change your 10800 3600 604800 and 38400 to hours, days or 
weeks represented by 1h, 1d or 1w respectively  to make it easier than 
calculating seconds. :)


--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_s...@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Fri, Sep 24, 2010 at 23:29, James A. Peltier jpelt...@sfu.ca wrote:
 Looks good.  you can change your 10800 3600 604800 and 38400 to hours, days 
 or weeks represented by 1h, 1d or 1w respectively  to make it easier than 
 calculating seconds. :)


Thank you!

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Robert Heller
At Fri, 24 Sep 2010 23:02:21 +0200 CentOS mailing list centos@centos.org 
wrote:

 
 On Fri, Sep 24, 2010 at 22:41, Robert Heller hel...@deepsoft.com wrote:
  You need:
 
  ns1.exampleA.com. IN      A       1.1.1.1
  ns2.exampleA.com. IN      A       1.1.1.2
 
 
 Here I have found conflicting information, it seems that some sources
 suggest this instead:
 ns1 IN  A   1.1.1.1
 ns2 IN  A   1.1.1.2
 
 Any idea?

When you have an $ORIGIN statement, it defines a suffix to automatically
add to any name that does not end in a '.'.  You can do either,
depending on how gratiously verbose you want to be.  Of course, being
verbose sort of defeats the whole point of the $ORIGIN statement...

 
  And you might also consider:
 
  www.exampleA.com. IN      A       1.1.1.1
  www.exampleA.com. IN      A       1.1.1.2
 
 
 Yes, of course! Thanks.
 

-- 
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software-- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
hel...@deepsoft.com   -- Contract Programming: C/C++, Tcl/Tk


   
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread Dotan Cohen
On Sat, Sep 25, 2010 at 00:06, Robert Heller hel...@deepsoft.com wrote:
 When you have an $ORIGIN statement, it defines a suffix to automatically
 add to any name that does not end in a '.'.  You can do either,
 depending on how gratiously verbose you want to be.  Of course, being
 verbose sort of defeats the whole point of the $ORIGIN statement...


I see, thanks.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Raid 10 questions...2 drive

2010-09-24 Thread Tom Bishop
I have been reading lots of stuff but trying to find out if a raid10 2drive
setup is any better/worse than a normal raid 1 setupI have to 1Tb drives
for my data and a seperate system drive, I am only interested in doing raid
on my data...


So i setup my initial test like this

mdadm -v --create /dev/md0 --chunk 1024 --level=raid10 --raid-devices=2
/dev/sdb1 /dev/sdc1


I have also read about near and far but was going to play with this and was
wondering if anyone had any insights for 2 drives setup...Thanks...
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Raid 10 questions...2 drive

2010-09-24 Thread Digimer
On 10-09-24 10:27 PM, Tom Bishop wrote:
 I have been reading lots of stuff but trying to find out if a raid10
 2drive setup is any better/worse than a normal raid 1 setupI have to
 1Tb drives for my data and a seperate system drive, I am only interested
 in doing raid on my data...
 
 
 So i setup my initial test like this
 
 mdadm -v --create /dev/md0 --chunk 1024 --level=raid10 --raid-devices=2
 /dev/sdb1 /dev/sdc1
 
 
 I have also read about near and far but was going to play with this and
 was wondering if anyone had any insights for 2 drives setup...Thanks...

Raid 10 requires 4 drives. First you would make two RAID 0 arrays, then
create a third array that is RAID 1 using the two RAID 0 arrays for it's
devices.

With only two drives, your option is RAID 1 (mirroring - proper
redundancy) or RAID 0 (striping only - lose one drive and you lose *all*
data).

-- 
Digimer
E-Mail: li...@alteeve.com
AN!Whitepapers: http://alteeve.com
Node Assassin:  http://nodeassassin.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Raid 10 questions...2 drive

2010-09-24 Thread Jacob Bresciani
RAID10 requires at least 4 drives does it not?

Since it's a strip set of mirrored disks, the smallest configuration I can
see is 4 disks, 2 mirrored pairs stripped.

On Fri, Sep 24, 2010 at 7:27 PM, Tom Bishop bisho...@gmail.com wrote:

 I have been reading lots of stuff but trying to find out if a raid10 2drive
 setup is any better/worse than a normal raid 1 setupI have to 1Tb drives
 for my data and a seperate system drive, I am only interested in doing raid
 on my data...


 So i setup my initial test like this

 mdadm -v --create /dev/md0 --chunk 1024 --level=raid10 --raid-devices=2
 /dev/sdb1 /dev/sdc1


 I have also read about near and far but was going to play with this and was
 wondering if anyone had any insights for 2 drives setup...Thanks...

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos




-- 
Jacob Bresciani
Linux Systems Administrator
Advanced Ecommerce Research Systems / Terapeak
Cell: 250 418-5412
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Raid 10 questions...2 drive

2010-09-24 Thread Jacob Bresciani
On Fri, Sep 24, 2010 at 7:50 PM, Digimer li...@alteeve.com wrote:

 On 10-09-24 10:27 PM, Tom Bishop wrote:
  I have been reading lots of stuff but trying to find out if a raid10
  2drive setup is any better/worse than a normal raid 1 setupI have to
  1Tb drives for my data and a seperate system drive, I am only interested
  in doing raid on my data...
 
 
  So i setup my initial test like this
 
  mdadm -v --create /dev/md0 --chunk 1024 --level=raid10 --raid-devices=2
  /dev/sdb1 /dev/sdc1
 
 
  I have also read about near and far but was going to play with this and
  was wondering if anyone had any insights for 2 drives setup...Thanks...

 Raid 10 requires 4 drives. First you would make two RAID 0 arrays, then
 create a third array that is RAID 1 using the two RAID 0 arrays for it's
 devices.


This would be a RAID 0+1, stripped set's mirror together. RAID 1+0 is
mirrored disk sets stripped together.

http://en.wikipedia.org/wiki/RAID#Nested_.28hybrid.29_RAID

With only two drives, your option is RAID 1 (mirroring - proper
 redundancy) or RAID 0 (striping only - lose one drive and you lose *all*
 data).

 --
 Digimer
 E-Mail: li...@alteeve.com
 AN!Whitepapers: http://alteeve.com
 Node Assassin:  http://nodeassassin.org
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos




-- 
Jacob Bresciani
Linux Systems Administrator
Advanced Ecommerce Research Systems / Terapeak
Cell: 250 418-5412
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Question on installing .run file

2010-09-24 Thread Anthony
  On 25/09/10 05:55, Jerry Geis wrote:
 How might I automate such an install script.
Might I suggest expect:
http://oreilly.com/catalog/expect/chapter/ch03.html

Cheers,
ak.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] necessary/unused rpm packages

2010-09-24 Thread Jim Wildman

On Fri, 24 Sep 2010, Alice Anderson wrote:


Is there a way to identify if an rpm package is unused, or how much it is used?
 


look for rpmorphan package

--
Jim Wildman, CISSP, RHCE   j...@rossberry.com http://www.rossberry.com
Society in every state is a blessing, but Government, even in its best
state, is a necessary evil; in its worst state, an intolerable one.
Thomas Paine___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring BIND to answer to two domain names (four IP addresses)

2010-09-24 Thread cpolish
On Fri, Sep 24, 2010 at 10:28:41PM +0200, Dotan Cohen wrote:
 On Fri, Sep 24, 2010 at 22:24, Alexander Dalloz ad+li...@uni-x.org wrote:
  http://www.zytrax.com/books/dns/
 
  That is a good source to read up about bind configuration.
 
  As a sidenote please be aware, that if someone directly queries your
  ns1.exampleA.com for exampleB.com zone records he will get proper
  answers. If you would need to prevent this for any reason you would need
  a extended bind config design using views.
 
  While the zytrax book has lessons about views you can too find a resource in
 
  http://www.cymru.com/Documents/secure-bind-template.html
 
 
 Wow, thank you! There is some good reading there, especially the
 security link. Lots of little holes to exploit!
 
 I will be up for the night!

For completeness: there is the BIND 9 Administrator Reference Manual,
known as the ARM, usually supplied under /usr/share/doc/.
And what many consider to be the standard reference, Liu and Albitz's
DNS and BIND published by O'Reilly. I believe it's up to the
5th edition now; an earlier edition used to be provided online.
If you're serious about learning DNS you ought to consider this book.
-- 
Charles Polisher

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Raid 10 questions...2 drive

2010-09-24 Thread tomh0665
On Fri, Sep 24, 2010 at 10:50 PM, Digimer li...@alteeve.com wrote:
 On 10-09-24 10:27 PM, Tom Bishop wrote:
 I have been reading lots of stuff but trying to find out if a raid10
 2drive setup is any better/worse than a normal raid 1 setupI have to
 1Tb drives for my data and a seperate system drive, I am only interested
 in doing raid on my data...

 So i setup my initial test like this

 mdadm -v --create /dev/md0 --chunk 1024 --level=raid10 --raid-devices=2
 /dev/sdb1 /dev/sdc1

 I have also read about near and far but was going to play with this and
 was wondering if anyone had any insights for 2 drives setup...Thanks...

 Raid 10 requires 4 drives. First you would make two RAID 0 arrays, then
 create a third array that is RAID 1 using the two RAID 0 arrays for it's
 devices.

 With only two drives, your option is RAID 1 (mirroring - proper
 redundancy) or RAID 0 (striping only - lose one drive and you lose *all*
 data).

mdraid does offer a 2-disk raid10 option but it is basically raid1
with some extra mirroring options:
http://en.wikipedia.org/wiki/Non-standard_RAID_levels#Linux_MD_RAID_10

You can specify the layout options with --layout. From the man page:

begin
The layout options for RAID10 are one of 'n', 'o' or 'p' followed by a
small number. The default is 'n2'.

n signals 'near' copies. Multiple copies of one data block are at
similar offsets in different devices.

o signals 'offset' copies. Rather than the chunks being duplicated
within a stripe, whole stripes are duplicated but are rotated by one
device so duplicate blocks are on different devices. Thus subsequent
copies of a block are in the next drive, and are one chunk further
down.

f signals 'far' copies (multiple copies have very different offsets).
See md(4) for more detail about 'near' and 'far'.

The number is the number of copies of each datablock. 2 is normal, 3
can be useful. This number can be at most equal to the number of
devices in the array. It does not need to divide evenly into that
number (e.g. it is perfectly legal to have an 'n2' layout for an array
with an odd number of devices).
/end
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos