My Rasberry Pi Model B out of the box.
My Rasberry Pi Model B out of the box.
My Rasberry Pi Model B
My Rasberry Pi Model close-up.

Getting Raspberry Pi Terminal Font Adjusted for Big Screens

I have had so much fun with my Raspberry Pi from the moment I booted it up, although when I did, since I am a shell user, I noticed the text on the screen was so small I couldn’t possibly sit on the couch and type or even sit up close and type for that matter. The text was just too small. I found a way to set it in the command line, but that’s only good for one session. So I’ve created a simple bash script, and a how-to of where to put it, and what to modify in order to get the script to run on boot up below. I hope this solves some issues for people. For those of you using the GUI, this probably doesn’t apply, but you’ll be cursing yourself if you do need to drop into the shell and your text is the size of a grain of rice. Also, it’s a Pi. You should be in the shell. Come on.

1)The first step is to log in

2)If your in the terminal already, great. bonus points for bravery. If not, press CTRL+ALT+F1 to get there.

3)create a directory to put your scripts in:

sudo mkdir /home/pi/scrpits

4) Navigate to that directory:

cd /home/pi/scripts/

5) Using either vim or nano, or pico, or whatever your favorite terminal text editor is, create a new file for the script. For convenience sake and because it’s already installed, we’ll use nano here, however I prefer vim. If you want to install vim, type:

sudo apt-get install vim

Otherwise, use nano:

sudo nano largefont

6) Write this in the file:

echo changing font size to 32x16
setfont /usr/share/consolefonts/Lat15-TerminusBold32x16.psf.gz

7) Make it executable:

sudo chmod 775 largefont

8) Now, we need to alter some files in /etc/rc.local, where Raspberry Pi goes to look for scripts or commands for start-up, and type the following:

sudo nano /etc/rc.local

9) Go yo the bottom and type the following:

sudo /home/pi/scripts/largefont

If you want to make it sleep until your login appears, and run it in the background you can adjust the sleep like this. The ampersand makes it run in the background btw:

sudo (sleep 3; sudo /home/pi/scripts/largefont) &

10) When you reboot, the text size should be much larger than factory settings:

sudo reboot

Hope this tutorial helped with something! 🙂

Share on FacebookEmail this to someoneTweet about this on TwitterShare on Google+Share on LinkedInShare on Reddit