HiDPI console font non-interactiveStart with interactive console shellWhat is the default Debian/Ubuntu console (TTY) font called?Font problem in nautilus with HiDPIResize font on boot message screen and consoleIs there any Ubuntu flavor that handles HiDPI consistently?

Not to protest, but -

Does my opponent need to prove his creature has morph?

Could a Scotland-NI bridge break Brexit impasse?

Is low emotional intelligence associated with right-wing and prejudiced attitudes?

Why is the Digital 0 not 0V in computer systems?

Might have gotten a coworker sick, should I address this?

How do email clients "send later" without storing a password?

Is English tonal for some words, like "permit"?

Are Democrats more likely to believe Astrology is a science?

Can I conceal an antihero's insanity - and should I?

In Germany, how can I maximize the impact of my charitable donations?

Where does the expression "triple-A" come from?

Is there a real-world mythological counterpart to WoW's "kill your gods for power" theme?

Can I toggle Do Not Disturb on/off on my Mac as easily as I can on my iPhone?

Why do sellers care about down payments?

Why did they ever make smaller than full-frame sensors?

What is my breathable atmosphere composed of?

My research paper filed as a patent in China by my Chinese supervisor without me as inventor

Why is Kirchhoff's voltage law true in a DC circuit?

Do all humans have an identical nucleotide sequence for certain proteins, e.g haemoglobin?

"Literally" Vs "In the true sense of the word"

How do EVA suits manage water excretion?

What is the derivative of an exponential function with another function as its base?

How are aircraft depainted?



HiDPI console font non-interactive


Start with interactive console shellWhat is the default Debian/Ubuntu console (TTY) font called?Font problem in nautilus with HiDPIResize font on boot message screen and consoleIs there any Ubuntu flavor that handles HiDPI consistently?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















What is the correct way to non-interactively change the console font?



I have a HiDPI display and need a larger console font. I can set it interactively just fine using:



$ sudo dpkg-reconfigure console-setup
# Select UTF-8 -> Guess -> Terminus -> 16x32
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.130ubuntu3.5) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-43-generic


However, if I try to set it non-interactively as follows:



 $ sudo debconf-set-selections <<EOF 
console-setup console-setup/charmap47 select UTF-8
console-setup console-setup/codeset47 select Guess optimal character set
console-setup console-setup/codesetcode string guess
console-setup console-setup/fontface47 select Terminus
console-setup console-setup/fontsize string 16x32
console-setup console-setup/fontsize-fb47 select 16x32 (framebuffer only)
console-setup console-setup/fontsize-text47 select 16x32 (framebuffer only)
EOF


This does not work. Running setupcon has no effect. If I check /etc/default/console-setup, I see the font info is updated when I run dpkg-reconfigure, and dpkg-reconfigure also triggers update-initramfs, so it seems more is going on with dpkg-reconfigure that my debconf-set-selections does not trigger. How do I find these actions and trigger them after my debconf-set-selections?










