FreeBSD X11 configuration

xiaoxiao2021-03-19  182

I refer to the relevant information on Handbook and the network, since it is installed in the VM, some features are not configured.

7.1 Overview

FreeBSD uses X11 to provide users with powerful graphical user interfaces. X11 is an X Window system implementation of open source code, including xorg and xfree86. FreeBSD is equipped with Xfree86 by default before the version included in FreeBSD 4.11-Release and FreeBSD 5.2.1-Release, a X11 service released by Xfree86 Project, Inc.. From FreeBSD 5.3-Release, the default and the official supported X11 becomes XORG, which is developed by the X.org Foundation. This chapter will introduce X11 installation and configuration and emphasize xorg. For the displays such as the display cards supported by X11, please visit the XORG or XFree86 website.

7.2 Installation System

Upgrade Ports and Stable after the minimum installation, then compile the kernel. There are too many articles in this regard, so no longer this. :)

7.3 installation x11

1. Ports Collection and install xorg: # cd / usr / ports / x11 / xorg # make install Clean Note: To completely compile XORG, at least 4 GB of remaining disk space is required. Note: You can use the following method 1) First / usr / ports / x11-server / xorg-server make install clean, it is OK, you can wonder: XORG -CONFIGURE Note: At this time, the X font is missing, so You: 2) / usr / ports / x11-fonts / put the following xorg- *, maybe Encoding is not available. This xorg is the chiper, there is no garbage, and there is no xterm, XDM, huh, it is very small, suitable for small hard disks ~~~ 2, and additional X11 can also be installed directly from Package. We provide X11 installation packages that can be used with pkg_add (1) tools. If you load and install it from a remote, PKG_ADD (1) Please do not specify the version number. PKG_ADD (1) automatically downloads the latest version of the installation package. Want to install xorg from Package, simply enter the following command: # pkg_add -r xorg

7.4 Configuration X11

Several steps are required to configure X11. The first step is to establish an initial configuration file as a super user: # xorg -configure typing: # xfree86 -configure This will generate a profile called xorg.conf.new in / root (no matter You use Su (1) or log in to change the default $ HOME directory variable). For Xfree86, the name of the configuration file is XF86Config.new. The X11 program will try to detect graphics hardware in the system and write the configuration file containing the detected hardware to load the correct driver. The next step is to test the existing profile to confirm that xorg can work with the graphics device on the system. To complete this task, just: # xorg -config xorg.conf.new xfree86 users should: # xfree86 -xf86config xf86config.new If the user sees a black gray and an X-shaped mouse pointer, the configuration is successful . To quit the test, simultaneously type Ctrl Alt BackSpace. Note: If the mouse is not working properly, you need to configure it first. Next is to adjust XORG.CONF.NEW (or XF86Config.new, if you run xfree86) configuration file and test. Open this file with the text editor such as EMACS (1) or EE (1). The first thing to do is to set the refresh rate for the display of the current system. These values ​​include vertical and horizontal synchronous frequencies. Putting them to XORG.CONF.NEW "Monitor" section: section "Monitor" Identifier "Monitor0" Vendorname "Monitor Vendor" ModelName "Monitor Model" horizsync 30-107 vertrefresh 48-120 EndsectionhorizSync and VertRefresh in the configuration file No. If this is the case, you need to add them and set the appropriate value after HorizSync and vertrefresh. In the above example, the corresponding display thereof is given. Close XORG.CONF.NEW (or XF86Config.new) should also choose the default resolution and color depth. This is defined in the "Screen" section:

Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" defaultDepth 24 Subsection "Display" Viewport 0 0 Depth 24 MODES "1024x768" endsubsection endsection

