Last active
March 20, 2025 10:55
-
-
Save m4s0/93cba74ae6ac8af1d8b39db6db28cace to your computer and use it in GitHub Desktop.
arch_install_scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
loadkeys it | |
timedatectl set-ntp true | |
mkfs.ext4 /dev/nvme0n1p2 | |
mkfs.ext4 /dev/nvme0n1p4 | |
mkfs.ext4 /dev/nvme0n1p5 | |
mkswap /dev/nvme0n1p9 | |
mount /dev/nvme0n1p2 /mnt | |
mount --mkdir /dev/nvme0n1p1 /mnt/boot | |
mount --mkdir /dev/nvme0n1p3 /mnt/home | |
mount --mkdir /dev/nvme0n1p4 /mnt/tmp | |
mount --mkdir /dev/nvme0n1p5 /mnt/var | |
mount --mkdir /dev/nvme0n1p7 /mnt/code | |
mount --mkdir /dev/nvme0n1p8 /mnt/data | |
swapon /dev/nvme0n1p9 | |
# run this in case of PGP errors | |
#pacman -S archlinux-keyring | |
#pacman-key --init | |
#pacman-key --populate archlinux | |
pacstrap -K /mnt base base-devel linux linux-firmware gnome gnome-extra gnome-tweaks gdm networkmanager wget nano | |
genfstab -U /mnt >> /mnt/etc/fstab | |
arch-chroot /mnt | |
umount -R /mnt | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ln -sf /usr/share/zoneinfo/Europe/Rome /etc/localtime | |
hwclock --systohc | |
nano /etc/locale.gen | |
locale-gen | |
#localectl list-keymaps | |
echo arch > /etc/hostname | |
echo KEYMAP=it >> /etc/vconsole.conf | |
echo FONT=Lat2-Terminus16 >> /etc/vconsole.conf | |
echo FONT_MAP=8859-1 >> /etc/vconsole.conf | |
echo LANG=en_GB.UTF-8 >> /etc/locale.conf | |
passwd | |
useradd -m -g users -G wheel,storage,power -s /bin/bash m4s0 | |
passwd m4s0 | |
pacman -Syu | |
pacman -S vi vim | |
visudo | |
pacman -S grub os-prober efibootmgr | |
pacman -S arch-install-scripts | |
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB | |
grub-mkconfig -o /boot/grub/grub.cfg | |
systemctl enable gdm | |
systemctl enable NetworkManager | |
pacman -S git | |
pacman -S guake | |
pacman -S archlinux-keyring |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#pacman -S archlinux-keyring && pacman -Syu | |
nano /etc/pacman.conf | |
sudo pacman -Syu | |
git clone https://aur.archlinux.org/yay.git | |
cd yay | |
makepkg -si | |
yay -Syu | |
yay -S package-query | |
#git clone https://aur.archlinux.org/package-query.git | |
#cd package-query | |
#makepkg -si | |
#yay -Syu | |
#yay -S --noconfirm vi vim | |
#visudo | |
# Gnome Power Manager | |
yay -S gnome-power-manager | |
yay -S power-profiles-daemon | |
sudo systemctl enable power-profiles-daemon.service | |
# Miscellaneous | |
yay -S --noconfirm networkmanager-openvpn | |
yay -S --noconfirm npm | |
yay -S --noconfirm nvm | |
yay -S --noconfirm tig | |
yay -S --noconfirm google-chrome | |
#yay -S --noconfirm gnome-shell-extensions | |
#yay -S --noconfirm chrome-gnome-shell | |
yay -S --noconfirm guake | |
yay -S --noconfirm redshift | |
yay -S --noconfirm pulseaudio | |
yay -S --noconfirm pavucontrol | |
yay -S --noconfirm openssh | |
yay -S --noconfirm jetbrains-toolbox | |
yay -S --noconfirm authy | |
yay -S --noconfirm slack-desktop | |
yay -S --noconfirm skypeforlinux-stable-bin | |
yay -S --noconfirm variety | |
yay -S --noconfirm ookla-speedtest-bin | |
yay -S --noconfirm bluez bluez-util | |
sudo systemctl start bluetooth.service | |
sudo systemctl enable bluetooth.service | |
yay -S --noconfirm zoom | |
yay -S --noconfirm spotify | |
yay -S --noconfirm vlc | |
yay -S --noconfirm firefox-it | |
yay -S --noconfirm firefox-i18n-it | |
# Reflector | |
#yay -S --noconfirm sudo git reflector | |
yay -S --noconfirm reflector | |
yay -S rsync | |
reflector --verbose --country 'Italy' --latest 5 --sort rate --save /etc/pacman.d/mirrorlist | |
# Docker | |
yay -S --noconfirm docker docker-compose | |
sudo usermod -aG docker m4s0 | |
sudo groupadd docker | |
sudo systemctl enable docker.service | |
sudo systemctl restart docker.service | |
# zsh | |
yay -S --noconfirm zsh | |
sudo chsh -s $(which zsh) | |
yay -S --noconfirm oh-my-zsh-git | |
yay -S --noconfirm zsh-syntax-highlighting zsh-autosuggestions zsh-z | |
yay -S --noconfirm ttf-meslo-nerd-font-powerlevel10k | |
sudo ln -s /usr/share/zsh/plugins/zsh-syntax-highlighting /usr/share/oh-my-zsh/custom/plugins/ | |
sudo ln -s /usr/share/zsh/plugins/zsh-autosuggestions /usr/share/oh-my-zsh/custom/plugins/ | |
sudo ln -s /usr/share/zsh/plugins/zsh-z /usr/share/oh-my-zsh/custom/plugins/ | |
yay -S --noconfirm zsh-theme-powerlevel10k-git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment