[root@vps zoneinfo]# cp /usr/share/zoneinfo/CET /etc/localtime
You need to adjust “/usr/share/zoneinfo/CET” and adapt it to your local timezone.
Category Archives: centos
bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
Macintosh-3:~ user$ ssh root@vps.server.com
root@vps.server.com’s password:
Last login: Sun Sep 7 17:07:46 2014 from x.x.x.x
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
[root@vps ~]# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.utf8
LC_CTYPE=UTF-8
LC_NUMERIC=”en_US.utf8″
LC_TIME=”en_US.utf8″
LC_COLLATE=”en_US.utf8″
LC_MONETARY=”en_US.utf8″
LC_MESSAGES=”en_US.utf8″
LC_PAPER=”en_US.utf8″
LC_NAME=”en_US.utf8″
LC_ADDRESS=”en_US.utf8″
LC_TELEPHONE=”en_US.utf8″
LC_MEASUREMENT=”en_US.utf8″
LC_IDENTIFICATION=”en_US.utf8″
LC_ALL=
[root@vps ~]# vi /etc/sysconfig/i18n
LANG=”en_US.utf8″
LC_CTYPE=”en_US.utf8″
LC_ALL=”en_US.utf8″
HOWTO change the LS colors on RedHat/CentOS
copy the /etc/DIR_COLORS file to your $HOME dir and make the necessary changes in the file.
CentOS Installation and Hardening
Some links to get you started with CentOS installation and server hardening :
- http://www.mysql-apache-php.com/centos-lamp-server.htm
- http://www.securecentos.com/
- http://www.howtoforge.com/bastille_firewall_centos/