Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236553 > unrolled thread

how to change terminal (tty) font?

Started byLong Wind <longwind2@yahoo.com>
First post2021-06-27 23:10 +0200
Last post2021-06-28 01:40 +0200
Articles 15 — 7 participants

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  how to change terminal (tty) font? Long Wind <longwind2@yahoo.com> - 2021-06-27 23:10 +0200
    Re: how to change terminal (tty) font? Kenneth Parker <sea7kenp@gmail.com> - 2021-06-27 23:40 +0200
      Re: how to change terminal (tty) font? "Andrew M.A. Cater" <amacater@einval.com> - 2021-06-27 23:50 +0200
    Re: how to change terminal (tty) font? "Andrew M.A. Cater" <amacater@einval.com> - 2021-06-27 23:40 +0200
      Re: how to change terminal (tty) font? Kenneth Parker <sea7kenp@gmail.com> - 2021-06-27 23:50 +0200
      Re: how to change terminal (tty) font? Long Wind <longwind2@yahoo.com> - 2021-06-28 11:00 +0200
        Re: how to change terminal (tty) font? Curt <curty@free.fr> - 2021-06-28 13:30 +0200
          Re: how to change terminal (tty) font? Brian <ad44@cityscape.co.uk> - 2021-06-28 13:40 +0200
            Re: how to change terminal (tty) font? Curt <curty@free.fr> - 2021-06-28 14:30 +0200
              Re: how to change terminal (tty) font? Gene Heskett <gheskett@shentel.net> - 2021-06-28 15:20 +0200
                Re: how to change terminal (tty) font? Curt <curty@free.fr> - 2021-06-28 17:50 +0200
                  Re: how to change terminal (tty) font? Gene Heskett <gheskett@shentel.net> - 2021-06-28 18:50 +0200
                    Re: how to change terminal (tty) font? Long Wind <longwind2@yahoo.com> - 2021-06-29 00:40 +0200
                      Re: how to change terminal (tty) font? Curt <curty@free.fr> - 2021-06-29 09:50 +0200
    Re: how to change terminal (tty) font? IL Ka <kazakevichilya@gmail.com> - 2021-06-28 01:40 +0200

#236553 — how to change terminal (tty) font?

FromLong Wind <longwind2@yahoo.com>
Date2021-06-27 23:10 +0200
Subjecthow to change terminal (tty) font?
Message-ID<CuKcq-8sV-5@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

i think terminal font used by jessie is nicebut it's ugly in stretchhow to set font? Thanks!

[toc] | [next] | [standalone]


#236555

FromKenneth Parker <sea7kenp@gmail.com>
Date2021-06-27 23:40 +0200
Message-ID<CuKFr-bb-1@gated-at.bofh.it>
In reply to#236553

[Multipart message — attachments visible in raw view] — view raw

On Sun, Jun 27, 2021, 5:02 PM Long Wind <longwind2@yahoo.com> wrote:

> i think terminal font used by jessie is nice
> but it's ugly in stretch
> how to set font? Thanks!
>

I believe that this is done through Frame Buffer settings.

The reason why this is fresh on my mind, is that I recently got a Gaming
PC.  Until I got the right Firmware, the text (tty) screens were 24x80.

Just something to investigate...

Good luck!

Kenneth Parker

>

[toc] | [prev] | [next] | [standalone]


#236558

From"Andrew M.A. Cater" <amacater@einval.com>
Date2021-06-27 23:50 +0200
Message-ID<CuKP8-eo-7@gated-at.bofh.it>
In reply to#236555
On Sun, Jun 27, 2021 at 05:33:57PM -0400, Kenneth Parker wrote:
> On Sun, Jun 27, 2021, 5:02 PM Long Wind <longwind2@yahoo.com> wrote:
> 
> > i think terminal font used by jessie is nice
> > but it's ugly in stretch
> > how to set font? Thanks!
> >
> 
> I believe that this is done through Frame Buffer settings.
> 
> The reason why this is fresh on my mind, is that I recently got a Gaming
> PC.  Until I got the right Firmware, the text (tty) screens were 24x80.
> 
> Just something to investigate...
> 
> Good luck!
> 
> Kenneth Parker
> 
> >

