debian misc

1. 将指定用户加入sudo组

$ su
# visudo

在以下内容下多添加一行

root    ALL=(ALL) ALL
username ALL=(ALL) ALL

username为要添加到sudo组的用户

 

2. debian 6 安装ati显卡驱动

a.安装ati driver所需的依赖

sudo apt-get install module-assistant build-essential

sudo apt-get install fakeroot dh-make debconf libstdc++5 linux-headers-$(uname -r)

b. 运行ati driver

# ./amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run

c. 修改/etc/X11/xorg.conf, 以下是适用于我的机器的xorg.conf

Section "ServerLayout"
        Identifier     "aticonfig Layout"
        Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Module"
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]-0"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
                Modes "1280x1024"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

 

posted @ 2013-05-12 12:15  *tingliang*  阅读(178)  评论(0编辑  收藏  举报