forked from JeremiahCheatham/archlinux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-archinstall.sh
42 lines (32 loc) · 1.19 KB
/
post-archinstall.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
#!/bin/bash
# let /etc/sudoers and wheel handle permission.
sudo sed -i 's/# %wheel ALL=(ALL:ALL) NOPASSWD/%wheel ALL=(ALL:ALL) NOPASSWD/' /etc/sudoers
sudo sh -c "rm /etc/sudoers.d/00_*"
# Enable ParallelDownloads.
sudo sed -i 's/#ParallelDownloads/ParallelDownloads/' /etc/pacman.conf
# Add pacman tools, btrfs tools and ntfs support.
sudo pacman -S pacman-contrib compsize ntfs-3g
# Enable Bluetooth.
sudo systemctl enable bluetooth
sudo systemctl start bluetooth
# Configure zram with lz4 compression and double ram size.
sudo sh -c "cat << EOF > /etc/systemd/zram-generator.conf
[zram0]
compression-algorithm = lz4
zram-size = ram * 2
EOF
"
sudo systemctl restart [email protected]
# Prevent pcspkr beeping
sudo rmmod pcspkr
echo "blacklist pcspkr" | sudo tee /etc/modprobe.d/nobeep.conf
# Let firefox use wayland when in a wayland session.
sudo sh -c "cat << EOF >> /etc/profile
# Enable Wayland for Firefox when needed.
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
export MOZ_ENABLE_WAYLAND=1
fi
EOF
"
# Install code, firefox, gcompris-qt, kde applications, krita and add vlc backend to phonon.
sudo pacman -S --needed code firefox gcompris-qt kde-applications krita phonon-qt5-vlc