From owner-freebsd-questions@FreeBSD.ORG Sat Jun 15 13:59:59 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3CC0259B for ; Sat, 15 Jun 2013 13:59:59 +0000 (UTC) (envelope-from the.lists@mgm51.com) Received: from oneyou.mcmli.com (oneyou.mcmli.com [IPv6:2001:470:1d:8da::100]) by mx1.freebsd.org (Postfix) with ESMTP id 0D8B818D3 for ; Sat, 15 Jun 2013 13:59:59 +0000 (UTC) Received: from sentry.24cl.com (sentry.24cl.com [IPv6:2001:470:89e9:feed::1]) by oneyou.mcmli.com (Postfix) with ESMTPS id 3bXgL405rxz1DTf for ; Sat, 15 Jun 2013 09:59:56 -0400 (EDT) Received: from BigBloat (bigbloat.24cl.home [10.20.1.4]) by sentry.24cl.com (Postfix) with ESMTP id 3bXgL05KTgz1nYh for ; Sat, 15 Jun 2013 09:59:52 -0400 (EDT) Message-ID: <201306150959450047.007906B6@smtp.24cl.home> In-Reply-To: <20130614194604.GA27434@uriel.asininetech.com> References: <201306141213340281.009F8EE9@smtp.24cl.home> <20130614194604.GA27434@uriel.asininetech.com> X-Mailer: Courier 3.50.00.09.1098 (http://www.rosecitysoftware.com) (P) Date: Sat, 15 Jun 2013 09:59:45 -0400 From: "Mike." To: freebsd-questions@freebsd.org Subject: Re: Setting a locale globally Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jun 2013 13:59:59 -0000 On 6/14/2013 at 3:46 PM staticsafe wrote: |On Fri, Jun 14, 2013 at 12:13:34PM -0400, Mike. wrote: |> |> |> I would like to set the locale of my 9.1 server to |> |> LANG="en_US.ISO8859-1" |> |> |> globally, i.e., put the locale entry in one file, and then have the |> locale propagate as I go into other shells and run various scripts. |> |> |> I have spent some quality time with google, and the best I have been |> about to ascertain is that I need to sprinkle the LANG setting |> throughout the various ENV variables and .profile, .cshrc, .bashrc, and |> whatever files spread across my directory tree. |> |> |> That really seems counter-intuitive to me. |> |> |> Is it at all possible for me to specify in once place *somewhere" that |> the entire server is to use the locale setting LANG="en_US.ISO8859-1" ? |> |> I need a clue... |> |> |> thanks. |> |> |24.3.3.1.1. Login Classes Method |"This method allows environment variables needed for locale name and |MIME character sets to be assigned once for every possible shell instead |of adding specific shell assignments to each shell's startup file. User |Level Setup can be performed by each user while Administrator Level |Setup requires superuser privileges." | |Source: |http://www.freebsd.org/doc/en/books/handbook/using-localization.html#lo gin-class |-- ============= Thank-you! That does what I need. I added the lang keyword to the default and root sections of /etc/login.conf, then ran cap_mkdb /etc/login.conf as mentioned in the handbook. Thanks again for the assist.