Artix : Arch拥抱OpenRC 使用笔记
轻量桌面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系统 (目前 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:
- chroot 进入新安装的Artix系统
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
- 设置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 使用笔记的更多相关文章
- 放到u-boot/arch/arm/inlcude下面解压A20固件库制作笔记
运行 build_dragonboard.sh,完成一次编译,首次编译需要消耗 20 分钟以上的时间.这里包括编译bootloader.kernel.rootfs. 修改 Linux 内核配置$ cd ...
- 【笔记】virtualbox+arch+kde5安装流水账
正常安装就是RTFD就行了,不行辅助这几个链接也行: 我先把整个脚本[1]放这里: loadkeys us parted mkfs.ext4 /dev/sda1mkfs.ext4 /dev/sda3 ...
- arch 安装笔记
arch- 第一次装archLinux时,照着别人的安装教程来安装,由于不懂有些命令的意思,装了好几次才成功,这次趁着热乎,把安装的步骤写下来,为自己踩踩坑(桌面是xfce,下面也有换桌面的方法,我第 ...
- MEF核心笔记(6)让 MEF 拥抱 AOP
场景: 最近推荐同事在项目中使用起了 MEF,用其构建一个插件式的多人开发框架,因为该框架不是让我去设计了,所以对于 MEF 和 IOC 等概念不是很了解的同事,便会出现各种问题.接入 AOP 便是其 ...
- Oracle大数据解决方案》学习笔记5——Oracle大数据机的配置、部署架构和监控-1(BDA Config, Deployment Arch, and Monitoring)
原创预见未来to50 发布于2018-12-05 16:18:48 阅读数 146 收藏 展开 这章的内容很多,有的学了. 1. Oracle大数据机——灵活和可扩展的架构 2. Hadoop集群的 ...
- Artix Linux作业系统的使用~
Artix(阿蒂克斯)Linux 与Gentoo(贱兔) Linux真是夫唱妇随.由于Artix(阿蒂克斯)逃离Systemd,投入到了openrc温暖的怀抱,从而使得每安装一个软体,你还得额外为其安 ...
- 拥抱.NET Core,如何开发跨平台的应用并部署至Ubuntu运行
之前写了一篇博文宣布Rabbit Rpc跨平台了"拥抱.NET Core,跨平台的轻量级RPC:Rabbit.Rpc",在过程中尝试了如何编写支持跨平台的类库与应用程序,也尝试了在 ...
- archlinux安裝手记(Win10+Arch、GPT+UEFI、lvm)
准备工具和设置制作启动盘连接网络硬盘分区规划分区LVM方案创建文件系统分区挂载激活lvm2钩子基础安装和配置配置镜像源基础系统安装fstab进入系统initramfs引导程序网络搭建使用环境用户管理用 ...
- Linux学习笔记1_用户和权限
自从我大微软终于放下身段,决定给开源社区一个迟来的拥抱,追随多年的拥趸们像是突然得到了女神的垂青,各种茫然失措.痛哭流涕.欢欣鼓舞,纷纷唱了起来:“等了好久终于等到今天,梦了好久终于把梦实现……”唱完 ...
随机推荐
- 基础_String
String str1="hello"; String str2="hello"; String str3="hello"; String ...
- phpstorm将本地代码传递到远程服务器
由于对vim不太熟悉,效率比较低,作为过渡阶段,采用本地编写代码,然后上传到开发机上,进行调试 前提是服务器开启了ftp服务:http://www.cnblogs.com/redirect/p/693 ...
- Creating Hyperv Agent Installer
Creating Hyperv Agent Installer Skip to end of metadata Created by Anshul Gangwar, last modified ...
- leetcode 【 Sort Colors 】python 实现
题目: Given an array with n objects colored red, white or blue, sort them so that objects of the same ...
- IOS开发学习笔记024-UIButton和UIImageView的区别
一.UIButton和UIImageView的区别 1. UIImageView 默认只能显示一张图片(默认会填充整个ImageView) 设置方法:image/setImage: UIButton ...
- CentOS7安装Code::Blocks
在CentOS7上安装Codelocks的过程. 1.安装gcc,需要c和c++两部分,默认安装下,CentOS不安装编译器的,在终端输入以下命令即可yum install gccyum instal ...
- 零基础学习 Python 之字符串
初识字符串 维基百科对于字符串的定义式:字符串是由零个或者多个字符组成的有限串行.你之前学会敲的第一行 print 代码里的 "Hello World",就是一个字符串.字符串的本 ...
- Lua 语法要点
table 默认键值都是从1开始 table array = { "A", "B" } array2 = array array[] = "D&quo ...
- linux系统负载状态检查脚本
为了便于分析问题,编写了一个linux状态检查脚本,脚本可放置任意目录,脚本执行检测后会输出日志记录到当前目录下.直接执行脚本可用于一次检测,可通过日志进行分析.如果需要长时间监测,可执行-x参数,脚 ...
- 【bzoj2431】[HAOI2009]逆序对数列 dp
题目描述 对于一个数列{ai},如果有i<j且ai>aj,那么我们称ai与aj为一对逆序对数.若对于任意一个由1~n自然数组成的 数列,可以很容易求出有多少个逆序对数.那么逆序对数为k的这 ...