aboutsummarylogtreecommitdiffstats
path: root/test_setup.sh
blob: 36f1f274b085d15d202901beb51b5f256ed09ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -e
set -x

# Make sure system is up to date
pacman --noconfirm -Sy
pacman --noconfirm -S archlinux-keyring
pacman --noconfirm -Su
# Install compilers and stuff
pacman --noconfirm -S base-devel
pacman --noconfirm -S nano
# Add build user
useradd -U -G wheel -m user
# Permissions
chown user:user -R /netatop-dkms
sed -i 's|# %wheel ALL=(ALL) NOPASSWD: ALL|%wheel ALL=(ALL) NOPASSWD: ALL|g' /etc/sudoers
# Switch to build user
#su - user