Jump to content

LANG et al env variables not properly set


tgirod

Recommended Posts

I have rencently installed armbian (jessie vanilla) on a brand new olimex LIME2.

 

My locales are set to use en_US.UTF-8, but when logging through ssh, as root or as regular user, everything is set to "POSIX".

ssh root@brique                                                                                                                                                                                                                                           

root@brique's password:



Load: 1.28, 0.39, 0.13 - Board: 22.8°C - Memory: 968Mb



root@brique:~# locale

LANG=

LANGUAGE=

LC_CTYPE="POSIX"

LC_NUMERIC="POSIX"

LC_TIME="POSIX"

LC_COLLATE="POSIX"

LC_MONETARY="POSIX"

LC_MESSAGES="POSIX"

LC_PAPER="POSIX"

LC_NAME="POSIX"

LC_ADDRESS="POSIX"

LC_TELEPHONE="POSIX"

LC_MEASUREMENT="POSIX"

LC_IDENTIFICATION="POSIX"

LC_ALL=

But after quite a few trials and errors, I found that in any session, if I call the command "su" (even to log as the same user), this will update all those env variables to the right values :

ssh root@brique

root@brique's password:

Last login: Mon Nov  9 22:24:44 2015 from 192.168.0.4



Load: 0.05, 0.16, 0.12 - Board: 22.0°C - Memory: 967Mb



root@brique:~# locale

LANG=

LANGUAGE=

LC_CTYPE="POSIX"

LC_NUMERIC="POSIX"

LC_TIME="POSIX"

LC_COLLATE="POSIX"

LC_MONETARY="POSIX"

LC_MESSAGES="POSIX"

LC_PAPER="POSIX"

LC_NAME="POSIX"

LC_ADDRESS="POSIX"

LC_TELEPHONE="POSIX"

LC_MEASUREMENT="POSIX"

LC_IDENTIFICATION="POSIX"

LC_ALL=

root@brique:~# su



Load: 0.05, 0.16, 0.12 - Board: 22.2°C - Memory: 964Mb



root@brique:~# locale

LANG=en_US.UTF-8

LANGUAGE=en_US.UTF-8

LC_CTYPE="en_US.UTF-8"

LC_NUMERIC="en_US.UTF-8"

LC_TIME="en_US.UTF-8"

LC_COLLATE="en_US.UTF-8"

LC_MONETARY="en_US.UTF-8"

LC_MESSAGES=POSIX

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="en_US.UTF-8"

LC_ALL=

I'm kind of lost here ... anyone have an idea about what's going on ?

Link to comment
Share on other sites

@tgirod

really unsure (there is an automatic set-up on the first boot of a fresh Armbian install, all is set-up on 2nd boot) because I have started applying the "dpkg-reconfigure" section from http://www.armbian.com/documentation/

then creating my non-root user

 

 

@Igor, the page really needs to be split (or one page with quick "menu entries")

 

proposal:

* Quick FAQ for beginners?

* After install Armbian set-up?

* How to unbrick the system?

* How to install to NAND, SATA & USB?

* How to build Armbian?

Link to comment
Share on other sites

Ok mate, but keep in mind the source of this problem can be in: corrupted system image, weak power adapter for your Lime2 board (there are lot of power adapters dropping voltage under load below "safe" values and only few good ones on the market), microSD or SD card has been removed after transferring system image too early (these card are slow and it still takes time to write all data even system say 100% written) or card reader is plugged in internal or external hub which is underpowered and causes data corruption during transfers.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines