| 论坛注册| 加入收藏 | 设为首页| RSS
Google
您当前的位置:首页 > Linux频道 > Linux入门与提高 > 安装与配置

suse10.1下安装XGL中文(图文)教程

时间:2006-10-22 09:53:12  来源:Linux联盟收集  作者:
  • 感谢原作者和翻译这篇文章的兄弟8JBLinux联盟
    8JBLinux联盟
    首先确定make, gcc, and kernel-source 三个包已经装到了你的系统上。打开YAST,输入root用户密码。在左侧的任务栏中选择“软件”. 在右侧选择“软件管理器”。8JBLinux联盟
    8JBLinux联盟
    著名的YAST 安装窗口出现了. 在“搜索”一栏中, 输入make然后按“查找”按钮. 结果将出现在右侧. 确定make 包旁边的检查框已经选择了:8JBLinux联盟
    8JBLinux联盟
    回到搜索栏搜索gcc. 确定gcc旁边的检测框已经选择了。8JBLinux联盟
    8JBLinux联盟
    再到搜索框搜索kernel-source. 检测kernel-source包被选择:8JBLinux联盟
    8JBLinux联盟
    接下来,点击右下角的“接受”按键。8JBLinux联盟
    这样yast就会为你安装这些软件,安装成功之后,关闭yash窗口即可。8JBLinux联盟
    现在我们到nv的网站上去下载 NVidia drivers 的驱动。到http://www.nvidia.com/content/drivers/drivers.asp. 在ia32的类里选,NVIDIA-Linux-x86-1.0-8756-pkg1.run. 下载这个驱动到你的桌面或是用户主目录。记住下载保存的位置,以便能容易的找到它。8JBLinux联盟
    需要在字符界面下安装nv驱动,先同时按CTRL + ALT + F1 进入一个终端,以root身份登入。现在你应该在命令行下了。(也可在图形界面下开终端,直接以root身份输入init 3,然后再登入,也是可以的,这是非官方的,是我自己用的方法)8JBLinux联盟
    linux-lab login: root8JBLinux联盟
    Password:8JBLinux联盟
    Have a lot of fun...8JBLinux联盟
    linux-lab:~ $ 8JBLinux联盟
    输入下面的命令,就彻底关闭了x。8JBLinux联盟
    linux-lab:~ $ init 38JBLinux联盟
    Master Resource Control: runlevel 3 has been8JBLinux联盟
    reached8JBLinux联盟
    Master Resource Control: runlevel 3 has been8JBLinux联盟
    reached8JBLinux联盟
    linux-lab:~ $ 8JBLinux联盟
    下面进入你的下载驱动所在目录。这里是以/home/scott为例子的。8JBLinux联盟
    linux-lab:~ # cd /home/scott8JBLinux联盟
    linux-lab:/home/scott #8JBLinux联盟
    输入以下命令开始安装驱动8JBLinux联盟
    linux-lab:~ $  sh NVIDIA-Linux-x86-1.0-8756-pkg1.run -q8JBLinux联盟
    一个类似如下的界面将会出现8JBLinux联盟
    8JBLinux联盟
    选择"accept“,回车,就会出现如下界面。8JBLinux联盟
    8JBLinux联盟
    直接按”回车“。8JBLinux联盟
    等一会,nv程序将安装到你的系统。8JBLinux联盟
    8JBLinux联盟
    过一会,就安装成功了。8JBLinux联盟
    8JBLinux联盟
    按”回车“键后,就又回到了命令行。8JBLinux联盟
    输入以下命令,打开3D。8JBLinux联盟
    linux-lab:~ $  sax2 -r -m 0=nvidia8JBLinux联盟
    注意,这里的”0“是数字,不是字母。8JBLinux联盟
    过一会,一个图形界面将会出现。将会出现AUTOMATIC GRAPHICS SYSTEM SETUP. 在此窗口中按OK键.8JBLinux联盟
    安装nv驱动完毕。8JBLinux联盟
    输入如下命令,回到图形界面。8JBLinux联盟
      8JBLinux联盟
    linux-lab:~ $  init 58JBLinux联盟
    8JBLinux联盟
    安装xgl和compiz8JBLinux联盟
    现在nv驱动已经装好了,接下来我们开始安装xgl and compiz, 它们会使一切变得cool起来。以root权限登录YAST,  进入之后点左侧的“软件”, 再点右侧的软件管理器:8JBLinux联盟
    8JBLinux联盟
    搜索xgl. 当结果出现在右侧的时候,勾选其左侧的方框:8JBLinux联盟
    8JBLinux联盟
    接下来搜索compiz. 当其结果出现在右侧时,勾选它:8JBLinux联盟
    8JBLinux联盟
    现在选择完成了,点击右下角的ACCEPT (接受)。象以前一样,yast会让你选择正确的cd. 在结束时,会询问你是否安装其它包,选“否”。8JBLinux联盟
    编辑配置文件8JBLinux联盟
    现在,我们需要编辑一些配置文件.8JBLinux联盟
    首先,打开一个终端窗口.8JBLinux联盟
    取得"root"权限 (输入 'su' 和密码):8JBLinux联盟
    linux-lab:~ $  su8JBLinux联盟
    Password:8JBLinux联盟
    linux-lab:/home/scott $8JBLinux联盟
    现在,打开/etc/X11/xorg.conf文件. 我将用gedit, 但是你也可以用: kate, vim, emacs, 或者是任何一种你想用的编辑器:8JBLinux联盟
    linux-lab:~ $  gedit /etc/X11/xorg.conf8JBLinux联盟
    打到Section "Device" . 类似以下这样:8JBLinux联盟
    ------------8JBLinux联盟
    Section "Device"8JBLinux联盟
      BoardName    "GeForce4 MX 440 with AGP8X"8JBLinux联盟
      BusID        "PCI:1@0:0:0"8JBLinux联盟
      Driver       "nvidia"8JBLinux联盟
      Identifier   "Device[0]"8JBLinux联盟
      VendorName   "NVidia"8JBLinux联盟
    EndSection8JBLinux联盟
    ----------8JBLinux联盟
    我们将新增一条到这里. 这条的内容是: Option "NoFlip" "True", 如下面这个例子:8JBLinux联盟
    Section "Device"8JBLinux联盟
      BoardName    "GeForce4 MX 440 with AGP8X"8JBLinux联盟
      BusID        "PCI:1@0:0:0"8JBLinux联盟
      Driver       "nvidia"8JBLinux联盟
      Identifier   "Device[0]"8JBLinux联盟
      VendorName   "NVidia"8JBLinux联盟
      Option       "NoFlip" "True"8JBLinux联盟
    EndSection8JBLinux联盟
    注意:一些人报告说这一条没必要加.然而,在Novell的发起者建议我这样做,所以,我在此提此建议.8JBLinux联盟
    不要关此文件,还有一些东西需要添加.到这个文件的最后面,然后加入这一段:8JBLinux联盟
    Section "Extensions"8JBLinux联盟
      Option       "Composite" "off"8JBLinux联盟
    EndSection8JBLinux联盟
    现在,可以关了这个文件,但不要关闭终端窗口.8JBLinux联盟
    我们还有几个文件需要配置, 打开/etc/sysconfig/displaymanager. 用你想用的文本编辑器打开它. 以root权限打开它:8JBLinux联盟
    linux-lab:~ $  gedit /etc/sysconfig/displaymanager8JBLinux联盟
    打到这一行:DISPLAYMANAGER_XSERVER="Xorg". 我们将用Xgl代替Xorg. 所以,替换如下:8JBLinux联盟
    DISPLAYMANAGER_XSERVER="Xgl"8JBLinux联盟
    接下来找到:DISPLAYMANAGER_XGL_OPTS="-accel glx:pbuffer -accel xv:pbuffer". 用下面的语句替换它:8JBLinux联盟
    DISPLAYMANAGER_XGL_OPTS="-accel glx:pbuffer -accel xv:fbo"8JBLinux联盟
    保存并关闭文件, 不要退出终端,并保持root权限,输入SuSEconfig命令:8JBLinux联盟
    linux-lab:~ $  SuSEconfig8JBLinux联盟
    你会看到一系列输出在屏幕上滚过.8JBLinux联盟
    当其停止时, 我们不得不去除一个原始链接,并建立个新的 。输入如下两个命令:8JBLinux联盟
    linux-lab:~ $  rm /var/X11R6/bin/X8JBLinux联盟
    linux-lab:~ $  ln -s /usr/X11R6/bin/Xgl /var/X11R6/bin/X8JBLinux联盟
    linux-lab:~ $  8JBLinux联盟
    现在,可以关闭终端窗口了。8JBLinux联盟
    现在这些已经设置完了,都不是很难. 接下来就要安装Xgl和compiz 并配置系统. 现在配置你的系统在开机时自动启动Xgl 和compiz 。 下面这段将会配置主要的桌面环境和窗口管理器. 现在直接开始配置大家都比较喜欢的一个,开始!8JBLinux联盟
    配置Gnome运行Xgl8JBLinux联盟
    首先,重新进入Gnome.8JBLinux联盟
    开一个终端窗口,然后运行gnome-session-properties 命令8JBLinux联盟
    linux-lab:~ $  gnome-session-properties8JBLinux联盟
    你将会看到 SESSIONS 窗口出现. 进入开始程序栏:8JBLinux联盟
    8JBLinux联盟
    点击”添加“按钮. 输入 compiz -replace 并确定:8JBLinux联盟
    8JBLinux联盟
    再添加. 输入 gnome-window-decorator 并确定8JBLinux联盟
    8JBLinux联盟
    现在会看到两个新加项目在SESSIONS窗口:8JBLinux联盟
    8JBLinux联盟
    关闭它.8JBLinux联盟
    再次回到终端窗口, 运行 gconf-editor 命令:8JBLinux联盟
    linux-lab:~ $  gconf-editor8JBLinux联盟
    配置编辑窗口将出现:8JBLinux联盟
    8JBLinux联盟
    在左侧以下面这个顺序双击其中的项目: apps => compiz => general => allscreens => options. 接着,双击右侧的ACTIVE_PLUGINS 项目以打开它. 只是想确定以下的效果已经打开:8JBLinux联盟
    8JBLinux联盟
    如果没有,你可以手动添加.8JBLinux联盟
    现在我们确定所有插件已经被加载, 你可以退出gnome并再次登录. 现在大家就可以试试Xgl的特性了. 测试一下,打开一个窗口并拖动其在桌面中旋转. 如果它摇晃了,那就成功了。8JBLinux联盟
    按 CTRL + ALT + BACKSPACE. 快速注销并重新登录. 一切将变得很cool,重启后如果启动正常,那就成功了。恭喜,你的gnome桌面环境可以真正享受 Xgl的乐趣了. 到本页最下方的XGL快捷键中看看它能给你什么惊喜, below.8JBLinux联盟
    配置 KDE运行Xgl8JBLinux联盟
    首先,如平常一样进入kde. 首先建立一个快速启动文件,以使KDE 在启动时自动加载compiz . 打开你喜欢的文本编辑器. 复制并粘贴以下内容到你的新建文件中:8JBLinux联盟
    [Desktop Entry]8JBLinux联盟
    Encoding=UTF-88JBLinux联盟
    Exec=compiz --replace decoration wobbly fade minimize cube rotate zoom scale move resize place switcher & gnome-window-decorator &8JBLinux联盟
    GenericName[en_US]=8JBLinux联盟
    StartupNotify=false8JBLinux联盟
    Terminal=false8JBLinux联盟
    TerminalOptions=8JBLinux联盟
    Type=Application8JBLinux联盟
    X-KDE-autostart-after=kdesktop8JBLinux联盟
    下面保存文件,将其保存在/home/user/.kde/Autostart 文件夹里,  'user' 就是你现在的用户名.命名这个文件为compiz.desktop。 完成之后,注销并重新登录. Xgl功能将出现在你的焕然一新的K Desktop Environment.8JBLinux联盟
    Xgl 快捷键8JBLinux联盟
    这句就不译了,大家照下面的快捷键,自己感受吧。8JBLinux联盟
    Window Operations 8JBLinux联盟
    Move Window 8JBLinux联盟
    ALT + Left-Click and Drag 8JBLinux联盟
    Move Window - Snap to screen 8JBLinux联盟
    CTRL + ALT + Left-Click and Drag 8JBLinux联盟
    Resize Window 8JBLinux联盟
    ALT + Right-Click and Drag 8JBLinux联盟
    Switch Windows 8JBLinux联盟
    ALT + TAB 8JBLinux联盟
    Switch Windows (Scale Mode) 8JBLinux联盟
    F11 8JBLinux联盟
    Wobbly Windows 8JBLinux联盟
    Left-Click Window and Drag 8JBLinux联盟
    Translucency 8JBLinux联盟
    ALT + Mouse Up / Mouse Down 8JBLinux联盟
    Cube 8JBLinux联盟
    Rotate Cube - Next Desktop 8JBLinux联盟
    CTRL + ALT + Left or Right Arrow 8JBLinux联盟
    Rotate Cube - Next Desktop 8JBLinux联盟
    Move Mouse cursor to extreme edge of desktop 8JBLinux联盟
    Rotate Cube - Take Active Window 8JBLinux联盟
    CTRL + SHIFT + ALT + Left or Right Arrow 8JBLinux联盟
    Manually Rotate Cube 8JBLinux联盟
    CTRL + SHIFT + Left-Click on Desktop and Drag 8JBLinux联盟
    Zoom 8JBLinux联盟
    Zoom Once 8JBLinux联盟
    Super-Key (Windows Key) 8JBLinux联盟
    Zoom In Manually 8JBLinux联盟
    Mouse Wheel Scroll Up + Super-Key (Windows Key) 8JBLinux联盟
    Zoom Out Manually 8JBLinux联盟
    Mouse Wheel Scroll Down + Super-Key (Windows Key) 8JBLinux联盟
    8JBLinux联盟
    =============8JBLinux联盟
    特别提示[针对GF4以下系列显卡]8JBLinux联盟
    如果你是GF4以下系列显卡,默认XGL是不支持的。但实际上可以用,只是支持不太好。8JBLinux联盟
    为了更好的使用它,请大家在装完后,千万不要升级3D桌面。此项在控制中心--桌面效果设置中有。只要默认就好了。8JBLinux联盟
    如果你选了升级,那将会很慢。
  • 来顶一下
    近回首页
    返回首页
    发表评论 共有条评论
    用户名: 密码:
    验证码: 匿名发表
    相关文章
      无相关信息
    栏目更新
    栏目热门