Re: [CentOS] Firewall trouble with Kickstart

2018-09-24 Thread Patrick Begou

Damned! I do not know how many time I check this line without finding my error!
Thanks Mark :-)

Mark Milhollan wrote:

On Fri, 21 Sep 2018, Patrick Begou wrote:


firewall --enabled --ssh --service=nfs --port=111:tcp,111:upd,875:tcp,875:upd

udp not upd.


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




--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


[CentOS] [CentOS7] Firewall trouble with Kickstart

2018-09-21 Thread Patrick Begou

helow

my goal is to install via kickstart a CentOS 7 NFS server but I fail to set the 
firewall rules at installation time.

In my kickstart file I set:

# Firewall configuration
# ssh and NFS
# Ports 111 and 875 are for rquotad
firewall --enabled --ssh --service=nfs --port=111:tcp,111:upd,875:tcp,875:upd

On the installed server,  /root/anaconda-ks.cfg contains:
# Firewall configuration
firewall --enabled --port=111:tcp,111:upd,875:tcp,875:upd --service=ssh,nfs

But after install "firewall-cmd --list-all" returns:

public (active)
  target: default
  icmp-block-inversion: no
  interfaces: p4p1
  sources:
  services: ssh dhcpv6-client
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

An idea about my mistake ?

Thanks

Patrick

--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===


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


[CentOS] Centos7/Kde4 freeze

2018-09-18 Thread Patrick Begou

Hi

I have a fresh install of centos 7.4 with KDE on a laptop (latitude 5590) 
connected to a DELL WD15 dockstation with an additionnal screen.

It works quite well, I have 2 screens side by side (default config), but
If I add a second menu bar for the screen connected to the dockstation (KDE 
allow for this) it is not possible anymore to start a kde session if the laptop 
is not connected to the dock station (eg: at home), kde freeze and never show 
any menubar. I have to use gnome to login and remove the .kde directory.


Is there a way to avoid this ?

Thanks

Patrick

--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] CentOS7: Setting up ldap over TLS in kickstart file

2018-06-15 Thread Patrick Begou

Thanks Paul and Gordon for your reply.

I'm not sure, but I think the problem is setting up ldap+TLS while the 
certificates are not uploaded on the server. So I decide to setup LDAP in a 
"post" section only, adding the "--enablesssd --enablesssdauth" options 
suggested by Gordon too.


in the kickstart file:
*auth  --useshadow --passalgo=sha512
*
in a post section:
#  LDAP setup
*authconfig --enableldap --enableldapauth --enablesssd --enablesssdauth 
--ldapserver="ldaps://my.ldap.server" --ldapbasedn=dc=my,dc=local,dc=dn --update**

*# Certificat Upload
*cd /etc/openldap/cacerts/ && wget 
http://xxx.xxx.xxx.xxx/Softwares7/LDAPCERTS/ca-bundle.crt**

*# server public key upload
*cd /etc/openldap/cacerts/ && wget 
http://xxx.xxx.xxx.xxx/Softwares7/LDAPCERTS/server.crt**

*cd /
#  TLS setup
*authconfig --enableldaptls --update**
*
And this works fine. Certificat bundle seams to be accepted (I've also tryed to 
split the file, no change) and the last command builds the hashes of the 
certificates too.


My last problem is that
 firstboot --disabled
don't seams to work in my config but...

Thanks for your helpfull suggestions about sssd and certificates.


Patrick

--
===
|  Equipe M.O.S.T.     |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


[CentOS] CentOS7: Setting up ldap over TLS in kickstart file

2018-06-14 Thread Patrick Begou

Hi,

I'm facing a problem with setting up LDAP+TLS client authentication in a 
kickstart script on CentOS7 for several days.


Setting up manualy the config with system-config-authentication works but I need 
to automate this in kickstart for deploying cluster nodes.

This show that the server side is running fine.

At this time the message is

#systemctl status sssd

|
sssd[be[default]][2732]: Could not start TLS encryption. error:14090086:SSL 
routines:ssl3_get_server_certificate:certificate verify failed (self signed 
certificate)|


In my kickstart file I use:
auth  --useshadow --enableldaptls --enablecache  --passalgo=sha512 --enableldap 
--enableldapauth --ldapserver="ldaps://my.ldap.server.fr" 
--ldapbasedn=dc=my,dc=base,dc=dn


Then in a post install script I download the server and ca certificates and 
stops nslcd that I do not use:


