After last re-installation of gentoo I noticed that in some Adobe Flash programs fonts doesn’t render. It was especially visible in Google Analytics. I check if I have all necessary fonts (like corefonts from Microsoft), but that wasn’t a problem.
At first googling didn’t give any interesting results. I tried to see where flash plugin search for fonts so I run opera, determine it pid and attach strace. Surprisingly, it didn’t search for fonts at all. So, as I quess, it must be X‘s tasks. I googled for a while and found that I need to add FontPath into xorg.conf. After restarting X‘s everything work correctly.
Detail description of using strace:
- Launch opera
- “ps -aux | grep opera”, to see opera pid
- “strace -fp 12345 &> opera_log”, log sys calls
- Go to that flash, where no text was displayed
- Kill strace (CTRL+C is enough)
- “less opera_log”, look for open or read in folders /usr/share/fonts/*
- “emerge –noreplace corefonts”
- edit “/etc/X11/xorg.conf”, in section “Files” add: FontPath “/usr/share/fonts/corefonts”
- save and restart X‘s (CTRL+ALT+BACKSPACE)
Installing 3rd part software that isn’t in official repository/tree in linux distributions is often problematic. Here is the guide how to install dictionary frontend – Kydpdict in gentoo:
- Log as root (su)
- Create directory /usr/local/overlays/mysiar (*or other in /usr/local)
- Download http://www.synowiec.org/mysiar-portage.sh (wget http://www.synowiec.org/mysiar-portage.sh)
- Give it right to run and run it (chmod o+x mysiar-portage.sh && ./mysiar-portage.sh)
- Add line PORTDIR_OVERLAY=”/usr/local/overlays/mysiar” to /etc/make.conf
- Sync portage tree (emerge –sync)
- Try emerge kydpdict
- If it fail saying that Manifest point file that doesn’t exist, remove that entry from Manifest and try to emerge again
- Copy dictionary files from your windows version and rename them to lowercast characters
I hope that this guide was helpful.
Added step 5. (2006-09-16)
Last Saturday I finished installation and configuration of Gentoo distribution. My previous major operating system was also Linux flavour. It was OpenSUSE. Despite it worked well, there were several areas to improve:
- support of Geforce2 MX400 nvidia graphic card and HP 710C printer was problematic, it was definitely downgrade in compare to older releases of SUSE,
- package repositories miss a lot of applications that I use daily,
- installation of programs that are outside of repositories is weird,
- in general, doing things like downloading KDE 4 sources and building them require too much IMO manual work; Yast isn’t helpful in that case,
So why I choose to try Gentoo (not Debian for e.g.):
- it’s different; almost all Linux distributions are build around packaging, of course they have different formats or dependencies system, but the philosophy is the same: “pack it”; while Gentoo provide recipes how to build it,
- it has well-written documentation,
- I’m on a holiday so compile time doesn’t really matter;
- it is the most popular OS among finalists of Polish Olympics in Informatics,
Thoughts after installation
I’m satisfied with gentoo distribution. Portage (gentoo “package” system) works well. It extremely easy to install an older version of a program or an unstable one. Moreover, the configuration took as much time as in SUSE. SUSE GUIs are nice, but they don’t speed up your work.
- during the installation you’re encouraged to use tool mirrorselect; It use “space” to select and enter to “end” program. However It doesn’t metion anything about using “space” and doesn’t prompt if you doesn’t select anything. A typical user (not *NIX) might be confused.
- two hassles with portage, while I try install nvidia-driver opengl was required to one of the packet and installation stop; another was audacity which require wxGTK 2.4.x but not 2.6.x which is default, error messages was unhelpful;
- searching packages information takes too much time(“emerge -s” and “emerge –searchdesc”), it should use suffix trees as indexes;
- There is no one package in portage tree that I use frequently – kydpdict.