How to change gnome session locale?












1















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?










share|improve this question



























    1















    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?










    share|improve this question

























      1












      1








      1








      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 26 '13 at 20:50









      NinguémNinguém

      1329




      1329






















          2 Answers
          2






          active

          oldest

          votes


















          0














          I am not sure why you are doing it piecewise. The normal route is:





          1. to check current settings:



            locale




          2. check existing locales



            locale -a




          3. chnage settings by either editing /etc/default/locale, or by using update-locale



            update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX




          4. generate locales



            locale-gen
            locale-gen fr_FR.UTF-8



          5. change gdm settings, by editing /var/cache/gdm/$USER/dmrc


          6. rebooting.



          Hope this helps.






          share|improve this answer
























          • 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



















          0














          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.






          share|improve this answer























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            0














            I am not sure why you are doing it piecewise. The normal route is:





            1. to check current settings:



              locale




            2. check existing locales



              locale -a




            3. chnage settings by either editing /etc/default/locale, or by using update-locale



              update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX




            4. generate locales



              locale-gen
              locale-gen fr_FR.UTF-8



            5. change gdm settings, by editing /var/cache/gdm/$USER/dmrc


            6. rebooting.



            Hope this helps.






            share|improve this answer
























            • 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
















            0














            I am not sure why you are doing it piecewise. The normal route is:





            1. to check current settings:



              locale




            2. check existing locales



              locale -a




            3. chnage settings by either editing /etc/default/locale, or by using update-locale



              update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX




            4. generate locales



              locale-gen
              locale-gen fr_FR.UTF-8



            5. change gdm settings, by editing /var/cache/gdm/$USER/dmrc


            6. rebooting.



            Hope this helps.






            share|improve this answer
























            • 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














            0












            0








            0







            I am not sure why you are doing it piecewise. The normal route is:





            1. to check current settings:



              locale




            2. check existing locales



              locale -a




            3. chnage settings by either editing /etc/default/locale, or by using update-locale



              update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX




            4. generate locales



              locale-gen
              locale-gen fr_FR.UTF-8



            5. change gdm settings, by editing /var/cache/gdm/$USER/dmrc


            6. rebooting.



            Hope this helps.






            share|improve this answer













            I am not sure why you are doing it piecewise. The normal route is:





            1. to check current settings:



              locale




            2. check existing locales



              locale -a




            3. chnage settings by either editing /etc/default/locale, or by using update-locale



              update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX




            4. generate locales



              locale-gen
              locale-gen fr_FR.UTF-8



            5. change gdm settings, by editing /var/cache/gdm/$USER/dmrc


            6. rebooting.



            Hope this helps.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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



















            • 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













            0














            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.






            share|improve this answer




























              0














              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.






              share|improve this answer


























                0












                0








                0







                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.






                share|improve this answer













                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 5 '13 at 8:09









                NinguémNinguém

                1329




                1329






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Are they similar matrix

                    Order of finite fields is $p^n$

                    “minimization” problem in Euclidean space related to orthonormal basis