Roland RoLaNd | 1 Jan 02:31 2011
Picon

DHCPD troubleshooting..? help!


Hello,

i've setup dhcp as such:

yum install dhcp

vim /etc/dhcpd.config
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample  
#ddns-update-style interim;
ddns-update-style interim;
ddns-rev-domainname "in-addr.arpa";
ignore client-updates;
subnet 192.168.75.0 netmask 255.255.255.0 {
       option routers                  192.168.75.25; #Default Gateway
       option subnet-mask              255.255.255.0;
       option domain-name              "home.local";
       option domain-name-servers      8.8.8.8;
       #option netbios-name-servers     192.168.0.2; #WINS Server        
    range dynamic-bootp 192.168.75.26 192.168.75.100;  #DHCP Range to assign
       default-lease-time 43200;
       max-lease-time 86400;
}

more /etc/sysconfig/dhcpd 
# Command line options here
DHCPDARGS=eth0

(Continue reading)

Ron Loftin | 1 Jan 03:23 2011
Picon

Re: DHCPD troubleshooting..? help!


On Sat, 2011-01-01 at 03:31 +0200, Roland RoLaNd wrote:
> Hello,
> 
> i've setup dhcp as such:
> 
> yum install dhcp
> 
> vim /etc/dhcpd.config
> #
> # DHCP Server Configuration file.
> #   see /usr/share/doc/dhcp*/dhcpd.conf.sample  
> #ddns-update-style interim;
> ddns-update-style interim;
> ddns-rev-domainname "in-addr.arpa";
> ignore client-updates;
> subnet 192.168.75.0 netmask 255.255.255.0 {
>        option routers                  192.168.75.25; #Default Gateway
>        option subnet-mask              255.255.255.0;
>        option domain-name              "home.local";
>        option domain-name-servers      8.8.8.8;
>        #option netbios-name-servers     192.168.0.2; #WINS Server        
>     range dynamic-bootp 192.168.75.26 192.168.75.100;  #DHCP Range to assign
>        default-lease-time 43200;
>        max-lease-time 86400;
> }
> 
> more /etc/sysconfig/dhcpd 
> # Command line options here
> DHCPDARGS=eth0
(Continue reading)

Ryan Wagoner | 1 Jan 03:30 2011
Picon

Re: DHCPD troubleshooting..? help!

On Fri, Dec 31, 2010 at 8:31 PM, Roland RoLaNd <r_o_l_a_n_d@...> wrote:
> vim /etc/dhcpd.config
> ddns-update-style interim;
> ddns-rev-domainname "in-addr.arpa";
>
> Jan  1 01:25:58 dnalor dhcpd: DHCPREQUEST for 192.168.25.100 (192.168.25.25) from
00:23:4b:cc:6c:b7 (oli) via eth0
> Jan  1 01:25:58 dnalor dhcpd: DHCPACK on 192.168.25.100 to 00:23:4b:cc:6c:b7 (oli) via eth0
> Jan  1 01:26:16 dnalor dhcpd: Unable to add forward map from oli.home.local to 192.168.25.100: timed out
>
>
> PS: i dont have named installed as i use the ISP's dns, may that be the cause?
>

Since you are not running your own dns then you don't need dynamic dns
updates enabled. When dynamic dns updates are turned on dhcpd can
update a zone in named with the hostname for the ip handed out. The
benefits of running your own dns server is that you can access systems
in your network by name and not ip.

Ryan
Ryan Wagoner | 1 Jan 04:53 2011
Picon

Re: query regarding virtual machine space increase

On Mon, Dec 27, 2010 at 1:21 PM, benedict dcunha
<sylvan.dcunha@...> wrote:
> Now when it comes to the page for specifying the disk space i see the
> following
> as warning
> (if you don't allocate the entire disk now , space will be allocated as
> needed  while the virtual machine is running)
>
> Now as per the message i was thinking that I would just give the minimum
> space for the OS and xen would allocate space as I install software and put
> data and files as required
> So guess basically I was wrong in interpreting the message
> Now I began to understand and as leen says .. the space specified in the
> wizard is the maximum and Xen in no way will allocate more space than
> specified in the wizard
> so it above message basically means that space is allocated and managed  by
> xen within the maximum space specified in tghe wizard.

The virtual disk works just like a hard drive. If you create a 80GB
hard drive it reports it to the guest OS as a 80GB hard drive. The
"don't allocate the entire disk now" message is about how the host OS
creates the virtual disk file. If you don't allocate it up front you
end up with a sparse file. du and df commands will show the space
actually used. ls will show you the actual file size which would be
80GB.

Ryan
Louis Lagendijk | 1 Jan 11:27 2011
Picon
Picon

Re: Dual or quad fast ethernet NICs (that work with CentOS)

On Fri, 2010-12-31 at 16:32 -0600, Jeff Hefner wrote:
> I can vouch for the Sun Quad Fast Ethernet (PCI) cards. Quite a while
> back a few co-workers and I had split a small lot of them from eBay
> the broke down to roughly 8 or 9 bucks with shipping. Everyone had
> good luck with whatever they ended up being used for (mostly
> firewalls).
> 
> jeff
> 
Hm, I used one in the past, but had problems with Centos 5 C86_64:
https://bugzilla.kernel.org/show_bug.cgi?id=10790 which is still not
solved I believe (but see the BZ for a possible patch).
I don't use it anymore as I need less ethernot ports as I now have a
VLAN capable swith....

