I am using Coder to host a Debian installation, and I would like to change the terminal font to UbuntuMono from Nerd Fonts. I've downloaded and installed the font, as confirmed by running fc-list
:
[...]
/usr/share/fonts/truetype/dejavu/DejaVuSansMono-BoldOblique.ttf: DejaVu Sans Mono:style=Bold Oblique
/home/coder/.fonts/UbuntuMonoNerdFont-Regular.ttf: UbuntuMono Nerd Font:style=Regular
/usr/share/fonts/truetype/dejavu/DejaVuMathTeXGyre.ttf: DejaVu Math TeX Gyre:style=Regular
[...]
Now I understand that my next step should be to set my terminal emulator to use that font as the default. Running echo $TERM
gives Xterm
, so I created a .Xresources
file with the following contents:
xterm*font:UbuntuMono Nerd Font:size=16
Next I try to run xrdb -merge .Xresources
, but I get the following error:
xrdb: Can't open display ''
. I tried setting my DISPLAY
environment variable to :0
per a post I found, but that just results in the error being xrdb: Can't open display ':0'
. I'm at a total loss here. Can anyone tell me what I'm missing and how I can change fonts?