archlinux mbr 安装

wifi-menu
timedatectl set-ntp true
fdisk -l

 


mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt
vim /etc/pacman.d/mirrorlist

Server = http://mirrors.163.com/archlinux/$repo/os/$arch


vim /etc/pacman.conf    
Server   = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
pacman -Syy
pacman -S yaourt
yaourt -Syy
pacstrap /mnt base base-devel
genfstab -L /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
arch-chroot /mnt
pacman -S vim    
pacman -S iw wpa_supplicant dialog  netctl wireless_tools wpa_actiond
pacman -S net-tools dnsutils
pacman -S ntfs-3g

 

tzselect  选择  4   9  1  1
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
vim /etc/locale.gen
 en_US.UTF-8 UTF-8
 zh_CN.UTF-8 UTF-8
 locale-gen
 echo LANG=en_US.UTF-8 > /etc/locale.conf
 echo 'you host name' > /etc/hostname
 nano /etc/hosts
127.0.0.1   localhost.localdomain   localhost
::1         localhost.localdomain   localhost
127.0.1.1   jasonchan.localdomain   jasonchan
passwd
pacman -S intel-ucode
pacman -S grub os-prober
grub-install --target=i386-pc --recheck /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
exit #退出chroot
umount -R  /mnt  #卸载挂载
reboot  #重启
useradd -m -G wheel ma
passwd ma
pacman -S sudo
visudo   # %wheel ALL=(ALL)ALL 去掉 # 注释
lspci | grep VGA
# # 官方仓库提供的驱动包:
# # +----------------------+--------------------+--------------+
# # |                      |        开源        |     私有     |
# # +----------------------+--------------------+--------------+
# # |         通用         |   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   |              |
# # +----------------------+--------------------+--------------+
sudo pacman -S xf86-video-intel
sudo pacman -S xf86-video-nouveau
sudo pacman -S nvidia-340xx
sudo pacman -S xorg
mesa-libgl
pacman -S xorg-xinit xterm
pacman -S xfce4 xfce4-goodies
pacman -S lightdm lightdm-gtk-greeter
systemctl start lightdm.service
systemctl enable lightdm.service
pacman -S alsa-utils
nano /lib/systemd/system/alsa-state.service
[Install] 
WantedBy=multi-user.target
systemctl start alsa-state.service
systemctl enable alsa-state.service
pacman -S wqy-microhei ttf-dejavu
echo LANG=zh_CN.UTF-8>/etc/locale.conf
.bashrc: 每次终端时读取并运用里面的设置 
.profile:每次启动系统的读取并运用里面的配置 
.xinitrc: 每次startx启动X界面时读取并运用里面的设置 
.xprofile: 每次使用lightdm等图形登录管理器时读取并运用里面的设置 
export LANG=zh_CN.UTF-8 
export LANGUAGE=zh_CN:en_US
~/.xprofile文件中添加
pacman -S ntp
systemctl start ntpd.service
systemctl enable ntpd.service
hwclock --systohc --localtime
pacman -S fcitx fcitx-sougoupinyin  fcitx-im fcitx-fbterm kcm-fcitx
打开~/.xprofile文件并加入以下几行
export GTK_IM_MODULE=fcitx 
export QT_IM_MODULE=fcitx 
export XMODIFIERS=”@im=fcitx”
sudo nano /etc/pacman.conf
[archlinuxfr] 
SigLevel = Never 
Server = http://repo.archlinux.fr/$arch 
sudo pacman -Sy yaourt
yaourt numix
在其中找到numix-circle-icon-theme,然后输入前面的序号就可以安装
yaourt -S gtk-theme-arc-git

 

你可能感兴趣的:(archlinux)