Chapter 2
After the compilation system and kernel is completed, the software tools will be installed. You can use ports to compile and install, or use pkg_add to install. The former method is slower to install but may run the software faster. The latter method is to directly download and install the compiled software.
When installing the desktop system, you can choose to install Xorg first.
(For xorg, see: Introduction to Xorg
http://http///snap/doc/zh_CN.GB2312/books/handbook/
)
#cd /usr/ports/x11/xorg
#make install clean
(Note: Installation will take a lot of time; to fully compile Xorg, at least 4 GB of remaining disk space is required.)
If you want to install Xorg from package, simply enter the following command:
# pkg_add -r xorg
After installing xorg, start configuring xorg:
The first step is to create the initial configuration file as a super user:
#cd
#Xorg -configure
#cp /etc/X11/
The next step is to test the existing configuration file:
#Xorg -config /etc/X11/
If you see a black and gray grid and an X-shaped mouse pointer, the configuration will be successful. To exit the test, just type Ctrl+Alt+Backspace at the same time.
Next is to adjust the configuration file and test it. You can use the graphical configuration tool xorgcfg:
#xorgcfg -textmode
Just configure according to the prompts. After completing the configuration, you can use the method you just tested.
Then install the x11 graphics or font tool, type in the Firefly desktop font patch, and install TrueType font.
1. Join WITH_CJK=yes in /etc/
2. Update your ports tree (this step can be omitted)
3. Compile and install the following ports separately:
(Note: libXft must be after port:print/freetyp2 and port:x11-fonts/fontconfig)
Corresponding path:
/usr/ports/print/freetyp2
/usr/ports/x11-fonts/fontconfig
/usr/ports/x11-fonts/libXft
/usr/ports/x11-toolkits/pango
4. Create a directory for the TrueType font: /usr/X11R6/lib/X11/fonts/TrueType,
Copy Microsoft Windows fonts (in directory c:/windows/fonts) for example, etc. to this directory.
Then use ttmkfdir to create a file so that the X font engine knows that you have installed these new files:
#cd /usr/ports/x11-fonts/ttmkfdir/
#make install clean
#rehash
#cd /usr/X11R6/lib/X11/fonts/TrueType
#ttmkfdir >
#fc-cache -f -v (Reconstruct font cache)
Modify the font path:
#ee /etc/X11/
Join: FontPath “/usr/X11R6/lib/X11/fonts/TrueType/”
Configure Anti-Aliased Anti-aliased fonts: (Well configured, the fuzzy Chinese fonts will become clear)
(See: /snap/doc/zh_CN.GB2312/books/handbook/)
Modify /usr/X11R6/etc/fonts/.
This is mine, for reference only:
http:///blog/wp-uploads/
==To be continued=
Previous page12345Next pageRead the full text