Re: [CentOS-docs] Acer laptops (and the snd_hda_intel module

2008-08-10 Thread Scott Robbins
On Sun, Aug 10, 2008 at 09:19:47AM +0200, Fabian Arrotin wrote:


 Scott Robbins wrote:

 Just a note for anyone doing a page on Acer laptops.  I had put in my
 own page, and notice that someone had put in theirs as well, that though
 the module loads, sound doesn't work. It turns out that one can get sound 
 working by downloading the latest
 alsa drivers. I've added a note to my page on the 4720z.  The issue
 seems to be that CentOS uses an older version of alsa.


 Are you sure the provided alsa/snd-hda-intel module doesn't work with your 
 hardware ? 

Yes, I am quite sure.  I am aware of the trick of specifying the model
in modprobe.conf (or modprobe.d/alsa-base) but it didn't work in this
case.  

The nice thing is that with these newer drivers, that model=acer line is
not required for sound to work.

 Maybe adding a link/note on the wiki about all the parameters that this 
 module 
 accepts is worth writing : all the paramaters are in the file 
 /usr/share/doc/kernel-doc-2.6.18/Documentation/sound/alsa/ALSA-Configuration.txt
  
 (package kernel-doc)

I do have a link to my page, where I mention the model=acer trick.  I
think that's a great idea to add mention of possible parameters, but
should probably be in a separate page about sound.  (I don't feel
capable of writing such a page--my sound needs are pretty basic, and I'm
no expert on it.  Something with a link, as well as telling the reader
how to apply these parameters, for example, in /etc/modprobe.conf, would
certainly be useful, however.)


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Cordelia: You're just a souless bloodsucking demon. They're
LAWYERS
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


[CentOS-announce] CEBA-2008:0824 CentOS 5 i386 strace Update

2008-08-10 Thread Karanbir Singh

CentOS Errata and Bugfix Advisory 2008:0824 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2008-0824.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

i386:
dba0f8d0a2aca6aca15bd81d63a0b295  strace-4.5.16-1.el5_2.2.i386.rpm

Source:
4f46275678d5a11a8d8ceacd3d9c241a  strace-4.5.16-1.el5_2.2.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, [EMAIL PROTECTED]

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


[CentOS-announce] CEBA-2008:0824 CentOS 5 x86_64 strace Update

2008-08-10 Thread Karanbir Singh

CentOS Errata and Bugfix Advisory 2008:0824 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2008-0824.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

x86_64:
288c7979157a76555734c4dd532803cf  strace-4.5.16-1.el5_2.2.x86_64.rpm

Source:
4f46275678d5a11a8d8ceacd3d9c241a  strace-4.5.16-1.el5_2.2.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, [EMAIL PROTECTED]

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


Re: [CentOS-es] leer la cola de correo postfix

2008-08-10 Thread O. T. Suarez
Hola Victor:


 Tengo el postfix corriendo en la máquina y me gustaría poder leer los
 mensajes que están pendientes en la cola pero que tenga formato.
 Quiero decir, cuando lo abro con mi editor normal, sale todo sin formato
 alguno y es dificil para mi seguir la pista...

Prueba instalando pfqueue.

Saludos
Osvaldo
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


[CentOS] can't access irc server on xen domU, please help

2008-08-10 Thread Rudi Ahlers
Hi all,

I'm running a CentOS 5.2 server with a FC8 xen domU guest, and an irc server
on the FC8 domU guest. For some odd reason, I can't access the irc server on
the xen domU guest.

From FC8, when I run netstat -a, I can see irc is listening:

netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address   Foreign Address
State
tcp0  0 *:ircd  *:*
LISTEN
tcp0  0 *:6668  *:*
LISTEN
tcp0  0 *:6669  *:*
LISTEN
tcp0  0 *:ftp   *:*
LISTEN
tcp0  0 192.168.10.:afs3-fileserver *:*
LISTEN
tcp0  0 localhost.localdomain:smtp  *:*
LISTEN
tcp0  0 192.168.10.13:ftp   196-209-84-62-tpr-esr:49615
ESTABLISHED
tcp0  0 *:http  *:*
LISTEN
tcp0  0 *:ssh   *:*
LISTEN

and running nmap on the localhost looks promising as well:

netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address   Foreign Address
State
tcp0  0 *:ircd  *:*
LISTEN
tcp0  0 *:6668  *:*
LISTEN
tcp0  0 *:6669  *:*
LISTEN
tcp0  0 *:ftp   *:*
LISTEN
tcp0  0 196.34.136.:afs3-fileserver *:*
LISTEN
tcp0  0 localhost.localdomain:smtp  *:*
LISTEN
tcp0  0 196.34.136.55:ftp   196-209-84-62-tpr-esr:49615
ESTABLISHED
tcp0  0 *:http  *:*
LISTEN
tcp0  0 *:ssh   *:*
LISTEN



Yet, from the outside (either from another PC, or the dom0 itself), I can't
connect to the irc ports.

I've even disabled iptables on the dom0 altogether, but stil can't connect
to it.


The only open ports are:
PORT STATE  SERVICE
80/tcp   open   http
443/tcp  closed https
7001/tcp closed afs3-callback
8000/tcp closed http-alt
8080/tcp closed http-proxy
8081/tcp closed blackice-icecap




How do I get this to work?



P.S. Sorry for the cross-post, for those of you who are on the centos-virt
list as well, I just find that this list is being used more.
-- 

Kind Regards
Rudi Ahlers
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can't access irc server on xen domU, please help

2008-08-10 Thread rudiahlers
On 8/10/08, Kai Schaetzl [EMAIL PROTECTED] wrote:
 Rudi Ahlers wrote on Sun, 10 Aug 2008 08:41:55 +0200:

 The only open ports are:
 PORT STATE  SERVICE
 80/tcp   open   http
 443/tcp  closed https
 7001/tcp closed afs3-callback
 8000/tcp closed http-alt
 8080/tcp closed http-proxy
 8081/tcp closed blackice-icecap

 Compare that with your lists above. It doesn't fit at all, e.g. there is
 no https on your other lists. Looks very much like a dns or IP address
 problem - the latter test is not against the same target although you
 think it is.

 Kai

 --
Hi Kai,

I have noticed that as well, but don't quite know what todo with it.

Running nmap against the VPS, from my home PC, I get the following:

Not shown: 1661 filtered ports
PORT STATE  SERVICE
21/tcp   closed ftp
22/tcp   open   ssh
25/tcp   closed smtp
53/tcp   closed domain
80/tcp   open   http
110/tcp  closed pop3
143/tcp  closed imap
161/tcp  closed snmp
222/tcp  closed rsh-spx
443/tcp  closed https
873/tcp  closed rsync
3306/tcp closed mysql
3389/tcp closed ms-term-serv
8000/tcp closed http-alt
8080/tcp closed http-proxy
8081/tcp closed blackice-icecap
9991/tcp closed issa
9992/tcp closed issc
/tcp closed abyss

Nmap finished: 1 IP address (1 host up) scanned in 47.591 seconds




Running nmap against the same IP, from the master the XEN server, I
get the following:


Not shown: 1691 filtered ports
PORT STATE  SERVICE
80/tcp   open   http
443/tcp  closed https
7001/tcp closed afs3-callback
8000/tcp closed http-alt
8080/tcp closed http-proxy
8081/tcp closed blackice-icecap





So, how do you explain this one?


The Xen server is in a different subnet from the Xen domU, but I don't
think that would make a difference right?

-- 

Kind Regards
Rudi Ahlers
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can't access irc server on xen domU, please help

2008-08-10 Thread Kai Schaetzl
[EMAIL PROTECTED] wrote on Sun, 10 Aug 2008 14:11:06 +0200:

  443/tcp  closed https

sorry, I dind't look close enough. closed, of course, means closed ;-)

Did you disable firewall for testing on *every* host that is involved 
(e.g. on the hosts you try to access/run nmap from), including the 
gateway? Is this the only IRC service you have running? I'd rather guess 
you don't have a xen problem, but simply block that port somewhere on the 
way, and be it on your gateway. Running tcpdump on every involved host may 
help.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



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


[CentOS] conntrack-tools and Session syncing

2008-08-10 Thread Dirk H. Schulz

Hi folks,

I have 2 firewalls, setup with Centos 5.2. They are also routers, connected 
to 2 upstream routers.


I have some cases where connections from servers to the internet leave my 
network via router2 and answers come back via router1. So I added conntrack 
tools to both routers/firewalls to synchronize the session tables (using 
ftfw procotol).


That works as expected. If e.g. I ping from an inside server to somewhere 
outside, ICMP request leaves via router2, the answer comes back via 
router1. conntrack -e on router1 shows this session (as unreplied), BUT the 
firewall blocks it as new connection - that means iptables does not 
recognize conntrackd's addition to the session table.


Seems that I have a conceptional misunderstanding here - but I do not find 
anything that could be wrong. Could somebody please help? I am stuck.


Any hint or help is appreciated.

Dirk

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


Re: [CentOS] can't access irc server on xen domU, please help

2008-08-10 Thread rudiahlers
Just an update on this, when I add x.x.136.105 to the domU, and ran
nmap on that IP, the IRC ports are open, so that confirms my theory
- this is then a routing issue between the dom0  domU, right? But how
do I fix it?

On 8/10/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hey Kai,

 I just made an interesting discovery. As I said in my previous post,
 the domU is running on a different subnet from the dom0 - and although
 the traffic from the dom0 to the domU doesn't travel via a switch, it
 does seem like this is causing a problem

 The dom0 is on x.x.136.110/27 (x.x.136.97 = default gw) and the domU
 is on x.x.136.55/27 (x.x.136.33 = default gw)
 The subnet mask on both are 255.255.255.224

 The server connects to a switch, and then to a firewall on the
 internet. The network firewall itself has 4 WAN ports, and 4 different
 subnets. For a fact, I know I can't communicate with a host from one
 subnet, to a host on another subnet, since the network firewall
 doesn't allow it.

 So, I have a feeling this affect the networking on the Xen server as
 well, even if I take the network firewall out of the picture.

 How do I work with a XEN domU on a different subnet than the XEN dom0?

 On 8/10/08, Kai Schaetzl [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote on Sun, 10 Aug 2008 14:11:06 +0200:

  443/tcp  closed https

 sorry, I dind't look close enough. closed, of course, means closed ;-)

 Did you disable firewall for testing on *every* host that is involved
 (e.g. on the hosts you try to access/run nmap from), including the
 gateway? Is this the only IRC service you have running? I'd rather guess
 you don't have a xen problem, but simply block that port somewhere on the
 way, and be it on your gateway. Running tcpdump on every involved host
 may
 help.

 Kai

 --
 Kai Schätzl, Berlin, Germany
 Get your web at Conactive Internet Services: http://www.conactive.com



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



 --

 Kind Regards
 Rudi Ahlers



-- 

Kind Regards
Rudi Ahlers
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can't access irc server on xen domU, please help

2008-08-10 Thread Kai Schaetzl
[EMAIL PROTECTED] wrote on Sun, 10 Aug 2008 14:55:30 +0200:

 How do I work with a XEN domU on a different subnet than the XEN dom0?

If you just want to work with it, you can use xm console. If you want to 
have a network connection between the two, it's like with any other host, 
there is no difference between virtual and physical. There is no magic 
that connects host and guest via network. They have to have at least one 
IP address on the same subnet or a router must route between them.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



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


Re: [CentOS] can't access irc server on xen domU, please help

2008-08-10 Thread Kai Schaetzl
[EMAIL PROTECTED] wrote on Sun, 10 Aug 2008 15:00:02 +0200:

 But how
 do I fix it?

Your router is probably routing between the one subnet and outside and the 
other subnet and outside, but not between the two. Easiest solution is to 
do what you did: use IP in same subnet. For my Office network I usually 
put all hosts I want to access from within the network on the same private 
subnet. If I want to have any of them accessible via one of the public 
addresses I have I add that address to the host and enable passthru in 
the firewall.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



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


Re: [CentOS] can't access irc server on xen domU, please help

2008-08-10 Thread rudiahlers
Yes, the VPS needs internet access.

So, do I need to make changes on the network firewall? Or what do I do?

I have since addes x.x.136.56 to the hom dom0, and when I nmap the
domU, I can see the IRC ports open, but I now I can't connect to them
from the internet.

But how do I tell the domU to route all traffic via then new
internface, eth0:2 (x.x.136.56)
I have added the default gw x.x.136.33 to the dom0  the domU already

On 8/10/08, Kai Schaetzl [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote on Sun, 10 Aug 2008 14:55:30 +0200:

 How do I work with a XEN domU on a different subnet than the XEN dom0?

 If you just want to work with it, you can use xm console. If you want to
 have a network connection between the two, it's like with any other host,
 there is no difference between virtual and physical. There is no magic
 that connects host and guest via network. They have to have at least one
 IP address on the same subnet or a router must route between them.

 Kai

 --
 Kai Schätzl, Berlin, Germany
 Get your web at Conactive Internet Services: http://www.conactive.com



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



-- 

Kind Regards
Rudi Ahlers
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can't access irc server on xen domU, please help

2008-08-10 Thread rudiahlers
If I use birdge mode for the VPS's, which is the defalt for XEN, then
surely the host OS's networking won't make any difference, right?

On 8/10/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Yes, the VPS needs internet access.

 So, do I need to make changes on the network firewall? Or what do I do?

 I have since addes x.x.136.56 to the hom dom0, and when I nmap the
 domU, I can see the IRC ports open, but I now I can't connect to them
 from the internet.

 But how do I tell the domU to route all traffic via then new
 internface, eth0:2 (x.x.136.56)
 I have added the default gw x.x.136.33 to the dom0  the domU already

 On 8/10/08, Kai Schaetzl [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote on Sun, 10 Aug 2008 14:55:30 +0200:

 How do I work with a XEN domU on a different subnet than the XEN dom0?

 If you just want to work with it, you can use xm console. If you want
 to
 have a network connection between the two, it's like with any other host,
 there is no difference between virtual and physical. There is no magic
 that connects host and guest via network. They have to have at least one
 IP address on the same subnet or a router must route between them.

 Kai

 --
 Kai Schätzl, Berlin, Germany
 Get your web at Conactive Internet Services: http://www.conactive.com



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



 --

 Kind Regards
 Rudi Ahlers



-- 

Kind Regards
Rudi Ahlers
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] conntrack-tools and Session syncing

2008-08-10 Thread Dirk H. Schulz

Hi Robert,

--On 10. August 2008 10:04:37 -0400 Robert Spangler 
[EMAIL PROTECTED] wrote:



On Sunday 10 August 2008 08:36, Dirk H. Schulz wrote:


 That works as expected. If e.g. I ping from an inside server to
 somewhere outside, ICMP request leaves via router2, the answer comes
 back via router1. conntrack -e on router1 shows this session (as
 unreplied), BUT the firewall blocks it as new connection - that means
iptables does not recognize conntrackd's addition to the session table.


First off if you have traffic leaving one router and coming back on
another  router that is Asynchronous routing and is not a good thing, as
you are  seeing.

Firewall 1 doesn't know what firewall 2 is doing so firewall 1 is going
to  block this traffic as it was setup to do.  Firewall 1 is thinking
this is a  new connection.


That is why I used conntrack-tools to synchronize the session tables of 
both firewalls. According to conntrackd -e it works - it shows (e. g. on 
router 1) the sessions that have been synchronized over (e.g. from router 
2).


But the sync'd sessions seem not to bother netfilter.



Since I don't know your setup my question is;

1. how many Internet connections do you have?


This is still in setup phase, but they will be very many.


2. does router 2 have a valid public ip on the interface connecting to
the  Internet?


Yes. Both routers have public ips as they both are connected to upstream 
routers.


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


Re: [CentOS] can't access irc server on xen domU, please help

2008-08-10 Thread Kai Schaetzl
[EMAIL PROTECTED] wrote on Sun, 10 Aug 2008 16:04:20 +0200:

 If I use birdge mode for the VPS's, which is the defalt for XEN, then
 surely the host OS's networking won't make any difference, right?

Depends on how you define any difference. As I said if you use bridge 
mode standard xen networking host and guest behave like independant 
physical machines. You have to do the same that you would do for two 
physical machines. There is no magic bond between them. If you use xen 
routed networking you should have told so. I've never used that.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



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


Re: [CentOS] Xen and bonding on Centos 5.2

2008-08-10 Thread Francesco Camisa
If you are using kernel 92.1.6 it's because apparently there is a bug. I 
haven't tried 92.1.10 to check if it has been solved. On 5.2 stock kernel on 
the other hand I have no problems.

Francesco
Policlinico San Marco
Italy

- Original Message -
From: Dirk H. Schulz [EMAIL PROTECTED]
To: CentOS mailing list centos@centos.org
Sent: Friday, 8 August, 2008 5:33:09 PM GMT +01:00 Amsterdam / Berlin / Bern / 
Rome / Stockholm / Vienna
Subject: [CentOS] Xen and bonding on Centos 5.2

Hi folks,

I am stuck with a weird phenomenon.

I have set up two servers as xen servers with bonded interfaces (mode 1). 
The bond interface works fine on both servers as long as xen is not used.

When using xen's network-bridge script (with netdev=bond0), one server 
works fine without problems, and the other starts upping and downing the 
slave interfaces of the bond in a very fast manner (several runs per 
second). Both configurations are identical, the only difference is:
- the working server has tg3 nic drivers
- the dysfunctional server has e100 nic drivers.

Does it really depend on the nic driver if bonding works? And why does it 
not work in xen, but work fine without xen? What can I do to analyse the 
problem?

I know I could ask this on the xen list, but I fear that this is a 
redhat/centos specific phenomenon.

Any hint or help is appreciated.

Dirk
___
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] conntrack-tools and Session syncing

2008-08-10 Thread Dirk H. Schulz

Hi Robert,

--On 10. August 2008 13:56:22 -0400 Robert Spangler 
[EMAIL PROTECTED] wrote:


- snip -


OK, I don't know this tool you are using to syn the conntracking of all
the  firewalls.  Could you post a link to it?


Yes, of course: 
http://www.netfilter.org/projects/conntrack-tools/index.html




Now for the fun stuff.  Why would you have many Internet connection that
do  not return the same path they go out on?  sounds like you really only
have  one true connection with one true IP to the Internet.  That would
explain why  traffic leaving on interface 2 comes back on interface 1.


It is two routers that are connected to 2 upstream routers; all four use 
OSPFv2 for routing between them.
I have not finetuned OSPF so far to avoid asynchronous routing - I want to 
to do the connection table synchronization stuff before because I have to 
do it anyway (in case of a router crash) and now I have an ideal testbed 
(because of the asynchronous routing).




Without knowing your setup I'm not going to guess at this.


The setup is as follows: Every Router has
- an external interface with public ip address each resting in a small 
separate subnet that connects to the upstream router

- an interface for inter router connections (private ip addresses)
- 2 additional interfaces to server LANs - both routers have an interface 
to both of the 2 server LANs

both server LAN interface use shared virtual ips additionally

If you need more detailed information I could offer the OSFP configuration 
(XORP).


Here is the configuration for conntrackd (I have omitted buffer sizes 
etc.):

Sync {
Mode FTFW {
ResendBufferSize 262144
CommitTimeout 180
ACKWindowSize 20
}
Multicast {
IPv4_address 225.0.0.50
IPv4_interface 192.168.11.1
Interface eth1
Group 3780
}
Checksum on
CacheWriteThrough On
}
General {
HashSize 8192
HashLimit 65535

- snip -

IgnoreTrafficFor {
IPv4_address INTER_ROUTER_INTERFACE
IPv4_address EXTERNAL_INTERFACE
IPv4_address INTERNAL_INTERFACE1
IPv4_address INTERNAL_VIRTUAL_IP
IPv4_address INTERNAL_INTERFACE2
}

IgnoreProtocol {
IGMP
VRRP
}


The setup works - using conntrackd -e I can see the connection table 
entries the other router's conntrackd has synchronized. What I cannot check 
is if the receiving conntrackd writes the received entries into the kernels 
connection tracking table.

Example:
udp  17 30 src=124.165.230.206 dst=93.94.81.82 sport=2040 dport=1434 

[UNREPLIED] [active since 6s]
tcp  6 120 SYN_SENT src=93.185.115.91 dst=93.94.80.133 sport=4290 

dport=135 [UNREPLIED] [active since 46s]

So I hope to find someone on the list have done this kind of setup before.

Thanks for your interest so far.

Dirk



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


Re: [CentOS] Writable Centos LiveCD on Embeded Linux?

2008-08-10 Thread Stephen John Smoogen
On Sun, Aug 10, 2008 at 12:39 PM, Oliver Schulze L.
[EMAIL PROTECTED] wrote:
 Hi all,
 I was wondering if it possible to have a Centos LiveCD installation boot
 from
 a Compact Flash in a embeded x86 (Wrap/Alix) platform *and* be able to
 save the changes made to the File System back to the Flash memory.


You would need to really hack at it to get it to that. The ability to
do that did not get into Fedora until 9 so its part of the init
scripts or the livecd tools to make an overlay partition.

 So, the next time the LiveCD boots it will have all the changes made.

 The problem I'm trying yo solve is:
 - fast boot time
 - fast recovery when the Linux is shutdown improperly (power failure, etc)
 - be able to upgrade some rpm packages via yum

 Will a LiveCD (squash/union FS) be a better solution than booting Centos
 directly from an ext2(fewer I/O than ext3) partition?

 Many thanks in advance
 Oliver

 --
 Oliver Schulze L.
 Asuncion - Paraguay
 http://tinymailto.com/oliver

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




-- 
Stephen J Smoogen. -- BSD/GNU/Linux
How far that little candle throws his beams! So shines a good deed
in a naughty world. = Shakespeare. The Merchant of Venice
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Xen and bonding on Centos 5.2

2008-08-10 Thread Dirk H. Schulz

Francesco,

--On 10. August 2008 20:18:28 +0200 Francesco Camisa 
[EMAIL PROTECTED] wrote:



If you are using kernel 92.1.6 it's because apparently there is a bug. I
haven't tried 92.1.10 to check if it has been solved. On 5.2 stock kernel
on the other hand I have no problems.


The server that has no problem with bonding at all has been using 92.1.6 
for weeks now - the server having the problem is still running 53 - I try 
updating it to 92.1.10 now.


Dirk



Francesco
Policlinico San Marco
Italy

- Original Message -
From: Dirk H. Schulz [EMAIL PROTECTED]
To: CentOS mailing list centos@centos.org
Sent: Friday, 8 August, 2008 5:33:09 PM GMT +01:00 Amsterdam / Berlin /
Bern / Rome / Stockholm / Vienna Subject: [CentOS] Xen and bonding on
Centos 5.2

Hi folks,

I am stuck with a weird phenomenon.

I have set up two servers as xen servers with bonded interfaces (mode 1).
The bond interface works fine on both servers as long as xen is not used.

When using xen's network-bridge script (with netdev=bond0), one server
works fine without problems, and the other starts upping and downing the
slave interfaces of the bond in a very fast manner (several runs per
second). Both configurations are identical, the only difference is:
- the working server has tg3 nic drivers
- the dysfunctional server has e100 nic drivers.

Does it really depend on the nic driver if bonding works? And why does it
not work in xen, but work fine without xen? What can I do to analyse the
problem?

I know I could ask this on the xen list, but I fear that this is a
redhat/centos specific phenomenon.

Any hint or help is appreciated.

Dirk
___
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




--
Dirk H. Schulz
IT Systems Service
Wiesenweg 12, 85567 Grafing
Tel. 0 80 92/86 25 68
Fax. 0 80 92/86 25 72
--
Technik vom Feinsten - und das nötige Tuning
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Writable Centos LiveCD on Embeded Linux?

2008-08-10 Thread Stephen John Smoogen
On Sun, Aug 10, 2008 at 1:19 PM, Oliver Schulze L. [EMAIL PROTECTED] wrote:
 Hi Stephen,
 I read about the overlay feature in Fedora9, but I don't know if when the
 changes
 to the FS are so big (like going from 5.1 to 5.2) the overlay will grow and
 grow
 over time. And the overlay solution will require too much space.


For the live Cd that is about your only choise. The overlay will not
grow.. it will eventually fill up, but if you are making that many
changes in an embedded environment you really need to think about why
you aren't doing a complete reflush of the SSD


-- 
Stephen J Smoogen. -- BSD/GNU/Linux
How far that little candle throws his beams! So shines a good deed
in a naughty world. = Shakespeare. The Merchant of Venice
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mount a Xen disk image file

2008-08-10 Thread Dirk H. Schulz

Kai,

I am sorry, but I simply do not understand at the moment. I thought xvda is 
the method the disks are mounted into the VM - you sound like it being the 
format of the disk itself.


Please explain.

Dirk

--On 8. August 2008 20:31:15 +0200 Kai Schaetzl [EMAIL PROTECTED] 
wrote:



Dirk H. Schulz wrote on Fri, 08 Aug 2008 14:54:20 +0200:


What is the problem with xvda? And what is the alternative?


Didn't we just discuss that? xvda doesn't allow you simple mounting of
the  disk from the host, be it file or LV.

Kai

--
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



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




--
Dirk H. Schulz
IT Systems Service
Wiesenweg 12, 85567 Grafing
Tel. 0 80 92/86 25 68
Fax. 0 80 92/86 25 72
--
Technik vom Feinsten - und das nötige Tuning
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Writable Centos LiveCD on Embeded Linux?

2008-08-10 Thread Oliver Schulze L.

Hi Stephen,
thanks for answering.

I'm trying to see if I can get a router using an embeded platform, alix 
in this case.
Since the Alix platform is getting more powerfull and the 1GB compatch 
flash is also
getting cheaper, I was think in createing a full Centos distro booting 
in that platform.


Will read more about the overlay feature and see if it will do the job 
for me.


But maybe I will go back to have an ext2 partition and don't write to 
it. I like

the LiveCD option because of the fast (no fsck) boot feature

Regards,
Oliver

Stephen John Smoogen wrote:

On Sun, Aug 10, 2008 at 1:19 PM, Oliver Schulze L. [EMAIL PROTECTED] wrote:
  

Hi Stephen,
I read about the overlay feature in Fedora9, but I don't know if when the
changes
to the FS are so big (like going from 5.1 to 5.2) the overlay will grow and
grow
over time. And the overlay solution will require too much space.




For the live Cd that is about your only choise. The overlay will not
grow.. it will eventually fill up, but if you are making that many
changes in an embedded environment you really need to think about why
you aren't doing a complete reflush of the SSD


  


--
Oliver Schulze L.
Asuncion - Paraguay
http://tinymailto.com/oliver

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


Re: [CentOS] Help: Server security compromised?

2008-08-10 Thread Noob Centos Admin
On Thu, Aug 7, 2008 at 11:53 PM, Ray Leventhal [EMAIL PROTECTED] wrote:


 My US$0.02 on this.I'm a fan of apf as a front-end to iptables...but it
 takes some reading to understand the switches and the entire RAB (reactive
 address blocking) configuration options.  Sadly, RAB is poorly documented,
 but with a bit of tinkering, I've enjoyed this feature tremendously as it
 cuts down on the hammering I used to get to port 22 by the bots and script
 kiddies.


Sad to say my usual tasks keep me sufficiently occupied that I hardly have
the time to study what APF actually does. It came with ELS (Easy Linux
Security) scripts with directadmin, sounds like A Good Idea (tm) so I just
installed it. Personally I'm aghast at the manner in which I'm running the
server but practically there is only that much time I can devote to being
the server admin.


If you've a static IP at your workstation, add your IP address to the apf
 nicely formed 'allow_hosts.rules' file, usually located in /etc/apf.  This
 is a simple IP address or IP block list (using slash notation, i.e.
 192.168.1.0/24) to allow access to an IP or range of IPs.  Further, the
 deny_hosts.rules list is the same format for hosts to always deny.


I had considered this allowed only x.x.x.x ip strategy very early on since
it appeared to be an obvious way to head off attacks/probes from external
parties. Unfortunately, like most folks, I'm on dynamic IP. My primary role
also requires me to run around very often, necessitating urgent
administration from a variety of potential sub-networks from whichever ISP
happens to be providing access at the location. So I figured it would be
quite impractical to attempt to limit access to only certain IP addresses.


Although thinking about it now, extending the concept from a previous
suggestion, I suppose it is theoretically possible to write a privileged
script accessible from one of the server hosted domains to activate an
allow-host rule addition to the firewall and a cronjob that routinely
activates another script to removed added hosts after 1 hour or something.
So anytime access is needed, I would hit the website to activate the script
to open up SSH access to the IP I am using at the moment and then SSH in.

But of course, easier said than done since I barely know shell scripting and
allowing exec in PHP had always been met with a big frown personally. :D
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] gcc editor for newbie (Emacs or vim or ?)

2008-08-10 Thread Lanny Marcus
I downloaded the .pdf version of Thinking in C++ and I've
begun to read that and I did
yum groupinstall 'Development Tools'   I'm a Newbie Desktop
user, jumping into the deep end of the pool. Should I try to learn
vi (Vim) (which obviously will help me, if I ever need to
administer a remote box)  or install Emacs or something else,
for the gcc editor?  An easy learning curve is strongly preferred,
but, I am 100% aware of the advantages of vi. Recommendations?
TIA!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] rebuilding the kernel.

2008-08-10 Thread Yahia Tachwali

Johnny Hughes wrote:


Yahia Tachwali wrote:


Yahia Tachwali wrote:

Thank you very much for the link.. I have built a new bootable 
kernel 2.6.9-67 on my machine. However I still have a problem :(


During the installation at make menuconfig stage after make 
oldconfig I have added the generic HDLC package with synchronous 
PPP support and saved the new config then run


rpmbuild -bb --target=`uname -m` kernel-2.6.spec 2 build-err.log | 
tee build-out.log.


After reboot, I rechecked the menuconfig to make sure that the HDLC 
setting is there. I am not sure if this setting took effect or I 
have to make modules or build something else. So how would I know 
that the HDLC package is availalbe and built in?


To elaborate more on the reasons behind this HDLC package, I am 
trying to build a device driver that asks for HDLC support. upon 
building the driver, I get the following warnings:


 Building modules, stage 2.
 MODPOST
*** Warning: unregister_hdlc_device 
[/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
*** Warning: hdlc_ioctl 
[/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
*** Warning: hdlc_open 
[/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
*** Warning: register_hdlc_device 
[/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
*** Warning: hdlc_close 
[/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
*** Warning: alloc_hdlcdev 
[/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!


Therefore, I am suspecting that I need the HDLC package available. I 
would be extremely thankful for anybody who can help me in this 
problem. Am I going into the wrong direction?




[EMAIL PROTECTED] wrote:


Johnny Hughes pisze:


[EMAIL PROTECTED] wrote:


Yahia Tachwali pisze:


Hello folks,




Hi. It is request for it to add this in kernel for centosplus, 
look at this: http://bugs.centos.org/view.php?id=3019




I am trying to add HDLC module support in the menuconfig. 
However, I am facing difficulties in rebuilding the kernel and 
modules. My main objective is to get the HDLC supported in 
kernel 2.6.9. I have a CentOS 4.4 with kernel 2.6.9.42. I need 
help in finding the best way to add the HDLC support whether 
through getting an RPM package for it or refering me to the 
right procedure in rebuilding the kernel.


Thank you very much in advance for your help.




No problem.





That request was for CentOS-5, not CentOS-4 :D




? I can see: Category: [CentOS-4] kernel-centosplus My request was 
exactly for centos 4 branch, but for 5 is good too. So, can i count 
for You to make it posible in centos4 to support hdlc ?




HDLC was added to the CentOS-5 plus kernel for the latest version.




Sorry about the top posting :(

After reconfiguring the menuconfig to enable the HDLC suport package 
(under device drivers). I have tried also do:


modinfo hdlc

but i did not get any info in return... Also I have tried :

lsmod

to check for hdlc module but I could not find it... I guess I am 
missing something to activate my new settings in the menuconfig.  Is 
there a way to verify that my new settings active!! Does any body 
know about the HDLC modules loading in the 2.6.9. Please advise. And 
thank you all for your help.




After you rebuild the RPM, you need to install the new RPM you just 
built.


After that, modinfo should work



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


Hello,

Thank you for the info, I have installed the rpm and I ended up with the 
following :

--
[EMAIL PROTECTED] i686]# rpm -ivh kernel-*.rpm
Preparing...### 
[100%]

   package kernel-2.6.9-67.0.22.EL is already installed
   package kernel-devel-2.6.9-67.0.22.EL is already installed
   package kernel-hugemem-devel-2.6.9-67.0.22.EL is already installed
   package kernel-smp-devel-2.6.9-67.0.22.EL is already installed
   file /boot/System.map-2.6.9-67.0.22.EL from install of 
kernel-2.6.9-67.0.22.EL conflicts with file from package 
kernel-2.6.9-67.0.22.EL
   file /boot/config-2.6.9-67.0.22.EL from install of 
kernel-2.6.9-67.0.22.EL conflicts with file from package 
kernel-2.6.9-67.0.22.EL
   file /boot/symvers-2.6.9-67.0.22.EL.gz from install of 
kernel-2.6.9-67.0.22.EL conflicts with file from package 
kernel-2.6.9-67.0.22.EL
   file /boot/vmlinuz-2.6.9-67.0.22.EL from install of 
kernel-2.6.9-67.0.22.EL conflicts with file from package 
kernel-2.6.9-67.0.22.EL

--

However, I was able to reboot with the new kernel but still I can not 
find o files for my HDLC in the kernel path under driver/net/wan. I am 

Re: [CentOS] gcc editor for newbie (Emacs or vim or ?)

2008-08-10 Thread Frank Cox
On Sun, 10 Aug 2008 17:04:16 -0500
Lanny Marcus [EMAIL PROTECTED] wrote:

 Should I try to learn
 vi (Vim) (which obviously will help me, if I ever need to
 administer a remote box)  or install Emacs or something else,
 for the gcc editor?

That's the sort of question where, if you ask ten people for their opinion, you
will get sixteen different answers.  At least.

I personally use either vi or nedit, depending on what the current
environment is and what I'm trying to accomplish.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] rebuilding the kernel.

2008-08-10 Thread Akemi Yagi
On Sun, Aug 10, 2008 at 3:07 PM, Yahia Tachwali
[EMAIL PROTECTED] wrote:

 Thank you for the info, I have installed the rpm and I ended up with the
 following :
 --
 [EMAIL PROTECTED] i686]# rpm -ivh kernel-*.rpm
 Preparing...###
 [100%]
   package kernel-2.6.9-67.0.22.EL is already installed
   package kernel-devel-2.6.9-67.0.22.EL is already installed
   package kernel-hugemem-devel-2.6.9-67.0.22.EL is already installed
   package kernel-smp-devel-2.6.9-67.0.22.EL is already installed
   file /boot/System.map-2.6.9-67.0.22.EL from install of
 kernel-2.6.9-67.0.22.EL conflicts with file from package
 kernel-2.6.9-67.0.22.EL
   file /boot/config-2.6.9-67.0.22.EL from install of
 kernel-2.6.9-67.0.22.EL conflicts with file from package
 kernel-2.6.9-67.0.22.EL
   file /boot/symvers-2.6.9-67.0.22.EL.gz from install of
 kernel-2.6.9-67.0.22.EL conflicts with file from package
 kernel-2.6.9-67.0.22.EL
   file /boot/vmlinuz-2.6.9-67.0.22.EL from install of
 kernel-2.6.9-67.0.22.EL conflicts with file from package
 kernel-2.6.9-67.0.22.EL
 --

 However, I was able to reboot with the new kernel but still I can not find o
 files for my HDLC in the kernel path under driver/net/wan. I am listing
 below the steps that I did to install a new customized kernel starting from
 fresh installation of CentOS 4.4 with kernel 2.6.9-42

 1- getting the kernel:
   1.1 access as root
   1.2 yum install rpm-build redhat-rpm-config
   1.3 su user
   1.4 cd
   1.5 mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
   1.6 echo %_topdir %(echo $HOME)/rpmbuild  .rpmmacros
   1.7 rpm -i
 http://mirror.centos.org/centos/4/updates/SRPMS/kernel-2.6.9-67.0.22.EL.src.rpm
   2 /dev/null
   1.8 cd ~/rpmbuild/SPECS
   1.9 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2 prep-err.log | tee
 prep-out.log

Looks good so far.

 These so far sound fine. but then I guess there might be a mistake or
 missing step in my procdure to build the new kernel:

 2- building a new kernel:
   2.1 access as root
   2.2 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2 prep-err.log | tee
 prep-out.log

The above rpmbuild is not necessary.  You have done it correctly in
step 1.9 (as user).

   2.3 su user
   2.4 cd ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.`uname -m`
   2.5 cp configs/kernel-2.6.18-i686.config .config
   2.6 make oldconfig
   2.7 make menuconfig {here I left it as is and did not do any modification
 since I am planning to include HDLC as a module after build
 a complete custom kernel}

I am confused.  If you did not make any changes here, why would you
expect your new kernel to provide the HDLC support (see above) ???

   2.8 [EMAIL PROTECTED] SPECS]$ rpmbuild -bb --target=`uname -m` 
 kernel-2.6.spec 2
 build-err.log | tee build-out.log

Before that step (rpmbuild -bb), you should at least edit the line:

%define buildid .your_identifier

as written in the Wiki tutorial to make your rpm's version different
from the distro's.

   2.9 su
   2.10/ rpm -ivh kernel-*.rpm

   and after the last command I have got the conflict warning above. What is
 wrong in my installation procedure! :( Please help.
 /

Your customized kernel has the same version/revision as the
distro's.  So, it won't install unless you force it (not recommended
at all).

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


Re: [CentOS] gcc editor for newbie (Emacs or vim or ?)

2008-08-10 Thread Akemi Yagi
On Sun, Aug 10, 2008 at 3:11 PM, Frank Cox [EMAIL PROTECTED] wrote:
 On Sun, 10 Aug 2008 17:04:16 -0500
 Lanny Marcus [EMAIL PROTECTED] wrote:

 Should I try to learn
 vi (Vim) (which obviously will help me, if I ever need to
 administer a remote box)  or install Emacs or something else,
 for the gcc editor?

 That's the sort of question where, if you ask ten people for their opinion, 
 you
 will get sixteen different answers.  At least.

 I personally use either vi or nedit, depending on what the current
 environment is and what I'm trying to accomplish.

OK, I'm the second of the sixteen answers.  I use vi and elvis (GUI
editor 100% compatible with vi).  I highly recommend you learn vi.
You will never regret  :-D

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


Re: [CentOS] rebuilding the kernel.

2008-08-10 Thread Yahia Tachwali

Akemi Yagi wrote:


On Sun, Aug 10, 2008 at 3:07 PM, Yahia Tachwali
[EMAIL PROTECTED] wrote:

 


Thank you for the info, I have installed the rpm and I ended up with the
following :
--
[EMAIL PROTECTED] i686]# rpm -ivh kernel-*.rpm
Preparing...###
[100%]
 package kernel-2.6.9-67.0.22.EL is already installed
 package kernel-devel-2.6.9-67.0.22.EL is already installed
 package kernel-hugemem-devel-2.6.9-67.0.22.EL is already installed
 package kernel-smp-devel-2.6.9-67.0.22.EL is already installed
 file /boot/System.map-2.6.9-67.0.22.EL from install of
kernel-2.6.9-67.0.22.EL conflicts with file from package
kernel-2.6.9-67.0.22.EL
 file /boot/config-2.6.9-67.0.22.EL from install of
kernel-2.6.9-67.0.22.EL conflicts with file from package
kernel-2.6.9-67.0.22.EL
 file /boot/symvers-2.6.9-67.0.22.EL.gz from install of
kernel-2.6.9-67.0.22.EL conflicts with file from package
kernel-2.6.9-67.0.22.EL
 file /boot/vmlinuz-2.6.9-67.0.22.EL from install of
kernel-2.6.9-67.0.22.EL conflicts with file from package
kernel-2.6.9-67.0.22.EL
--

However, I was able to reboot with the new kernel but still I can not find o
files for my HDLC in the kernel path under driver/net/wan. I am listing
below the steps that I did to install a new customized kernel starting from
fresh installation of CentOS 4.4 with kernel 2.6.9-42

1- getting the kernel:
 1.1 access as root
 1.2 yum install rpm-build redhat-rpm-config
 1.3 su user
 1.4 cd
 1.5 mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
 1.6 echo %_topdir %(echo $HOME)/rpmbuild  .rpmmacros
 1.7 rpm -i
http://mirror.centos.org/centos/4/updates/SRPMS/kernel-2.6.9-67.0.22.EL.src.rpm
 2 /dev/null
 1.8 cd ~/rpmbuild/SPECS
 1.9 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2 prep-err.log | tee
prep-out.log
   



Looks good so far.

 


These so far sound fine. but then I guess there might be a mistake or
missing step in my procdure to build the new kernel:

2- building a new kernel:
 2.1 access as root
 2.2 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2 prep-err.log | tee
prep-out.log
   



The above rpmbuild is not necessary.  You have done it correctly in
step 1.9 (as user).

 


 2.3 su user
 2.4 cd ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.`uname -m`
 2.5 cp configs/kernel-2.6.18-i686.config .config
 2.6 make oldconfig
 2.7 make menuconfig {here I left it as is and did not do any modification
since I am planning to include HDLC as a module after build
a complete custom kernel}
   



I am confused.  If you did not make any changes here, why would you
expect your new kernel to provide the HDLC support (see above) ???

 


 2.8 [EMAIL PROTECTED] SPECS]$ rpmbuild -bb --target=`uname -m` kernel-2.6.spec 
2
build-err.log | tee build-out.log
   



Before that step (rpmbuild -bb), you should at least edit the line:

%define buildid .your_identifier

as written in the Wiki tutorial to make your rpm's version different
from the distro's.

 


 2.9 su
 2.10/ rpm -ivh kernel-*.rpm

 and after the last command I have got the conflict warning above. What is
wrong in my installation procedure! :( Please help.
/
   



Your customized kernel has the same version/revision as the
distro's.  So, it won't install unless you force it (not recommended
at all).

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

Thank you. So if it is not recommended to force it , what should I do to 
get it installed ?

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


Re: [CentOS] gcc editor for newbie (Emacs or vim or ?)

2008-08-10 Thread Nifty Cluster Mitch
On Sun, Aug 10, 2008 at 05:04:16PM -0500, Lanny Marcus wrote:
 
 I downloaded the .pdf version of Thinking in C++ and I've
 begun to read that and I did
 yum groupinstall 'Development Tools'   I'm a Newbie Desktop
 user, jumping into the deep end of the pool. Should I try to learn
 vi (Vim) (which obviously will help me, if I ever need to
 administer a remote box)  or install Emacs or something else,
 for the gcc editor?  An easy learning curve is strongly preferred,
 but, I am 100% aware of the advantages of vi. Recommendations?
 TIA!

gvim

There is almost no pain if you stick with gvim (vim).
The help is full of helpfull stuff, the mouse works,
syntax and keyword aware

You might also look at Eclipse.  









-- 
T o m  M i t c h e l l 
Got a great hat... now what.

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


Re: [CentOS] rebuilding the kernel.

2008-08-10 Thread Akemi Yagi
On Sun, Aug 10, 2008 at 4:04 PM, Yahia Tachwali
[EMAIL PROTECTED] wrote:
 Akemi Yagi wrote:

 1- getting the kernel:
  1.1 access as root
  1.2 yum install rpm-build redhat-rpm-config
  1.3 su user
  1.4 cd
  1.5 mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
  1.6 echo %_topdir %(echo $HOME)/rpmbuild  .rpmmacros
  1.7 rpm -i

 http://mirror.centos.org/centos/4/updates/SRPMS/kernel-2.6.9-67.0.22.EL.src.rpm
 2 /dev/null
  1.8 cd ~/rpmbuild/SPECS
  1.9 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2 prep-err.log |
 tee
 prep-out.log

 Looks good so far.

 These so far sound fine. but then I guess there might be a mistake or
 missing step in my procdure to build the new kernel:

 2- building a new kernel:
  2.1 access as root
  2.2 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2 prep-err.log |
 tee
 prep-out.log


 The above rpmbuild is not necessary.  You have done it correctly in
 step 1.9 (as user).

  2.3 su user
  2.4 cd ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.`uname -m`
  2.5 cp configs/kernel-2.6.18-i686.config .config
  2.6 make oldconfig
  2.7 make menuconfig {here I left it as is and did not do any
 modification
 since I am planning to include HDLC as a module after
 build
 a complete custom kernel}


 I am confused.  If you did not make any changes here, why would you
 expect your new kernel to provide the HDLC support (see above) ???

  2.8 [EMAIL PROTECTED] SPECS]$ rpmbuild -bb --target=`uname -m` 
 kernel-2.6.spec
 2
 build-err.log | tee build-out.log

 Before that step (rpmbuild -bb), you should at least edit the line:

 %define buildid .your_identifier

 as written in the Wiki tutorial to make your rpm's version different
 from the distro's.

  2.9 su
  2.10/ rpm -ivh kernel-*.rpm

  and after the last command I have got the conflict warning above. What
 is
 wrong in my installation procedure! :( Please help.
 /

 Your customized kernel has the same version/revision as the
 distro's.  So, it won't install unless you force it (not recommended
 at all).

 Akemi

 Thank you. So if it is not recommended to force it , what should I do to get
 it installed ?

Please read my reply to you in its entirety, not just the last part --
especially the line about buildid.

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


Re: [CentOS] gcc editor for newbie (Emacs or vim or ?)

2008-08-10 Thread William L. Maltby

On Sun, 2008-08-10 at 15:40 -0700, Akemi Yagi wrote:
 On Sun, Aug 10, 2008 at 3:11 PM, Frank Cox [EMAIL PROTECTED] wrote:
  On Sun, 10 Aug 2008 17:04:16 -0500
  Lanny Marcus [EMAIL PROTECTED] wrote:
 
  Should I try to learn
  vi (Vim) (which obviously will help me, if I ever need to
  administer a remote box)  or install Emacs or something else,
  for the gcc editor?

These two usually result in religious wars. Emacs is *very* powerful and
customizable and extensible. Probably makes the learning curve longer.
But it already has definitions for several languages. Vim also has some.

I never used emacs much as I already had a cake walk into vi (now vim)
because it uses a lot of what you find in regex, which I was intimately
familiar with, from heavy ed usage before vim was a gleam in someone's
eye.

If you already have some familiarity with regex (grep, sed, et al),
you'll probably find vim faster to learn.

Then I would suggest that. Otherwise, take a quick browse of the man
pages for both, pick one or the other and use it (almost) exclusively.
You'll quickly become competent if you use it a lot and take brief reads
of succeeding sections in the man pages or tutorials.

 snip

-- 
Bill

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


Re: [CentOS] gcc editor for newbie (Emacs or vim or ?)

2008-08-10 Thread Vaclav Mocek

Lanny Marcus wrote:

I downloaded the .pdf version of Thinking in C++ and I've
begun to read that and I did
yum groupinstall 'Development Tools'   I'm a Newbie Desktop
user, jumping into the deep end of the pool. Should I try to learn
vi (Vim) (which obviously will help me, if I ever need to
administer a remote box)  or install Emacs or something else,
for the gcc editor?  An easy learning curve is strongly preferred,
but, I am 100% aware of the advantages of vi. Recommendations?
TIA!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

  

Hi,

I suggest to install Eclipse and CDT plugin and you get a full IDE

http://www.eclipse.org/cdt/

BR

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


[CentOS] Question about Open SSH Public Keys

2008-08-10 Thread Clint Dilks

Hi People

I am setting up some systems with ssh public keys and as part of this I 
am using the from directive inside .ssh/authorized_keys.  Currently I am 
using the IP address to control the source.  eg from=10.0.0.1 but on 
one CentOS 4 System that is up to date this will only work if I replace 
the IP with the DNS name of the server.  I have verified that DNS is 
resolving the DNS Name to the correct IP address on the server in 
question and all seems to be fine. 

Aside from this CentOS Box have only been able to test this out on some 
old FC6 Machines
and they behave as I expected.  Anyone got any ideas why this might be 
happening ?  I have compared the sshd config between the FC6 Machines 
and the CentOS Box and can't spot anything that would explain the issue.


Thanks for any ideas, and have a nice day :)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Question about Open SSH Public Keys

2008-08-10 Thread Jay Leafey

Clint Dilks wrote:

Hi People

I am setting up some systems with ssh public keys and as part of this I 
am using the from directive inside .ssh/authorized_keys.  Currently I am 
using the IP address to control the source.  eg from=10.0.0.1 but on 
one CentOS 4 System that is up to date this will only work if I replace 
the IP with the DNS name of the server.  I have verified that DNS is 
resolving the DNS Name to the correct IP address on the server in 
question and all seems to be fine.


Just grasping at straws, but does the reverse DNS zone resolve to the 
correct DNS name?  For example, if the DNS entry bob.example.com 
translates to 10.0.0.1, does 10.0.0.1 resolve to bob.example.com?


--
Jay Leafey - Memphis, TN
[EMAIL PROTECTED]


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


Re: [CentOS] Question about Open SSH Public Keys

2008-08-10 Thread Clint Dilks

Jay Leafey wrote:

Clint Dilks wrote:

Hi People

I am setting up some systems with ssh public keys and as part of this 
I am using the from directive inside .ssh/authorized_keys.  Currently 
I am using the IP address to control the source.  eg from=10.0.0.1 
but on one CentOS 4 System that is up to date this will only work if 
I replace the IP with the DNS name of the server.  I have verified 
that DNS is resolving the DNS Name to the correct IP address on the 
server in question and all seems to be fine.


Just grasping at straws, but does the reverse DNS zone resolve to the 
correct DNS name?  For example, if the DNS entry bob.example.com 
translates to 10.0.0.1, does 10.0.0.1 resolve to bob.example.com?




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

Hi Jay :)

That was what I was trying to say with I have verified that DNS is 
resolving the DNS Name to the correct IP address on the server in 
question and all seems to be fine.


So yes I believe this is correct
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] rebuilding the kernel.

2008-08-10 Thread Yahia Tachwali

Akemi Yagi wrote:


On Sun, Aug 10, 2008 at 4:04 PM, Yahia Tachwali
[EMAIL PROTECTED] wrote:
 


Akemi Yagi wrote:
   


1- getting the kernel:
1.1 access as root
1.2 yum install rpm-build redhat-rpm-config
1.3 su user
1.4 cd
1.5 mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
1.6 echo %_topdir %(echo $HOME)/rpmbuild  .rpmmacros
1.7 rpm -i

http://mirror.centos.org/centos/4/updates/SRPMS/kernel-2.6.9-67.0.22.EL.src.rpm
   2 /dev/null
1.8 cd ~/rpmbuild/SPECS
1.9 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2 prep-err.log |
tee
prep-out.log
   


Looks good so far.
 


These so far sound fine. but then I guess there might be a mistake or
missing step in my procdure to build the new kernel:

2- building a new kernel:
2.1 access as root
2.2 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2 prep-err.log |
tee
prep-out.log

   


The above rpmbuild is not necessary.  You have done it correctly in
step 1.9 (as user).

 


2.3 su user
2.4 cd ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.`uname -m`
2.5 cp configs/kernel-2.6.18-i686.config .config
2.6 make oldconfig
2.7 make menuconfig {here I left it as is and did not do any
modification
since I am planning to include HDLC as a module after
build
a complete custom kernel}

   


I am confused.  If you did not make any changes here, why would you
expect your new kernel to provide the HDLC support (see above) ???
 


2.8 [EMAIL PROTECTED] SPECS]$ rpmbuild -bb --target=`uname -m` kernel-2.6.spec
2
build-err.log | tee build-out.log
   


Before that step (rpmbuild -bb), you should at least edit the line:

%define buildid .your_identifier

as written in the Wiki tutorial to make your rpm's version different
from the distro's.

 


2.9 su
2.10/ rpm -ivh kernel-*.rpm

and after the last command I have got the conflict warning above. What
is
wrong in my installation procedure! :( Please help.
/

   


Your customized kernel has the same version/revision as the
distro's.  So, it won't install unless you force it (not recommended
at all).

Akemi
 



 


Thank you. So if it is not recommended to force it , what should I do to get
it installed ?
   



Please read my reply to you in its entirety, not just the last part --
especially the line about buildid.

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


Hello Akemi,

I am sorry, I missed your extremely helpful notes. I got it working!!! 
Thank you very much... I got now my card running after getting the HDLC 
module loaded. Thank you very much to you and all the group for this 
support.


I am still wondering if what I did is an overkill to get the module 
loaded. I had the CentOS 4.4 with kernel 2.6.9.42 before installing this 
2.6.9.67 kernel. Is there a way to get the HDLC module built and 
installed with minimal steps rather than going into a complete fresh 
kernel rebuilt? My understanding from tutorials in the web that all what 
you need is to make and make install after editing the config file, but 
unfortunately that did not work in my original kernel, and that is why I 
decided to get a fresh kernel to experiment on.
If I can really get HDLC built and load without kernel build or download 
another kernel source. What could be missing in my original 2.6.9.42 
kernel that prevents me from doing make and make install after editing 
the config file?


Again, I appreciate alot the help and support from this group. You all 
have helped me alot and I am very thankful.


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