echo "TLS_REQCERT allow">>/etc/openldap/ldap.conf
cd /etc/openldap/cacerts/ && wget 
http://xxx.xxx.xxx.xxx/Softwares7/LDAPCERTS/ca-bundle.crt && ln -s ca-bundle.crt 
$(openssl x509 -hash -in ca-bundle.crt -noout).0
cd /etc/openldap/certs/ && wget 
http://xxx.xxx.xxx.xxx/Softwares7/LDAPCERTS/server.crt

cd /
systemctl disable nslcd

I'm unable to see what system-config-authentication is doing more in it's setup.

Thanks for your help

Patrick


||

--
===
|  Equipe M.O.S.T.     |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] NFS mount on Centos 7 crashing

2017-10-02 Thread Patrick Begou

This config is working fior me, with just using an older kernel.

[root@mnemosyne ~]# uname -r
3.10.0-514.21.2.el7.x86_64
[root@mnemosyne ~]# rpm -qa | grep rpcbind
rpcbind-0.2.0-42.el7.x86_64
[root@mnemosyne ~]# rpm -qa | grep nfs
libnfsidmap-0.25-17.el7.x86_64
nfs-utils-1.3.0-0.48.el7.x86_64

Patrick

--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] NFS Client with quota

2017-04-03 Thread Patrick Begou

man rquotad:

rquotad  is an rpc(3) server which returns quotas for a user of a local
   filesystem which is mounted by a remote machine over the NFS.  It  also
   allows  setting of quotas on NFS mounted filesystem (if configured dur-
   ing compilation and allowed by a command line option -S) etc

Seams to be also possible to set quotas from the client, but I never use it.

Patrick

koji.morikawa wrote:

Thanks Patrick.

For Solaris, quota can be set when mounting from NFS client.

There is a transition from Solaris to CentOS 6 this time.
Therefore, quota setting is required for NFS mounting
from CentOS 6 as with Solaris.

Is it still impossible for CentOS 6?

koji

On Sun, 2 Apr 2017 14:44:59 +0200
Patrick B??gou <patrick.be...@legi.grenoble-inp.fr> wrote:


Quota are managed at the filesystem level, so they are managed by the
NFS server.
rquotad allow NFS clients to display users quotas when the filesystem is
mounted.
Be carefull withe autofs, if a remote filesystem is not mounted on the
client, nos quotas are displayed by the quota command.

Patrick

koji.morikawa a ??crit :

Hello. I am "koji".

I have a question.

Can I mount a NFS with quota? (Not Server side)
I understand quota is set NFS server. But I must client side.
(Is rquota only report?)

Does anyone know a good solution?

Best regard.

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


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

/
システムズ・デザイン 株式会社
大阪支社  SI部 SI3課
森川 孝司 <koji.morik...@sdcj.co.jp>

〒530-6008
大阪市北区天満橋1丁目8番30号  OAPタワー 8階
TEL:06-6355-5971  FAX:06-6355-5974
http://www.sdcj.co.jp/
/
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos




--
===
|  Equipe M.O.S.T. |      |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===


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


Re: [CentOS] Wich web browser on CentOS6 ?

2017-02-10 Thread Patrick Begou

Tru Huynh wrote:

On Fri, Feb 10, 2017 at 12:26:14PM +0100, Patrick Begou wrote:

Hello

I have more and more troubles using firefox in professional
environment with CentOS6. The latest version is 45.7.0 But I can't
use it anymore to access some old server hardware (IDRAC7 of DELL
C6100) because of "/SSL_ERROR_WEAK_SERVER_CERT_KEY/".  I had to
install an old Firefox32 version to administrate these servers.


