Re: [CentOS] CentOS 7 + KDE - default keyboard layout?

2016-11-14 Thread Patrick Hess

On 10.11.2016 08:30, Nicolas Kovacs wrote:

My system is installed in French, with a swiss french keyboard
(fr_CH-latin1) as default. This works OK in console mode, but when KDE
launches the first time, the default keyboard is US, and there's a
french (fr-latin1) alternative configured.


XFCE user here, so I'm not sure if KDE tries to enforce its own settings with
regard to the keyboard layout, but have you tried (as root):

localectl set-x11-keymap  
pc105 nodeadkey

This changes the X11 keyboard settings permanently for all users on the system
and works fine with (at least) XFCE.

Patrick

--
If you'd like to send me a private message, make sure to remove
the "_lists" part from my address.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How do I default to "Folder View" in my custom KDE user profile?

2016-11-14 Thread Patrick Hess

On 13.11.2016 08:46, Nicolas Kovacs wrote:

One thing I can't seem to define is a default "folder view" for the
desktop. Instead of the plasmoids on the desktop introduced with KDE4,
I'd like my environment to behave like a "classic" desktop with folders
and files on the desktop, and where a right click can - for example -
create a folder. My KDE is in french, but if I remember correctly, this
setup is called "Folder View" in english.


All my KDE4 desktops around here are in German (and they're on FreeBSD,
but that shouldn't really matter) so the translations are not exact.
Anyway, try this:

   - Right-click on your desktop
   - Choose "Settings for Default Workspace"
   - From the dialog, select "Folder View" for the layout
 

Question: how can I define this behavior as default? Which file or stub
do I have to put in /etc/skel so a newly created user's KDE defaults to
"Folder View"?


After making said change in the GUI, I ran:

find ~/.kde4 -mtime -60s

to see what files have been changed within the last 60 seconds, and these
two guys showed up:

~/.kde4/share/config/plasma-desktoprc
~/.kde4/share/config/plasma-desktop-appletsrc

Patrick

--
If you'd like to send me a private message, make sure to remove
the "_lists" part from my address.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 7 and Kably lake: black screen

2016-11-14 Thread Johnny Hughes
On 11/12/2016 02:39 PM, Louis Lagendijk wrote:
> On Sat, 2016-11-12 at 15:34 -0500, Fred Smith wrote:
>> On Sat, Nov 12, 2016 at 09:15:22PM +0100, Louis Lagendijk wrote:
>>>
>>> I got a new laptop as my old one died: an HP Probook 470 G4. 
>>> I installed Centos 7 1511.
>>> The laptop has a Kaby Lake i5 CPU and an 
>>> 01:00.0 3D controller: NVIDIA Corporation Device 134e (rev a2). 
>>> Fedora recognizes it as a GM108M/930MX. This may give some hints,
>>> but
>>> it is not that the standard kernel does not support it, this output
>>> comes from the 4.8.7 mainline kernel which should support this
>>> configuration? GM108 support was added in kernel 4.7, Kaby lake
>>> support
>>> was added in 4.5...
>>>
>>> When I boot nothing shows up after the UEFI Grub menu: the system
>>> runs
>>> but nothing is shown on the display, except for a non-blinking
>>> cursor
>>> in the upper left of the screen. I tried a number of things:
>>> - Installed the latest ml-kernel from Elrepo (4.8.7-1)
>>> - I also tried the following on the kernel commandline:
>>> nomodeset i915.nomodeset=0 nouveau.modeset=0
>>> Nothing changes the fact that there is no display.
>>>
>>> I had to install Centos 7 using vnc as even a text install did not
>>> work
>>>
>>> Does anybody have some idea what the cause could be and what to try
>>> next?
>>
>> Did you try CTRL-ALT-F2 or -F3 ? perhaps X has just died (or not been
>> properly started), but that would get you a text-mode consosle from
>> which to work and experiment.
>>
>> if that works, you could try typing "startx" (lose the quotes). which
>> may provide informative errors. or not. 
>>
>> YMMV
>>
>>
> Thanks for your response, but...
> No, tried it, but that did not work either unfortunately.
>

If you still have the machine available, try using the experimental kernel:

http://mirror.centos.org/altarch/7/experimental/x86_64/

Also, what graphic card does it use?

Thanks,
Johnny Hughes





signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] httpd-filesystem in 7.3 ??

