Uncategorized

Problems when SSH’ing from Mac OS X to Linux

Now I got a Mac from my work instead of my old dying Lenovo, I noticed that every time I ssh from it to one of our supercomputers, Perl complains about locale problems. Something like this:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Or something irritating as this. The problem is that Mac is a bit ahead with locales, and it ssh takes those locales when you connect to another machine.

I fount the solution at Vivek Gite’s website, and it couldn’t be simpler. Disable locale setting on your terminal. Like this (I took this image from Vivek’s site): open terminal settings and go to the advanced tab (the Settings now shows as Profiles on newer versions of Mac OS):

osx-terminal-local-settings

Advertisements
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s