You are not logged in.

#1 2021-12-28 06:29:14

behDev
Member
Registered: 2021-12-17
Posts: 18

The tty2 font is different with the tty1 font [SOLVED]

I get this text when I run command:

showconsolefont -C /dev/tty1

output:

    !  "  #  $  %  &  '  (    )  *  +  ,  -  .  /  0 
    1  2  3  4  5  6  7  8    9  :  ;  <  =  >  ?  @ 
    A  B  C  D  E  F  G  H    I  J  K  L  M  N  O  P 
    Q  R  S  T  U  V  W  X    Y  Z  [  \  ]  ^  _  ` 
    !  "  #  $  %  &  '  (    )  *  +  ,  -  .  /  0 
    1  2  3  4  5  6  7  8    9  :  ;  <  =  >  ?  @ 
    A  B  C  D  E  F  G  H    I  J  K  L  M  N  O  P 
    Q  R  S  T  U  V  W  X    Y  Z  [  \  ]  ^  _  ` 

    !  "  #  $  %  &  '  (    )  *  +  ,  -  .  /  0 
    1  2  3  4  5  6  7  8    9  :  ;  <  =  >  ?  @ 
    A  B  C  D  E  F  G  H    I  J  K  L  M  N  O  P 
    Q  R  S  T  U  V  W  X    Y  Z  [  \  ]  ^  _  ` 
    !  "  #  $  %  &  '  (    )  *  +  ,  -  .  /  0 
    1  2  3  4  5  6  7  8    9  :  ;  <  =  >  ?  @ 
    A  B  C  D  E  F  G  H    I  J  K  L  M  N  O  P 
    Q  R  S  T  U  V  W  X    Y  Z  [  \  ]  ^  _  ` 

but I when run its command:

showconsolefont -C /dev/tty2

output:

!"#$%&'()*+,-./0
123456789:;<=>?@
ABCDEFGHIJKLMNOP
QRSTUVWXYZ[\]^_`
!"#$%&'()*+,-./0
123456789:;<=>?@
ABCDEFGHIJKLMNOP
QRSTUVWXYZ[\]^_`

!"#$%&'()*+,-./0
123456789:;<=>?@
ABCDEFGHIJKLMNOP
QRSTUVWXYZ[\]^_`
!"#$%&'()*+,-./0
123456789:;<=>?@
ABCDEFGHIJKLMNOP
QRSTUVWXYZ[\]^_`

Also, when I enter my password in tty2, I see a login error and a wrong password.

Last edited by behDev (2022-01-19 07:03:48)

Offline

#2 2021-12-28 08:35:21

seth
Member
Registered: 2012-09-03
Posts: 49,975

Re: The tty2 font is different with the tty1 font [SOLVED]

Looks like some locale fuckup - instead of 0x20 you get some 2 byte char there.

localectl
locale
locale -a

Offline

#3 2021-12-28 16:50:49

behDev
Member
Registered: 2021-12-17
Posts: 18

Re: The tty2 font is different with the tty1 font [SOLVED]

seth wrote:

Looks like some locale fuckup - instead of 0x20 you get some 2 byte char there.

localectl
locale
locale -a

localectl:

   System Locale: LANG=en_US.UTF-8
                  LC_TIME=en_IN.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a

locale:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_IN.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
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=

locale -a:

C
en_IN.utf8
en_US.utf8
POSIX

Offline

#4 2021-12-28 17:10:10

seth
Member
Registered: 2012-09-03
Posts: 49,975

Re: The tty2 font is different with the tty1 font [SOLVED]

Is the output of "locale" different on tty2?

Offline

#5 2021-12-29 16:24:30

behDev
Member
Registered: 2021-12-17
Posts: 18

Re: The tty2 font is different with the tty1 font [SOLVED]

seth wrote:

Is the output of "locale" different on tty2?

when i enter password and get incorrect password output, how do access to run commands in tty2?

Offline

#6 2021-12-29 16:29:13

seth
Member
Registered: 2012-09-03
Posts: 49,975

Re: The tty2 font is different with the tty1 font [SOLVED]

https://wiki.archlinux.org/title/Getty# … al_console

For clarification: the main issue is that you can't log into tty2 and the consolefont output is something actually unrelated because you ran it from a different terminal?
Because then I actually get the same output…

Offline

#7 2022-01-19 07:03:13

behDev
Member
Registered: 2021-12-17
Posts: 18

Re: The tty2 font is different with the tty1 font [SOLVED]

I solved the problem by running the command:

localectl set-keymap --no-convert us

The problem was the keys. When I hit the z key, the y key was pressed.

Offline

Board footer

Powered by FluxBB