2016-11-14 Thread Johnny Hughes
On 11/11/2016 09:20 AM, Alice Wonder wrote:
> Does anyone know if the Apache httpd in CentOS 7.3 rebase is going to
> use the httpd-filesystem that Fedora is now using?
> 
> I understand it has some advantages to some people with how PHP is run.
> 
> I'm not advocating for it I just would like to know as I maintain a
> LibreSSL LAMP stack and need to know if I need to look at the Fedora
> packaging to update my own packaging so I can remain as close to 7.3
> style as reasonably possible.

They backport security changes and enhancements back into server
components like httpd within a major (ie CentOS-5, CentOS-6, CentOS-7)
release.  So likely no.

The version of httpd in 7.3:  httpd-2.4.6-45.el7.src.rpm






signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7 + KDE - default keyboard layout?

2016-11-14 Thread Nicolas Kovacs
Le 14/11/2016 à 12:49, Patrick Hess a écrit :
> XFCE user here, so I'm not sure if KDE tries to enforce its own settings
> with
> regard to the keyboard layout, but have you tried (as root):
> 
> localectl set-x11-keymap  might have> pc105 nodeadkey
> 
> This changes the X11 keyboard settings permanently for all users on the
> system
> and works fine with (at least) XFCE.
> 
> Patrick

Thanks for your response. (Native german speaker here also.)

I tried what you suggested:

# localectl set-x11-keymap fr_CH-latin1 pc105 nodeadkey

As is to be expected, this modifies /etc/X11/xorg.conf.d/00-keyboard.conf:

# Read and parsed by systemd-localed. It's probably wise not to edit
this file
# manually too freely.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "fr_CH-latin1"
Option "XkbModel" "pc105"
Option "XkbVariant" "nodeadkey"
EndSection

Unfortunately, to no avail. When I create a new user from here, KDE's
keyboard still defaults to US.

This looks like a CentOS bug to me: unable to define a non-US
system-wide keyboard when using KDE.

Cheers,

Niki

-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] [offtopic] JavaScript and ServiceWorkers in FireFox

2016-11-14 Thread Alice Wonder
This is a bit off-topic but the question exists due to the FireFox in 
CentOS 7.


Few websites I have visited (e.g. LiveScience.com) the browser asks me 
if it can give me notifications.


I always say no because of bad experiencies with notifications on 
Android where notification spam is the largest reason why I dislike the 
Android operating system (screwed up update system is the second reason, 
I'm a tree hugging save the planet hippie so I don't buy a new phone 
every two weeks but instead wait until mine breaks, so its often weeks 
or months before I actually get updates that exist)


Anyway I have never allowed a website to send me notifications but I now 
have use to make notifications available to users on one of my sites if 
they opt in.


Looking into how they are done, it seems to involve serviceWorkers which 
I have heard about but never used myself.


Going through a simple tutorial I created this function:

function registerWorker() {
"use strict";
if ('serviceWorker' in navigator) {
window.alert('Hello World');
} else {
window.alert('no joy');
}
}

obviously not finished as it doesn't register anything, but it kept 
telling me "no joy" in CentOS FireFox.


After a little research I found that FireFox 45 ESR has serviceWorkers 
but they are disabled by default. I had to go to about:config and find 
the line


dom.serviceWorkers.enabled

and change it from False to True

But then it dawned on me, if they are not enabled, then how are other 
sites asking me if I want to allow notifications from the site?


Are they asking me before they have detected whether or not my browser 
supports it, or is there a different mechanism for notifications that 
doesn't involve Service Workers?


Does anybody know?

-=-

Basically my use is an audio site, there's not much reason to visit the 
site if the user has all the audios they are interested in, and we don't 
do e-mail notifications for privacy reasons.


Would like to be able to notify users who opt-in that new audios are 
available from performers they are interested in if they opt-in to 
notifications *without* needing their e-mail address.


It looks like serviceWorkers are needed for that, but it puzzles me that 
other sites (more than just liveScience) have offered me notifications 
when the FireFox in CentOS by default has the API disabled, so I'm 
wondering if there is a different API I just do not know about?

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


Re: [CentOS] CentOS 7 + KDE - default keyboard layout?

2016-11-14 Thread Patrick Hess

On 14.11.2016 14:33, Nicolas Kovacs wrote:

# localectl set-x11-keymap fr_CH-latin1 pc105 nodeadkey

