Klaus Knopper answers your Linux questions
Answer
Quite a few Xorg versions ago, you had to regenerate directory caches and let the X server rescan the entire font list.
For scalable TrueType fonts, the installation has become a lot less complex since client programs handling TrueType fonts do most of the work themselves through dynamically linked font-rendering libraries.
Although this means less installation work for you, it also means a slightly slower startup time for programs handling fonts, like GIMP or LibreOffice (Figure 1).
![](/var/linux_magazin/storage/images/linux-magazine.com/issues/2013/154/ask-klaus/figure-1/591152-1-eng-US/Figure-1_large.png)
To install custom TrueType fonts, it's practical to create a new per-fontset directory – or at least add one extra directory to hold your fonts.
sudo mkdir /usr/share/fonts/truetype/extra
Now, to make a new font available system-wide, you can just copy the .ttf
file there:
sudo cp fontfile.ttf /usr/share/fonts/truetype/extra/
Make sure it's readable for everyone,
sudo chmod 755 /usr/share/fonts/truetype/extra sudo chmod 644 /usr/share/fonts/truetype/extra/fontfile.ttf
and then you're done. :-)
Alternatively, you can check your distribution's package manager for font packages containing free and contributed fonts available for installation.
To check to see whether a program is capable of using TrueType fonts, list its dynamic libraries and look for "freetype" and "font" (Listing 1).
Listing 1
Finding TrueType Fonts
$ ldd /usr/bin/gimp | grep -E 'font|freetype' libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf6e28000) libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf6de8000)
Libfreetype is a TrueType-compatible open source library for rendering TrueType fonts in an application, and libfontconfig
lets the program know how to identify a font by name and find a requested font in the filesystem.
Browser Settings in Knoppix 7.2.0 Paranoid?
Hello, I noticed you are again using the advertisement blocker AdBlockPlus, and also NoScript in a setting that blocks all active contents like JavaScript by default in Firefox on Knoppix 7.2.0.
Isn't that somewhat paranoid? Being a Linux user, there are not so many viruses around that could infect my computer over a website. And, many websites don't work right – shopping and travelling sites especially don't display real-time search results. The first thing I do is select "allow scripts globally (not recommended)." Why do you make things so complicated in Knoppix? Other distros just deliver Firefox with no security plugins installed or enabled, and leave it to the user to add more security stuff.
Answer
You are right, the security policy of Knoppix is somewhat more restrictive than other Live systems. In general, the Knoppix philosophy is:
- Don't run any servers and services that are accessible from the Internet, unless the user explicitly requests so.
- Don't use any Internet services and don't transmit any personal data to websites unless the user requests so.
These privacy-related rules could explain why many settings are, at the beginning, somewhat restrictive. I actually do use these settings on my working computers myself as well. And, I only enable JavaScript on websites that I know are safe when I need a feature like the practical live search results you mentioned (Figure 2).
![](/var/linux_magazin/storage/images/linux-magazine.com/issues/2013/154/ask-klaus/figure-2/591155-1-eng-US/Figure-2_large.png)
The reason for blocking active content by default is, of course, that an unknown website might contain malicious content that could exploit weaknesses of your browser or trick you into being on a different website, reading your keyboard to obtain passwords or taking screenshots to spy out your desktop.
Even though just a few websites might successfully steal passwords from your computer without your noticing, is it worthwhile to take the chance, rather than investing just a single click on each of your favorite websites to allow active content?
Linux might not be affected by the majority of malware around, but it's still possible to compromise your browser via "cross-site scripting" attacks. And, if you do important stuff with your browser like money transactions or accessing protected websites with your personal data, you don't want others stealing your identity. Therefore, I recommend leaving the default enabled for NoScript and just adding your favorite websites, one by one, to the exception list, to always stay on the safe side. I don't think this is paranoid; I'd call it just being careful. :-) With the NoScript settings for Firefox restricted by default, I can recommend Knoppix with good confidence for online banking and secure access to many websites.
Blocking advertisements with AdBlockPlus is a somewhat "political" issue. On one hand, I perfectly understand that advertisers want to make money by counting clicks or boost the popularity of products. On the other hand, some websites are overloaded with advertisements, and some ads actually consume more bandwidth than the informational part of the page, or cause bad rendering of the page.
When using the web, I want to read information and identify links and locations accurately. But, on some sites, it is virtually impossible to distinguish between the real content and advertisements on a page. If you've ever tried to find the correct download button on a website that offers a product, yet also advertises 10 other products for download, you know what I'm talking about. For shopping on the web, however, the attitude may be different; you might want to switch off AdBlockPlus then.
Infos
- YouTube HTML5 video player: http://www.youtube.com/html5
- Lightspark: https://github.com/lightspark/lightspark
- Debian Lightspark package: http://packages.debian.org/sid/browser-plugin-lightspark
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.