понедельник, 26 марта 2018 г.

WINDOWS and MacOS fonts on FreeBSD

Recently I was writing a document with a strong requirements to the formatting. These requirements included the next one: all the text must be written in Russian using the old good Courier New font.

As usual it did not become a problem on my FreeBSD box. The only two things you need to do are...

1. Install the webfonts package:
sudo pkg install webfonts

2. Read the message from the port installation. This message describes that you need to accept the EULA and, then, setup loading the freetype module (the "Module" section of the /etc/X11/xorg.conf) and add the new FontPath line into the "Files" section. Just read the message and do what it wants. Just note, that there is a typo in the message: you should add the ' Load "freetype" ' line to the "Module" section, NOT "Modules" (wrong section name).

After doing these actions and rebooting my machine, I am able to use Courier New font with Cyrillic letters as I did it in WINDOWS. Easy!

воскресенье, 25 марта 2018 г.

Installing gem on FreeBSD

Recently I needed to install gollum for sake of local writing of wiki articles of my hobby project. Because I am fan of the FreeBSD operating system, I decided to describe the process for you.

To install the gem utility in FreeBSD you should use just one command:

sudo pkg install ruby24-gems rubygem-gems

After that, you will be able to use gem to install ruby gems:

sudo gem install gollum