Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not found on Debian 9.4

Generating a pdf file from a markdown file can be done with pandoc, provided that all its dependencies are installed :

pandoc -s -o output.pdf input.md

! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not found. relax l.105 \fontencoding\encodingdefault\selectfont
pandoc: Error producing PDF

pandoc generates a log file missfont.log :

cat missfont.log
mktextfm ecrm1000
mktextfm ecrm1000
mktextfm ecrm1000
mktextfm ecrm1000
mktextfm ecrm1000
mktextfm ecrm1000

What Debian package provides this program ?

dpkg -S $(which mktextfm)
texlive-binaries: /usr/bin/mktextfm

In what package is located the ecrm1000 file ?

apt-file update
apt-file search ecrm1000

texlive-fonts-recommended: /usr/share/texlive/texmf-dist/fonts/source/jknappen/ec/ecrm1000.mf
texlive-fonts-recommended: /usr/share/texlive/texmf-dist/fonts/tfm/jknappen/ec/ecrm1000.tfm

Install the missing Debian package texlive-fonts-recommended :

apt install texlive-fonts-recommended

Advertisements

How to reduce pdf file size ?

Ghostscript is a great tool for reducing pdf file size.
On a Debian-based system, make sure to have the ghostscript package installed.

To make the file reduction a reality, run the following command line :

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=new_file.pdf current_file.pdf

There are several options for -dPDFSETTINGS :

/screen : low-resolution, lowest output size
/ebook : medium-resolution, medium output size
/printer OR /prepress : high-resolution with maximum output size

Installing Flash plugin on Debian Jessie

Flash plugin can be installed as a Debian package. make sure to have the contrib section enabled in your sources.list file.

To install it :

[root@localhost:~] # apt-get install flashplugin-nonfree

The deb package comes with an utility named /usr/sbin/update-flashplugin-nonfree
The available options are : –status, –install or –uninstall

[root@localhost:~] # /usr/sbin/update-flashplugin-nonfree --install

[root@localhost:~] # /usr/sbin/update-flashplugin-nonfree --status
Flash Player version installed on this system : 11.2.202.635
Flash Player version available on upstream site: 11.2.202.635
flash-mozilla.so - auto mode
link currently points to /usr/lib/flashplugin-nonfree/libflashplayer.so
/usr/lib/flashplugin-nonfree/libflashplayer.so - priority 50
Current 'best' version is '/usr/lib/flashplugin-nonfree/libflashplayer.so'.

If troubleshooting is needed to make your Flash plugin work fine in your browser, the Debian wiki has some more details : https://wiki.debian.org/FlashPlayer

Pocket button does not save any urls

Saving urls using the Pocket Pocket service service has failed within Firefox.
I am running the Windows 7 version of firefox with a couple of useful extensions.
The Pocket account has already been set up and authentication to the Pocket service works fine.
To make it work again, all the addons and extensions have been disabled for troubleshooting. No success.
I had to reinstall Firefox and delete my profile as indicated below :
How to successfully uninstall Firefox under Windows 7

Once completed and after adding the Pocket button into the firefox toobar, Saving urls with the Pocket service works fine again.

More information here :
Saving to Pocket and Accessing your List in Firefox

bash : /usr/share/bash-completion/bash_completion : line 226 : syntax error near unexpected token ‘}’

While using bash auto-completion feature, you may have the following error :
“bash : /usr/share/bash-completion/bash_completion : line 226 : syntax error near unexpected token ‘}'”

Make sure not to have any bash keywords like ‘do’, ‘done’ as an alias in your own bashrc file.
Rename your alias and reload your updated bashrc file. Auto-completion works fine now in your bash shell.

http://comments.gmane.org/gmane.comp.shells.bash.completion.devel/5145

http://stackoverflow.com/questions/22969050/bash-syntax-error-near-unexpected-token-done-with-alias-named-do

XDG: configuration directory ‘/home/fool/.config/newsbeuter’ not accessible, using ‘/home/fool/.newsbeuter’ instead.

On Debian Jessie, I get this error while launching newsbeuter :

“XDG: configuration directory ‘/home/fool/.config/newsbeuter’ not accessible, using ‘/home/fool/.newsbeuter’ instead.”

XDG stands for X Desktop Group and now known as the freedesktop.org project.
More details about XDG

To fix it, here is the workaround :

fool@localhost:~$ cd /home/fool/.config/
fool@localhost:~$ ln -s ~/.newsbeuter/ newsbeuter

Once done, you might have another similar error :

“XDG: data directory ‘/home/fool/.local/share/newsbeuter’ not accessible, using ‘/home/fool/.newsbeuter’ instead.”

To fix it, here is the workaround :

fool@localhost:~$ cd /home/fool/.local/share/
fool@localhost:~$ ln -s ~/.newsbeuter/ newsbeuter

Hope this helps !