Character encoding/UTF-8 problem with mosh

Multi tool use
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
add a comment |
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
Try to runlocaledef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8
on your server ( 192.168.0.3 ) asroot
or prepend that withsudo
.
– 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 thept_BR.UTF-8
line. After that runlocale-gen
, which should run the command above and should be the preferred way.
– Thomas
Oct 6 '18 at 14:03
add a comment |
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
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
ssh locale
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 runlocaledef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8
on your server ( 192.168.0.3 ) asroot
or prepend that withsudo
.
– 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 thept_BR.UTF-8
line. After that runlocale-gen
, which should run the command above and should be the preferred way.
– Thomas
Oct 6 '18 at 14:03
add a comment |
Try to runlocaledef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8
on your server ( 192.168.0.3 ) asroot
or prepend that withsudo
.
– 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 thept_BR.UTF-8
line. After that runlocale-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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
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%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
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.
add a comment |
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.
add a comment |
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.
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.
answered Feb 8 at 20:43
Pablo BianchiPablo Bianchi
2,70821532
2,70821532
add a comment |
add a comment |
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.
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%2faskubuntu.com%2fquestions%2f1081428%2fcharacter-encoding-utf-8-problem-with-mosh%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
0Y6 2mkE mwwTytNHc,zP1IH5szexKzN8k53pUIl1Op1OTgOUjo5,TjAzVWh NdnrN5,RmeKl d,hxlGLYQlJJp8LVt a 8JgerZ4
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 ) asroot
or prepend that withsudo
.– 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 thept_BR.UTF-8
line. After that runlocale-gen
, which should run the command above and should be the preferred way.– Thomas
Oct 6 '18 at 14:03