As is to be expected, this modifies /etc/X11/xorg.conf.d/00-keyboard.conf:


Interesting, I didn't actually realize that myself before.


Option "XkbLayout" "fr_CH-latin1"


According to this link


https://wiki.manjaro.org/index.php?title=Configuration_du_clavier_apr%C3%A8s_l%27installation

the XkbLayout should read "ch(fr)" instead of "fr_CH-latin1", as the
system console and X.org seem to use a different notation for selecting
the layout in this particular case:

   - Dans le terminal - Pour la Suisse romande:
 loadkeys fr_CH-latin1

   - Dans X11 / Xorg - Configurer le clavier de manière permanente:
 Option "XkbLayout" "ch(fr)"

Then, this should work as well:

localectl set-x11-keymap 'ch(fr)' pc105 nodeadkey


This looks like a CentOS bug to me: unable to define a non-US
system-wide keyboard when using KDE.


That could be possible, of course. On FreeBSD, with the keyboard layout 
configured the old-fashioned way via /etc/X11/xorg.conf, KDE does respect
the system-wide settings. I would expect KDE to behave the same on CentOS.
However, I only had to deal with easy layouts like "de" and "us" so far;
Swiss-French might pose a bit more of a challenge. ;-)

Patrick

--
If you'd like to send me a private message, make sure to remove
the "_lists" part from my address.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7 + KDE - default keyboard layout?

2016-11-14 Thread Nicolas Kovacs
Le 14/11/2016 à 17:33, Patrick Hess a écrit :
> That could be possible, of course. On FreeBSD, with the keyboard layout
> configured the old-fashioned way via /etc/X11/xorg.conf, KDE does respect
> the system-wide settings. I would expect KDE to behave the same on CentOS.
> However, I only had to deal with easy layouts like "de" and "us" so far;
> Swiss-French might pose a bit more of a challenge. ;-)
> 
> Patrick

I'm running Slackware on my main workstation, where I have a
90-keyboard-layout.conf file in /etc/X11/xorg.conf.d, and it looks like
this:

Section "InputClass"
Identifier "keyboard-all"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "ch"
Option "XkbVariant" "fr"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

But then, I'm also running Xfce on this machine, so I don't know if on
the CentOS machine, the problem is related to localectl, to X.org or to
KDE.

I tried to replace the CentOS configuration stub with the one I have on
the Slackware machine, but to no avail. The keyboard is still US. While
it's not a big deal, of course, I'd rather avoid having to reconfigure
all my users' keyboard layout by hand.

Cheers,

Niki

-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] static linking

2016-11-14 Thread Steve Clark

Hello,

Can someone explain why a static library would make calls to dlopen?

openssl-static-1.0.1e-48.el6_8.3.x86_64

/usr/lib64/libcrypto.a

In trying to staticly link against the above I get

/usr/lib64/libcrypto.a(fips.o): In function `verify_checksums':
(.text+0x62b): undefined reference to `dlopen'

It didn't use to do this.

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


Re: [CentOS] CentOS 7 + KDE - default keyboard layout?

2016-11-14 Thread Patrick Hess

On 14.11.2016 17:55, Nicolas Kovacs wrote:

But then, I'm also running Xfce on this machine, so I don't know if on
the CentOS machine, the problem is related to localectl, to X.org or to
KDE.


Alright, I just installed KDE in an existing VirtualBox VM (so that I
can easily undo everything later) that used to be "fully Germanized",
and then tried to switch the whole system over to French:

virtualcentos7:~ > localectl
   System Locale: LANG=fr_FR.UTF-8
   VC Keymap: fr-nodeadkeys
  X11 Layout: fr
   X11 Model: pc105
 X11 Variant: nodeadkeys
virtualcentos7:~ > getafrencherrormessage
bash: getafrencherrormessage : commande introuvable

So far, so good. Here's where the fun begins... XFCE talks to me in French,
whereas KDE still insists on speaking English (there's probably a separate
package that needs to be installed, but who cares). What's more important,
the keyboard layout in GDM, XFCE and KDE is still *German*! In fact, even
GDM still offers only German and US layouts to choose from.

Honestly, I have no clue what's going on here anymore. I surely must be
missing something.
 

I tried to replace the CentOS configuration stub with the one I have on
the Slackware machine, but to no avail. The keyboard is still US. While
it's not a big deal, of course, I'd rather avoid having to reconfigure
all my users' keyboard layout by hand.


