CentOS系统的安装

CentOS系统的安装。

#本说明书版本v2012.1.14.002。

#选择安装CentOS6.2 64位系统。

#该系统的安装文件为DVD文件,其中DVD1为主安装文件,DVD2为软件盘。安装过程中只使用
DVD1即可。

1 在官网上选择镜像站点,下载DVD文件。

2 在Windows系统下通过UltraISO软件和刻录机将DVD1刻录到DVD盘上。

#该系统无法使用U盘安装,使用DVD光驱安装是最简便的方法了。

3 使用DVD光驱按提示安装系统。

4 下载r8168网卡驱动并安装。

系统自带的驱动为r8169,在此驱动下网络的丢包率高达50%,因此在远程操作服务器时会卡的
不行。驱动下载地址为ftp://WebUser:AxPL9s3k@95.130.192.218/cn/nic/r8168-
8.027.00.tar.bz2。解压驱动包,在root权限下运行驱动包里面的autorun.sh文件即可
自动安装驱动。
介绍几个网络相关命令:
#lspci    用于查看pci设备,可以看到网卡的型号。
#ethtool -i eth0    用于查看网卡eth0的驱动。
#lsmod    用于查看所安装的驱动。

5 在联网下进行系统更新。

6 安装rpmforge来扩增套件来源。

根据使用的Unix版本到http://pkgs.repoforge.org/rpmforge-release/自行下载
相应的rpm包并安装。

7 通过yum命令安装常规程序。

常用的程序以及安装命令分别如下。
#sudo yum install 
gcc gcc-c++ gcc-gfortran  readline-devel libXt-devel    #安装R语言所需要的。
kernel-devel kernel-headers kernel    #安装显卡驱动所需要。
ffmpeg git yasm    #安装mplayer所需要的。
fuse-sshfs    #使用sshfs来进行ssh远程文件系统的挂载。
gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg #rhythmbox播放mp3格式解码所必须的。
libGL.so.1 libXmu.so.6 libXrender.so.1 libstdc++.so.5	#安装cinema5软件所需。
sharutils	#编码压缩打包--uudecode。
expat-devel	#安装perl模块XML::Parser所需,该模块为iprscan软件所需。
screen

8 安装ntfs-3g,用于挂载文件系统为ntfs的磁盘。

源码包的下载页面为http://www.tuxera.com/community/ntfs-3g-download/。

9 下载最新稳定版perl源码包并安装。

源码包下载页面为http://www.perl.org/get.html。

10 下载bioperl源码包并安装。

源码包的下载页面为http://bioperl.org/DIST/。
Bioperl的安装可以参考:
http://www.hzaumycology.com/chenlianfu_blog/?p=11

11 下载Adobe Flash Player并安装。

源码包下载页面为http://get.adobe.com/flashplayer/。

12 下载ClustalW2并安装。

源码包下载页面为ftp://ftp.ebi.ac.uk/pub/software/clustalw2/。

13 下载R源码包并安装。

源码包下载页面为http://mirrors.ustc.edu.cn/CRAN/。

14 下载mplayer源码包并安装。

源码包下载页面为http://www.mplayerhq.hu/design7/dload.html。
要是遇到播放视频有声音没画面,出现“"Can't open /dev/fb0: "这样的错误提示。
则进行如下操作
#yum install gtk+****devel zlib****devel;
#yum install *x11*;
然后再重新编译安装mplayer就好啦。

15 下载显卡驱动并安装。

****************************************************************************
安装命令:
#sh NVIDIA-Linux-x86-XXXX.-pkg1.run -k $(uname -r)

在安装结束时,它会询问是否由安装程序自动生成新的xorg.conf文件,建议选“YES”。若出现X Window无法启动等问题,将/etc/X11/xorg.conf.backup恢复即可。

安装过程中可能会出现的错误:

    ERROR: Unable to find the kernel source tree for the currently running kernel.
    Please make sure you have installed the kernel source files for your
    kernel and that they are properly configured; on Red Hat Linux systems, cant.t
    for example, be sure you have the ‘kernel-source’ RPM installed. If you
    know the correct kernel source files are installed, you may specify the
    kernel source path with the ‘–kernel-source-path’ command line option.

如果出现这个错误,则说明引用了错误的kernel source,可以在安装命令后添加参数指定。
#sh NVIDIA-Linux-x86-1.0-9755-pkg1.run --kernel-source-path=/usr/src/kernels/2.6.18-1.2798.fc6-i686

原因在于nvidia installer默认会去/lib/modules/2.6.18-1.2798.fc6/build寻找核源码,而该链接指向/usr/src /kernels/2.6.18-1.2798.fc6-i586,正确应为/usr/src/kernels/2.6.18-1.2798.fc6- i686。

    ERROR:
    Unable to load the kernel module ‘nvidia.ko’. This happens most frequently when this kernel was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the kernel target, or if a driver such as rivafb/nvidiafb is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s).

则是因为没有指明所要安装的内核版本,即需要添加参数“-k $(uname -r)”。
****************************************************************************

 

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据