Can you try: (in Firefox's about:config):
possible workaround for SSL_ERROR_WEAK_SERVER_CERT_KEY
 security.ssl3.dhe_rsa_aes_128_sha
 security.ssl3.dhe_rsa_aes_256_sha

These are yet set to true.



Today I upgrade the firmware of 2 DELL switch and now Firefox cannot
connect to them anymore saying:
/An error occurred during a connection to xxx.xxx.xxx.xxx. The
server rejected the handshake because the client downgraded to a
lower TLS version than the server supports//
//SSL_ERROR_INAPPROPRIATE_FALLBACK_ALERT

possible workaround for SSL_ERROR_INAPPROPRIATE_FALLBACK_ALERT
 security.tls.version.max 3 -> 1

You might want to revert for safer browsing, after.
With this setting I get SSL_ERROR_NO_CYPHER_OVERLAP and I cannot connect to the 
switch.
Of course I can re-activate the old firmware version of the switch, but it has a 
bug I would like to solve too.


I know that to remains compatible with old config could have security problems 
but all of these devices
use dedicated ports (IDRAC, Out of band port management) on a private network 
which could be easily isolated.
The idea is to have a browser dedicated to this administration (instead of 
several versions/profiles)

/Is there a CentOS6 recommended web browser allowing continuous
connections to olds and new base level (and local) system
administration services ?

maybe different profiles with differents security setup?

Cheers

Tru


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


Thanks all for your suggestion to find a solution or detailing your local work 
around


Patrick

--
===
|  Equipe M.O.S.T. |      |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


[CentOS] Wich web browser on CentOS6 ?

2017-02-10 Thread Patrick Begou

Hello

I have more and more troubles using firefox in professional environment with 
CentOS6. The latest version is 45.7.0 But I can't use it anymore to access some 
old server hardware (IDRAC7 of DELL C6100) because of 
"/SSL_ERROR_WEAK_SERVER_CERT_KEY/".  I had to install an old Firefox32 version 
to administrate these servers.


Today I upgrade the firmware of 2 DELL switch and now Firefox cannot connect to 
them anymore saying:
/An error occurred during a connection to xxx.xxx.xxx.xxx. The server rejected 
the handshake because the client downgraded to a lower TLS version than the 
server supports//

//SSL_ERROR_INAPPROPRIATE_FALLBACK_ALERT

/Is there a CentOS6 recommended web browser allowing continuous connections to 
olds and new base level (and local) system administration services ?


Thanks

Patrick

--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


[CentOS] [solved] Centos6.8 and Python33

2017-02-06 Thread Patrick Begou

Current versions of numpy seams to be not compatible anymore with python 3.3 
:-[.
I had to specify an older package version:

pip install numpy==1.10.4
as 1.12.0 doesn't work anymore.

Patrick

--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] Centos6.8 and Python33

2017-02-06 Thread Patrick Begou

Pete Biggs wrote:

On Mon, 2017-02-06 at 13:07 +0100, Patrick Begou wrote:

I've some trouble with installing numpy in python 3.3 on Centos 6.8 as
installation request a different python version...

[root@sge ~]$ yum install python33 python33-python-tools
[root@sge ~]$ scl enable python33 bash
 = *this load Python 3.3.2*  ===
[root@sge ~]$ easy_install pip
[root@sge ~]$ pip install numpy
Collecting numpy
Using cached numpy-1.12.0.zip
  Complete output from command python setup.py egg_info:
  Traceback (most recent call last):
File "", line 1, in 
File "/tmp/pip-build-wyb0pj/numpy/setup.py", line 34, in 
  raise RuntimeError("Python version 2.7 or >= 3.4 required.")
*RuntimeError: Python version 2.7 or >= 3.4 required.


*I'm not familar with python and I do not find on google how to work arround
this


Even not knowing python, it's fairly obvious - it says you need Python
version 3.4 or greater for numpy 1.12.0, you've installed Python 3.3

Generally, I don't use pip for installing numpy - it's such a common
requirement for other packages that it's in the repositories. Try
something like

   yum install python33-numpy

P.

Using "yum install python33-numpy " could be a solution for numpy but this just 
forward the problem to the next package I have to install with pip. I do not 
understand why a python 3.3 environment try to install incompatibles packages.


I tryed to install python34 with yum but it does not seem to work with scl 
environment (yum install python34-setuptools python34)


Patrick


--
===
|  Equipe M.O.S.T.     |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


[CentOS] Centos6.8 and Python33

2017-02-06 Thread Patrick Begou
I've some trouble with installing numpy in python 3.3 on Centos 6.8 as 
installation request a different python version...


[root@sge ~]$ yum install python33 python33-python-tools
[root@sge ~]$ scl enable python33 bash
   = *this load Python 3.3.2*  ===
[root@sge ~]$ easy_install pip
[root@sge ~]$ pip install numpy
Collecting numpy
  Using cached numpy-1.12.0.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "", line 1, in 
  File "/tmp/pip-build-wyb0pj/numpy/setup.py", line 34, in 
raise RuntimeError("Python version 2.7 or >= 3.4 required.")
*RuntimeError: Python version 2.7 or >= 3.4 required.


[root@sge ~]$which python
/opt/rh/python33/root/usr/bin/python
[root@sge ~]$which pip
/opt/rh/python33/root/usr/bin/pip


*I'm not familar with python and I do not find on google how to work arround 
this


Thanks

Patrick

--
===
|  Equipe M.O.S.T. |          |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] c6, drbd and file systems

