轻量桌面Archlinux用户逃离systemd,拥抱Gentoo的openrc.

  • 镜像源:官方镜像源非常慢,曾经一度体验artix后就放弃了,后来发现了清华和腾讯云的镜像,速度非常快,现在又重新安装了Artix,替代Arch和Manjaro成为了使用的主力发行版。

Artix介绍:

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/

安装详解:

It is possible to use runit iso to install OpenRC-based system, and vice-versa.

使用不同版本iso可以相互安装没有影响。

准备磁盘

  • 使用fdisk进行硬盘分区 (这里使用/dev/sda)
 fdisk /dev/sda
  • 格式化分区(使用mkfs)
 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系统 (目前 openrcrunit 可用),base-devel 选装。

 basestrap /mnt base base-devel openrc
  • 使用 fstabgen 生成 /etc/fstab
 fstabgen -L /mnt >>/mnt/etc/fstab

-U for UUIDs

-L for partition labels:

  • chroot 进入新安装的Artix系统
 artools-chroot /mnt

配置base系统

  • 安装启动项:grubos-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
  • 设置root密码
 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

Artix : Arch拥抱OpenRC 使用笔记的更多相关文章

  1. 放到u-boot/arch/arm/inlcude下面解压A20固件库制作笔记

    运行 build_dragonboard.sh,完成一次编译,首次编译需要消耗 20 分钟以上的时间.这里包括编译bootloader.kernel.rootfs. 修改 Linux 内核配置$ cd ...

  2. 【笔记】virtualbox+arch+kde5安装流水账

    正常安装就是RTFD就行了,不行辅助这几个链接也行: 我先把整个脚本[1]放这里: loadkeys us parted mkfs.ext4 /dev/sda1mkfs.ext4 /dev/sda3 ...

  3. arch 安装笔记

    arch- 第一次装archLinux时,照着别人的安装教程来安装,由于不懂有些命令的意思,装了好几次才成功,这次趁着热乎,把安装的步骤写下来,为自己踩踩坑(桌面是xfce,下面也有换桌面的方法,我第 ...

  4. MEF核心笔记(6)让 MEF 拥抱 AOP

    场景: 最近推荐同事在项目中使用起了 MEF,用其构建一个插件式的多人开发框架,因为该框架不是让我去设计了,所以对于 MEF 和 IOC 等概念不是很了解的同事,便会出现各种问题.接入 AOP 便是其 ...

  5. Oracle大数据解决方案》学习笔记5——Oracle大数据机的配置、部署架构和监控-1(BDA Config, Deployment Arch, and Monitoring)

    原创预见未来to50 发布于2018-12-05 16:18:48 阅读数 146  收藏 展开 这章的内容很多,有的学了. 1. Oracle大数据机——灵活和可扩展的架构 2. Hadoop集群的 ...

  6. Artix Linux作业系统的使用~

    Artix(阿蒂克斯)Linux 与Gentoo(贱兔) Linux真是夫唱妇随.由于Artix(阿蒂克斯)逃离Systemd,投入到了openrc温暖的怀抱,从而使得每安装一个软体,你还得额外为其安 ...

  7. 拥抱.NET Core,如何开发跨平台的应用并部署至Ubuntu运行

    之前写了一篇博文宣布Rabbit Rpc跨平台了"拥抱.NET Core,跨平台的轻量级RPC:Rabbit.Rpc",在过程中尝试了如何编写支持跨平台的类库与应用程序,也尝试了在 ...

  8. archlinux安裝手记(Win10+Arch、GPT+UEFI、lvm)

    准备工具和设置制作启动盘连接网络硬盘分区规划分区LVM方案创建文件系统分区挂载激活lvm2钩子基础安装和配置配置镜像源基础系统安装fstab进入系统initramfs引导程序网络搭建使用环境用户管理用 ...

  9. Linux学习笔记1_用户和权限

    自从我大微软终于放下身段,决定给开源社区一个迟来的拥抱,追随多年的拥趸们像是突然得到了女神的垂青,各种茫然失措.痛哭流涕.欢欣鼓舞,纷纷唱了起来:“等了好久终于等到今天,梦了好久终于把梦实现……”唱完 ...

随机推荐

  1. JQuery easyUi datagrid 中 自定义editor作为列表操作按钮列

    转自   http://blog.csdn.net/tianlincao/article/details/7494467 前言 JQuery easyUi datagrid 中 使用datagrid生 ...

  2. hdu3366 Count the string

    考虑dp[i]代表前缀s[1...i]出现的次数,必定有dp[nxt[i]] += dp[i] 倒着推就是了 #include <iostream> #include <cstrin ...

  3. Win 10激活

    Win10专业版激活(亲测有效) 来源:http://jingyan.baidu.com/article/295430f1ce2e880c7e0050ff.html 1.首先,我们先查看一下Win10 ...

  4. PyInstaller打包python脚本

    用python写的工具写好了,想打包然后发给测试同事使用,最后选择了PyInstaller,支持Windows.Linux.OS X,支持打包成一个文件夹或单个EXE文件.   我是直接在线安装的,在 ...

  5. Python-S9-Day128——算法基础Algorithm

    01 算法基本概念与递归: 02 二分查找与LOW B三人组 03 快速排序 04 归并排序 01 算法基本概念与递归: 1.1 算法概念 1.2 复习:递归 1.3 时间复杂度 1.4 空间复杂度 ...

  6. PostgreSQL 如何优化索引效率

    使用 gin() 创建全文索引后,虽然有走索引,但是当结果集很大时,查询效率还是很底下, SELECT keyword,avg_mon_search,competition,impressions,c ...

  7. CSU-2031 Barareh on Fire

    CSU-2031 Barareh on Fire Description The Barareh village is on fire due to the attack of the virtual ...

  8. 深入学习之mysql(四)聚合函数

    聚合函数:COUNT统计记录的条数.SUM求和函数.AVG求平均值.MAX求最大值.MIN求最小值   一.COUNT练习: 1.统计学校一共有多少个学生: mysql> SELECT COUN ...

  9. Map 的两种遍历方法详细说明

    //方法一 Set<String> set = map.keySet(); for (String s:set) { System.out.println(s+","+ ...

  10. BZOJ 1051:[HAOI2006]受欢迎的牛(强连通分量)

    受欢迎的牛Description每一头牛的愿望就是变成一头最受欢迎的牛.现在有N头牛,给你M对整数(A,B),表示牛A认为牛B受欢迎. 这种关系是具有传递性的,如果A认为B受欢迎,B认为C受欢迎,那么 ...