share|improve this question






























    2















    What is the correct way to non-interactively change the console font?



    I have a HiDPI display and need a larger console font. I can set it interactively just fine using:



    $ sudo dpkg-reconfigure console-setup
    # Select UTF-8 -> Guess -> Terminus -> 16x32
    update-initramfs: deferring update (trigger activated)
    Processing triggers for initramfs-tools (0.130ubuntu3.5) ...
    update-initramfs: Generating /boot/initrd.img-4.15.0-43-generic


    However, if I try to set it non-interactively as follows:



     $ sudo debconf-set-selections <<EOF 
    console-setup console-setup/charmap47 select UTF-8
    console-setup console-setup/codeset47 select Guess optimal character set
    console-setup console-setup/codesetcode string guess
    console-setup console-setup/fontface47 select Terminus
    console-setup console-setup/fontsize string 16x32
    console-setup console-setup/fontsize-fb47 select 16x32 (framebuffer only)
    console-setup console-setup/fontsize-text47 select 16x32 (framebuffer only)
    EOF


    This does not work. Running setupcon has no effect. If I check /etc/default/console-setup, I see the font info is updated when I run dpkg-reconfigure, and dpkg-reconfigure also triggers update-initramfs, so it seems more is going on with dpkg-reconfigure that my debconf-set-selections does not trigger. How do I find these actions and trigger them after my debconf-set-selections?










    share|improve this question


























      2












      2








      2








      What is the correct way to non-interactively change the console font?



      I have a HiDPI display and need a larger console font. I can set it interactively just fine using:



      $ sudo dpkg-reconfigure console-setup
      # Select UTF-8 -> Guess -> Terminus -> 16x32
      update-initramfs: deferring update (trigger activated)
      Processing triggers for initramfs-tools (0.130ubuntu3.5) ...
      update-initramfs: Generating /boot/initrd.img-4.15.0-43-generic


      However, if I try to set it non-interactively as follows:



       $ sudo debconf-set-selections <<EOF 
      console-setup console-setup/charmap47 select UTF-8
      console-setup console-setup/codeset47 select Guess optimal character set
      console-setup console-setup/codesetcode string guess
      console-setup console-setup/fontface47 select Terminus
      console-setup console-setup/fontsize string 16x32
      console-setup console-setup/fontsize-fb47 select 16x32 (framebuffer only)
      console-setup console-setup/fontsize-text47 select 16x32 (framebuffer only)
      EOF


      This does not work. Running setupcon has no effect. If I check /etc/default/console-setup, I see the font info is updated when I run dpkg-reconfigure, and dpkg-reconfigure also triggers update-initramfs, so it seems more is going on with dpkg-reconfigure that my debconf-set-selections does not trigger. How do I find these actions and trigger them after my debconf-set-selections?










      share|improve this question














      What is the correct way to non-interactively change the console font?



      I have a HiDPI display and need a larger console font. I can set it interactively just fine using:



      $ sudo dpkg-reconfigure console-setup
      # Select UTF-8 -> Guess -> Terminus -> 16x32
      update-initramfs: deferring update (trigger activated)
      Processing triggers for initramfs-tools (0.130ubuntu3.5) ...
      update-initramfs: Generating /boot/initrd.img-4.15.0-43-generic


      However, if I try to set it non-interactively as follows:



       $ sudo debconf-set-selections <<EOF 
      console-setup console-setup/charmap47 select UTF-8
      console-setup console-setup/codeset47 select Guess optimal character set
      console-setup console-setup/codesetcode string guess
      console-setup console-setup/fontface47 select Terminus
      console-setup console-setup/fontsize string 16x32
      console-setup console-setup/fontsize-fb47 select 16x32 (framebuffer only)
      console-setup console-setup/fontsize-text47 select 16x32 (framebuffer only)
      EOF


      This does not work. Running setupcon has no effect. If I check /etc/default/console-setup, I see the font info is updated when I run dpkg-reconfigure, and dpkg-reconfigure also triggers update-initramfs, so it seems more is going on with dpkg-reconfigure that my debconf-set-selections does not trigger. How do I find these actions and trigger them after my debconf-set-selections?







      dpkg fonts console hdpi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 28 '18 at 2:44









      proximousproximous

      1864 bronze badges




      1864 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          1
















          You will need to do this in /etc/default/console-setup file, let's say if we're gonna to use Terminus 16x32 fonts, the command will be:



          sudo sed -i '/^FONTFACE/s/^/#/' /etc/default/console-setup # comment out the old value
          sudo sed -i '/^FONTSIZE/s/^/#/' /etc/default/console-setup # comment out the old value
          echo 'FONTFACE="TER"' | sudo tee -a /etc/default/console-setup # Set font to Terminus
          echo 'FONTSIZE="16x32"' | sudo tee -a /etc/default/console-setup # Set font size


          And finally, apply your change with sudo update-initramfs -u



          Also, Ubuntu kernels (starts from Xenial) will soon support FONT_TER16x32 for console display in early boot stage [1].



          To benefit from this HiDPI fonts support, one just need to add "fbcon=font:TER16x32" to the GRUB_CMDLINE_LINUX in
          /etc/default/grub, and run sudo update-grub



          [1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1819881






          share|improve this answer

























          • Either I've messed up my system testing this, or there is still another step, because this did not work for me. I edited console-setup per your commands, ran update-intramfs, rebooted, and still had a small console font.

            – proximous
            Apr 15 at 13:57











          • I was using this command for console-setup on a freshly installed Xenial server and it works well.

            – P.-H. Lin
            Apr 24 at 9:35













          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105052%2fhidpi-console-font-non-interactive%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1
















          You will need to do this in /etc/default/console-setup file, let's say if we're gonna to use Terminus 16x32 fonts, the command will be:



          sudo sed -i '/^FONTFACE/s/^/#/' /etc/default/console-setup # comment out the old value
          sudo sed -i '/^FONTSIZE/s/^/#/' /etc/default/console-setup # comment out the old value
          echo 'FONTFACE="TER"' | sudo tee -a /etc/default/console-setup # Set font to Terminus
          echo 'FONTSIZE="16x32"' | sudo tee -a /etc/default/console-setup # Set font size


          And finally, apply your change with sudo update-initramfs -u



          Also, Ubuntu kernels (starts from Xenial) will soon support FONT_TER16x32 for console display in early boot stage [1].



          To benefit from this HiDPI fonts support, one just need to add "fbcon=font:TER16x32" to the GRUB_CMDLINE_LINUX in
          /etc/default/grub, and run sudo update-grub



          [1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1819881






          share|improve this answer

























          • Either I've messed up my system testing this, or there is still another step, because this did not work for me. I edited console-setup per your commands, ran update-intramfs, rebooted, and still had a small console font.

            – proximous
            Apr 15 at 13:57











          • I was using this command for console-setup on a freshly installed Xenial server and it works well.

            – P.-H. Lin
            Apr 24 at 9:35















          1
















          You will need to do this in /etc/default/console-setup file, let's say if we're gonna to use Terminus 16x32 fonts, the command will be:



          sudo sed -i '/^FONTFACE/s/^/#/' /etc/default/console-setup # comment out the old value
          sudo sed -i '/^FONTSIZE/s/^/#/' /etc/default/console-setup # comment out the old value
          echo 'FONTFACE="TER"' | sudo tee -a /etc/default/console-setup # Set font to Terminus
          echo 'FONTSIZE="16x32"' | sudo tee -a /etc/default/console-setup # Set font size


          And finally, apply your change with sudo update-initramfs -u



          Also, Ubuntu kernels (starts from Xenial) will soon support FONT_TER16x32 for console display in early boot stage [1].



          To benefit from this HiDPI fonts support, one just need to add "fbcon=font:TER16x32" to the GRUB_CMDLINE_LINUX in
          /etc/default/grub, and run sudo update-grub



          [1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1819881






          share|improve this answer

























          • Either I've messed up my system testing this, or there is still another step, because this did not work for me. I edited console-setup per your commands, ran update-intramfs, rebooted, and still had a small console font.

            – proximous
            Apr 15 at 13:57











          • I was using this command for console-setup on a freshly installed Xenial server and it works well.

            – P.-H. Lin
            Apr 24 at 9:35













          1














          1










          1









          You will need to do this in /etc/default/console-setup file, let's say if we're gonna to use Terminus 16x32 fonts, the command will be:



          sudo sed -i '/^FONTFACE/s/^/#/' /etc/default/console-setup # comment out the old value
          sudo sed -i '/^FONTSIZE/s/^/#/' /etc/default/console-setup # comment out the old value
          echo 'FONTFACE="TER"' | sudo tee -a /etc/default/console-setup # Set font to Terminus
          echo 'FONTSIZE="16x32"' | sudo tee -a /etc/default/console-setup # Set font size


          And finally, apply your change with sudo update-initramfs -u



          Also, Ubuntu kernels (starts from Xenial) will soon support FONT_TER16x32 for console display in early boot stage [1].



          To benefit from this HiDPI fonts support, one just need to add "fbcon=font:TER16x32" to the GRUB_CMDLINE_LINUX in
          /etc/default/grub, and run sudo update-grub



          [1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1819881






          share|improve this answer













          You will need to do this in /etc/default/console-setup file, let's say if we're gonna to use Terminus 16x32 fonts, the command will be:



          sudo sed -i '/^FONTFACE/s/^/#/' /etc/default/console-setup # comment out the old value
          sudo sed -i '/^FONTSIZE/s/^/#/' /etc/default/console-setup # comment out the old value
          echo 'FONTFACE="TER"' | sudo tee -a /etc/default/console-setup # Set font to Terminus
          echo 'FONTSIZE="16x32"' | sudo tee -a /etc/default/console-setup # Set font size


          And finally, apply your change with sudo update-initramfs -u



          Also, Ubuntu kernels (starts from Xenial) will soon support FONT_TER16x32 for console display in early boot stage [1].



          To benefit from this HiDPI fonts support, one just need to add "fbcon=font:TER16x32" to the GRUB_CMDLINE_LINUX in
          /etc/default/grub, and run sudo update-grub



          [1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1819881







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 15 at 9:55









          P.-H. LinP.-H. Lin

          2,4931 gold badge12 silver badges19 bronze badges




          2,4931 gold badge12 silver badges19 bronze badges















          • Either I've messed up my system testing this, or there is still another step, because this did not work for me. I edited console-setup per your commands, ran update-intramfs, rebooted, and still had a small console font.

            – proximous
            Apr 15 at 13:57











          • I was using this command for console-setup on a freshly installed Xenial server and it works well.

            – P.-H. Lin
            Apr 24 at 9:35

















          • Either I've messed up my system testing this, or there is still another step, because this did not work for me. I edited console-setup per your commands, ran update-intramfs, rebooted, and still had a small console font.

            – proximous
            Apr 15 at 13:57











          • I was using this command for console-setup on a freshly installed Xenial server and it works well.

            – P.-H. Lin
            Apr 24 at 9:35
















          Either I've messed up my system testing this, or there is still another step, because this did not work for me. I edited console-setup per your commands, ran update-intramfs, rebooted, and still had a small console font.

          – proximous
          Apr 15 at 13:57





          Either I've messed up my system testing this, or there is still another step, because this did not work for me. I edited console-setup per your commands, ran update-intramfs, rebooted, and still had a small console font.

          – proximous
          Apr 15 at 13:57













          I was using this command for console-setup on a freshly installed Xenial server and it works well.

          – P.-H. Lin
          Apr 24 at 9:35





          I was using this command for console-setup on a freshly installed Xenial server and it works well.

          – P.-H. Lin
          Apr 24 at 9:35


















          draft saved

          draft discarded















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105052%2fhidpi-console-font-non-interactive%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Tamil (spriik) Luke uk diar | Nawigatjuun

          Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

          Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?