Last active
November 22, 2024 23:02
-
-
Save m4s0/c13d9f73903bea8101fd31b5108aea44 to your computer and use it in GitHub Desktop.
archlinux installation script
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 | |
mkdir /mnt/home | |
mount /dev/nvme0n1p3 /mnt/home | |
mkdir /mnt/tmp | |
mount /dev/nvme0n1p4 /mnt/tmp | |
mkdir /mnt/var | |
mount /dev/nvme0n1p5 /mnt/var | |
mkdir /mnt/code | |
mount /dev/nvme0n1p7 /mnt/code | |
mkdir /mnt/data | |
mount /dev/nvme0n1p8 /mnt/data | |
swapon /dev/nvme0n1p9 | |
pacstrap /mnt base base-devel linux linux-firmware gnome gnome-extra gnome-tweak-tool gdm networkmanager wget nano | |
arch-chroot /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 | |
systemctl enable gdm | |
systemctl enable NetworkManager | |
systemctl restart NetworkManager | |
ln -sf /usr/share/zoneinfo/Europe/Rome /etc/localtime | |
hwclock --systohc --utc | |
nano /etc/locale.gen | |
locale-gen | |
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 -S vi vim | |
visudo | |
pacman -S archlinux-keyring | |
#pacman-key --refresh-keys | |
pacman -Syu | |
pacman -S grub os-prober efibootmgr | |
pacman -S arch-install-scripts | |
pacman -S git | |
pacman -S guake | |
mount /dev/nvme0n1p1 /boot | |
genfstab -U / > /etc/fstab | |
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB | |
grub-mkconfig -o /boot/grub/grub.cfg | |
umount -R /boot |
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 | |
git clone https://aur.archlinux.org/package-query.git | |
cd package-query | |
makepkg -si | |
git clone https://aur.archlinux.org/yay.git | |
cd yay | |
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