DEFAULTDEPTH: The keyword describes the default color depth to run. This can replace the settings in the configuration file by xorg (1) (or XFree86 (1)) -depth command line switch. The MODES keyword describes the resolution of the screen under a given color depth. It should be noted that graphics hardware of the target system only supports standard modes defined by VESA. In the previous example, the default color depth is 24-bit color. When using this color depth, the allowed resolution is 1024x768. NOTE: One of the tools that can help your tool in the process of finding and resolving the problem is the X11 log file, which contains information about each device associated with the X11 server. The file name of the xorg log is /var/log/xorg.0.log (Xfree86 log file name is format such as XFree86.0.log). The accurate name of the log can be from xorg.0.log to xorg.8.log, and so on. If everything is ready to stop, you can put the configuration file in the public directory. You can find specific locations in xorg (1) (or Xfree86 (1)). This location is usually /etc/x11/xorg.conf or /usr/x11r6/etc/x11/xorg.conf (it should be / etc / x11 / xf86config or / usr / x11r6 / etc / x11 / xf86config). # Cp xorg.conf.new /etc/x11/xorg.conf for xfree86: # cp xf86config.new /etc/x11/xf86config7.5 Install GNOME

I installed gnome2-2.10, which is actually very simple. After the above files have been made, the reboot pkg_add -r gnome2 (determined to have a network) can be installed on gnome2-2.10 (this is the fastest way), of course, want him Run more efficient or slowly installed! CD / USR / PORTS / X11 / GNOME2 Make Install Clean plus a variety of dependent packages, estimated to spend n hours. . . There is no way to follow the bear's paw could not be part of A, once GNOME is installed, X Server must be told to launch GNOME instead of the default window manager. If the file .xinitrc has been customized in the appropriate location, simply replacing the line of the current window manager to / usr / x11r6 / bin / gnome-session. If there is no special change to the configuration file, simply type:% echo "/ usr / x11r6 / bin / gnome-session"> ~ / .xinitrc then type STARTX, GNOME desktop environment is started. Next, in Chinese MKDIR / USR / X11R6 / LIB / X11 / FONTS / TRUETYPE / then go to Windows / Fonts / Windows / Fonts under Windows / Windows / Fonts / Take SIMSUN.TTC Tahoma.ttf. . If you use the pinyin, it is highly recommended to install the SCIM as follows. . cd / usr / ports / chinese / scim-pinyin make install clean added setenv LANG zh_CN.eucCN setenv LC_LANG zh_CN.eucCN setenv LC_CTYPE zh_CN.eucCN setenv LC_MESSAGES zh_CN.eucCN setenv XMODIFIERS @ im = SCIM in the .cshrc

Configuring xorg xorgcfg -textMode Please pay attention to modify xorg.conf files

7.6 Beautify then we will beautify him,

My theme is

Http://www.gnome-look.org/content/show.php?content=13548

There are still a lot of themes above, you can choose it yourself, I chose an imitation Mac, the main thing is that his icon is very beautiful (personal point of view, you can reserve comments)

Installation is also relatively simple, unzipped to the corresponding directory, your home directory .ICON and .THEME (not the root user)

If you work with the subject, you will then install a startbar! ! !

CD / USR / ports / deskkutils / gdesklets-starterbar

Make Install Clean

By the way, put a browser, I like Firefox,

CD / USR / PORTS / WWW / FIREFOX /

Make Install Clean

Waiting ............................

Of course, all of the above can be installed by pkg_add -r xxxxxxx. .

Then restart GNOME (non-root users) can be. . .

Then use the menu application - "Attachment -" gdesklets, and configure it. .

Automatic startup can add a GDESKLETS START & like I have previously posted

Although it is a bit tired, because the front has been started, I will not start repeat, don't believe you, look at his PID.

Note: It is strongly recommended not to use root users. One is to consume resources. The second is GDESKLETS daemon, and the screensave cannot start under root, and then ROOT is not used to feel this, use a WHEEL group user Yes, if necessary, you can in the past, the player recommends using BMP or XMMS, RealPlay, Mplayer all in / usr / ports / multimedia / below, you can find it, make install clean. Attachment: Picture of my system

转载请注明原文地址:https://www.9cbs.com/read-130181.html

New Post(0)