基础系统安装完成后,准备日常使用的配置
关于网络的问题,有线要比无线简单的多,有线直接插网线,然后
systemctl start dhcpcd
systemctl enable dhcpcd
而对于无线来说,wpa_supplicant和wifi-menu挨个试一次,少有不成功的
-wpa_supplicant的配置文件在/etc/wpa_supplicant.conf
-wifi-menu的配置文件在/etc/netctl/目录下
开机后进行基本驱动安装
1. 显卡驱动安装
# lspci | grep VGA # 确定显卡型号
# pacman -S <驱动包>
#
# # 官方仓库提供的驱动包:
# # +----------------------+--------------------+--------------+
# # | | 开源 | 私有 |
# # +----------------------+--------------------+--------------+
# # | 通用 | xf86-video-vesa | |
# # +----------------------+--------------------+--------------+
# # | Intel | xf86-video-intel | |
# # +--------+-------------+--------------------+--------------+
# # | | GeForce 9+ | | nvidia |
# # + +-------------+ +--------------+
# # | nVidia | GeForce 8/9 | xf86-video-nouveau | nvidia-340xx |
# # + +-------------+ +--------------+
# # | | GeForce 6/7 | | nvidia-304xx |
# # +--------+-------------+--------------------+--------------+
# # | AMD/ATI | xf86-video-ati | |
# # +----------------------+--------------------+--------------+
2.安装alsa-utils声音管理
# pacman -S alsa-utils
# cat /lib/systemd/system/alsa-state.service
检查配置文件,若内容无以下部分,则加上
# [Install]
# WantedBy=multi-user.target
开机自启动
# systemctl start alsa-state.service
# systemctl enable alsa-statr.service
3.安装yaourt包管理器
sudo vim /etc/pacman.conf
将以下语句加入
[archlinux]
SigLevel = Optional TrustAll
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
刷新仓库安装yaourt
# sudo pacman -Sy yaourt
# sudo pacman -S archlinuxcn-keyring
4.安装中文字体
# pacman -S adobe-source-han-sans-cn-fonts # 可选,思源黑体
5.安装中文输入法
# pacman -S fcitx-im fcitx-configtool
# yaourt fcitx-sogoupinyin
安装后进行配置
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
-KDM、GDM、LightDM 等显示管理器的用户,向 ~/.xprofile在exec前添加以上命令
-startx 与 slim 的用户,向 ~/.xinitrc在 exec 语句前添加以上命令
安装完成后右击状态栏最右侧的小键盘,在设置中添加搜狗输入法,然后重启系统,输入法的切换默认按键为ctrl+space。
6.安装oh-my-zsh
# sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
将.zshrc文件内主题修改至如下
# ZSH_THEME="bureau"
保存退出后,`source .zshrc`更新
7.安装i3桌面环境
# pacman -S xorg xorg-init xterm
# pacman -S i3lock i3status compton dmenu feh
# yaourt i3-gaps
建立~/.i3/config文件,我的配置如下:
i3
#===============设置字体#===============
font pango:monospace, EmojiOne Color 10
#===============设置$mod为alt键#===============
# customized
set $mod Mod1
#===============设置窗口边框#===============
new_window none
bindsym $mod+t border normal
bindsym $mod+y border pixel 1
bindsym $mod+u border none
#===============状态栏#===============
bindsym $mod+m bar mode toggle
bar {
i3bar_command i3bar -t
# status_command i3status
status_command py3status
position bottom
modifier Shift
separator_symbol " | "
colors {
background #000000CC
#statusline #000000FF
separator #B8F788
focused_workspace #B8F788 #000000AA
active_workspace #FFFFFF #FFFFFFAA
inactive_workspace #AAAAAA #000000AA #AAAAAA
urgent_workspace #E57B85 #000000AA
}
}
#===============窗口间距#===============
gaps inner 6
gaps outer 0
smart_gaps on