- 啟用網路
# systemctl enable NetworkManager
# systemctl start NetworkManager
- 安裝oh my zsh:
# pacman -S zsh git gvim
# curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
- 添加用戶
# useradd -m -g users -G audio,video,floppy,network,rfkill,scanner,storage,optical,power,wheel,uucp,vboxusers -s /usr/bin/zsh yaya
#passwd yaya
- 使用者權限
#visudo
root ALL=(ALL) ALL //找到這行,新增下一行
arch ALL=(ALL) ALL //arch 改成你的使用者
- 裝X
# pacman -S xorg-server xorg-server-utils xorg-xinit //x服務
# pacman -S mesa //3d性能
# pacman -S xorg-twm xorg-xclock xterm xorg-xeyes //測試x工具(startx
- 圖形驅動程式
ATI
# pacman -S xf86-video-ati
Intel
# pacman -S xf86-video-intel
NVIDIA
# pacman -S xf86-video-nouveau nouveau-dri lib32-nouveau-dri
VirtualBox
# pacman -S virtualbox-guest-utils
# modprobe -a vboxguest vboxsf vboxvideo
# vi /etc/modules-load.d/virtualbox.conf
vboxguest
vboxsf
vboxvideo
VMware
# pacman -S open-vm-tools
# systemctl enable vmtoolsd
# systemctl start vmtoolsd
# cat /proc/version > /etc/arch-release
- 桌面環境(擇一)
LXDE
# sudo pacman -S lxde gamin gvfs gvfs-afc leafpad obconf epdfview
# echo "exec startlxde" >> ~/.xinitrc
Xfce
# sudo pacman -S xfce4 xfce4-goodies gamin file-roller gvfs gvfs-afc
# echo "exec startxfce4" >> ~/.xinitrc
KDE
# sudo pacman -S kde-meta kde-l10n-zh_{cn,tw} appmenu-qt oxygen-gtk{2,3}
# echo "exec startkde" >> ~/.xinitrc
Cinnamon
# sudo pacman -S cinnamon gnome-terminal nautilus file-roller
# echo "exec gnome-session-cinnamon" >> ~/.xinitrc
# startx //啟動以上桌面環境
- My Pc
# pacman -S xf86-video-inter mesa-libgl libva-intel-driver libva //顯卡驅動
# pacman -S xfce4 //安裝xfce4
# startxfce4 //啟動桌面
啟用音效
許多桌面環境亦提供了聲音控制功能。若跳過本節,可稍后進行設置。
-
Arch Linux默認開啟了聲音支持,默認靜音。用戶可通過 alsamixer(所屬包:alsa-utils) 取消靜音:
1. 方向鍵 選中 Master 和 PCM
2. [M] 取消靜音
# sudo pacman -S alsa-utils
# sudo alsamixer
- 必備工具
# sudo pacman -S mlocate wget tmux nmon mosh unrar unzip unace p7zip wxgtk
- 開發工具
# sudo pacman -S git mercurial subversion bzr cmake emacs gvim
- 網路瀏覽器
# sudo pacman -S firefox firefox-i18n-zh-{cn,tw} gtk3
# sudo pacman -S chromium
- 瀏覽器外掛
# sudo pacman -S flashplugin jre7-openjdk
- Chromium
Flash播放器
注意: Chromium 不再支持 Netscape plugin API (NPAPI),flashplugin 已經無法工作。
可以使用 Google Chrome (新Pepper API)提供的 Flash.
可以通過AUR中提供的軟件包進行安裝:
chromium-pepper-flashAUR - 穩定版本
chromium-pepper-flash-devAUR - 開發版本
請在chrome://plugins中啟用 /usr/lib/PepperFlash/libpepflashplayer.so
- My_fcitx輸入法
# pacman -S fcitx-im fcitx-configtool fcitx-sunpinyin fcitx-cloudpinyin
# cp /etc/xdg/autostart/fcitx-autostart.desktop ~/.config/autostart
# vim ~/xinitrc
export GTK_IM_MOUDLE=fcitx
export QT_IM_MOUDLE=fcitx
export XMODIFIERS="@im=fcitx"
- fcitx輸入框架(臺灣)
# sudo pacman -S fcitx-im fcitx-qt5 fcitx-table-extra
# sudo pacman -S fcitx-googlepinyin fcitx-fbterm
# vi ~/.xprofile
export LANG="zh_TW.UTF-8"
export LC_CTYPE="zh_TW.UTF-8"
export LC_COLLATE="C"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
- 安裝virtualbox
安裝軟件包 virtualbox。virtualbox-host-dkms 會被安裝為依賴軟件包,要使用它安裝內核模塊,需要根據實際使用的內核安裝內核頭文件:
linux內核: linux-headers
linux-lts: linux-lts-headers
linux-zen: linux-zen-headers
linux-grsec: linux-grsec-headers
如果不安裝需要的內核,dkms 在內核升級后不會做任何操作,你會找不到 Virtualbox 內核模塊。只要安裝了內核頭文件, dkms 就會在內核升級后運行。
# pacman -S virtualbox ~~virtualbox-host-dkms~~ dkms
使用基于 Qt 的圖形界面:
# pacman -S qt4
# pacman -S linux-headers (如果先安裝了dkms 其會自動安裝)
DKMS 的安裝:
Tip: DKMS 可以為當前所運行的內核自動生成模塊,通過使用以下命令:
# dkms autoinstall
由于virtualbox-host-dkms 包需要進行編譯,請確保你擁有對應于你的內核版本的Template:Linux-headers以避免這個錯誤: Your kernel headers for kernel your custom kernel version cannot be found at /usr/lib/modules/your custom kernel version/build or /usr/lib/modules/your custom kernel version/source
當virtualbox-host-dkms 安裝后,請通過以下命令生成內核模塊:
# dkms install vboxhost/virtualbox-host-source version -k your custom kernel version/your architecture
例:# dkms -q install -m vboxguest -v 5.0.16_OSE -k 4.5.1-1-ARCH
Tip: 你可以通過這個整合命令安裝,如果你想省點事的話:
# dkms install vboxhost/$(pacman -Q virtualbox|awk '{print $2}'|sed 's/\-.\+//') -k $(uname -rm|sed 's/\ /\//')
手動加載VirtualBox的內核模塊:
# modprobe vboxdrv
啟動時自動加載 VirtualBox 驅動:
# vim /etc/modules-load.d/virtualbox.conf
vboxdrv
vboxnetadp
vboxnetflt
vboxpci
以下模塊是可選的,但建議選上如果您不想在進行一些高級配置時被打擾(如下): vboxnetadp, vboxnetflt 和vboxpci.
vboxnetadp 和vboxnetflt 都是需要的當你使用網橋時 bridged or host-only networking feature. More precisely, vboxnetadp is needed to create the host interface in the VirtualBox global preferences, and vboxnetflt is needed to launch a virtual machine using that network interface.
vboxpci是需要的, 當你的虛擬機需要使用一個你的主機上的pci設備時
Note: 如果在virtualbox內核模塊運行時你更新了模塊,你需要手動重新加載這些模塊以使用新版本。為了這么做,請在 root 權限下運行 vboxreload
最后,如果你使用前面提到的 "Host-only" 或是 "bridge networking" 功能,請確保 net-tools 已經安裝。VirtualBoxt 為主機接口配置命令 VBoxManage hostonlyif 使用 ifconfig 和 route 來定位 IP 和 route,或通過 GUI 的Settings > Network > Host-only Networks > Edit host-only network (space) > Adapter選項。
添加用戶到 vboxusers組:
# gpasswd -a $USER vboxusers
啟動 VirtualBox 圖形界面:
# VirtualBox
增強工具包:
# pacman -S virtualbox-guest-iso
(這個 .iso 文件會被定位在 /usr/lib/virtualbox/additions/VBoxGuestAdditions.iso,也許需要手動在虛擬機中加載,當掛載之后你可以安裝增強工具。)
擴展組件:
自從 VirtualBox 4.0 之后,非GPL協議的組件已經從應用中被分離了出來,盡管這些組件使用非免費的協議并且 僅授權給個人使用,你也許仍有興趣安裝 Oracle 的擴展組件, 在這里提供 additional features。為了避免手動操作, virtualbox-ext-oracle[AUR] 包可供獲得, 已編譯的版本可以在 seblu倉庫找到。
如果你喜歡使用傳統的手動方法:手動下載擴展組件并通過 GUI 安裝 (File > Preferences > Extensions) 或通過 VBoxManage extpack install <.vbox-extpack>命令來安裝, 請確保你擁有 toolkit (like Polkit, gksu, etc.) 來獲準進入 VirtualBox。安裝過程 需要 root 權限.
Ps: http://sibsaidinblog-tw.blogspot.jp/2012/08/virtualbox-extension-pack.html
- 觸摸板支持
# pacman -S xf86-input-synaptics
- 字型
# pacman -S ttf-dejavu wqy-microhei ~~ttf-arphic-{uming,ukai} wqy-zenhei~~
- Arch 用戶軟件倉庫(AUR)及吃豆效果
# vim /etc/pacman.conf (在文件末尾添加)
[options]
ILoveCandy
[archlinuxfr]
SigLevel = Optional TrustAll
Server = http://repo.archlinux.fr/$arch
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = http://repo.archlinuxcn.org/$arch
# pacman -Sy archlinuxcn-keyring yaourt
- Go編程環境:
# sudo pacman -Sy liteide(Go會作為依賴一起安裝上去)
- 網絡時間同步:
# pacman -S ntp
# systemctl enable ntpd
# pacman -S slim
# systemctl enable slim
# pacman -S networkmanager network-manager-applet sudo lxappearance wget uget gedit file-roller thunar-archive-plugin smplayer vlc gimp pidgin gpicview tumbler gparted scrot
pdf:epdfview/zathura
music:audacious
歸檔器:engrampa/xarchiver(不好用)
engrampa 的可選依賴:
caja: file archiver extension
unrar: for RAR uncompression
zip: for ZIP archives
unzip: for ZIP archives
p7zip: 7zip compression utility
arj: for ARJ archives
unace: extraction tool for the proprietary ace archive format
yelp: for reading MATE help documents
image:Ristretto(Super Good)、GPicView(Good)、Gwenview(gif)
others:leafpad、
tmux: 你懂的
rofi: 啟動器
compton: 開透明什么的需要
pnmixer: 調音量
lxappearence: 設置主題、外觀
numix-theme, numix-circle-icon-theme-git: 我喜歡的主題和圖標,裝完用lxappearence設置生效
nitrogen: 設置壁紙
conky: 系統狀態監視
xfce4-power-manager: 電源管理
mate-notification-daemon: 桌面通知
現在,可直接從 官方倉庫 中安裝 steam 。
如果你使用64位系統,請先啟用 multilib 倉庫。
Steam 目前在 Arch Linux 上并不被官方支持,因此需要用戶做一些調整以使程序順利運行:
Steam中大量使用 Arial 字體。你可以通過安裝 ttf-liberation 或 ttf-microsoft-arialAUR[broken link: archived in aur-mirror] 或 ttf-ms-fontsAUR 或 Steam提供的字體 來讓它看起來漂亮點兒。亞洲語言建議使用wqy-zenhei。
如果你使用64位系統,你還需要安裝 32位版本的顯卡驅動 (位于表格中“Multilib 軟件包 ”這一列) 以運行32位游戲。
如果你使用64位系統,你還需要安裝 lib32-alsa-plugins 為32位游戲提供聲音支持。
有些游戲可能需要附加依賴。如果游戲不能正常啟動 (一般沒有任何錯誤提示),請確保安裝了 Steam/Game-specific troubleshooting 中列出的依賴。
sudo pacman -S lib32-mesa-libgl lib32-alsa-plugins
Intel graphics安裝:
先安裝 Xorg,然后安裝位于官方軟件倉庫的 xf86-video-intel 軟件包。它提供了用于2D加速的DDX驅動和舊顯卡的XvMC視頻解碼驅動。它依賴于3D加速的DRI驅動 mesa。
啟用OpenGL支持, 安裝 mesa-libgl.64位系統需要安裝lib32-mesa-libgl 才能在 32 位程序中使用加速功能。
要使用新 GPU 的硬件編解碼功能,請按裝官方軟件倉庫中的libva-intel-driver和libva軟件包,它提供了VA-API驅動。
配置
沒必要做任何形式的配置來運行X.ORG(不需要xorg.conf,但若有則要正確配置)。
However, to take advantage of some driver options, you will need to create a Xorg configuration file similar to the one below:
/etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
EndSection