2016-05-04 Thread Patrick Begou

John R Pierce wrote:

On 5/3/2016 2:52 PM, Clint Dilks wrote:

Are you using SE Linux?  If so does the context for /dev/drbd0 match on
both systems ?


afaik, this has nothing to do with the drbd slave. I reboot the master, 
replication resumes just fine, but the /data filesystem doesn't get 
automounted til I manually mount it.






Any messages in /var/log/boot.log ?

Patrick

--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] Storage cluster advise, anybody?

2016-04-27 Thread Patrick Begou

May be this can be a good starting point:

https://pve.proxmox.com/wiki/High_Availability_Cluster

There is also a book "Proxmox High Availability" by Simon M. C. Cheng.

I'm starting to build such a solution to provide NFS service to my CentOS 
clients (i've just received the hardware). I'm using proxmox for a while, but 
without HA at this time, and it is very stable and reliable.


Patrick

Gordon Messmer wrote:

On 04/22/2016 12:24 PM, Digimer wrote:

My requirements are:

This sounds like you want a cloud-type storage, like ceph or gluster.


I agree.  I think either would work.  A cluster with striping and mirroring of 
volumes should fit all the requirements.

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




--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] CentOS6: Building a modified kernel rpm

2016-03-30 Thread Patrick Begou

Dear Akemi,

I'm really ashamed, in "https://wiki.centos.org/HowTos/I_need_the_Kernel_Source; 
I've missed the last 5 lines following the CentOS5 section. All is now clear for 
me on the process to follow to build a new kernel from source rpm and the 
CONFIG_NUMA_EMU option is active.
I've set it with make menuconfig to avoid some additional mistakes in the config 
file.


However, with this CONFIG_NUMA_EMU option , the compiler returns an error and 
compilation fails.

arch/x86/mm/srat_64.c: In function 'acpi_fake_nodes':
arch/x86/mm/srat_64.c:469: error: implicit declaration of function 
'__acpi_map_pxm_to_node'

make[2]: *** [arch/x86/mm/srat_64.o] Error 1
make[1]: *** [arch/x86/mm] Error 2
make: *** [arch/x86] Error 2
make: *** Waiting for unfinished jobs
error: Bad exit status from /var/tmp/rpm-tmp.VkJ805 (%build)
Bad exit status from /var/tmp/rpm-tmp.VkJ805 (%build)

Without CONFIG_NUMA_EMU option, compilation is successfull.
It is the CentOSplus kernel from kernel-2.6.32-573.el6.centos.plus.src.rpm as 
yous suggested.


Thank for your patience

Patrick

Akemi Yagi wrote:

On Tue, Mar 29, 2016 at 2:27 AM, Patrick Begou <
patrick.be...@legi.grenoble-inp.fr> wrote:


Akemi Yagi wrote:


I recommend you follows the instructions in this CentOS wiki article:

https://wiki.centos.org/HowTos/Custom_Kernel

If you encounter any issue, please let us know here.

Akemi

Thanks for answering Akemi . Indeed I tried using this howto before

posting but something is wrong in this tutorial.

I installed the prerequisites and downloaded the kernel sources as
detailed in section 2 of
https://wiki.centos.org/HowTos/I_need_the_Kernel_Source.

But on https://wiki.centos.org/HowTos/Custom_Kernel, section 2, all goes
wrong!
My ~/rpmbuild/BUILD directory is empty!
No configs directory too.
No ~/rpmbuild/BUILD/kernel-*/linux-*/ available, all configs files are in
~/rpmbuild/SOURCES


The referenced wiki article should work for building CentOS-6 kernels (not
quite ready for CentOS-7). You really have to dot the i's and cross the
t's. If you miss a step or command in there, chances are it will fail.



Since this I try to modify ~/rpmbuild/SOURCES/config-x86-generic because
it was the only file containing the CONFIG_ACPI_NUMA flag. No success, the
build does not take account of my changes as the
~/rpmbuild/BUILD/kernel-2.6.32-573.22.1.el6/linux-2.6.32-573.22.1.el6.numa.x86_64/.config
created file with:
rpmbuild -bb --without xen --without debug --without debuginfo
--target=x86_64 ./SPECS/kernel.spec
says "# CONFIG_NUMA_EMU is not set"

So I change this file with an editor and rebuild the rpm package of the
kernel with the same command. The .config file is overwriten.


As you found out, editing the existing config-x86-generic file would not
work because the final config file is created on the fly. This is why the
wiki instructions tell you to create your customized config file and show
you how to get that config file to be used during the build process.