As you've seen: it can and does depend on firmware needed. Some new machines 
show a completely black screen even after an apparently successful install
until they get the right firmware.

There are currently release critical bugs as one of the release managers
is trying to narrow down what machines need what and with what effects.
It also varies if the desktop environment is using older Xorg drivers
rather than Wayland, seemingly.

All the very best, as ever,

Andy Cater

[toc] | [prev] | [next] | [standalone]


#236556

From"Andrew M.A. Cater" <amacater@einval.com>
Date2021-06-27 23:40 +0200
Message-ID<CuKFr-bb-5@gated-at.bofh.it>
In reply to#236553
On Sun, Jun 27, 2021 at 09:01:48PM +0000, Long Wind wrote:
> i think terminal font used by jessie is nice but it's ugly in stretch how 
> to set font? Thanks!

As sudo / root equivalent:

dpkg-reconfigure console-setup

should work.

[Please consider moving to something later than stretch for security support.
Very shortly, Stretch will become oldoldstable and receive significantly
less support.]

All the very best,

Andy Cater

[toc] | [prev] | [next] | [standalone]


#236557

FromKenneth Parker <sea7kenp@gmail.com>
Date2021-06-27 23:50 +0200
Message-ID<CuKP7-eo-1@gated-at.bofh.it>
In reply to#236556

[Multipart message — attachments visible in raw view] — view raw

On Sun, Jun 27, 2021, 5:33 PM Andrew M.A. Cater <amacater@einval.com> wrote:

> On Sun, Jun 27, 2021 at 09:01:48PM +0000, Long Wind wrote:
> > i think terminal font used by jessie is nice but it's ugly in stretch
> how
> > to set font? Thanks!
>
> As sudo / root equivalent:
>
> dpkg-reconfigure console-setup
>
> should work.
>

Many thanks!  That helps me also.

<snip:  I am a happy Bullseye user>
>
> All the very best,
>
> Andy Cater
>

Kenneth Parker

>

[toc] | [prev] | [next] | [standalone]


#236566

FromLong Wind <longwind2@yahoo.com>
Date2021-06-28 11:00 +0200
Message-ID<CuVhv-6zw-3@gated-at.bofh.it>
In reply to#236556

[Multipart message — attachments visible in raw view] — view raw

 
Thank IL Ka and Cater!i've run console-setup, 
but it's not persistent, after reboot, it uses ugly font again
PS: i reply a little late, because yahoo is partially blocked

[toc] | [prev] | [next] | [standalone]


#236567

FromCurt <curty@free.fr>
Date2021-06-28 13:30 +0200
Message-ID<CuXCG-83v-3@gated-at.bofh.it>
In reply to#236566
On 2021-06-28, Long Wind <longwind2@yahoo.com> wrote:
>
>  
> Thank IL Ka and Cater!i've run console-setup, 
> but it's not persistent, after reboot, it uses ugly font again
> PS: i reply a little late, because yahoo is partially blocked
>

Looks like this four-year-old bug:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857132

[toc] | [prev] | [next] | [standalone]


#236568

FromBrian <ad44@cityscape.co.uk>
Date2021-06-28 13:40 +0200
Message-ID<CuXMm-86m-5@gated-at.bofh.it>
In reply to#236567
On Mon 28 Jun 2021 at 11:20:12 -0000, Curt wrote:

> On 2021-06-28, Long Wind <longwind2@yahoo.com> wrote:
> >
> >  
> > Thank IL Ka and Cater!i've run console-setup, 
> > but it's not persistent, after reboot, it uses ugly font again
> > PS: i reply a little late, because yahoo is partially blocked
> >
> 
> Looks like this four-year-old bug:
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857132

