-
Notifications
You must be signed in to change notification settings - Fork 4
/
post_install.sh
executable file
·58 lines (42 loc) · 1.63 KB
/
post_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
51
52
53
54
55
56
57
#!/usr/bin/bash
# Defining the shell path and global variables
SHELL_PATH=$(readlink -f $0 | xargs dirname)
source ${SHELL_PATH}/bin/global.sh
info "Enabling/Starting Network Manager with 30sec WAIT"
sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager
sleep 10
info "Enabling Wifi based on User Choice"
nmcli device wifi
info "Please select the Wifi to connect to you. Type the name"
read SSID
info "Please provide the password for ${SSID}"
read password
nmcli dev wifi connect ${SSID} password ${password}
sleep 10
info "Installing Reflector to find the best mirror list for downloading."
sudo pacman -Sy --noconfirm reflector
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
sudo reflector --verbose --latest 10 --sort rate --save /etc/pacman.d/mirrorlist
info "Enabling Network Manager"
sudo systemctl enable NetworkManager-dispatcher.service
sudo systemctl start NetworkManager-dispatcher.service
sleep 5
info "Installing pikaur"
export PACK=PIKAUR
sudo pacman --noconfirm -S cmake clang
mkdir /tmp/$PACK
git clone https://aur.archlinux.org/pikaur.git /tmp/$PACK
cd /tmp/$PACK
makepkg -fsri
info "Installing Missing Firmware and Update Linux Kernel"
pikaur --noconfirm -S wd719x-firmware aic94xx-firmware bcwc-pcie-git
sudo mkinitcpio -p linux
info "Installing Utilities"
sudo pacman --noconfirm -S zsh man pacman-contrib zsh-syntax-highlighting htop nnn vlc youtube-dl lm_sensors unzip ttf-liberation imv bat fzf jq
info "Customizing Grub"
sudo pacman --noconfirm -S grub-customizer
info "Applying custom settings."
sh ${SHELL_PATH}/power.sh
info "Applying custom settings."
sh ${SHELL_PATH}/settings.sh