I have another suggestion for you. Get the srpm for the CentOSPlus kernel
instead of the distro kernel. The plus kernel is a customized kernel. It
has kernel-xx-config files that you can directly edit. They will not be
overwritten. Perhaps this method is easier.

But if you wish to go for the original method, just be extremely precise
not to skip any step.

Hope this helps,

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




--
===
|  Equipe M.O.S.T. |          |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] CentOS6: Building a modified kernel rpm

2016-03-29 Thread Patrick Begou

Akemi Yagi wrote:

On Fri, Mar 25, 2016 at 9:57 AM, Patrick Begou <
patrick.be...@legi.grenoble-inp.fr> wrote:


I'm very confused on the right step to use to setup a modified kernel in
centOS6.

As a simple user, I've downloaded the latests sources (I'm runing an old
kernel version) :

rpm -i
http://vault.centos.org/6.7/updates/Source/SPackages/kernel-2.6.32-573.22.1.el6.src.rpm

in the spec file ~/rpmbuild/SPECS/kernel.spec I've set:
%define buildid .numa

Now I want to set *CONFIG_NUMA_EMU=y*
before runing:
rpmbuild -bb --without xen --without debug --without debuginfo
--target=x86_64 ./SPECS/kernel.spec

But where shoud I set this CONFIG_NUMA_EMU option ?
I've tested several config files where this options was specified (using
grep as a last solution)  but each build reset my choice and it is not
available in the final kernel.

And google is a little bit confusing for me with many and many diverging
informations.

Thank to kernel gourous for their advices.

Patrick


I recommend you follows the instructions in this CentOS wiki article:

https://wiki.centos.org/HowTos/Custom_Kernel

If you encounter any issue, please let us know here.

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

Thanks for answering Akemi . Indeed I tried using this howto before posting but 
something is wrong in this tutorial.


I installed the prerequisites and downloaded the kernel sources as detailed in 
section 2 of https://wiki.centos.org/HowTos/I_need_the_Kernel_Source.


But on https://wiki.centos.org/HowTos/Custom_Kernel, section 2, all goes wrong!
My ~/rpmbuild/BUILD directory is empty!
No configs directory too.
No ~/rpmbuild/BUILD/kernel-*/linux-*/ available, all configs files are in 
~/rpmbuild/SOURCES


Since this I try to modify ~/rpmbuild/SOURCES/config-x86-generic because it was 
the only file containing the CONFIG_ACPI_NUMA flag. No success, the build does 
not take account of my changes as the 
~/rpmbuild/BUILD/kernel-2.6.32-573.22.1.el6/linux-2.6.32-573.22.1.el6.numa.x86_64/.config 
created file with:
rpmbuild -bb --without xen --without debug --without debuginfo --target=x86_64 
./SPECS/kernel.spec

says "# CONFIG_NUMA_EMU is not set"

So I change this file with an editor and rebuild the rpm package of the kernel 
with the same command. The .config file is overwriten.


Today I've founded the "Howto Rebuild Centos 6.0 Linux Kernel"  page of Vaidas 
Jablonskis 
(https://jablonskis.org/2011/howto-rebuild-centos-6-0-linux-kernel/index.html)


rpm -i 
http://vault.centos.org/6.7/updates/Source/SPackages/kernel-2.6.32-573.22.1.el6.src.rpm

edit ~/rpmbuild/SPECS/kernel.spec to set the buildid
rpmbuild -bp ~/rpmbuild/SPECS/kernel.spec
cd 
~/rpmbuild/BUILD/kernel-2.6.32-573.22.1.el6/linux-2.6.32-573.22.1.el6.numa.x86_64/

edit .config  or make menuconfig to set CONFIG_NUMA_EMU=y
make rpm

But compilation fails with
arch/x86/mm/srat_64.c: In function 'acpi_fake_nodes':
arch/x86/mm/srat_64.c:469: error: implicit declaration of function 
'__acpi_map_pxm_to_node'


An error i've met some years ago and the only work arround found was to use an 
older kernel source package.


Patrick
||

--
===
|  Equipe M.O.S.T. |      |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


[CentOS] CentOS6: Building a modified kernel rpm

2016-03-25 Thread Patrick Begou

I'm very confused on the right step to use to setup a modified kernel in 
centOS6.

As a simple user, I've downloaded the latests sources (I'm runing an old kernel 
version) :


rpm -i 
http://vault.centos.org/6.7/updates/Source/SPackages/kernel-2.6.32-573.22.1.el6.src.rpm


