免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 789 | 回复: 0
打印 上一主题 下一主题

ubuntu7.04 安装后的配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-02 16:26 |只看该作者 |倒序浏览

                                                                 首先,更新软件源:
可以通过系统->软件源->other ->Select Best Server.
(备份:澳大利亚的源 速度不错:http://mirror.pacific.net.au)
还可使用社区的wiki 快速设置来解决。推荐台湾的源,亚洲主干源虽在国内还限速。。。。。无语了
其次,安装相关软件,具体查wiki,这里简单提示下如何安装微软雅黑字体,方法很多,但是有些方法不可靠,这是我习惯的安装方法:
sudo mkdir /usr/share/fonts/truetype/vista
sudo cp (字体地址) /usr/share/fonts/tretype/vista
sudo chmod -c 755 /usr/share/fonts/tretype/vista/*
cd /ust/share/fonts/tretype/vista
sudo gedit /etc/fonts/language-selector.conf
添加Microsoft YaHei 放在第一,有三组,对应无衬,有衬和等宽。
改完整个文件如:
       
                serif
               
                        Microsoft YaHei
                        Bitstream Vera Serif
                        DejaVu Serif
                        AR PL ShanHeiSun Uni
                        WenQuanYi Bitmap Song
                        AR PL ZenKai Uni
               
        
        
                sans-serif
               
                        Microsoft YaHei
                        Bitstream Vera Sans
                        DejaVu Sans
                        AR PL ShanHeiSun Uni
                        WenQuanYi Bitmap Song
                        AR PL ZenKai Uni
               
        
        
                monospace
               
                        Microsoft YaHei
                        Bitstream Vera Sans Mono
                        DejaVu Sans Mono
                        AR PL ShanHeiSun Uni
                        WenQuanYi Bitmap Song
                        AR PL ZenKai Uni
               
        
        
               
                        Song
                        Sun
                        Kai
                        Ming
                 
               
               
                        100
               
               
                        180
               
               
                        true
               
       
        
               
                        Song
                        Sun
                        Kai
                        Ming
                 
               
                        false
               
               
                        0
               
               
                        true
               
               
                        false
               
               
                        true
               
               
                        18
               
               
                        false
               
        
最后刷新字体缓存 sudo fc-cache -fv
显卡驱动:新立得 ->nvidia-glx (推荐)也可通过终端。
之后把原来的配置文件删除
复制我的xorg.conf到/etc/X11/下即可。(很多人安装完驱动重启后就变成黑屏,主要原因是xorg.conf没有设置对)
重启。
我的xorg.conf 如下:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Thu Nov  9 17:55:20 PST 2006
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg
Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
    InputDevice    "stylus" "SendCoreEvents"
    InputDevice    "cursor" "SendCoreEvents"
    InputDevice    "eraser" "SendCoreEvents"
    InputDevice    "Synaptics Touchpad"
EndSection
Section "Files"
    # path to defoma fonts
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath        "/usr/share/fonts/X11/cyrillic"
    FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/Type1"
    FontPath        "/usr/share/fonts/X11/100dpi"
    FontPath        "/usr/share/fonts/X11/75dpi"
    FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
    Load           "bitmap"
    Load           "ddc"
    Load           "extmod"
    Load           "freetype"
    Load           "glx"
    Load           "int10"
    Load           "vbe"
EndSection
Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
EndSection
Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ImPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
    Identifier     "Synaptics Touchpad"
    Driver         "synaptics"
    Option         "SendCoreEvents" "true"
    Option         "Device" "/dev/psaux"
    Option         "Protocol" "auto-dev"
    Option         "HorizScrollDelta" "0"
EndSection
Section "InputDevice"
    Identifier     "stylus"
    Driver         "wacom"
    Option         "Device" "/dev/input/wacom"
    Option         "Type" "stylus"
    Option         "ForceDevice" "ISDV4"        # Tablet PC ONLY
EndSection
Section "InputDevice"
    Identifier     "eraser"
    Driver         "wacom"
    Option         "Device" "/dev/input/wacom"
    Option         "Type" "eraser"
    Option         "ForceDevice" "ISDV4"        # Tablet PC ONLY
EndSection
Section "InputDevice"
    Identifier     "cursor"
    Driver         "wacom"
    Option         "Device" "/dev/input/wacom"
    Option         "Type" "cursor"
    Option         "ForceDevice" "ISDV4"        # Tablet PC ONLY
EndSection
Section "Monitor"
    Identifier     "通用显示器"
    HorizSync       28.0 - 51.0
    VertRefresh     43.0 - 60.0
    Option         "DPMS"
EndSection
Section "Device"
    Identifier     "nVidia Corporation NV17 [GeForce4 420 Go]"
    Driver         "nvidia"
    BusID       "PCI:1:0:0"
    Option       "UseFBDev" "true"
    Option        "AddARGBGLXVISUALS" "true"
    Option        "UseDisplayDevice" "DFP"
   # Option        "NoLogo" "True"
    Option        "NvAGP" "3"
    Option        "RenderAccel" "on"
EndSection
Section "Screen"
    Identifier     "Default Screen"
    Device         "nVidia Corporation NV17 [GeForce4 420 Go]"
    Monitor        "通用显示器"
    DefaultDepth    24
    SubSection     "Display"
        Depth       1
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       4
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
EndSection
这里主要修改的是显卡部分,即Section "Device"处。基本上按照我的配置就可以了。如果不想看开机logo,可以把我注释的语句改回来,把  # 去掉即可。
把上面这段保存下来。之后取名为xorg.conf
具体操作就是:
sudo rm /etc/X11/xorg.conf
sudo cp (这里是刚刚新建的xorg.conf文件的绝对地址) /etc/X11/
重启。

               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/42784/showart_332536.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP