|
楼主 |
发表于 2007-9-13 20:28:52
|
显示全部楼层
安装中文 KDE 桌面
安装中文 KDE 桌面
0601-KDE_Pre-Installation_Configuration
- export KDE_PREFIX=/opt/kde-3.5.7
- ln -sv kde-3.5.7 /opt/kde
- # Create an addition to the Bash Startup Files:
- cat > /etc/profile.d/30-kde.sh << "EOF"
- # Begin /etc/profile.d/30-kde.sh
- export KDE_PREFIX=/opt/kde-3.5.7
- export PATH="${PATH}:${KDE_PREFIX}/bin"
- export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32+:}${KDE_PREFIX}/lib/pkgconfig"
- export PKG_CONFIG_PATHN32="${PKG_CONFIG_PATHN32}${PKG_CONFIG_PATHN32+:}${KDE_PREFIX}/lib32/pkgconfig"
- export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}${KDE_PREFIX}/lib64/pkgconfig"
- export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${KDE_PREFIX}/share"
- export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/kde/xdg"
- # End /etc/profile.d/30-kde.sh
- EOF
- source /etc/profile
- # Add a new entry to /etc/ld.so.conf for the libraries that KDE is going to install:
- cat >> /etc/ld.so.conf << "EOF"
- # Begin KDE addition to /etc/ld.so.conf
- /opt/kde-3.5.7/lib
- /opt/kde-3.5.7/lib32
- /opt/kde-3.5.7/lib64
- # End KDE addition
- EOF
- ldconfig
复制代码
[color]注意:上面的 source /etc/profile 和 ldconfig 这两条命令需要手工输入。
0602-ARts
- # Required
- # * KDE Pre-Installation Configuration
- # * Qt3
- # * Glib2
- # Recommended
- # * libjpeg
- # Optional
- # * libvorbis
- # * ALSA
- # * Audio File
- # * libmad
- # * EsounD
- # * NAS
- # * MAS
- # * JACK
- cd /sources
- tar xvf /CBLFS/arts-1.5.6.tar.bz2
- cp -a arts-1.5.6{,-64}
- # 32bit
- cd arts-1.5.6
- # Compile the package:
- CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
- ./configure --prefix=$KDE_PREFIX --disable-debug --disable-dependency-tracking \
- --x-libraries=${XORG_PREFIX}/lib --with-qt-libraries=${QTDIR}/lib \
- --enable-libsuffix=none &&
- make
- # Install the package
- make install &&
- mv -v ${KDE_PREFIX}/bin/artsc-config{,-32}
- # 64bit
- cd ../arts-1.5.6-64
- patch -Np1 -i /CBLFS/arts-1.5.6-fix_mmx-1.patch
- # Compile the package:
- CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
- ./configure --prefix=$KDE_PREFIX --libdir=${KDE_PREFIX}/lib64 --disable-debug \
- --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib64 --with-qt-libraries=${QTDIR}/lib64 \
- --enable-libsuffix=64 &&
- make
- # Install the package
- make install &&
- mv -v ${KDE_PREFIX}/bin/artsc-config{,-64} &&
- ln -sfv /usr/bin/multiarch_wrapper ${KDE_PREFIX}/bin/artsc-config
- cd ..
- rm -rf arts-1.5.6{,-64}
复制代码
0603-pcre
- cd /sources
- tar xvf /CBLFS/pcre-7.1.tar.bz2
- cp -a pcre-7.1{,-64}
- # 32bit
- cd pcre-7.1
- # Configure and compile the package:
- CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr --enable-utf8 &&
- make
- # Install the package:
- make install &&
- mv -v /usr/bin/pcre-config{,-32}
- # If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep or move libpcre to /lib as follows.
- mv -v /usr/lib/libpcre.so.* /lib/ &&
- LIBNAME=$(cat libpcre.la | grep dlname | cut -f2 -d"'" | cut -f1 -d" ") &&
- ln -sf ../../lib/$LIBNAME /usr/lib/libpcre.so
- find /usr/bin/{pcregrep,pcretest,pcre-config} -exec mv -v {} {}-32 \;
- # 64bit
- cd ../pcre-7.1-x64
- # Configure and compile the package:
- CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr --enable-utf8 --libdir=/usr/lib64 &&
- make
- # Install the package:
- make install &&
- mv -v /usr/bin/pcre-config{,-64} &&
- ln -s multiarch_wrapper /usr/bin/pcre-config
- # If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep or move libpcre to /lib as follows.
- mv -v /usr/lib64/libpcre.so.* /lib64/ &&
- LIBNAME=$(cat libpcre.la | grep dlname | cut -f2 -d"'" | cut -f1 -d" ") &&
- ln -sf ../../lib64/$LIBNAME /usr/lib64/libpcre.so
- cd ..
- rm -rf pcre-7.1{,-64}
复制代码
0604-KdeLibs
- # Required
- # * aRts
- # * Pcre
- # Recommended
- # * libjpeg
- # * libart_lgpl
- # * LibXML2
- # * LibXSLT
- # * Gamin
- # * OpenSSL
- # * libidn
- # Optional
- # * LibTIFF
- # * Aspell
- # * CUPS
- # * OpenLDAP
- # * ALSA
- # * MIT krb5 or Heimdal
- # * OpenEXR
- # * JasPer
- # * Lua < 5.1
- # * mDNSResponder
- # * LibThai
- # * Hspell
- # * Acl
- # * Graphviz
- # * Doxygen
- cd /sources
- tar xvf /CBLFS/kdelibs-3.5.7.tar.bz2
- cp -a kdelibs-3.5.7{,-64}
- # 32bit
- cd kdelibs-3.5.7
- # Compile the package:
- CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
- ./configure --prefix=$KDE_PREFIX --sysconfdir=/etc/kde --disable-debug \
- --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib \
- --with-qt-libraries=${QTDIR}/lib --enable-libsuffix=none &&
- make
- # Install the package
- make install &&
- mv -v ${KDE_PREFIX}/bin/kde-config{,-32}
- # 64bit
- cd ../kdelibs-3.5.7-64
- # Compile the package:
- CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
- ./configure --prefix=$KDE_PREFIX --sysconfdir=/etc/kde --libdir=${KDE_PREFIX}/lib64 \
- --disable-debug --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib64 \
- --with-qt-libraries=${QTDIR}/lib64 --enable-libsuffix=64 &&
- make
- # Install the package
- make install &&
- mv -v ${KDE_PREFIX}/bin/kde-config{,-64} &&
- ln -sfv /usr/bin/multiarch_wrapper ${KDE_PREFIX}/bin/kde-config
- cd ..
- rm -rf kde-3.5.7{,-64}
复制代码
0605-Kdebase-3.5.7
如果前面安装了太多的多媒体库,这里的32位的KdeBase-3.5.7将不能通过编译。
- # Required
- # * KdeLibs
- # Recommended
- # * libjpeg
- # * libart_lgpl
- # * LibXML2
- # * OpenSSL
- # * JDK
- # Optional
- # * libusb
- # * LibTIFF
- # * LessTif
- # * Linux-PAM
- # * OpenLDAP
- # * CyrusSASL
- # * Samba
- # * HAL
- # * MIT krb5 or Heimdal
- # * krb4
- # * OpenEXR
- # * libraw1394
- # * lm_sensors
- # * mDNSResponder
- # * JasPer
- # * Graphviz
- # * Doxygen
- # * D-BUS Qt3
- cd /sources
- tar xvf /CBLFS/kdebase-3.5.7.tar.bz2
- cp -a kdebase-3.5.7{,-64}
- # 32bit
- cd kdebase-3.5.7
- # First, ensure that X11 will be found.
- sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)
- # Compile the package:
- export USE_ARCH=32 &&
- CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
- ./configure --prefix=$KDE_PREFIX --sysconfdir=/etc/kde --disable-debug \
- --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib \
- --with-qt-libraries=${QTDIR}/lib --enable-libsuffix=none &&
- make
- # Install the package
- make install &&
- unset USE_ARCH
- # 64bit
- cd ../kdebase-3.5.7-64
- # First, ensure that X11 will be found.
- sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)
- # Compile the package:
- export USE_ARCH=64 &&
- CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
- ./configure --prefix=$KDE_PREFIX --sysconfdir=/etc/kde --libdir=${KDE_PREFIX}/lib64 \
- --disable-debug --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib64 \
- --with-qt-libraries=${QTDIR}/lib64 --enable-libsuffix=64 &&
- make
- # Install the package
- make install &&
- unset USE_ARCH
- cd ..
- rm -rf kdebase-3.5.7{,-64}
复制代码
0606-wqy
文泉驿,安装的方法需要看README,或者解包后里面有 INSTALL 文件。这里安装 PCF 的。
- mkdir -v /usr/share/fonts/wenquanyi
- tar -zxvpf /CBLFS/wqy-bitmapfont-pcf-0.8.1-7.tar.gz -C /usr/share/fonts/wenquanyi
- cp -a /usr/share/fonts/wenquanyi/wqy-bitmapfont/85-wqy-bitmapsong.conf /etc/fonts/conf.d/
复制代码
0607-KDE-i8n-64bit
这里选择安装zh_CN的,台湾的朋友安装 zh_TW 的。这个,只需要安装64位就可以了。从现在开始,编译软件首先考虑64位,如果64位不通过或者有其它的软件包需要这个软件包的32位库才编译32位的。
- cd /sources
- tar xvf /CBLFS/kde-i18n-zh_CN-3.5.7.tar.bz2
- # 64bit
- cd kde-i18n-zh_CN-3.5.7
- # Compile the package:
- export USE_ARCH=64 &&
- CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
- ./configure --prefix=$KDE_PREFIX --libdir=${KDE_PREFIX}/lib64 \
- --x-libraries=${XORG_PREFIX}/lib64 \
- --with-qt-libraries=${QTDIR}/lib64 --enable-libsuffix=64 &&
- make
- # Install the package
- make install &&
- unset USE_ARCH
- cd /sources
- #rm -rf kde-i18n-zh_CN-3.5.7{,-64}
- cat > /etc/profile.d/05-i18n.sh << "EOF"
- # Begin /etc/profile.d/05-i18n.sh
- export LANG=zh_CN.UTF-8
- export G_FILENAME_ENCODING=@locale
-
- # End /etc/profile.d/05-i18n.sh
- EOF
- source /etc/profile
复制代码
注意:上面的 source /etc/profile 同样需要手工输入。
安装了这些包之后,就可以启动中文的 KDE 了。CBLFS手册没有讲如何启动 KDE ,这里按 BLFS 手册的方法来做:
0608-KDE-config
- echo "exec startkde" > ~/.xinitrc
- echo "exec dbus-launch --exit-with-session startkde" >> ~/.xinitrc
- update-desktop-database
- ldconfig
- startx
复制代码
0609-SCIM-64bit
中文输入法
- # 64bit
- cd /sources
- tar xvf /CBLFS/scim-1.4.6.tar.gz
- cd scim-1.4.6
- # 64bit
- CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
- ./configure --prefix=/usr --sysconfdir=/etc/scim --libdir=/usr/lib64
- make
- make install
- cd ..
- # scim-tables-0.5.7.tar.gz
- tar xvf /CBLFS/scim-tables-0.5.7.tar.gz
- cd scim-tables-0.5.7
- CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
- ./configure --prefix=/usr --sysconfdir=/etc/scim --libdir=/usr/lib64
- make
- make install
- cd ..
- # scim-pinyin-0.5.91.tar.gz
- tar xvf /CBLFS/scim-pinyin-0.5.91.tar.gz
- cd scim-pinyin-0.5.91
- CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
- ./configure --prefix=/usr --sysconfdir=/etc/scim --libdir=/usr/lib64
- make
- make install
- cd ..
- # test
- scim &
复制代码
0610-KdeGraphics-64bit
KDE的图形图像处理 ( 含 屏幕打印键截屏功能 )
- cd /sources
- tar xvf /CBLFS/kdegraphics-3.5.7.tar.bz2
- # 64bit
- export USE_ARCH=64 &&
- patch -Np1 -i /CBLFS/kdegraphics-3.5.7-exr-1.patch &&
- CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
- ./configure --prefix=$KDE_PREFIX --libdir=${KDE_PREFIX}/lib64 \
- --disable-debug --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib64 \
- --with-qt-libraries=${QTDIR}/lib64 --enable-libsuffix=64 &&
- make
- make install &&
- unset USE_ARCH
- cd /sources
- rm -rf kdegraphics-3.5.7
复制代码
给KDE换了两个 .ogg 的文件,“很美的竖琴的开关机声音 美妙天籁之音”。
是用oggenc命令转换的,我的笔记本声卡不好,感觉不出转换后的效果和原声 .wav 有何差别。
文件大于 200 K 了。有兴趣可以自己做一下:
rar x sq.rar
按 A 键,回车,按Q 键退出。
然后
oggenc xxx.wav
把转换后的 .ogg 文件复制到 $KDE_PREFIX/share/sounds 目录下的 KDE_Startup_1.ogg 和 KDE_Logout_3.ogg 就可以了。注意原先的文件最好是先改名。
按照国际贯例,传一张图片:
|
|