輕量桌面Archlinux用戶逃離systemd,擁抱Gentoo的openrc.php
Artix Linux on DistroWatch:
Artix Linux is a fork (or continuation as an autonomous project) of the Arch-OpenRC and Manjaro-OpenRC projects. Artix Linux offers a lightweight, rolling-release operating system featuring the OpenRC
init software. (An alternative spin features the runit
init software.) Three editions of Artix are available, a minimal Base
system, an edition featuring the i3
window manager and an edition which runs the LXQt
desktop.
主頁:https://artixlinux.org/linux
It is possible to use runit iso to install OpenRC-based system, and vice-versa.
使用不一樣版本iso能夠相互安裝沒有影響。bash
fdisk /dev/sda
mkfs.ext4 -L ROOT /dev/sda1 <- root partition mkfs.ntfs -L HOME /dev/sda2 <- home partition, optional mkfs.ext4 -L BOOT /dev/sda3 <- boot partition, optional mkswap -L SWAP /dev/sda4 <- swap partition
- The -L switch assigns labels to the partitions, which helps referring to them later through /dev/disk/by-label without having to remember their numbers.
- 使用
mkfs.ntfs
時須要ntfs-3g
mount /dev/sda1 /mnt mount /dev/sda2 /mnt/home (if created) mount /dev/sda3 /mnt/boot (if created) swapon /dev/sda4
base
系統編輯/etc/pacman.d/mirrorlist
,加入本地鏡像,目前騰訊雲和清華大學的鏡像可用。app
Server = https://mirrors.cloud.tencent.com/artixlinux/$repo/os/$arch # 騰訊雲 Server = https://mirrors.tuna.tsinghua.edu.cn/artixlinux/$repo/os/$arch #清華大學
編輯/etc/pacman.d/mirrorlist-arch
,註釋掉Worldwide
,選擇 China
取消註釋。ide
安裝的時候必定要先修改鏡像地址,否則安裝速度讓人發狂。code
pacman -Syy
使用 basestrap
安裝 base
, init系統 (目前 openrc
或 runit
可用),base-devel
選裝。rem
basestrap /mnt base base-devel openrc
fstabgen
生成 /etc/fstab
fstabgen -L /mnt >>/mnt/etc/fstab
-U for UUIDs
-L for partition labels:get
artools-chroot /mnt
base
系統grub
和 os-prober
pacman -S grub os-prober grub-install --recheck /dev/sda grub-mkconfig -o /boot/grub/grub.cfg
useradd user -g wheel -m passwd user
passwd
locales
:nano /etc/locale.gen <- uncomment your locale locale-gen
配置系統全局locale:編輯
/etc/locale.conf
(sourced by /etc/profile) 或
/etc/bash/bashrc.d/artix.bashrc
或/etc/bash/bashrc.d/local.bashrc
;
配置用戶級locale:~/.bashrc
it
export LANG="en_US.UTF-8" export LC_COLLATE="C"
networkmanager
pacman -S networkmanager networkmanager-openrc network-manager-applet rc-update add NetworkManager default
exit <- exit chroot environment umount -R /mnt reboot