Added almost everything
This commit is contained in:
parent
fca3b93dd5
commit
03a9749b46
15 changed files with 135 additions and 0 deletions
20
1-initial/config_changes.sh
Executable file
20
1-initial/config_changes.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
pacman_vars() {
|
||||
#Activate and change number of parallel downloads to 200
|
||||
sed -i "s/^#ParallelDownloads =.*/ParallelDownloads = 200/" /etc/pacman.conf
|
||||
#Enable color
|
||||
sed -i "s/^#Color/Color/" /etc/pacman.conf
|
||||
#Enable multilib repo
|
||||
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
|
||||
}
|
||||
|
||||
init() {
|
||||
pacman -Syu --noconfirm
|
||||
echo 'Installing reflector'
|
||||
sudo pacman -S reflector --noconfirm
|
||||
echo 'Generating mirrorlist...'
|
||||
reflector -c pt,es,fr,uk --sort rate | tee /etc/pacman.d/mirrorlist
|
||||
pacman -S sed
|
||||
echo "Performing config changes to pacman"
|
||||
pacman_vars
|
||||
}
|
||||
init
|
21
1-initial/create_user.sh
Executable file
21
1-initial/create_user.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
create_user(){
|
||||
useradd -m afonso
|
||||
echo 'Insert password for user afonso'
|
||||
passwd afonso
|
||||
}
|
||||
|
||||
enable_wheel_group(){
|
||||
sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
|
||||
}
|
||||
|
||||
add_user_to_wheel() {
|
||||
usermod -aG wheel afonso
|
||||
}
|
||||
|
||||
init(){
|
||||
create_user
|
||||
enable_wheel_group
|
||||
add_user_to_wheel
|
||||
}
|
||||
|
||||
init
|
Loading…
Add table
Add a link
Reference in a new issue