GithubHelp home page GithubHelp logo

arch-linux's Introduction

tty字体设置

setfont ter-132n #暂时设置

/etc/vconsole.confFONT变量永久性设置字体

..
FONT=ter-132n

kmscon(可稍后)

systemctl disable [email protected]
systemctl enable [email protected]
# Ctrl+Alt+Fx 切换 tty

安装以下字体:

 pacman -S ttf-jetbrains-mono wqy-microhei terminus-font  ttf-dejavu

添加以下行到/etc/kmscon/kmscon.conf

font-name=JeiBrain Mono, WenQuanYi Micro Hei Mono
font-dpi=165 # 显示优于 font-size 设置
palette=solarized # 该配色较舒适

联网

iwctl
device list
station wlan0 scan
station wlan0 get-networks
station wlan0 connect <要连接的WiFi>

更新系统时间

timedatectl set-ntp true

分区

lsblk #查看分区
cfdisk #创建分区
mkfs.ext4 /dev/root_partition(根分区)#格式化分区
mount /dev/root_partition(根分区) /mnt #挂载根分区
mkdir /mnt/boot #创建启动分区
mount /dev/EFI分区 /mnt/boot #再挂载(lsblk查看windows的EFI分区号)

换源

nano /etc/pacman.d/mirrorlist

安装

pacstrap /mnt base linux linux-firmware # 基本安装
genfstab -U /mnt >> /mnt/etc/fstab # 生成fstab文件
cat /mnt/etc/fstab # 检查一下

配置系统

arch-chroot /mnt # Change root 到新安装的系统
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime # 设置时区
hwclock --systohc # 生成 /etc/adjtime

本地化

编辑 /etc/locale.gen,然后取消掉 en_US.UTF-8 UTF-8 和其他需要的区域设置前的注释,接着:

locale-gen

然后创建/etc/locale.conf文件,并编辑设定 LANG 变量:

LANG=en_US.UTF-8

网络配置

pacman -S networkmanager
systemctl enable NetworkManager.service
# nmtui

设置 Root 密码

passwd

Grub

pacman -S grub efibootmgr #安装
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB #安装到
grub-mkconfig -o /boot/grub/grub.cfg #生成配置文件

重启

exit #退出chroot环境
umount -R /mnt #卸载被挂载分区
reboot

用户管理

useradd -m -G wheel ageha
passwd ageha
EDITOR=nano visudo #删除含 %wheel 行注释

查找字体

fc-list

查看流量

ip -s -h link

arch-linux's People

Contributors

ageha0123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.