How to change gnome session locale?
How do I change the default locale for my gnome session? I created /etc/default/locale-local
with this content:
LANG=pt_PT.UTf-8
LC_MESSAGES=en_US.UTF-8
and added this to /etc/pam.d/gdm3
, /etc/pam.d/gdm3-autologin
, /etc/pam.d/gdm-welcome
, /etc/pam.d/login
, /etc/pam.d/su
and /etc/pam.d/sshd
:
session required pam_env.so readenv=1 envfile=/etc/default/locale-local
What am I missing?
gnome locale gdm
add a comment |
How do I change the default locale for my gnome session? I created /etc/default/locale-local
with this content:
LANG=pt_PT.UTf-8
LC_MESSAGES=en_US.UTF-8
and added this to /etc/pam.d/gdm3
, /etc/pam.d/gdm3-autologin
, /etc/pam.d/gdm-welcome
, /etc/pam.d/login
, /etc/pam.d/su
and /etc/pam.d/sshd
:
session required pam_env.so readenv=1 envfile=/etc/default/locale-local
What am I missing?
gnome locale gdm
add a comment |
How do I change the default locale for my gnome session? I created /etc/default/locale-local
with this content:
LANG=pt_PT.UTf-8
LC_MESSAGES=en_US.UTF-8
and added this to /etc/pam.d/gdm3
, /etc/pam.d/gdm3-autologin
, /etc/pam.d/gdm-welcome
, /etc/pam.d/login
, /etc/pam.d/su
and /etc/pam.d/sshd
:
session required pam_env.so readenv=1 envfile=/etc/default/locale-local
What am I missing?
gnome locale gdm
How do I change the default locale for my gnome session? I created /etc/default/locale-local
with this content:
LANG=pt_PT.UTf-8
LC_MESSAGES=en_US.UTF-8
and added this to /etc/pam.d/gdm3
, /etc/pam.d/gdm3-autologin
, /etc/pam.d/gdm-welcome
, /etc/pam.d/login
, /etc/pam.d/su
and /etc/pam.d/sshd
:
session required pam_env.so readenv=1 envfile=/etc/default/locale-local
What am I missing?
gnome locale gdm
gnome locale gdm
asked Oct 26 '13 at 20:50
NinguémNinguém
1329
1329
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I am not sure why you are doing it piecewise. The normal route is:
to check current settings:
locale
check existing locales
locale -a
chnage settings by either editing /etc/default/locale, or by using update-locale
update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX
generate locales
locale-gen
locale-gen fr_FR.UTF-8
change gdm settings, by editing /var/cache/gdm/$USER/dmrc
rebooting.
Hope this helps.
Debian documentation advices against changing form us_US.UTF-8 for maximum compatibility! Maybe there are better ways?...
– Ninguém
Oct 28 '13 at 16:20
us_US.UTF-8 does not exist. As for the locales I used, I wrote them as examples. I do not know what you want to set, you can set whatever you like. The info I gave you come from wiki.debian.org/Locale and from serverfault.com/questions/54591/…
– MariusMatutiae
Oct 28 '13 at 16:43
Right. I meant en_US.UTF-8.
– Ninguém
Oct 28 '13 at 22:00
From the debian documentation I mentioned: "It is good idea to install system wide default locale as "en_US.UTF-8" for maximum compatibility." I was trying to do just that, while at the same time changing locales via the PAM modules.
– Ninguém
Oct 28 '13 at 22:35
add a comment |
Ended up just creating a ~/.xsessionrc file with locale configuration on it:
LANG=pt_PT.UTf-8
LC_MESSAGES=en_US.UTF-8
I don't think ~/.dmrc would work since my home is 700.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f665801%2fhow-to-change-gnome-session-locale%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I am not sure why you are doing it piecewise. The normal route is:
to check current settings:
locale
check existing locales
locale -a
chnage settings by either editing /etc/default/locale, or by using update-locale
update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX
generate locales
locale-gen
locale-gen fr_FR.UTF-8
change gdm settings, by editing /var/cache/gdm/$USER/dmrc
rebooting.
Hope this helps.
Debian documentation advices against changing form us_US.UTF-8 for maximum compatibility! Maybe there are better ways?...
– Ninguém
Oct 28 '13 at 16:20
us_US.UTF-8 does not exist. As for the locales I used, I wrote them as examples. I do not know what you want to set, you can set whatever you like. The info I gave you come from wiki.debian.org/Locale and from serverfault.com/questions/54591/…
– MariusMatutiae
Oct 28 '13 at 16:43
Right. I meant en_US.UTF-8.
– Ninguém
Oct 28 '13 at 22:00
From the debian documentation I mentioned: "It is good idea to install system wide default locale as "en_US.UTF-8" for maximum compatibility." I was trying to do just that, while at the same time changing locales via the PAM modules.
– Ninguém
Oct 28 '13 at 22:35
add a comment |
I am not sure why you are doing it piecewise. The normal route is:
to check current settings:
locale
check existing locales
locale -a
chnage settings by either editing /etc/default/locale, or by using update-locale
update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX
generate locales
locale-gen
locale-gen fr_FR.UTF-8
change gdm settings, by editing /var/cache/gdm/$USER/dmrc
rebooting.
Hope this helps.
Debian documentation advices against changing form us_US.UTF-8 for maximum compatibility! Maybe there are better ways?...
– Ninguém
Oct 28 '13 at 16:20
us_US.UTF-8 does not exist. As for the locales I used, I wrote them as examples. I do not know what you want to set, you can set whatever you like. The info I gave you come from wiki.debian.org/Locale and from serverfault.com/questions/54591/…
– MariusMatutiae
Oct 28 '13 at 16:43
Right. I meant en_US.UTF-8.
– Ninguém
Oct 28 '13 at 22:00
From the debian documentation I mentioned: "It is good idea to install system wide default locale as "en_US.UTF-8" for maximum compatibility." I was trying to do just that, while at the same time changing locales via the PAM modules.
– Ninguém
Oct 28 '13 at 22:35
add a comment |
I am not sure why you are doing it piecewise. The normal route is:
to check current settings:
locale
check existing locales
locale -a
chnage settings by either editing /etc/default/locale, or by using update-locale
update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX
generate locales
locale-gen
locale-gen fr_FR.UTF-8
change gdm settings, by editing /var/cache/gdm/$USER/dmrc
rebooting.
Hope this helps.
I am not sure why you are doing it piecewise. The normal route is:
to check current settings:
locale
check existing locales
locale -a
chnage settings by either editing /etc/default/locale, or by using update-locale
update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX
generate locales
locale-gen
locale-gen fr_FR.UTF-8
change gdm settings, by editing /var/cache/gdm/$USER/dmrc
rebooting.
Hope this helps.
answered Oct 27 '13 at 9:41
MariusMatutiaeMariusMatutiae
38.4k95299
38.4k95299
Debian documentation advices against changing form us_US.UTF-8 for maximum compatibility! Maybe there are better ways?...
– Ninguém
Oct 28 '13 at 16:20
us_US.UTF-8 does not exist. As for the locales I used, I wrote them as examples. I do not know what you want to set, you can set whatever you like. The info I gave you come from wiki.debian.org/Locale and from serverfault.com/questions/54591/…
– MariusMatutiae
Oct 28 '13 at 16:43
Right. I meant en_US.UTF-8.
– Ninguém
Oct 28 '13 at 22:00
From the debian documentation I mentioned: "It is good idea to install system wide default locale as "en_US.UTF-8" for maximum compatibility." I was trying to do just that, while at the same time changing locales via the PAM modules.
– Ninguém
Oct 28 '13 at 22:35
add a comment |
Debian documentation advices against changing form us_US.UTF-8 for maximum compatibility! Maybe there are better ways?...
– Ninguém
Oct 28 '13 at 16:20
us_US.UTF-8 does not exist. As for the locales I used, I wrote them as examples. I do not know what you want to set, you can set whatever you like. The info I gave you come from wiki.debian.org/Locale and from serverfault.com/questions/54591/…
– MariusMatutiae
Oct 28 '13 at 16:43
Right. I meant en_US.UTF-8.
– Ninguém
Oct 28 '13 at 22:00
From the debian documentation I mentioned: "It is good idea to install system wide default locale as "en_US.UTF-8" for maximum compatibility." I was trying to do just that, while at the same time changing locales via the PAM modules.
– Ninguém
Oct 28 '13 at 22:35
Debian documentation advices against changing form us_US.UTF-8 for maximum compatibility! Maybe there are better ways?...
– Ninguém
Oct 28 '13 at 16:20
Debian documentation advices against changing form us_US.UTF-8 for maximum compatibility! Maybe there are better ways?...
– Ninguém
Oct 28 '13 at 16:20
us_US.UTF-8 does not exist. As for the locales I used, I wrote them as examples. I do not know what you want to set, you can set whatever you like. The info I gave you come from wiki.debian.org/Locale and from serverfault.com/questions/54591/…
– MariusMatutiae
Oct 28 '13 at 16:43
us_US.UTF-8 does not exist. As for the locales I used, I wrote them as examples. I do not know what you want to set, you can set whatever you like. The info I gave you come from wiki.debian.org/Locale and from serverfault.com/questions/54591/…
– MariusMatutiae
Oct 28 '13 at 16:43
Right. I meant en_US.UTF-8.
– Ninguém
Oct 28 '13 at 22:00
Right. I meant en_US.UTF-8.
– Ninguém
Oct 28 '13 at 22:00
From the debian documentation I mentioned: "It is good idea to install system wide default locale as "en_US.UTF-8" for maximum compatibility." I was trying to do just that, while at the same time changing locales via the PAM modules.
– Ninguém
Oct 28 '13 at 22:35
From the debian documentation I mentioned: "It is good idea to install system wide default locale as "en_US.UTF-8" for maximum compatibility." I was trying to do just that, while at the same time changing locales via the PAM modules.
– Ninguém
Oct 28 '13 at 22:35
add a comment |
Ended up just creating a ~/.xsessionrc file with locale configuration on it:
LANG=pt_PT.UTf-8
LC_MESSAGES=en_US.UTF-8
I don't think ~/.dmrc would work since my home is 700.
add a comment |
Ended up just creating a ~/.xsessionrc file with locale configuration on it:
LANG=pt_PT.UTf-8
LC_MESSAGES=en_US.UTF-8
I don't think ~/.dmrc would work since my home is 700.
add a comment |
Ended up just creating a ~/.xsessionrc file with locale configuration on it:
LANG=pt_PT.UTf-8
LC_MESSAGES=en_US.UTF-8
I don't think ~/.dmrc would work since my home is 700.
Ended up just creating a ~/.xsessionrc file with locale configuration on it:
LANG=pt_PT.UTf-8
LC_MESSAGES=en_US.UTF-8
I don't think ~/.dmrc would work since my home is 700.
answered Nov 5 '13 at 8:09
NinguémNinguém
1329
1329
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f665801%2fhow-to-change-gnome-session-locale%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown