Installation and configuration of Gentoo system based on Linux

Source: Internet
Author: User
Tags gtk

This article is my Gentoo system installation configuration, interested friends can have a look.

ThinkPad Middle Key

Usually used to use the small red dot and the key to simulate the effect of the wheel, but now installed Gentoo xorg, the middle key can only be used as a paste, can not be combined with small red dot to roll.

There is no such problem when using openSUSE, so it should be a xorg configuration problem. Mount the root partition of the openSUSE, Found that there is no xorg.conf file in the openSUSE (should be a cross version upgrade to opensuse11.3 when I deleted, then do not delete this file, resulting in Xorg-server startup, the mouse keyboard has been lost response). Then look at the bottom of a xorg.conf.d folder, which has a lot of xorg configuration. Directly in the Gentoo also created a corresponding folder, and then copy all the files in it, restart X after the normal, so the internet and typing time more convenient.

The main concerns to this configuration should be:

section "Inputclass"
# Novell Bug #597214
Identifier "IBM tpps/2 TrackPoint"
Matchproduct "Tpps/2 IBM TrackPoint"
Matchispointer "On"
Driver "Evdev"
Option "Emulatewheel" "on"
Option "Emulatewheelbutton" "2"
Option "Yaxismapping" "4 5″
Option "Xaxismapping" "6 7″
Option "Emulate3buttons" "on"
Option "Emulatewheeltimeout" "200"
Endsection

emerge Pykde4

Emerge Gentoo a variety of problems with PYKDE4 in KDE overlay, recorded here.
The first is direct emerge, the direct error: Pykde4%mapped type template for this type has already been defined
In the Gentoo forum and Bugzilla Check for a long time, are said to be sip problem, need to make a patch to circumvent this problem. In the KDE overlay, also has the corresponding patch, the direct modification Ebuild file, uses inside Pykde4-4.5.90-typedefs-fix.patch patch file, can cause patch to fail. Look at this patch patch file seems to have changed, line number has not been matched.
A new patch was found in the Bugzilla address: Http://bugs.gentoo.org/attachment.cgi?id=258163&action=view. After you create a overlay locally, download the patch and use it in the PYKDE4 code, and you can finally compile it.
Compile process also encountered the reason for the failure, mainly because the previous installation, the QT-related package is not installed, resulting in the corresponding PYQT4 packet also less corresponding parts. When installing other KDE packages, there is no problem, but Pykde4 seems to rely on, so I emerge PyQt4 this bag 3 times, waste a lot of time. Ultimately for this package, it should be available with the Use option (Package.use in the DEV-PYTHON/PYQT4 multimedia phonon xmlpatterns declarative). This is best once in place, compile PyQt4 too slow, feel and compile Qt almost ~

Java applets

Connecting to a corporate VPN through a browser is done through a Java applet. Originally has been very normal, today suddenly found no connection after landing window, in Firefox there is no Java plug-ins.

Originally gentoo in the installation of SUN-JDK, is through a use to control whether the need to install Nsplugin, and this option is not selected by default. After adding the DEV-JAVA/SUN-JDK nsplugin to the Package.use, after emerge dev-java/sun-jdk again, in the Eselect java-nsplugin list view, 64-bit plug-in has been started, and finally can connect the company's VPN.

the display of GTK programs in KDE

This has been normal in openSUSE before, but after installing Gentoo, the reference manual emerge X11-themes/gtk-engines-qtcurve, X11-themes/qtcurve-qt4, and kde-misc/ After KCM_GTK, the corresponding GTK style settings were not found in KDE's systemsetting.
Through the kcmshell4–list command query, found the GTK style settings module Kcmgtk4, is currently through the KCMSHELL4 KCMGTK4 command, directly open this configuration module. After selecting Qtcurve in the configuration module, the interface of the KDE,GTK interface is restarted (Firefox, IBUs, etc.). However, I do not know if the reason for the installation of ScrollBar fix, the Firefox scroll bar has become a bit of card, in the long page, scrolling will be very slow.

kde4 no sound .

After the installation of KDE, landing no sound, the previous ALSA has been configured, play video is no problem. Found more than n data, or no results. There were a lot of ALSA-related things installed during the period, but when you started KDE, the audio device was not working properly.
Finally, finally solved, the method is very simple, directly delete the original ~/.kde4/share/config/phonondevicesrc file, and then restart KDE OK.

Install Alsa


Installed after the ALSA, KDE has been no sound, again carefully looked at the next guide, according to the flow inside the alsaconf after the implementation, unexpectedly prompted not to find a sound card. But through Cat/proc/asound/cards, you can see the sound card on your computer: Hda-intel–hda Intel.
All previous steps, as in guide, the only difference is that the sound card driver is compiled into the kernel. Try to change the driver related to the Intel sound card to the kernel module, after performing alsaconf again, the successful configuration is complete, although there is still no sound in KDE, but with MPlayer already can play the video.
It seems that the previous thought without Ramfs so that all the used things are directly compiled into the kernel, but there are problems.

sudo uses the root password

By default, the Sudoer configuration file will require you to enter the user's own password, which is very unsafe and largely loses the meaning of the sudo command.
In fact, the/etc/sudoers file, already contains these need to configure an example, remove the annotation can be. sudoers file I finally changed it:
Defaults TARGETPW # Ask for the password of the target user
All all=
The latter item will give all users sudo permission, so it is also noted in the comments that it must be opened with the above option. In this way, when you need to change the permissions, you need to enter the corresponding account password. In other words, you need to enter the root password when you need root permission. In fact, this configuration is also mainly from the openSUSE habit:

Java Chinese garbled

The solution is very simple. Create a folder in $java_home/jre/lib/fonts fallback and then create a symbolic link inside, linking to/USR/SHARE/FONTS/WQY-ZENHEI/WQY-ZENHEI.TTC
And then it's OK.

connecting to the PEAP network

After you import the minimum mirror into the U disk with Unetboot, you will use this minimum image to install the Gentoo.

Because the company is using PEAP wireless network, it took a long time to get it done. First copy a configuration file from the original machine (the original notebook is connected to the wireless network with WICD), copied to the/etc/wpa_supplicant/wpa_supplicant.conf inside the main content is:

network={

Ssid= "SSID"

Scan_ssid=0

Proto=rsn

Key_mgmt=wpa_eap ieee8021x

Eap=peap

identity= "User Name"

password= "Password"

Phase2= "Auth=mschapv2″

}

Then, first use the Wpa_supplicant command for authentication: wpa_supplicant-b-i wlan0-d wext-c/etc/wpa_supplicant/wpa_supplicant.conf

Here's the parameters:-B for the background run, I followed by the use of the interface,-d is used by the driver,-C is the use of the configuration file

If you are using Ifconfig to view wlan0, you need to first open the network interface with Ifconfig wlan0 up.

After the certification, in the DHCPD wlan0 to the DHCP server to obtain the IP address, and then you can access the Internet, began to install Gentoo according to the manual.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.