Last active
December 2, 2021 05:12
-
-
Save zhangxu/a22469f45186eeff4f559ec12b22f761 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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