Well, there's always "setxkbmap 'ch(fr)'" that you could run automatically
when a user logs in. And this *does* actually work here, e.g. pressing the
Ö key on my German keyboard causes an é to appear, which should correspond
to a Swiss-French layout. I'm not entirely sure what the best place to put
this command would be, though. Maybe /etc/profile or ~/.profile?

test -n "$DISPLAY" && setxkbmap 'ch(fr)'

After all, this doesn't look like a KDE issue to me. Let's blame systemd,
shall we? ;-)

Patrick

--
If you'd like to send me a private message, make sure to remove
the "_lists" part from my address.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Need help getting two NICs to work on CentOS 7

2016-11-14 Thread Sean Son
On Tue, Nov 8, 2016 at 8:02 AM, Boris Epstein  wrote:

> Hello there,
>
> What is the hypervisor that hosts the VM? What does ifconfig show on it?
>
> Boris.
>
> On Mon, Nov 7, 2016 at 4:36 PM, Gordon Messmer 
> wrote:
>
> > On 11/06/2016 11:00 PM, Sean Son wrote:
> >
> >> How do I
> >> configure the networking so that both IPs are pingable and the VM is
> >> reachable via both IPs?
> >>
> >
> >
> > You need one rule file per interface, which directs traffic out the
> > appropriate interface based on the source address of the packet:
> >
> > https://blogs.oracle.com/networking/entry/advance_
> routing_for_multi_homed
> >
> > ___
> > 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
>


Hello all

Thank you for the replies.  I ran into  some issues with the policy based
routing which I will explain in a few.  First off to answer each one of
your questions:

Digimer: No I didnt take a look at IPTables

Peter Brady: Thank you for the example, I tried that but it failed and I
will explain in a minute.

Frank Cox : That works but how do I make it persistent across reboots?

Boris Epstein:  I am using Hyper-V and its getting annoying lol


Ok so here is how I have set everything up:

my /etc/iproute2/rt_tables:


#
# reserved values
#
255 local
254 main
253 default
0   unspec
#
# local
#
#1  inr.ruhep
300 NIC1
310 NIC2

my /etc/sysconfig/network-scripts/route-eth0 file:

168.87.147.0/24 dev eth0 table 300
default via 168.87.147.1 dev eth0 table 300

/etc/sysconfig/network-scripts/route-eth1 file:

10.20.50.0/24 dev eth1 table 310
default via 10.20.50.1 dev eth1 table 310

My /etc/sysconfig/network-scripts/rule-eth0:

from 168.87.147.33/32 table 300
to 168.87.147.33 table 300

My /etc/sysconfig/network-scripts/rule-eth1:

from 10.20.50.90/32 table 310
to 10.20.50.90 table 310


now after implementing this and restarting NetworkManager,  when I run 'ip
rule list', I get the following:

0:  from all lookup local
32764:  from all to 10.20.50.90 lookup NIC2
32765:  from 10.20.50.90 lookup NIC2
32766:  from all lookup main
32767:  from all lookup default


and when i run 'ip route' , i get the following:

default via 168.87.147.1 dev eth0  proto static  metric 1024
10.20.50.0/24 dev eth1  proto kernel  scope link  src 10.20.50.90
168.87.147.0/24 dev eth0  proto kernel  scope link  src 168.87.147.33



yet when I try to ping from another server to 10.20.50.90 it will not ping
at all. Also, whenever I reboot the VM, eth1 switches over to DHCP and I
lose my IP configuration. After I reset the IP Configuration back to Manual
and reenter the IP, Centos creates a new interface file called
ifcfg-Wired_Connection-1 and places the IP configuration for the interface
into that file. Both virtual NICs are set to Static Mac Addresses, so I
dont know why it keeps creating another interface file.  Any ideas on what
I am doing wrong here? All help is greatly appreciated!


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


Re: [CentOS] Need help getting two NICs to work on CentOS 7

2016-11-14 Thread Gordon Messmer

On 11/14/2016 12:47 PM, Sean Son wrote:

Any ideas on what
I am doing wrong here?



Nothing obvious.  Since your interfaces have static configurations, I'd 
suggest turning off NetworkManager and turning on the "network" service 
to determine whether or not that works correctly after a reboot.


Assuming it does, fixing the issue might be as simple as getting 
NetworkManager to not rename one interface to "wired connection 1".


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