Bug#822946: Don't set console setting over logout/login
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Am Mo den 2. Mai 2016 um 20:22 schrieb Anton Zinoviev:
> > When logging in as root and do dpkg-reconfigure console-setup with all
> > settings as before (or running cached_setup_font.sh),
>
> Just to be sure that the only problem is with the encoding try this.
> Instead of dpkg-reconfigure console-setup or running
> cached_setup_font.sh execute the following command on the console:
>
> printf '\033%%@'
>
> Does this reconfigure the console to use ISO-8859-1?
I already tried that and yes, it works. (or print '\033%@') So when I
read that correct (The information about <esc>% is very rar) that sets
the default settings. Shouldn't that be the "default" anyway?
> Does the font on
> the console look like Terminus or it is like the default VGA font?
I think I have configured Terminus font on all systems. But I have to
crosscheck.
> > it works for all presently consoles (until logout).
>
> Are you saying that even if you configure the console to use ISO-8859-1
> and then logout and login (without a reboot) the console is wrong again?
Yes.
> I suppose I don't have to ask this, but just in any case: is the locale
> set properly in /etc/default/locale?
Yes. :-)
But I have it different on the boxes . One has:
~> cat /etc/default/locale
# File generated by update-locale
LANG=de_DE
LC_ALL=C
But all boxes have latin1-charset setting. And all suffer from the same
problem.
> Systemd is another suspect because it has the habit to disallocate the
> console after each logout and then to allocate it again. It seems,
> however, that your system doesn't use systemd. But again, let me ask,
> just for any case: does your system use the traditional /etc/inittab and
> is getty run using it? If yes, then does this file contain a line like
> this one:
~> dpkg -l prevent-systemd-\*
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name Version Architektur Beschreibung
+++-======================-================-================-=================================================
ii prevent-systemd-comple 31 all mirabilos' metapackage to fully remove systemd
un prevent-systemd-instal <keine> <keine> (keine Beschreibung vorhanden)
un prevent-systemd-runnin <keine> <keine> (keine Beschreibung vorhanden)
> 1:2345:respawn:/sbin/getty 38400 tty1
~> grep 'tty[0-9]$' /etc/inittab
1:45:respawn:/sbin/mingetty --noclear tty1
2:23:respawn:/sbin/mingetty tty2
3:23:respawn:/sbin/mingetty tty3
4:23:respawn:/sbin/mingetty tty4
5:23:respawn:/sbin/mingetty tty5
6:23:respawn:/sbin/mingetty tty6
I use mingetty on all systems. And console 1 is only allowed for login
in init level 4 and 5 and never clears as I need to have the boot
messages.
Regards
Klaus
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus@Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Charset: ISO-8859-1
iQGcBAEBCgAGBQJXJ8kfAAoJEKZ8CrGAGfasWU8L/1hecPVRyTZLweT/I/y9OfCH
gnZPSqZ3Cle3PHEgb8V24e6+U2dCg6678kdHeWTVZD1WqRnmpZufiE289LcwjQSm
OLJWU+MaqD3UqiepDqYZL/0pBIKXiAQnbSe6TeWbRYQ6aChqsGSi2Kq8dW63l0pd
ioeisK9CCenJnu7xz4MZnDmjDDTV1bbrcwHHA4T89wAmd6x4FCkXQeVITR+LSVoL
EiSe/K93E/1mFPhyF35Lo3+DpfGcsd0P0FcuLXfHDcErwhTDf8SYniX4lxm0DmSY
RJ5ig81hjWuunSMIrP9yzMzrRHQioPtUIcBQi9Vr4GfMNgNHmzMulTTGpPGn1p90
pTj4fpXI8CrDJ+B5ig2UyD1KhgP+2yT8NVUQ5OUW1Nl1rIixlNCX2KvJETzfkPvP
BaM9luqjWod9kWJaemMmMpIl1k4oeQRP0W5a+8sPf611jHfEnA+BfC7LMwDhj3Pl
pqY8BIA3Nj6Ryu6XUc6+MLccUb5SVHd2P53EEu92uw==
=kUba
-----END PGP SIGNATURE-----
Reply to: