Wrong locale in chroot jailkit

Discussion in 'General' started by Cyril D., Dec 18, 2024.

Tags:
  1. Cyril D.

    Cyril D. New Member

    Hello,
    I just noticed recently that, through an ssh session, the accented characters can't be displayed in the chroot, while it is ok for root, outisde of a jail.
    I run ISP 3.2.12p1 on a fully updated Debian 11.
    • I can't type in an accented caracter, nothing happens in the termin al
    • I can't see any accented caracter while editing a text file, they seem to be replaced with tabs (e.g. "title" lines):
      Code:
      {
        "pagespath": "./html",
        "bibliotheque.html": {
          "title": "Biblioth      que",
          "main": "bibliotheque.htm",
          "header": true,
          "footer": true
        },
       "securite.html": {
          "title": "S      curit      ",
          "main": "securite.htm",
          "header": true,
          "footer": true
        }
      }
    • Here is what happens when I paste an accented caracter in the terminal :
      Code:
      caracter "è" : [email protected]:$ \303\250
      caracter "é" : [email protected]:$ \303\251
      caracter "à" : [email protected]:$ \303\240
    I also logged on through a direct console (VMWare Remote Console) with the same results (ok for root, not ok in a jail). So I don't think it's a problem with my terminal application (Kitty).

    To fix this, I tried to add "localectl" in jk_init.ini :
    Code:
    [locale]
    comment = set locale
    paths = /usr/bin/localectl
    Then I set ISP > System > Server config > Jailkit to call the "locale", but I have this error msg :

    Code:
    [email protected]:$ localectl
    System has not been booted with systemd as init system (PID 1). Can't operate.
    Failed to connect to bus: Host is down
    Any help would be gladly welcome !
    Thx
     

Share This Page