我的ArchLinux0.7.1配置笔记
时间:2006-04-01 来源:JJCH
ArchLinux配置过程
1.以root用户登录系统,切换目录到/etc,
rm -rf pacman.d #删除pacman.d 目录,我不需要里面的那些配置文件;
vi pacman.conf 修改成如下,
#
# /etc/pacman.conf
#
# GENERAL OPTIONS
[options]
LogFile = /var/log/pacman.log
NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
NoUpgrade = etc/rc.conf etc/rc.local
NoUpgrade = etc/modprobe.conf etc/modules.conf
NoUpgrade = etc/lilo.conf boot/grub/menu.lst
HoldPkg = pacman glibc
[testing]
Server = http://mirror.bjtu.edu.cn/ArchLinux/testing/os/i686
[current]
Server = http://mirror.bjtu.edu.cn/ArchLinux/current/os/i686
[extra]
Server = http://mirror.bjtu.edu.cn/ArchLinux/extra/os/i686
[unstable]
Server = http://mirror.bjtu.edu.cn/ArchLinux/unstable/os/i686
[community]
Server = http://mirror.bjtu.edu.cn/ArchLinux/community/os/i686
2.使用pacman安装xorg gnome等;
更新数据库:pacman -Sy
更新pacman:pacman -S pacman
安装hwd: pacman -S hwd
安装xorg: pacman -S xorg
安装ati driver:pacman -S ati-fglrx-archck
安装gnome:pacman -S gnome gdm gedit gnome-terminal
安装中文字体:pacman -S ttf-fireflysung ttf-arphic-uming ttf-arphic-ukai 3.修改配置文件,下次启动时自动启动X并加载GDM;
hwd -x #生成/etc/X11/xorg.conf.hwd文件
cp /etc/X11/xorg.conf.hwd /etc/X11/xorg.conf aticonfig --initial --input=/etc/X11/xorg.conf #使用aticonfig自动配置xorg.conf
vi /etc/X11/xinit/xinitrc
在最后的
# start some nice programs
后面加上
exec gnome-session
后面的可以用"#"注掉
vi /etc/inittab
修改"id:3:initdefault:"为"id:5:initdefault:"
修改"x:5:respawn:..."那行为"x:5:respawn:/opt/gnome/sbin/gdm -nodaemon"
4.安装声卡驱动,配置多音频流
pacman -S alsa-lib alsa-utils alsa-oss hwd -u #更新usb 、pci设备信息,否则可能找不到声卡
alsaconf #配置驱动
vi /etc/modprobe.conf
如有以下内容,请用“#”注释或删除,
# OSS Compatibility
# install snd-pcm modprobe -i snd-pcm ; modprobe snd-pcm-oss ; true
# install snd-seq modprobe -i snd-seq ; modprobe snd-seq-oss ; true
再看看是否有如下内容
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.10 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. --- vi /etc/rc.conf ,在DAEMONS里加上alsa,否则启动后是静音的; 添加用户的时候需要将其加入audio组,否则会无法使用音频设备;
将以下内容保存为/etc/asound.conf,即可简单实现多音频流
pcm.card0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
periods 128
rate 44100
}
bindings {
0 0
1 1
}
}
5.添加中文输入法
pacman -S fcitx
vi .bash_profile
添加以下内容:
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
再到gnome菜单的 桌面-首选项-会话-启动程序-添加-fcitx &
6.到此以配置一个带桌面环境的基本系统,需要其它工具软件的可通过pacman安装
如mozilla-firefox,lftp,openssh,bmp,mplayer,j2re,acroread,openoffice,xscreensaver,gthumb,file-roller...
[28/4/2006]修正缺少命令“hwd -u”
1.以root用户登录系统,切换目录到/etc,
rm -rf pacman.d #删除pacman.d 目录,我不需要里面的那些配置文件;
vi pacman.conf 修改成如下,
#
# /etc/pacman.conf
#
# GENERAL OPTIONS
[options]
LogFile = /var/log/pacman.log
NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
NoUpgrade = etc/rc.conf etc/rc.local
NoUpgrade = etc/modprobe.conf etc/modules.conf
NoUpgrade = etc/lilo.conf boot/grub/menu.lst
HoldPkg = pacman glibc
[testing]
Server = http://mirror.bjtu.edu.cn/ArchLinux/testing/os/i686
[current]
Server = http://mirror.bjtu.edu.cn/ArchLinux/current/os/i686
[extra]
Server = http://mirror.bjtu.edu.cn/ArchLinux/extra/os/i686
[unstable]
Server = http://mirror.bjtu.edu.cn/ArchLinux/unstable/os/i686
[community]
Server = http://mirror.bjtu.edu.cn/ArchLinux/community/os/i686
2.使用pacman安装xorg gnome等;
更新数据库:pacman -Sy
更新pacman:pacman -S pacman
安装hwd: pacman -S hwd
安装xorg: pacman -S xorg
安装ati driver:pacman -S ati-fglrx-archck
安装gnome:pacman -S gnome gdm gedit gnome-terminal
安装中文字体:pacman -S ttf-fireflysung ttf-arphic-uming ttf-arphic-ukai 3.修改配置文件,下次启动时自动启动X并加载GDM;
hwd -x #生成/etc/X11/xorg.conf.hwd文件
cp /etc/X11/xorg.conf.hwd /etc/X11/xorg.conf aticonfig --initial --input=/etc/X11/xorg.conf #使用aticonfig自动配置xorg.conf
vi /etc/X11/xinit/xinitrc
在最后的
# start some nice programs
后面加上
exec gnome-session
后面的可以用"#"注掉
vi /etc/inittab
修改"id:3:initdefault:"为"id:5:initdefault:"
修改"x:5:respawn:..."那行为"x:5:respawn:/opt/gnome/sbin/gdm -nodaemon"
4.安装声卡驱动,配置多音频流
pacman -S alsa-lib alsa-utils alsa-oss hwd -u #更新usb 、pci设备信息,否则可能找不到声卡
alsaconf #配置驱动
vi /etc/modprobe.conf
如有以下内容,请用“#”注释或删除,
# OSS Compatibility
# install snd-pcm modprobe -i snd-pcm ; modprobe snd-pcm-oss ; true
# install snd-seq modprobe -i snd-seq ; modprobe snd-seq-oss ; true
再看看是否有如下内容
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.10 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. --- vi /etc/rc.conf ,在DAEMONS里加上alsa,否则启动后是静音的; 添加用户的时候需要将其加入audio组,否则会无法使用音频设备;
将以下内容保存为/etc/asound.conf,即可简单实现多音频流
pcm.card0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
periods 128
rate 44100
}
bindings {
0 0
1 1
}
}
5.添加中文输入法
pacman -S fcitx
vi .bash_profile
添加以下内容:
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
再到gnome菜单的 桌面-首选项-会话-启动程序-添加-fcitx &
6.到此以配置一个带桌面环境的基本系统,需要其它工具软件的可通过pacman安装
如mozilla-firefox,lftp,openssh,bmp,mplayer,j2re,acroread,openoffice,xscreensaver,gthumb,file-roller...
[28/4/2006]修正缺少命令“hwd -u”
相关阅读 更多 +