[CentOS] Changing LANG from de_DE to en_US in CentOS 6

2014-12-21 Thread Alexander Farber
Hello,

on a Macbook with OSX Yosemite (which prints de_DE.UTF-8 as value of
$LANG in Terminal) and VmWare Fusion 7 I have installed CentOS 6.6
minimal.

When I ssh to my new VM as root, the $LANG is de_DE.UTF-8 too.

I would like it to be en_US.UTF-8 instead.

I have grepped /etc and /root for de_DE, but nothing is found there.

Grepping for LANG in /etc gives many results, esp. /etc/sysconfig/i18n contains:

   LANG=en_US.UTF-8
   SYSFONT=latarcyrheb-sun16

So where does the change to de_DE happen and what is the best spot in
CentOS 6 to set that to en_US.UTF-8

(I understand that I could set LANG in /root/.bash_profile but am
looking for a better place to do that).

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


Re: [CentOS] Changing LANG from de_DE to en_US in CentOS 6

2014-12-21 Thread Stephen Harris
On Sun, Dec 21, 2014 at 11:04:30AM +0100, Alexander Farber wrote:
 on a Macbook with OSX Yosemite (which prints de_DE.UTF-8 as value of
 $LANG in Terminal) and VmWare Fusion 7 I have installed CentOS 6.6
 minimal.
 
 When I ssh to my new VM as root, the $LANG is de_DE.UTF-8 too.
 
 So where does the change to de_DE happen and what is the best spot in

ssh is setting it, based on your terminal settings.

In /etc/ssh/sshd_config you'll see a lines starting with AcceptEnv - one of 
the settings
will be LANG.  This tells the ssh daemon to accept the LANG value sent by the 
client.
A standard ssh client (/etc/ssh/ssh_config) has SendEnv settings, and LANG is 
one of those...

So you can do various things:
1) Stop sshd from accepting LANG (edit sshd_config, restart)
2) Stop ssh client from sending LANG
3) Modify .profile

-- 

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


Re: [CentOS] yum upgrade not working

2014-12-21 Thread Ned Slider


On 21/12/14 02:25, Tim Dunphy wrote:
 Hey all,
 
 I'm attempting to upgrade a Centos 5.9 machine to CentOS 5.10.
 
 But when I try the yum update command I get this response:
 
 -- Finished Dependency Resolution
 python26-PyYAML-3.08-5.el5.x86_64 from installed has depsolving problems
   -- Missing Dependency: libyaml-0.so.1()(64bit) is needed by package
 python26-PyYAML-3.08-5.el5.x86_64 (installed)
 -- Running transaction check
 --- Package kernel.x86_64 0:2.6.18-164.15.1.el5.centos.plus set to be
 erased
 --- Package kernel.x86_64 0:2.6.18-194.11.4.el5 set to be erased
 --- Package kernel.x86_64 0:2.6.18-238.9.1.el5 set to be erased
 --- Package kernel-devel.x86_64 0:2.6.18-308.4.1.el5 set to be erased
 -- Processing Dependency: libyaml-0.so.1()(64bit) for package:
 python26-PyYAML
 -- Finished Dependency Resolution
 python26-PyYAML-3.08-5.el5.x86_64 from installed has depsolving problems
   -- Missing Dependency: libyaml-0.so.1()(64bit) is needed by package
 python26-PyYAML-3.08-5.el5.x86_64 (installed)
 Error: Missing Dependency: libyaml-0.so.1()(64bit) is needed by package
 python26-PyYAML-3.08-5.el5.x86_64 (installed)
  You could try using --skip-broken to work around the problem
  You could try running: package-cleanup --problems
 package-cleanup --dupes
 rpm -Va --nofiles --nodigest
 
 
 The system claims that it can't find libyaml-0.so.1, however I can easily
 locate it:
 
 [root@ops:~] #locate libyaml-0.so.1
 /usr/lib64/libyaml-0.so.1
 /usr/lib64/libyaml-0.so.1.1.0
 

What does rpm say? 'rpm -q --whatprovides /usr/lib64/libyaml-0.so.1'

 Can someone please point me in the right direction for solving these
 problems?
 

These are not CentOS packages (python26-PyYAML and libyaml). I would
suggest you ask on the appropriate list for whichever repository these
packages were installed from (rpm -qi should tell you).

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


Re: [CentOS] no access to certain WEB sites using CentOS 6.5

2014-12-21 Thread Igor Furlan
On Sat, Dec 20, 2014 at 6:44 PM, zep zgreenfel...@gmail.com wrote:
 are you sure that DNS is working correctly on the VM?   e.g. what's in
 etc/resolv.conf?   are you using NAT or a bridged network device?   is
 there anything weird in the output of netstat -nr?   are you using
 anything to proxy traffic?  is there anything in iptables that could be
 blocking traffic?

Mystery resolved. The CAT5 cable from router to the switch hub was
flaky. After I've replaced it with another one all the illogical
puzzling behavior went away. What I do not understand is why, for
example, some sites like, www.google.com and  www.gmail.com worked
flawlessly all the time. At same time some  sites (like www.delo.si)
worked and some others did not (like www.dnevnik.si)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] no access to certain WEB sites using CentOS 6.5

2014-12-21 Thread Peter Lawler

On 22/12/14 03:00, Igor Furlan wrote:

On Sat, Dec 20, 2014 at 6:44 PM, zep zgreenfel...@gmail.com wrote:

are you sure that DNS is working correctly on the VM?   e.g. what's in
etc/resolv.conf?   are you using NAT or a bridged network device?   is
there anything weird in the output of netstat -nr?   are you using
anything to proxy traffic?  is there anything in iptables that could be
blocking traffic?


Mystery resolved. The CAT5 cable from router to the switch hub was
flaky. After I've replaced it with another one all the illogical
puzzling behavior went away. What I do not understand is why, for
example, some sites like, www.google.com and  www.gmail.com worked
flawlessly all the time. At same time some  sites (like www.delo.si)
worked and some others did not (like www.dnevnik.si)


Hardware Heisenbugs are also a thing. Really.

Glad it worked out for you!

P.

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