Louis

> On Fri, Dec 31, 2010 at 4:00 PM, Lamar Owen <lowen@...> wrote:
> > On Tuesday, December 28, 2010 07:13:22 am robert mena wrote:
> >> I am looking for dual or quad fast ethernet NICs that work with CentOS.
> >>  There is no need for high performance so regular fast/pci is ok.
> >
> > I have in a firewall box here a quad fastethernet board; lspci shows:
> > 01:09.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
> > 02:04.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
> > 02:05.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
> > 02:06.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
> > 02:07.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
> >
> > This uses the 'tulip' driver, very common, and good performance.
(Continue reading)

Jeff Hefner | 1 Jan 11:42 2011
Picon

Re: Dual or quad fast ethernet NICs (that work with CentOS)

I know I didn't have the luxury of 2GB of ram at the time and would
have been on a 32-bit only CPU. Possibly my scant hardware might have
saved me a headache. Or maybe my memory is just getting worse as time
wears on. :) I also recall playing with it on OpenBSD and FreeBSD as
well.

jeff

On Sat, Jan 1, 2011 at 4:27 AM, Louis Lagendijk
<louis@...> wrote:
> On Fri, 2010-12-31 at 16:32 -0600, Jeff Hefner wrote:
>> I can vouch for the Sun Quad Fast Ethernet (PCI) cards. Quite a while
>> back a few co-workers and I had split a small lot of them from eBay
>> the broke down to roughly 8 or 9 bucks with shipping. Everyone had
>> good luck with whatever they ended up being used for (mostly
>> firewalls).
>>
>> jeff
>>
> Hm, I used one in the past, but had problems with Centos 5 C86_64:
> https://bugzilla.kernel.org/show_bug.cgi?id=10790 which is still not
> solved I believe (but see the BZ for a possible patch).
> I don't use it anymore as I need less ethernot ports as I now have a
> VLAN capable swith....
>
> Louis
>
>> On Fri, Dec 31, 2010 at 4:00 PM, Lamar Owen <lowen@...> wrote:
>> > On Tuesday, December 28, 2010 07:13:22 am robert mena wrote:
>> >> I am looking for dual or quad fast ethernet NICs that work with CentOS.
(Continue reading)

Gordon Messmer | 1 Jan 12:26 2011

Re: happy new year :D i have a problem to upgrade my glibc to 2.7 on centos 5.5

On 12/31/2010 03:55 PM, Max Haann wrote:
>
> the nasm version 2(rpm from offcial site) requires glibc 2.7, i know its a
> core component, but is there a way to upgrade it without break system?

Build the src.rpm on your own system using "rpm --rebuild".  The results 
won't require glibc 2.7.
S Mathias | 1 Jan 12:46 2011
Picon

set privoxy to rewrite http to https

I use the

KB SSL Enforcer
https://chrome.google.com/extensions/detail/flcpelgcagfhfoegekianiofphddckof?hl=en

so i could browse the net safer [i mean webserver <-> me] with using https, if available.

The problem is: e.g.: facebook...

if i go to 
https://www.facebook.com/

that's ok, it's https.
But all the links are "http" on the site..
if i click on a "http" link, it will request the page on "http", and THEN it switches to "https". Heres the
problem. 

How/where could i write a privoxy rule, to rewrite all the "http" links to "https"? [so that it would by
always trully over https]

Are there any "general" rules (with privoxy), so that i don't have to write rules / site? 

with the KB SSL Enforcer its always first http, then it recognizes that the site can do https, than it
switches to it. But i want to "bypass" the http part.

thank you for any information

Happy New Year!
Geoff Galitz | 1 Jan 12:50 2011

automated remote cloning

 
Good morning/day and Happy New Year.
 
We have a geographically distributed environment (marketing speak: cloud) where we regularly need to migrate individual systems to new hardware (for bigger disks or for better geographical placement, for example).  We currently use Cobbler to do our base installs automatically and I am now looking at integrating Clonezilla with Cobbler.  The goal is take an *individual* system that has been customized and migrate it in an automated fashion.
 
We currently do this using Cobbler and then running rsync and mysqldump in a script along with other system -> userland module configurations (such as PHP modules) but the process is tedious and generally a PITA.  We also must have the ability to run this across different datacenters on different continents.
 
Any pointers to good automated solutions? 
 
 
References: 
 
 
 
_______________________________________________
CentOS mailing list
CentOS@...
http://lists.centos.org/mailman/listinfo/centos
Dave Cross | 1 Jan 16:42 2011
Picon

Re: remove newlines / perl /concise example

On 30 December 2010 21:57, ken <gebser@...> wrote:
> Thanks for the previous tips and suggestions.  Here's a more concise
> example:
>
> Input file:
>
> <aaaa>
> <bbbb>
> <cccc>
> <dddd>
>
> I want everything on one line, i.e., remove all newlines.  Like so:
>
> <aaaa><bbbb><cccc><dddd>
>
> Simple perl code:

Code like this is often simpler if you use the Unix filter model and
let the operating system take care of opening all the files.

  #!/usr/bin/env perl

  use strict;
  use warnings;

  chomp(my  <at> lines = <>);

  print  <at> lines;

If this is in a file called 'join', you can run it like this:

 $ ./join < input.txt > output.txt

hth,

Dave...

--

-- 
Dave Cross :: dave@...
http://dave.org.uk/
 <at> davorg

Gmane