Scientific Linux 6(x86_64) 之旅

ThinkPad T400
yum install gcc* kernel-devel* -y
1.安装显卡驱动
  下载驱动:http://support.amd.com/us/gpudownload/Pages/index.aspx
  一定要在init 3安装,进入终端模式INIT 3(字符界面):  vi /etc/inittab 将 id:5:initdefault:
  将5改成3,备份/etc/X11/xorg.conf,重新启动,
  安装:
1)yum install   kernel-devel  gcc (安装一些必要的包)
2)sh ati-driver-installer-11-6-x86.x86_64.run
3)cd /lib/modules/fglrx/build_mod
  sh make.sh
  cd ..
  sh make_install.sh
4)vim /boot/grub/grub.conf 看看rhgp quiet 之前有没有 nomodeset,没有加上。
5)重启,搞定。

2.启用ThinkPad Trackpoint中键滚动的方法
  编辑 /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi 在<device>内添加如下内容

<match key="info.product" string="TPPS/2 IBM TrackPoint">
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
</match>

重启,搞定!

3.Rhythmbox播放列表中文乱码问题
  向桌面发送个快捷图标,右击-属性-在启动命令那里修改为如下命令:
  env GST_ID3_TAG_ENCODING=GBK rhythmbox %U
  修改完后,把原来的列表移除,重新导入即可.

4.Google Chrome flash插件
  Chrome Windows版本自带了flash插件,而Linux版本中没有,要自己安装,到flash官方网站下载libflashplayer.so文件,放到Chrome安装路径的plugins文件夹中,没有就自己建一个, 右击Chrome-属性-在启动命令那里修改为如下命令:/opt/google/chrome/google-chrome  --enable-plugins %U,这样就行了!

5. 使用第三方软件库EPEL
   1)安装yum-priorities插件。
    这个插件是用来设置yum在调用软件源时的顺序的。因为官方提供的软件源,都是比较       稳定和被推荐使用的。因此,官方源的顺序要高于第三方源的顺序。如何保证这个顺序,
就需要安装yum-priorities这插件了。
[root@CentOS ~]# yum install yum-priorities
安装完后需要设置/etc/yum.repos.d/ 目录下的.repo相关文件(如CentOS-Base.repo),在这些文件中插入顺序指令:priority=N (N为1到99的正整数,数值越小越优先)
一般的配置是这样的:
[base], [addons], [updates], [extras] … priority=1
[CentOSplus],[contrib] … priority=2
其他第三的软件源为:priority=N (推荐N>10)
如我的CentOS-Base.repo配置为:
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=2

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=2


    2)下载与安装EPEL的rpm文件包
      [root@CentOS ~]# rpm -ivh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
      导入DAG的PGP Key
       [root@CentOS ~]# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
      设置/etc/yum.repos.d/epel.repo文件中源的级别,就是添加priority=11这句。
      如我的epel.repo文件内容:
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
priority=11

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
    3)下载与安装rpmforge的rpm文件包
       [root@CentOS ~]# rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
       [root@CentOS ~]# rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
       设置/etc/yum.repos.d/rpmforge.repo文件中源的级别,就是添加priority=12这句。

如我的rpmforge.repo文件内容:
       ### Name: RPMforge RPM Repository for RHEL 6 - dag
### URL: http://rpmforge.net/
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
priority=12

[rpmforge-extras]
name = RHEL $releasever - RPMforge.net - extras
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/extras
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge-extras
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-extras
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
priority=12

[rpmforge-testing]
name = RHEL $releasever - RPMforge.net - testing
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/testing
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge-testing
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-testing
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
priority=12

6. 切换不同版本的JDK
    alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_25/bin/java 1
    alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_25/bin/javac 1
    alternatives --config java --选择所需版本,1,2,3...
    java -version --检查是否成功

7. 安装极点五笔
   极点五笔一直是我的至爱,可以拼音五笔混着用。
   一般安装了中文环境会默认安装了好多输入法,先删除了ibus
   sudo yum remove ibus   --会将所有的输入法删除
   安装ibus,ibus-table
   sudo yum ibus ibus-table --这样只会安装ibus的输入框架
   下载vissible-ibus.tar.gz,解压得到vissible.db,vissible.txt,vissible.gif
    sudo cp vissible.db vissible.txt /usr/share/ibus-table/tables
    sudo cp vissible.gif /usr/share/ibus-table/icons
    注销,重新登录,就可以在添加极点五笔输入法了。
8. 安装skype(转载http://wiki.centos.org/zh-tw/HowTos/Skype)
   由於所提供的通用 Skype 程式是 32 位元,假若你採用一台 64 位元 的系統,你必須確定某些 32 位元程式庫已經被安裝了:

yum install glibc.i686 alsa-lib.i686 libXv.i686 libXScrnSaver.i686 libSM.i686 libXi.i686 libXrender.i686 libXrandr.i686 freetype.i686 fontconfig.i686 zlib.i686 glib2.i686 libstdc++.i686
這些套件都收錄於預設被啟用的 Base 及 Updates 軟件庫內。
下载skype Dynamic Static
http://skype.tom.com/download/linux.html
安裝至 /opt(隨你喜好修改):
cd /opt
tar xjvf /tmp/skype_static-2.2.0.25.tar.bz2
ln -s skype_static-2.2.0.25 skype

建立一些連結(你須要頭一個來應用音效,第二個是選擇性的):

ln -s /opt/skype /usr/share/skype
ln -s /opt/skype/skype /usr/bin/skype

你可能感兴趣的:(linux)