in the spec file ~/rpmbuild/SPECS/kernel.spec I've set:
%define buildid .numa

Now I want to set *CONFIG_NUMA_EMU=y*
before runing:
rpmbuild -bb --without xen --without debug --without debuginfo --target=x86_64 
./SPECS/kernel.spec


But where shoud I set this CONFIG_NUMA_EMU option ?
I've tested several config files where this options was specified (using grep as 
a last solution)  but each build reset my choice and it is not available in the 
final kernel.


And google is a little bit confusing for me with many and many diverging 
informations.


Thank to kernel gourous for their advices.

Patrick


--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] Camera doesn't works after yum upgrade

2015-01-12 Thread Patrick Begou

m.roth wrote:

Patrick Begou wrote:

Thanks Marc for your answer, I have a /dev/video0 but no /dev/video.

   (it's mark)

Should I create a link ?
Or a new rule in udev ?

Oh, no - the question was whether /dev/videoX existed at all. Since you
say that it does, the next question is whether there are messages in
/var/log/messages, dmesg, or perhaps camera even has its own logfile?

mark

Hi Mark,

The /dev/video0 exists and the cheese application (used for testing) seams to 
find it. But the menu for choosing the camera is greyed as if it was unusable.


The message I get in /var/log/messages is:
kernel: uvcvideo: Failed to query (GET_DEF) UVC control 6 on unit 2: -110 
(exp. 2).

each time I launch the cheese application.

Patrick

--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] Camera doesn't works after yum upgrade

2015-01-09 Thread Patrick Begou
-1.3.2-2.1.el6.i686
Jan 09 12:25:11 Updated: libXrender-0.9.8-2.1.el6.i686
Jan 09 12:25:14 Updated: libXfixes-5.0.1-2.1.el6.i686
Jan 09 12:25:14 Updated: libXcursor-1.1.14-2.1.el6.i686
Jan 09 12:25:15 Updated: libXrandr-1.4.1-2.1.el6.i686
Jan 09 12:25:16 Updated: pango-1.28.1-10.el6.i686
Jan 09 12:25:17 Updated: libXinerama-1.1.3-2.1.el6.i686
Jan 09 12:25:17 Updated: libXp-1.0.2-2.1.el6.i686
Jan 09 12:25:18 Updated: libXi-1.7.2-2.2.el6.i686
Jan 09 12:25:19 Updated: libXt-1.1.4-6.1.el6.i686
Jan 09 12:25:20 Installed: gdk-pixbuf2-2.24.1-5.el6.i686
Jan 09 12:25:22 Updated: gtk2-2.24.23-6.el6.i686
Jan 09 12:25:23 Updated: openmotif-2.3.3-8.el6.i686
Jan 09 12:25:23 Updated: libXxf86vm-1.1.3-2.1.el6.i686
Jan 09 12:25:24 Updated: libuuid-2.17.2-12.18.el6.i686
Jan 09 12:25:24 Updated: pixman-0.32.4-4.el6.i686
Jan 09 12:26:07 Erased: hdf5-mpich2
Jan 09 12:26:30 Erased: mpich2
Jan 09 12:29:56 Erased: libsss_autofs
Jan 09 13:26:40 Updated: kernel-firmware-2.6.32-504.3.3.el6.centos.plus.noarch
Jan 09 13:26:47 Installed: kernel-2.6.32-504.3.3.el6.centos.plus.x86_64
Jan 09 14:19:05 Erased: ivtv-firmware
Jan 09 14:23:29 Installed: kmod-video4linux-0.0-1.20120309.el6.elrepo.x86_64
Jan 09 14:38:29 Installed: xorg-x11-drv-intel-2.99.911-6.el6.x86_64
Jan 09 14:38:30 Installed: xorg-x11-drivers-7.3-13.4.el6.x86_64

--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


[CentOS] Camera doesn't works after yum upgrade

2015-01-09 Thread Patrick Begou

Hi,

I've launched  a yum upgrade command on a CentOS6 laptop which has updated 
nearly 600 packages. Automatic updates were not working because of a conflict on 
a package.


So the laptop is now uptodate but the camera did not works after this. The 
message is:


kernel: uvcvideo: Failed to query (GET_DEF) UVC control 6 on unit 2: -110 (exp. 
2).

The camera is detected as USB, lsusb shows:
Bus 001 Device 003: ID 0c45:646b Microdia

