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:
- Use a text editor like
nano
orvim
to open the/etc/default/console-setup
file. For example, you can use the following command to open the file withnano
:
sudo nano /etc/default/console-setup
- In the file, look for the lines that start with
FONTFACE
andFONTSIZE
. These lines define the font face and font size used in the terminal. - 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
, andFixed
. Font sizes are usually specified in the formatWIDTHxHEIGHT
. - After making the changes, save the file and exit the text editor. If you are using
nano
, you can save the file by pressingCtrl+O
, then pressEnter
, and exit by pressingCtrl+X
. - 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
- 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.
دیدگاهتان را بنویسید