Skip to content

Instantly share code, notes, and snippets.

@zhangxu
Last active December 2, 2021 05:12
Show Gist options
  • Save zhangxu/a22469f45186eeff4f559ec12b22f761 to your computer and use it in GitHub Desktop.
Save zhangxu/a22469f45186eeff4f559ec12b22f761 to your computer and use it in GitHub Desktop.
systemctl enable systemd-networkd.service
inetface=$(ip -o -br link |grep -E ^en | awk '{ print $1 }')
cat - << EOF > /etc/systemd/network/20-wired.network
[Match]
Name=${inetface}
[Network]
DHCP=yes
EOF
systemctl start systemd-networkd.service
sleep 15
systemctl enable systemd-resolved.service
systemctl start systemd-resolved.service
sleep 15
pacman -Sy sudo
useradd --create-home xuz
passwd xuz
usermod -a -G wheel xuz
EDITOR=nvim visudo
pacman -Sy bluez bluez-utils
systemctl enable bluetooth.service
systemctl start bluetooth.service
cat - << EOF >> /etc/bluetooth/main.conf
[Policy]
AutoEnable=true
EOF
pacman -Sy neovim git tmux base-devel extra/bc buildah podman extra/bash-completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment