轻量桌面archlinux用户逃离systemd,拥抱gentoo的openrc.
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.
it is possible to use runit iso to install openrc-based system, and vice-versa.
使用不同版本iso可以相互安装没有影响。
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
,加入本地镜像,目前腾讯云和清华大学的镜像可用。
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
取消注释。
安装的时候一定要先修改镜像地址,不然安装速度让人发狂。
pacman -syy
使用 basestrap
安装 base
, init系统 (目前 openrc
或 runit
可用),base-devel
选装。
basestrap /mnt base base-devel openrc
fstabgen
生成 /etc/fstab
fstabgen -l /mnt >>/mnt/etc/fstab
-u for uuids
-l for partition labels:
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
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
如对本文有疑问, 点击进行留言回复!!
linux下文本编辑器vim的使用方法(复制、粘贴、替换、行号、撤销、多文件操作)
网友评论