ArchLinux + i3wm 桌面 Windows10 双系统安装


Arch Linux 官方安装教程
镜像下载中国清华大学源

本文参考了官方教程或者星兮这位同志的博客

制作 U 盘启动盘

使用 rufus 软件

  1. 选择镜像
  2. 选择 gpt 模式
  3. 选择 fat32
  4. 写入选择 dd 模式
  5. 开始制作 等待完成

准备工作

  1. 关闭 bios secure 模式
  2. 关闭 Windows 快速启动 等等 这些工作可以参考其他博文或者官方文档

U 盘启动开始安装

  1. 使用 wifi-menu 连接无线网
  2. 分区(重点 双系统的关键)
    1. 使用 cfdisk 分区工具将自己想要装 ArchLinux 的分区分为两个分区一个作为 swap 一个作为 / 的挂载点.
    2. 格式化
    mk.ext4 /dev/sdb3    // 设备名写自己的
    mkswap /dev/sdb4
    
    1. 挂载
    mount /dev/sdb3 /mnt
    swapon /dev/sdb4
    mkdir -p /mnt/boot/efi
    mount /dev/sda1 /mnt/boot/efi    // 注意  /dev/sda1 为 Windows efi 引导所在分区(重点)
    

chroot 进入系统后 wifi_menu 不可用

这个部分单独拿出来说是因为现在新版本的 ArchLinux 安装包没有将 netctl 打包进安装包了,就导致 arch-chroot /mnt 进入安装好的系统之后 wifi-menu 不可用,所以切记在 chroot 之前, 先安装 netctl 工具包

pacman -S netctl

// 其他需要的联网工具
pacman -S rp-pppoe dialog iw wpa_supplicant networkmanager dhcp	

systemctl enable NetworkManager

安装 grub 引导

pacman -S grub efibootmgr os-prober ntfs-3g
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ArchLinux --recheck
grub-mkconfig -o /boot/grub/grub.cfg

安装中文输入法

sudo pacman -S fcitx-im fcitx-configtool fcitx-googlepinyin	

在 ~/.xprofile 文件中, 加入以下内容(如果没有就新建)

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
fcitx

然后在命令行运行 fcitx-configtool 添加 googlepinyin 输入法, 不行的话记得重启.

ficitx-sougoupinyin 不建议使用 不稳定

WPS 安装

WPS ArchLinux Wiki

sudo pacman -S wps-office
sudo pacman -S ttf-wps-fonts

自动挂载 Windows10 下的 NTFS 分区

记得关掉 Windows10 的快速启动

  1. 安装 ntfs-3g
// 支持 读写 ntfs 分区
sudo pacman -S ntfs-3g    
  1. 创建挂载点
mkdir -p /windows/c
mkdir -p /windows/d
mkdir -p /windows/e
  1. 编辑 /etc/fstab
/dev/sda3 /windows/c ntfs defaults 0 0
/dev/sdb1 /windows/d ntfs defaults 0 0
/dev/sdb2 /windows/e ntfs defaults 0 0

注: 可以使用 fdisk -l 或者 df 或者 lsblk 查看你的 windows 分区设备名

安装 python3 和 pip3

sudo pacman -S python3
sudo pacman -S python-pip

安装 cpplint

sudo pip install cpplint

在 Arch Linux 中默认安装的 cpplint 在

/usr/bin/cpplint

目录中

安装 vscode

sudo pacman -S visual-studio-code-bin

启动命令为 code

更改 i3wm 桌面颜色主题

安装 npm

sudo pacman -S npm

安装 i3-style

sudo npm install -g i3-style

i3-style 用法

应用默认主题

i3-style solarized -o ~/.config/i3/config --reload

应用 themes 下的其他主题

将 themes 下的主题文件复制到自己的指定目录,并修改为 .yaml 扩展, 然后执行

i3-style ~/.config/i3/solarized.yaml -o ~/.config/i3/config

默认 npm 安装的 i3-style themes 目录为 /usr/lib/node_modules/i3-style/themes 下

安装 oh-my-zsh

查看当前用的 shell

echo $SHELL

安装 zsh

sudo pacman -S zsh

配置 zsh

zsh

安装 oh-my-zsh

git clone https://gitee.com/mirrors/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

重启安装完成

参考 oh-my-zsh 配置
自己感觉好用的主题:

xiong-chiamiov
frontcube

猜你喜欢

转载自blog.csdn.net/VOlsenBerg/article/details/104633828