New Arch Linux

之前 TP 上的硬盘挂了,收了 @zypatroon 同学的二手盘。下面简单记录下本次安装 arch x86_64 的的部分操作。

# adduser jaseywang
# userdel -r http ftp
# groupdel games

# visudo
jaseywang ALL=(ALL) NOPASSWD:ALL

# cat /etc/pacman.conf
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64
# pacman -Syu

# pacman -S alsa-utils
# gpasswd -a jaseywang audio
# alsaconf

# echo "set bell-style none">>/etc/inputrc
$ echo "set vb">>~/.vimrc

# pacman -S gvim
# cp /etc/vimrc /etc/vimrc.bak
# cp /usr/share/vim/vim73/vimrc_example.vim /etc/vimrc

# pacman -S xorg-server xorg-utils xorg-xinit mesa
# pacman -S xf86-video-intel


Failed to load module “intel” (module does not exist,0)
Failed to load module “vesa” (module does not exist,0)
Failed to load module “fbdev” (module does not exist,0)
# pacman -S xf86-video-intel xf86-video-vesa xf86-video-fbdev

# pacman -S dbus awesome

# Fonts & Input method
# yaourt -S wqy-microhei ibus ibus-pinyin

# Virtualization
# pacman -S virtualbox virtualbox-additions virtualbox-modules

# System
# pacman htop findutils mlocate rsync curl w3m lftp aria2 unrar gvim unzip zip gimp firefox chromium android-sdk-patform-tools screen xterm bash-completion bc

# Movie & Music
# pacman -S moc vlc

# Pacman config
# pacman -S yaourt pacman-color

# Pdf viewer
# pacman -S zathura zathura-djvu zathura-pdf-poppler

# Image related
# pacman -S viewnior xzgx imagemagick feh xcompmgr

# Torrent
# pacman -S rtorrent

# Office
# pacman -S libreoffice

# Network protocol analyzer
# pacman -S wireshark-gtk tcpdump

# Network related
# pacman -S dnsutils net-tools iputils  netcfg dialog

# File manager
# pacman -S vifm ranger dropbox

# Filesystem related
# pacman -S ntfs-3g

# Live USB
# pacman unetbootin

$ grep -v ^# /etc/rc.conf | grep -v ^$
LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="localtime"
TIMEZONE="Asia/Shanghai"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
MODULES=(vboxdrv vboxnetflt)
UDEV_TIMEOUT=30
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"
HOSTNAME="op"
NETWORK_PERSIST="no"
NETWORKS=(ethernet-static)
DAEMONS=(hwclock syslog-ng !network dbus net-profiles !netfs crond slim sshd dropboxd synergys)

$ cat ~/.xprofile
export GTK_IM_MODULE=ibus
export [email protected]=ibus
export QT_IM_MODULE=ibus
ibus-daemon -x -d

$ cat ~/.xinitrc
exec awesome

遇到的一些问题。

# pacman -S sudo
error: pacman: signature from "Allan McRae <[email protected]>" is unknown trust
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

# sudo mv /etc/pacman.conf /etc/pacman.conf.old
# sudo mv /etc/pacman.conf.pacnew /etc/pacman.conf
# sudo pacman-key --init

# pacman -Syu
Replace module-init-tools with core/kmod? [Y/n]
module-init-tools
This package contains a set of programs for loading, inserting, and removing kernel modules for Linux (versions 2.5.48 and above). It serves the same function that the "modutils" package serves for Linux 2.4.
With module-init-tools being declared a dead project by its current maintainer, a new project has stepped up to take its place: kmod. This is intended to be a drop-in replacement, though deprecated functionality in module-init-tools has not been reimplemented.
# cd /etc/modprobe.d
# mv modprobe.conf.pacsave modprobe.conf

# pacman -Syu
initscripts: /etc/profile.d/locale.sh exists in filesystem
# rm -f /etc/profile.d/locale.sh
# pacman -Syu

Pacman "filesystem: /etc/mtab exists in filesystem"
# pacman -S filesystem --force