Character encoding/UTF-8 problem with mosh












1















Always, when I install mosh on a raspberry pi and try to connect through my computer, I get the following error:



lz@blade:~$ mosh -ssh="ssh -p 2323" pi@192.168.0.3
pi@192.168.0.3's password:
The locale requested by LC_CTYPE=pt_BR.UTF-8 isn't available here.
Running `locale-gen pt_BR.UTF-8' may be necessary.

The locale requested by LC_CTYPE=pt_BR.UTF-8 isn't available here.
Running `locale-gen pt_BR.UTF-8' may be necessary.

mosh-server needs a UTF-8 native locale to run.

Unfortunately, the local environment (LC_CTYPE=pt_BR.UTF-8) specifies
the character set "US-ASCII",

The client-supplied environment (LC_CTYPE=pt_BR.UTF-8) specifies
the character set "US-ASCII".

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=pt_BR.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=pt_BR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_ADDRESS=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_ALL=
Connection to 192.168.0.3 closed.
/usr/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)


I already tried




  • https://unix.stackexchange.com/questions/280796/mosh-server-needs-a-utf-8-native-locale-to-run

  • https://github.com/mobile-shell/mosh/issues/793

  • https://github.com/mobile-shell/mosh/issues/916


and many other solutions.



I'm using Ubuntu 18.04 on the client and Raspbian on the server.










share|improve this question

























  • Try to run localedef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8 on your server ( 192.168.0.3 ) as root or prepend that with sudo.

    – Thomas
    Oct 6 '18 at 13:49











  • I do not know raspbian, but if the file /etc/locale.gen is available, open that with a text editor as root and uncomment the pt_BR.UTF-8 line. After that run locale-gen, which should run the command above and should be the preferred way.

    – Thomas
    Oct 6 '18 at 14:03
















1















Always, when I install mosh on a raspberry pi and try to connect through my computer, I get the following error:



lz@blade:~$ mosh -ssh="ssh -p 2323" pi@192.168.0.3
pi@192.168.0.3's password:
The locale requested by LC_CTYPE=pt_BR.UTF-8 isn't available here.
Running `locale-gen pt_BR.UTF-8' may be necessary.

The locale requested by LC_CTYPE=pt_BR.UTF-8 isn't available here.
Running `locale-gen pt_BR.UTF-8' may be necessary.

mosh-server needs a UTF-8 native locale to run.

Unfortunately, the local environment (LC_CTYPE=pt_BR.UTF-8) specifies
the character set "US-ASCII",

The client-supplied environment (LC_CTYPE=pt_BR.UTF-8) specifies
the character set "US-ASCII".

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=pt_BR.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=pt_BR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_ADDRESS=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_ALL=
Connection to 192.168.0.3 closed.
/usr/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)


I already tried




  • https://unix.stackexchange.com/questions/280796/mosh-server-needs-a-utf-8-native-locale-to-run

  • https://github.com/mobile-shell/mosh/issues/793

  • https://github.com/mobile-shell/mosh/issues/916


and many other solutions.



I'm using Ubuntu 18.04 on the client and Raspbian on the server.










share|improve this question

























  • Try to run localedef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8 on your server ( 192.168.0.3 ) as root or prepend that with sudo.

    – Thomas
    Oct 6 '18 at 13:49











  • I do not know raspbian, but if the file /etc/locale.gen is available, open that with a text editor as root and uncomment the pt_BR.UTF-8 line. After that run locale-gen, which should run the command above and should be the preferred way.

    – Thomas
    Oct 6 '18 at 14:03














1












1








1


0






Always, when I install mosh on a raspberry pi and try to connect through my computer, I get the following error:



lz@blade:~$ mosh -ssh="ssh -p 2323" pi@192.168.0.3
pi@192.168.0.3's password:
The locale requested by LC_CTYPE=pt_BR.UTF-8 isn't available here.
Running `locale-gen pt_BR.UTF-8' may be necessary.

The locale requested by LC_CTYPE=pt_BR.UTF-8 isn't available here.
Running `locale-gen pt_BR.UTF-8' may be necessary.

mosh-server needs a UTF-8 native locale to run.

Unfortunately, the local environment (LC_CTYPE=pt_BR.UTF-8) specifies
the character set "US-ASCII",

The client-supplied environment (LC_CTYPE=pt_BR.UTF-8) specifies
the character set "US-ASCII".

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=pt_BR.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=pt_BR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_ADDRESS=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_ALL=
Connection to 192.168.0.3 closed.
/usr/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)


I already tried




  • https://unix.stackexchange.com/questions/280796/mosh-server-needs-a-utf-8-native-locale-to-run

  • https://github.com/mobile-shell/mosh/issues/793

  • https://github.com/mobile-shell/mosh/issues/916