I've tryed to boot on alternative kernels but no change:
- vmlinuz-2.6.32-504.3.3.el6.centos.plus.x86_64 (which solve a camera problem on 
my laptop)

- vmlinuz-2.6.32-431.29.2.el6.x86_64
- vmlinuz-3.10.63-1.el6.elrepo.x86_64

Any idea about a faulty package ?
I've added the upgrade log in attachment but it's quite big. The first four 
erased item were because of conflicts. Some are re-installed after the upgrade 
(end of the log file)


Thanks

Patrick

--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] Camera doesn't works after yum upgrade

2015-01-09 Thread Patrick Begou

It was a previous problem on my personal laptop.
The current problem is for the laptop of a student and changing the kernel 
doesn't solve it.


I'm sorry to be confused with tghis information.

Patrick

Akemi Yagi wrote:

On Fri, Jan 9, 2015 at 7:31 AM, Patrick Begou
patrick.be...@legi.grenoble-inp.fr wrote:

Hi,

I've launched  a yum upgrade command on a CentOS6 laptop which has updated
nearly 600 packages. Automatic updates were not working because of a
conflict on a package.

So the laptop is now uptodate but the camera did not works after this. The
message is:

kernel: uvcvideo: Failed to query (GET_DEF) UVC control 6 on unit 2: -110
(exp. 2).

The camera is detected as USB, lsusb shows:
Bus 001 Device 003: ID 0c45:646b Microdia

I've tryed to boot on alternative kernels but no change:
- vmlinuz-2.6.32-504.3.3.el6.centos.plus.x86_64 (which solve a camera
problem on my laptop)

I am a bit confused. Was the camera problem solved with the centosplus
kernel? Or are you referring to yet another camera problem? If the
former, this is a known issue:

http://bugs.centos.org/view.php?id=7815

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




--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] Camera doesn't works after yum upgrade

2015-01-09 Thread Patrick Begou

Thanks Marc for your answer, I have a /dev/video0 but no /dev/video.
Should I create a link ?
Or a new rule in udev ?

Patrick

m.r...@5-cent.us wrote:

Patrick Begou wrote:

Hi,

I've launched  a yum upgrade command on a CentOS6 laptop which has
updated nearly 600 packages. Automatic updates were not working because

of a

conflict on a package.

So the laptop is now uptodate but the camera did not works after this. The
message is:

kernel: uvcvideo: Failed to query (GET_DEF) UVC control 6 on unit 2: -110
(exp. 2).

The camera is detected as USB, lsusb shows:
Bus 001 Device 003: ID 0c45:646b Microdia

snip
We use motion, so I' m not familiar with camera, but does it load an v4l2
kernel module, and so create /dev/video0? If so, does the /dev/video
device exist?

 mark




--
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] Recent version of Latex

2014-01-31 Thread Patrick Begou
I've tried to use texlive-2013-0.1.20130608_r30832.fc19.src.rpm but I can't 
build it! I fall in a sort of circular dependancy:

rpmbuild --clean --rebuild ./texlive-2013-0.1.20130608_r30832.fc19.src.rpm
error: Failed build dependencies:
 harfbuzz-devel is needed by texlive-3:2013-0.1.20130608_r30832.el6.x86_64
 graphite2-devel is needed by texlive-3:2013-0.1.20130608_r30832.el6.x86_64

rpmbuild --clean --rebuild ./harfbuzz-0.9.19-1.fc19.src.rpm
error: Failed build dependencies:
 graphite2-devel is needed by harfbuzz-0.9.19-1.el6.x86_64

rpmbuild --clean --rebuild ./graphite2-1.2.2-2.fc19.src.rpm
error: Failed build dependencies:
 texlive-helvetic is needed by graphite2-1.2.2-2.el6.x86_64
 texlive-sectsty is needed by graphite2-1.2.2-2.el6.x86_64
 texlive-tocloft is needed by graphite2-1.2.2-2.el6.x86_64
 texlive-xtab is needed by graphite2-1.2.2-2.el6.x86_64
 texlive-multirow is needed by graphite2-1.2.2-2.el6.x86_64

Patrick

-- 
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


[CentOS] Recent version of Latex

2014-01-28 Thread Patrick Begou
I've moved most of my user's PCs from OpenSuse (11.x, unmaintainend now) to 
CentOS 6.4. On my old OpenSuse latex was texlive-latex-2010 and current 
version on CTAN is texlive-2013.

But on CentOS 6.4 I've only the old texlive-latex-2007 and several sty files 
available on my previous config are not available now and users cannot compile 
their previous documents.

