Change Font in Ubuntu Server

To change the font in the Ubuntu server terminal, you need to edit the /etc/default/console-setup file. Here are the detailed steps to accomplish this:

  1. Use a text editor like nano or vim to open the /etc/default/console-setup file. For example, you can use the following command to open the file with nano:
sudo nano /etc/default/console-setup
FONTFACE and FONTSIZE in ubuntu server
  1. In the file, look for the lines that start with FONTFACE and FONTSIZE. These lines define the font face and font size used in the terminal.
  2. Modify these lines to set your desired font face and font size. You can choose from various available fonts and sizes. Some common font faces include VGA, Terminus, and Fixed. Font sizes are usually specified in the format WIDTHxHEIGHT.
  3. After making the changes, save the file and exit the text editor. If you are using nano, you can save the file by pressing Ctrl+O, then press Enter, and exit by pressing Ctrl+X.
  4. To apply the changes, you need to restart the console-setup service. You can do this by running the following command:
sudo systemctl restart console-setup
  1. If the changes do not take effect immediately, you may need to reboot your server for the new font settings to be applied.

By following these steps, you can customize the font in your Ubuntu server terminal to better suit your preferences.

Read More about console-setup file in the Ubuntu Manpage.

Leave a Reply

Your email address will not be published. Required fields are marked *