This text file is my notes for fixing the error 'sh: setfont: not found' when excuting: cmatrix -l sh: setfont: not found after installing cmatrix via: aptitude install cmatrix And not being able to use cmatrix -l switch I worked on fixing the error for awhile, then stopped. To try to fix this (it didn't work) I did this: Find latest version here: http://www.asty.org/cmatrix/dist/ cd ~ wget http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz tar xvzf cmatrix-1.2a.tar.gz && && cd cmatrix-1.2a && cat configure.in From what I have read on configure.in I need: 1.) Either program setfont (in kbd, I don't have) or consolechars which I do have. I don't want to install kbd as it, conflicts with my console-tools and wants to remove it, no thank you: [snip] Remove the following packages: 1) console-tools Accept this solution? [Y/n/q/?] n 2.) My consolefonts should be in the location that they are: ls /usr/share/consolefonts | grep matrix matrix.fnt matrix.psf.gz 3.) place matrix font in current directory when running the cmd: cd ~ && cp ~/cmatrix-1.2a/matrix.fnt ~/matrix.fnt cp ~/cmatrix-1.2a/matrix.psf.gz ~/matrix.psf.gz cp ~/cmatrix-1.2a/mtx.pcf ~/mtx.pcf Nope - the -l switch still didn't work. aptitude show cmatrix Package: cmatrix [snip] Recommends: kbd Suggests: cmatrix-xfont su aptitude install cmatrix-xfont exit cmatrix -l sh: setfont: not found Nope - the -l switch still didn't work. ls /usr/share/fonts/X11/misc | grep m mtx.pcf.gz aptitude show cmatrix-xfont [snip] Depends: xfonts-utils aptitude show xfonts-utils [snip] su aptitude install kbd-compat exit cmatrix -l Warning: this is a shell wrapper; consider using consolechars(8) Couldnt get a file descriptor referring to the console get_console_fd: Invalid argument aptitude remove kbd-compat Not yet (run test manual install first): su aptitude remove cmatrix exit Then manually installing cmatrix cd ~ wget http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz tar xvzf cmatrix-1.2a.tar.gz && cd cmatrix-1.2a cat INSTALL ./configure Reply: [snip] checking for consolechars... /usr/bin/consolechars checking for setfont... no checking for /usr/lib/kbd/consolefonts... no checking for /usr/share/consolefonts... yes checking for mkfontdir... /usr/bin/mkfontdir checking for /usr/lib/X11/fonts/misc... no checking for /usr/X11R6/lib/X11/fonts/misc... no configure: warning: *** You do not appear to have an X window fonts directory in the standard *** locations (/usr/lib/X11/fonts/misc or /usr/X11R6/lib/X11/fonts/misc). The *** mtx.pcf font will not be installed. This means you will probably not *** be able to use the mtx fonts in your x terminals, and hence be unable *** to use the -x command line switch. Sorry about that... [snip] hmmm seems that this needs to be edited to use a different directory?: /usr/share/fonts/X11/misc Or what if one were to manually create that path... I do have: ls /usr/lib/X11 -al <- this is empty ls /usr/lib -al drwxr-xr-x 2 root root 4096 Oct 5 2008 X11 cd /usr/lib/X11 su mkdir fonts && cd fonts && mkdir misc exit && cd ~/cmatrix-1.2a ./configure That error is gone... su aptitude remove cmatrix exit make make check su make install Reply: [snip] Installing matrix fonts in /usr/share/consolefonts... Installing X window matrix fonts in /usr/lib/X11/fonts/misc... Running mkfontdir /usr/lib/X11/fonts/misc... Done. If this is the first time you have installed CMatrix you will probably have to restart X window in order to use the mtx.pcf font. exit ls -al /usr/lib/X11/fonts/misc -rw-r--r-- 1 root root 14 Apr 23 08:43 fonts.dir -rw-r--r-- 1 root root 24633 Apr 23 08:43 mtx.pcf cmatrix -bash: /usr/bin/cmatrix: No such file or directory su aptitude install cmatrix y y exit cmatrix -l sh: setfont: not found exit I then log back into my shell: cmatrix -l Reply: Couldn't get a file descriptor referring to the console get_console_fd: Invalid argument grrrrrrrrr, stop already, cmatrix is fine me thinks this has to do with virtual terminal vs inside X. Not sure... moving on, I have other stuff to do! MISC NOTES YET TO LOOK INTO FURTHER: http://scottlab.ucsc.edu/fink_intel_10.6_64bit_sw/10.4/stable/main/finkinfo/games/cmatrix.patch echo $LANG en_US.UTF-8 consolechars note, unrelated: apt-cache search terminus apt-get install console-terminus cd /usr/share/consolefonts consolechars Uni3-Terminus12x6.psf.gz