上次更新:2023-10-17
Control + ALt + T
唤出 Crosh 终端。vsh termina
进入 Vsh Termina。lxc launch images:archlinux/current archlinux
lxc exec archlinux -- bash
passwd
设置 root 密码。echo "Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/\$repo/os/\$arch" | sudo tee /etc/pacman.d/mirrorlist
yes y | pacman -Syu base-devel git gtk3 openssh xdg-utils xkeyboard-config base-devel git curl make neovim wl-clipboard fish base-devel fakeroot pacman-contrib wayland xorg-xwayland devtools dhclient neofetch sudo
sudo useradd -G wheel -m demo
sudo passwd demo
demo
为默认用户名,请自行更换。
sudo sed -i 's/^# \(%wheel ALL=(ALL:ALL) ALL\)/\1/; s/^# \(%wheel ALL=(ALL:ALL) NOPASSWD: ALL\)/\1/' /etc/sudoers
exit
指令,退出 arch。lxc exec archlinux su - demo
cros-container-guest-tools-git
:git clone https://aur.archlinux.org/yay.git
cd yay
yes y | makepkg -si
yay -S cros-container-guest-tools-git
exit
chrome://flags
找到并开启 #crostini-multi-container
Flag。archlinux
,点击「创建」。ip -4 a show dev eth0
sudo dhcpcd eth0
sudo pacman -S dhclient
sudo systemctl disable systemd-networkd
sudo systemctl disable systemd-resolved
sudo unlink /etc/resolv.conf
sudo touch /etc/resolv.conf
sudo systemctl enable dhclient@eth0
sudo systemctl start dhclient@eth0
vsh termina
lxc stop archlinux
lxc stop penguin
lxc rename penguin debian
lxc rename arch penguin
lxc stop --force archlinux