Is there a Yum repo from where I can install a more uptodate latex environment 
for CentOS6.4 ?

Thanks

Patrick

-- 
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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


Re: [CentOS] Need help with kernel, modules and headers

2014-01-14 Thread Patrick Begou
Akemi Yagi wrote:
 On Mon, Jan 13, 2014 at 9:09 AM, Patrick Begou
 patrick.be...@legi.grenoble-inp.fr wrote:
 I need some help about kernels, modules and so on.

 I've installed CentOS6.5 (fresh install) on a DELL E7440 laptop. After all 
 the
 updates I get the latest kernel: kernel-2.6.32-431.

 But with this config I've a problem: If I close the screen on the keyboard, 
 the
 laptop hibernate. When I open it the system restart (I connect use ssh to 
 reach
 the laptop) but the screen remains black (Intel HD Graphics 4400).

 I've installed a more recent kernel from  elrepo-kernel
 (kernel-lt-3.10.26-1.el6.elrepo.x86_64) and it solves the black screen 
 problem.

 But now I have several errors about
 = kdump,
 Starting kdump: ÉCHOUÉ
 = vboxdrv
 Starting VirtualBox kernel modules  ÉCHOUÉ
 (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
 = dkms (requested for VirtualBox)
 Démarrage de dkms : Error!
 Your kernel headers for kernel 3.10.26-1.el6.elrepo.x86_64 cannot be found at
 /lib/modules/3.10.26-1.el6.elrepo.x86_64/build or
 /lib/modules/3.10.26-1.el6.elrepo.x86_64/source.

 but kernel-lt-headers cannot be installed (conflicting with the installed
 kernel-headers requested by many packages).
 You need the kernel-devel package (not -headers) that matches your
 running kernel.

 Akemi


Thanks Akemi.  Now, after a new fresh install of centos and this kernel, the 
laptop boot properly and when the laptop hibernate after closing the screen the 
restart is fast and efficient. I also notice a very faster network with these 
new drivers!

But I think I still have a problem with modules added by virtual box. If I 
install this application the problem come back as with previous kernel. Mays be 
hibernation it is not supported with virtualbox and the modules it adds...

Patrick

-- 
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===


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


[CentOS] Need help with kernel, modules and headers

2014-01-13 Thread Patrick Begou
I need some help about kernels, modules and so on.

I've installed CentOS6.5 (fresh install) on a DELL E7440 laptop. After all the 
updates I get the latest kernel: kernel-2.6.32-431.

But with this config I've a problem: If I close the screen on the keyboard, the 
laptop hibernate. When I open it the system restart (I connect use ssh to reach 
the laptop) but the screen remains black (Intel HD Graphics 4400).

I've installed a more recent kernel from  elrepo-kernel 
(kernel-lt-3.10.26-1.el6.elrepo.x86_64) and it solves the black screen problem.

But now I have several errors about
= kdump,
Starting kdump: ÉCHOUÉ
= vboxdrv
Starting VirtualBox kernel modules  ÉCHOUÉ
   (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
= dkms (requested for VirtualBox)
Démarrage de dkms : Error!
Your kernel headers for kernel 3.10.26-1.el6.elrepo.x86_64 cannot be found at
/lib/modules/3.10.26-1.el6.elrepo.x86_64/build or 
/lib/modules/3.10.26-1.el6.elrepo.x86_64/source.

but kernel-lt-headers cannot be installed (conflicting with the installed 
kernel-headers requested by many packages).


So what could you suggest me to solve this situation ?
- kernel-2.6.32-431 all is working but if the laptop hibernate it hangs
- kernel 3.10.26-1 video works fine but I get conflicts for some applications

Thanks for your advices

Patrick

-- 
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===


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


Re: [CentOS] hung nfs mount

2013-10-16 Thread Patrick Begou
Did you also check /var/log/messages  on the nfs server side ?

I had some NFS troubles with lockd some times ago and it was a firewall problem 
on the client:

Try:
- log on the NFS server and check in /var/log/messages which client is 
responsible for the problem (it could be an other one than your client).
- on this client stop iptables (service iptables stop) and check if the problem 
still exist.

In my configs, client iptables fully trust my NFS server.

Patrick

-- 
===
|  Equipe M.O.S.T. |  |
|  Patrick BEGOU   | mailto:patrick.be...@grenoble-inp.fr |
|  LEGI|  |
|  BP 53 X | Tel 04 76 82 51 35   |
|  38041 GRENOBLE CEDEX| Fax 04 76 82 52 71   |
===

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