-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic-install.sh
50 lines (42 loc) · 1.88 KB
/
basic-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# This script is based on Ermanno from EF - Linux Made Simple
# Check out this repo here: https://gitlab.com/eflinux/arch-basic
# Check out the channel here: https://www.youtube.com/channel/UCX_WM2O-X96URC5n66G-hvw
# Basic configuration
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc
sed -i '177s/.//' /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" >> /etc/locale.conf
echo "arch" >> /etc/hostname
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
echo "127.0.1.1 arch.localdomain arch" >> /etc/hosts
echo root:password | chpasswd
# Install basic packages
pacman -S acpi acpid acpi_call alacritty alsa-utils avahi \
base-devel bash-completion bluez bluez-utils bolt bridge-utils \
cups dialog ddcutil ddcci-driver-linux-dkms dnsmasq dnsutils dosfstools efibootmgr flatpak fwupd \
grub grub-btrfs gvfs gvfs-smb hplip inetutils ipset iptables-nft linux-headers mako man-db mtools \
networkmanager network-manager-applet nfs-utils noto-color-emoji-fontconfig noto-fonts-emoji nss-mdns ntfs-3g \
openbsd-netcat openssh pipewire pipewire-alsa pipewire-jack pipewire-pulse pipewire-v4l2 \
ranger reflector rsync terminus-font tlp ttf-victor-mono ttf-font-awesome v4l2-utils wl-clipboard wpa_supplicant xdg-user-dirs xdg-utils xf86-video-nouveau
# Configure grub
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
# Enable services
systemctl enable NetworkManager
systemctl enable bluetooth
systemctl enable cups.service
systemctl enable sshd
systemctl enable avahi-daemon
systemctl enable tlp
systemctl enable reflector.timer
systemctl enable fstrim.timer
systemctl enable acpid
# Configure user
useradd -m david
echo david:password | chpasswd
echo "david ALL=(ALL) ALL" >> /etc/sudoers.d/david
usermod -aG wheel david
printf "\e[1;32mBasic install complete!.\e[0m"