-
Notifications
You must be signed in to change notification settings - Fork 31
ArchLinux
Fangrui Song edited this page Oct 19, 2024
·
6 revisions
sudo pacman -S base-devel cgdb cmake emacs-nativecomp expect git lua ninja rsync tmux zsh
(cd /usr/local/bin && sudo ln -s /usr/bin/nvim v && sudo ln -s ~/Stable/bin/lld ld)
git clone [email protected]:llvm/llvm-project.git ~/llvm
curl -s https://raw.githubusercontent.com/chromium/chromium/main/tools/clang/scripts/update.py | python - --output-dir=~/Stable
pip install --user recommonmark sphinx sphinx-automodapi
https://wiki.archlinux.org/title/installation_guide
pacman -S iwd # wireless
pacman -S xorg-server xorg-font-utils xorg-fonts-type1
systemctl enable systemd-networkd systemd-resolved
systemctl start systemd-networkd systemd-resolved
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
Boot loader: https://wiki.archlinux.org/title/Systemd-boot
After reboot from the disk.
sudo systemctl --now enable iwd
iwctl # station wlan0 get-networks; station wlan0 connect xxx
sudo systemctl enable bluetooth
systemctl --user --now enable pipewire pipewire-pulse wireplumber
yay -S system76-firmware system76-power
pacman -S wayland sway waybar
pacman -S imv grim mako slurp wl-clipboard wofi light
Change /etc/locale.conf
to use en_US.UTF-8
.
https://wiki.qemu.org/Documentation/9psetup
qemu-system-x86_64 -enable-kvm -m 4096 -smp 2 -bios /usr/share/ovmf/OVMF.fd -drive file=~/Images/archlinux-x86_64.qcow2,if=virtio -net nic,model=virtio -nic user,hostfwd=tcp::2222-:22 -fsdev local,id=Dev,path=$HOME/Dev,security_model=none -device virtio-9p-pci,fsdev=Dev,mount_tag=Dev
# guest
sudo mount -t 9p Dev /home/ray/Dev -o trans=virtio,msize=$[5*1024*1024]
sambda (lower performance)
qemu-system-x86_64 -enable-kvm -m 4096 -smp 2 -bios /usr/share/ovmf/OVMF.fd -drive file=~/Images/archlinux-x86_64.qcow2,if=virtio -net nic,model=virtio -nic user,id=nic0,hostfwd=tcp::2222-:22,smb=$HOME/Dev
# guest
sudo pacman -S samba
sudo mount -t cifs //10.0.2.4/qemu ~/Dev