今天是真的太高兴了,因为原本听说集成显卡装不了3D界面,但经过这几天的尝试,成功了。
我的显卡是NVIDIA GeForce 6150SE nForce 430 (GPU 0)
首先:安装NVIDIA-Linux-x86-169.04-pkg1.run显卡驱动包
下载地址:http://www.nvidia.cn/Download/index.aspx?lang=cn
下面是NVIDIA详细的官方文档
(包含准备工作,过程,安装完后的文件配置--看前面六章就行了)
http://cn.download.nvidia.com/XFree86/Linux-x86/185.18.31/README/chapter-04.html
在安装时最好在非图形界面下,又可以上网--即启动模式3
(在该模式下安装时就一般不会出现什么问题,有也问题不大)
这样的话要修改系统启动文件:/etc/inittab
vim /etc/inittab
把id:5:initdefault: 中的5改成3,然后重启。
进入到root用户下,并联网。
进入到NVIDIA-Linux-x86-169.04-pkg1.run的目录下,并执行下面的命令:
sh NVIDIA-Linux-x86-169.04-pkg1.run
这时会弹出一些图形界面,其中有一个要注意一下的是,在开安装前它会查看你的安装环境,
是否有install the correct kernel-source, kernel-headers, or kernel-devel package,
如果版本不匹配,它会提示你是否联网下自动安装或搜索你机上的软件安装。
其实这个NVIDIA-Linux-x86-169.04-pkg1.run安装过程,自己稍微考虑下,就可以知道作出
怎样的选择。
安装之后,就是要配置 /etc/X11/xorg.conf文件,要让NVIDIA启动生效。
手动,可以参考上面那个网站的第六章的内容。
这里我说一下自动的安装:
在这之前要先下载个 nvidia-xconfig-1.0.tar.gz包,在装完NVIDIA后,
解压 nvidia-xconfig-1.0.tar.gz 包,tar -vxf nvidia-xconfig-1.0.tar.gz
进入到解压后的目录:nvidia-xconfig-1.0 后,执行命令:
make
make install
这样它会把原先的配置文件保存起来,并帮你把xorg.config文件配置好。
完成这之后就重启,再进行下面的步骤。
最后安装下 compiz包 ,就可以搞定了。
可以上网自己下载两个相关的compiz的包。我这里介绍一种从第三方下载源安装 的方法:
(这个配置也是用于 “rhel5.3开启特效并解决无边框显示问题的方法”)
在/etc/yum.repo.d/ 下新建文件: CentOS-Base.repo
(在該目录下有其它的.repo文件作为后缀的,要改为别的)
vim /etc/yum.repo.d/CentOS-Base.repo
往文件里添加下面的内容:
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# 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-5 - Base
baseurl=http://centos.ustc.edu.cn/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-5 - Updates
baseurl=http://centos.ustc.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
baseurl=http://centos.ustc.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
baseurl=http://centos.ustc.edu.cn/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
baseurl=http://centos.ustc.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
保存好文件之后:
yum clean all //清除掉已有的yum缓存,
然后再用
yum makecache //读取新的repo文件并下载缓存,则可开始安装centos下的东西了,
上面已安装过显卡驱动,使用
yum install compiz* -y //安装compiz,
这样既解决了窗口无边框的问题,也完成了对compiz的安装。
rpm -aq |grep compiz //查看已安装地compiz包
完成对compiz的安装之后,在 系统--首选项--桌面效果中,
勾选“移动时窗口摇换”和“立方体上的工作区”,
然后点启用桌面效果,如果没有错误提示,那么3D特效就基本上配置 完成了。
但我的在启动的时候,却弹出了下面的错误信息:
Desktop effects could not be be enabled
这样还是xorg.config文件没有配置好的问题,但要修改的也不多:
(修改前最好先备份下原文件)
vim /etc/X11/xorg.conf
在末尾处添加如下三行:
Section "Extensions"
Option "Composite"
EndSection
Section "Device"(在本行下添加如下一行)
Option "AddARGBGLXVisuals" "True"
Section "Module" (在本行下添加如下一行)
Load "extmod"
这完成配置文件之后,注销系统,再重新登录,重新启动下桌面效果,
应该就可以解决问题了。
接下来,大家一起来感受下3D的喜悦:请按下Ctrl+Alt+ 右方向键。感觉Very Good!!!