Hi sudodus, thank you for a prompt reply. I'm afraid the solution you suggested was not quite what I needed. I did a little more experimentation and have now managed to achieve the configuration that I wanted. I will set out the solution below in case anyone else here wants to do the same.
If you are running Ubuntu 15.10 or later, then running
sudo dpkg-reconfigure console-setup
will not work to permanently change the default font size of the console. To do this you will need to follow these steps:
1. There is a set of custom fonts for your console. You must first download them with this command:
Code:
sudo apt-get install fonts-ubuntu-font-family-console
2. Next, you will use a text editor to create a script. I simply used gedit. You must create the file as root / administrator - so enter the command:
Code:
sudo gedit /usr/local/bin/fontset
Once the new empty file is open in gedit, you need to specify the font that you want to use as your console default. Now you can see a list of all the available fonts by visiting the directory
Code:
/usr/share/consolefonts/
. There are in total 302 available fonts, so you may want to test a few until you find one that you like. You should adjust the code below to reflect the font that you want to use. This is the larger font that I selected. Enter this code into the new empty file /usr/local/bin/fontset using gedit:
Code:
#!/bin/sh
setfont /usr/share/consolefonts/Uni3-TerminusBold32x16.psf.gz
To clarify once more, Uni3-TerminusBold32x16.psf.gz is the font that I choose to use. There are 301 others in the font directory that you downloaded & installed earlier! So you set the path to the exact name of the font you want to use. Once done, save the file with the changes and exit gedit.
3. You must next edit your which is a hidden file located in your home directory. I simply used gedit again to do this. As .profile is your file, you have permissions to change it and there is no need to type sudo first. So enter:
This will open up your .profile file. There will be lines of entries in this file that you should not change. Just scroll down to the bottom and add these lines to your .profile:
Code:
if [ "$TERM" == "linux" ]; then
/usr/local/bin/fontset
fi
Save the file with the changes and exit gedit.
4. Next, you need to change the permissions of the script that you created earlier. Because it was created as root using sudo, you should enter the following command:
Code:
sudo chmod 777 /usr/local/bin/fontset
Finally, reboot your system.
Once you restart, you can log onto anyone of the 6 consoles pressing the keys:
or F2-F6
At first the console text at the prompt is the tiny default. Enter your username and password at the prompt and your new customised font will be displayed.
Bookmarks