轻量桌面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. loj2063 「HAOI2016」字符合并

    ref #include <iostream> #include <cstring> #include <cstdio> using namespace std; ...

  2. 矩阵儿快速幂 - POJ 3233 矩阵力量系列

    不要管上面的标题的bug 那是幂的意思,不是力量... POJ 3233 Matrix Power Series 描述 Given a n × n matrix A and a positive in ...

  3. Careercup - Microsoft面试题 - 5917873302142976

    2014-05-12 06:56 题目链接 原题: A link list contains following elements struct node{ int data; node* next; ...

  4. Couchbase I

    Couchbase第一印象(架构特性) 面向文档 保存的字节流总有一个 DOCUMENT ID(Object_ID) 高并发性,高灵活性,高拓展性,容错性好 面向文档的集群存储系统 每个文档用一个唯一 ...

  5. linux环境搭建系列之tomcat安装步骤

    前提: Linux centOS 64位 JDK 1.7 安装包从官网上下载 安装Tomcat之前要先安装JDK. 我的JDK是1.7版本的,所以Tomcat版本也选了7的 1.新建目录tomcat ...

  6. jquery使用ajax传内容到asp.net乱码解决【转】

    转自:http://www.cnblogs.com/qiantuwuliang/archive/2009/08/02/1537160.html#undefined Jquery强大的功能越来越收到广大 ...

  7. [oldboy-django][2深入django]班级管理(Form)--添加

    1.需求: 添加班级,当有某个输入框数据格式不对时,会保留所有输入框的上次输入数据, 同时给出错误信息 2.视图 def add_class(request): # 提交数据都要用form来实现,因为 ...

  8. Spring框架的AOP

    Spring学习笔记(四) 本文目录 1 AOP的介绍 2 Spring的AspectJ实现AOP(annotation) 3 Spring的AspectJ实现AOP (XML) Spring文档ht ...

  9. 浅谈JavaScript中的函数问题

    前面的话:JavaScript可运行在所有主要平台的主流浏览器上,也可运行在每一个主流操作系统的服务器端上.所以呢,要想成为一名优秀的全栈工程师,必须懂得JavaScript语言.这是我整理的JS的部 ...

  10. table中填写数据并批量增加

    <table class = "table jtable table-bordered table-striped hide" id = "table_1" ...