and many other solutions.



I'm using Ubuntu 18.04 on the client and Raspbian on the server.










share|improve this question
















Always, when I install mosh on a raspberry pi and try to connect through my computer, I get the following error:



lz@blade:~$ mosh -ssh="ssh -p 2323" pi@192.168.0.3
pi@192.168.0.3's password:
The locale requested by LC_CTYPE=pt_BR.UTF-8 isn't available here.
Running `locale-gen pt_BR.UTF-8' may be necessary.

The locale requested by LC_CTYPE=pt_BR.UTF-8 isn't available here.
Running `locale-gen pt_BR.UTF-8' may be necessary.

mosh-server needs a UTF-8 native locale to run.

Unfortunately, the local environment (LC_CTYPE=pt_BR.UTF-8) specifies
the character set "US-ASCII",

The client-supplied environment (LC_CTYPE=pt_BR.UTF-8) specifies
the character set "US-ASCII".

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=pt_BR.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=pt_BR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_ADDRESS=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_ALL=
Connection to 192.168.0.3 closed.
/usr/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)


I already tried




  • https://unix.stackexchange.com/questions/280796/mosh-server-needs-a-utf-8-native-locale-to-run

  • https://github.com/mobile-shell/mosh/issues/793

  • https://github.com/mobile-shell/mosh/issues/916


and many other solutions.



I'm using Ubuntu 18.04 on the client and Raspbian on the server.







ssh locale






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 30 at 3:29









Pablo Bianchi

2,70821532




2,70821532










asked Oct 6 '18 at 13:05









Guerlando OCsGuerlando OCs

2451618




2451618













  • Try to run localedef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8 on your server ( 192.168.0.3 ) as root or prepend that with sudo.

    – Thomas
    Oct 6 '18 at 13:49











  • I do not know raspbian, but if the file /etc/locale.gen is available, open that with a text editor as root and uncomment the pt_BR.UTF-8 line. After that run locale-gen, which should run the command above and should be the preferred way.

    – Thomas
    Oct 6 '18 at 14:03



















  • Try to run localedef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8 on your server ( 192.168.0.3 ) as root or prepend that with sudo.

    – Thomas
    Oct 6 '18 at 13:49











  • I do not know raspbian, but if the file /etc/locale.gen is available, open that with a text editor as root and uncomment the pt_BR.UTF-8 line. After that run locale-gen, which should run the command above and should be the preferred way.

    – Thomas
    Oct 6 '18 at 14:03

















Try to run localedef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8 on your server ( 192.168.0.3 ) as root or prepend that with sudo.

– Thomas
Oct 6 '18 at 13:49





Try to run localedef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8 on your server ( 192.168.0.3 ) as root or prepend that with sudo.

– Thomas
Oct 6 '18 at 13:49













I do not know raspbian, but if the file /etc/locale.gen is available, open that with a text editor as root and uncomment the pt_BR.UTF-8 line. After that run locale-gen, which should run the command above and should be the preferred way.

– Thomas
Oct 6 '18 at 14:03





I do not know raspbian, but if the file /etc/locale.gen is available, open that with a text editor as root and uncomment the pt_BR.UTF-8 line. After that run locale-gen, which should run the command above and should be the preferred way.

– Thomas
Oct 6 '18 at 14:03










1 Answer
1






active

oldest

votes


















0














I fixed this issue with #916, logging in to server and running:



sudo dpkg-reconfigure locales


Using same locales than on local machine. Also #793/this should work also.



BTW then you can make some clean up.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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%2faskubuntu.com%2fquestions%2f1081428%2fcharacter-encoding-utf-8-problem-with-mosh%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I fixed this issue with #916, logging in to server and running:



    sudo dpkg-reconfigure locales


    Using same locales than on local machine. Also #793/this should work also.



    BTW then you can make some clean up.






    share|improve this answer




























      0














      I fixed this issue with #916, logging in to server and running:



      sudo dpkg-reconfigure locales


      Using same locales than on local machine. Also #793/this should work also.



      BTW then you can make some clean up.






      share|improve this answer


























        0












        0








        0







        I fixed this issue with #916, logging in to server and running:



        sudo dpkg-reconfigure locales


        Using same locales than on local machine. Also #793/this should work also.



        BTW then you can make some clean up.






        share|improve this answer













        I fixed this issue with #916, logging in to server and running:



        sudo dpkg-reconfigure locales


        Using same locales than on local machine. Also #793/this should work also.



        BTW then you can make some clean up.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 8 at 20:43









        Pablo BianchiPablo Bianchi

        2,70821532




        2,70821532






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f1081428%2fcharacter-encoding-utf-8-problem-with-mosh%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