A distinct possibility. I wonder whether executing 'setupcon' after
rebooting restores the wanted terminal font?

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#236569

FromCurt <curty@free.fr>
Date2021-06-28 14:30 +0200
Message-ID<CuYyJ-9C-1@gated-at.bofh.it>
In reply to#236568
On 2021-06-28, Brian <ad44@cityscape.co.uk> wrote:
> On Mon 28 Jun 2021 at 11:20:12 -0000, Curt wrote:
>
>> On 2021-06-28, Long Wind <longwind2@yahoo.com> wrote:
>> >
>> >  
>> > Thank IL Ka and Cater!i've run console-setup, 
>> > but it's not persistent, after reboot, it uses ugly font again
>> > PS: i reply a little late, because yahoo is partially blocked
>> >
>> 
>> Looks like this four-year-old bug:
>> 
>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857132
>
> A distinct possibility. I wonder whether executing 'setupcon' after
> rebooting restores the wanted terminal font?
>

The workaround at the bottom of the thread is to create a service file
that systematically deletes the cache at shutdown.

[toc] | [prev] | [next] | [standalone]


#236572

FromGene Heskett <gheskett@shentel.net>
Date2021-06-28 15:20 +0200
Message-ID<CuZl8-Hs-7@gated-at.bofh.it>
In reply to#236569
On Monday 28 June 2021 08:19:37 Curt wrote:

> On 2021-06-28, Brian <ad44@cityscape.co.uk> wrote:
> > On Mon 28 Jun 2021 at 11:20:12 -0000, Curt wrote:
> >> On 2021-06-28, Long Wind <longwind2@yahoo.com> wrote:
> >> > Thank IL Ka and Cater!i've run console-setup,
> >> > but it's not persistent, after reboot, it uses ugly font again
> >> > PS: i reply a little late, because yahoo is partially blocked
> >>
> >> Looks like this four-year-old bug:
> >>
> >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857132
> >
> > A distinct possibility. I wonder whether executing 'setupcon' after
> > rebooting restores the wanted terminal font?
>
> The workaround at the bottom of the thread is to create a service file
> that systematically deletes the cache at shutdown.

That sucks unless its a gracefull shutdown, power failures don't leave 
time to do that, so why not clean the cache early in the bootup. 
Sheesh...

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


#236575

FromCurt <curty@free.fr>
Date2021-06-28 17:50 +0200
Message-ID<Cv1Gh-29t-1@gated-at.bofh.it>
In reply to#236572
On 2021-06-28, Gene Heskett <gheskett@shentel.net> wrote:
>>
>> The workaround at the bottom of the thread is to create a service file
>> that systematically deletes the cache at shutdown.
>
> That sucks unless its a gracefull shutdown, power failures don't leave 
> time to do that, so why not clean the cache early in the bootup. 
> Sheesh...

Well, here's the (simple) user-created unit file at the bottom of the
bug thread, and maybe it would be as easy as replacing "ExecStop" by
"ExecStart" for your wish to be fulfilled (or maybe not, I'm unfamiliar
with systemd unit files and how they get that way, to tell the truth).

But if something as trivial as this can't be hacked effectively by our
illustrious system administrators, we may as well just abandon ship.

 [Unit]
 Description=Cleanup console-setup cache

 [Service]
 Type=oneshot
 RemainAfterExit=true
 ExecStop=/bin/bash -c "rm /etc/console-setup/cached_*"

 [Install]
 WantedBy=multi-user.target

> Cheers, Gene Heskett

[toc] | [prev] | [next] | [standalone]


#236577

FromGene Heskett <gheskett@shentel.net>
Date2021-06-28 18:50 +0200
Message-ID<Cv2Cl-2JA-9@gated-at.bofh.it>
In reply to#236575
On Monday 28 June 2021 11:46:00 Curt wrote:

