看carbonjiao一直在做archLive。。。我也开始学习下

这一个周一直都在学习使用ArchLinux。。。发现真的是很好用。。。所以我现在不用Ubuntu了。。。开始用ArchLinux

我没有用archlive,是用的官方下载的。。。没有图形界面。。。觉得这样更利于学习。。。

安装就没什么好说的了。。。我用的是Usb img。。。

有一点就是grub不认识ext4,所以/boot不能用ext4。。。

也就几分钟就安装完了。。。然后开始配置

1、当然是先配置网络了。。。
我用的静态IP,在/etc/rc.conf里
lo=(lo 127.0.0.1)
eth0=”eth0 121.***.***.*** netmask 255.255.255.0 broadcast 121.***.***.255″
INTERFACES=(lo eth0)
gateway=”default gw 121.***.***.1″
ROUTES=(gateway)

2、源/etc/pacman.d/mirrorlist
我用的是
Server = http://mirror.lupaworld.com/archlinux/$repo/os/i686
将/etc/pacman.conf里的
XferCommand = /usr/bin/wget –passive-ftp -c -O %o %u
注释解开,用wget下载软件包

3、更新
#pacman -Syu

4、我可不想一直用CLI,先装个X
#pacman -S xorg

5、装驱动
#pacman -S nvidia

6、创建/etc/X11/xorg.conf,我的内容如下
Section “ServerLayout”
Identifier     ”Xorg Configured”
Screen      0  ”Screen0″
InputDevice    “Keyboard0″ “CoreKeyboard”
InputDevice    “PS/2 Mouse” “CorePointer”
EndSection

Section “Module”
Load           ”dbe”
Load           ”extmod”
Load           ”type1″
Load           ”freetype”
Load           ”glx”
EndSection

Section “ServerFlags”
Option         ”AllowMouseOpenFail” “true”
Option         ”AutoAddDevices” “False”
EndSection

Section “InputDevice”
Identifier     ”Keyboard0″
Driver         ”keyboard”
Option         ”CoreKeyboard”
Option         ”XkbRules” “xorg”
Option         ”XkbModel” “pc105″
Option         ”XkbLayout” “us”
Option         ”XkbVariant” “”
EndSection

Section “InputDevice”
Identifier     ”PS/2 Mouse”
Driver         ”mouse”
Option         ”Protocol” “auto”
Option         ”ZAxisMapping” “4 5″
Option         ”Device” “/dev/psaux”
Option         ”Emulate3Buttons” “true”
Option         ”Emulate3Timeout” “70″
Option         ”SendCoreEvents” “true”
EndSection

Section “Monitor”
Identifier     ”Monitor0″
VendorName     ”Unknown”
ModelName      ”Unknown”
HorizSync       28.0 - 33.0
VertRefresh     43.0 - 72.0
Option         ”DPMS”
EndSection

Section “Device”
Identifier     ”Device0″
Driver         ”nvidia”
VendorName     ”NVIDIA Corporation”
EndSection

Section “Screen”
Identifier     ”Screen0″
Device         ”Device0″
Monitor        ”Monitor0″
DefaultDepth    24
SubSection     ”Display”
Depth       24
EndSubSection
EndSection

Section “Extensions”
Option         ”Composite” “Enable”
EndSection

7、安装桌面,我还是喜欢gnome
#pacman -S gnome
装的时候我没有选择epiphany,其余的都选择了

8、装个gdm
#pacman -S gdm
然后就可以gdm启动了
也可以在/etc/rc.conf里添加hal启动

9、装hal
#pacman -S hal dbus
在/etc/rc.conf里添加hal启动(这个arch的rc.conf真好用!)

10、声音
#pacman -S alsa-utils
alsaconf配置声卡
alsamixer调节大小
alsactl store保存
在/etc/rc.conf里添加alsa

11、字体
#pacman -S wqy-bitmapfont wqy-zenhei ttf-arphic-uming ttf-arphic-ukai ttf-bitstream-vera

12、Bash自动补齐
#pacman -S bash-completion
#echo source /etc/bash_completion >> /etc/profile

13、添加用户
#useradd -mG users,audio,optical,storage,hal,dubs,wheel -s /bin/bash yourusername

#passwd yourusername

14、Accessories软件
#pacman -S gnome-terminal gedit p7zip unrar unzip file-roller

15、Graphics
#pacman -S gthumb

16、Internet
#pacman -S firefox firefox-i18n flashplugin pidgin skype

17、Office
#pacman -S openoffice-base openoffice-zh_cn xpdf xpdf-chinese-simplified xpdf-chinese-traditional

18、Sound & Video
#pacman -S codecs gstreamer0.10-bad gstreamer0.10-ugly gstreamer0.10-ffmpeg gstreamer0.10-mad gstreamer0.10-mpeg2dec rhythmbox mplayer mplayer-plugin

19、输入法(具体的安装看这个http://bbs.linuxeye.cn/thread-767-1-1.html
我用ibus,之前都用scim,不知道为什么在arch上不好用,就用了ibus。。。这才发现ibus比scim好用多了
下载源码自己编译的,然后在用户的home里
#vim .profile
export XMODIFIERS=@im=ibus
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
ibus-daemon -d -x

20、Programming & Develop
jdk下载的bin文件,用的netbeans 6.5.1,用mysql,官方下载就行。