Git Product home page Git Product logo

Comments (10)

spbnick avatar spbnick commented on September 25, 2024

See also Scribery/tlog#78.

from meta.

spbnick avatar spbnick commented on September 25, 2024

A (rather burdensome) workaround can be for user to set up pam_env themselves.

from meta.

spbnick avatar spbnick commented on September 25, 2024

The pam_env workaround can be putting this into /etc/pam.d/system-auth:

session     required      pam_env.so readenv=1 envfile=/etc/locale.conf

Putting it before this line seems to work:

session     required      pam_limits.so

from meta.

spbnick avatar spbnick commented on September 25, 2024

I started a discussion of locale environment setup in Fedora on [email protected]:
https://lists.fedoraproject.org/archives/list/[email protected]/thread/37B7RLKU5JYKUK46ANTUADNRGELW6U7O/

from meta.

spbnick avatar spbnick commented on September 25, 2024

There was no response to the message on Fedora devel maillist.

from meta.

spbnick avatar spbnick commented on September 25, 2024

Getting in touch with PAM maintainers next.

from meta.

spbnick avatar spbnick commented on September 25, 2024

Tomas Mraz, the PAM and authconfig maintainer in Fedora seems to be fine with the PAM-based fix as long as the format of /etc/locale.conf is within what pam_env.so expects. I raised systemd-devel to check, and run the whole idea past them.

from meta.

spbnick avatar spbnick commented on September 25, 2024

Another approach could be letting the systemd and login pass the locale environment variables read and set by systemd-logind.

First these lines need to be removed from the /lib/systemd/system/[email protected] file:

# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=

And the following line in the same file:

ExecStart=-/sbin/agetty --noclear %I $TERM

needs to be changed to this:

ExecStart=-/sbin/agetty -o "-p -- \u" --noclear %I $TERM

from meta.

spbnick avatar spbnick commented on September 25, 2024

A fix for the above was submitted to systemd: systemd/systemd#6023

from meta.

spbnick avatar spbnick commented on September 25, 2024

Discussion with systemd upstream is still ongoing, but we have the fallback path of the PAM configuration.

from meta.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.