> On 2021-06-28, Gene Heskett <gheskett@shentel.net> wrote:
> >> The workaround at the bottom of the thread is to create a service
> >> file that systematically deletes the cache at shutdown.
> >
> > That sucks unless its a gracefull shutdown, power failures don't
> > leave time to do that, so why not clean the cache early in the
> > bootup. Sheesh...
>
> Well, here's the (simple) user-created unit file at the bottom of the
> bug thread, and maybe it would be as easy as replacing "ExecStop" by
> "ExecStart" for your wish to be fulfilled (or maybe not, I'm
> unfamiliar with systemd unit files and how they get that way, to tell
> the truth).
>
> But if something as trivial as this can't be hacked effectively by our
> illustrious system administrators, we may as well just abandon ship.
>
>  [Unit]
>  Description=Cleanup console-setup cache
>
>  [Service]
>  Type=oneshot
>  RemainAfterExit=true
>  ExecStop=/bin/bash -c "rm /etc/console-setup/cached_*"
>
>  [Install]
>  WantedBy=multi-user.target
>
> > Cheers, Gene Heskett

Welp, I expect you know more about it than I but if it works, the below 
looks like a suitable fix until some sanity infects the author(s). That 
doesn't alway act infectious though.

But "Illustrious System Administrators" are usually found in the mirror, 
and while I may have such a rep, its not always in the nuances of linux. 
Broadcast Engineering is a much better looking horse for me.

All I was trying to do was point out the folly of doing it as part of a 
gracefull shutdown. This is one of two boxes with a ups, all 4 of the 
others, are expected to survive a power failure, which they all did last 
evening for 15 seconds. Out of a quiet evening with clear blue skies. 
Funny part was that 15 seconds should have started the 20kw standby in 
the back yard but it did not. Still scratching my thinning grey hair 
over that.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


#236581

FromLong Wind <longwind2@yahoo.com>
Date2021-06-29 00:40 +0200
Message-ID<Cv854-5Ww-5@gated-at.bofh.it>
In reply to#236577

[Multipart message — attachments visible in raw view] — view raw

i rather put up with ugly font than imperfect fixanyway Thanks to all that reply!
 

  

[toc] | [prev] | [next] | [standalone]


#236589

FromCurt <curty@free.fr>
Date2021-06-29 09:50 +0200
Message-ID<CvgFj-2Ft-1@gated-at.bofh.it>
In reply to#236581
On 2021-06-28, Long Wind <longwind2@yahoo.com> wrote:
>
> i rather put up with ugly font than imperfect fixanyway Thanks to all that reply!
>  

For me it's unequivocally the contrary. But then I'm not a perfectionist
about picayune things and would rather see the entire picture a little
faultily than focus on an orthogonal detail with clarity in the name of
rigor. 

Good luck.

[toc] | [prev] | [next] | [standalone]


#236561

FromIL Ka <kazakevichilya@gmail.com>
Date2021-06-28 01:40 +0200
Message-ID<CuMxz-1gH-1@gated-at.bofh.it>
In reply to#236553

[Multipart message — attachments visible in raw view] — view raw

Hi.

You are using a slightly inaccurate terminology.

``tty`` is a kernel subsystem that supports terminals.
Terminal could be
* hardware device connected to the serial port,
* virtual terminal  -- so-called vty that runs on top of virtual console
which is emulated by kernel using your videocard and keyboard,
* pseudo terminal backed by user-mode software (like xterm or sshd server)

I assume you are speaking about a "virtual terminal" that runs on console
(either in text mode or in graphics mode using framebuffer).

Fonts are usually installed in ``/usr/share/consolefonts/``
You can install one with ``setfont(8)``.

Debian provides a package named ``console-setup`` that handles that.

Run ``dpkg-reconfigure console-setup`` to configure and read
``console-setup(5)``

Useful links:
https://tldp.org/LDP/LG/issue91/loozzr.html
https://www.linusakesson.net/programming/tty/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web