Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # USB Boot
- loadkeys fr-pc
- wifi-menu
- timedatectl
- timedatectl set-ntp true
- cfdisk /dev/sda
- # sda1 -> 100M Efi System (put here by windows)
- # sda4 -> 16Go linux-swap
- # sda5 -> xxGo linux
- mkswap /dev/sda4
- mkfs.ext4 /dev/sda5
- mount /dev/sda5 /mnt
- swapon /dev/sda4
- pacstrap -i /mnt base base-devel linux linux-firmware nano dialog curl wget git go
- genfstab -U -p /mnt >> /mnt/etc/fstab
- arch-chroot /mnt
- # Chroot
- #echo NomDeLaMachine > /etc/hostname
- #echo '127.0.1.1 NomDeLaMachine.localdomain NomDeLaMachine' >> /etc/hosts
- ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
- echo LANG="en_US.UTF-8" > /etc/locale.conf
- export LANG=en_US.UTF-8
- echo KEYMAP=fr > /etc/vconsole.conf
- nano /etc/locale.gen # Uncomment en_US/fr_FR
- locale-gen
- hwclock --systohc --utc
- pacman -S networkmanager
- systemctl enable NetworkManager
- mkinitcpio -p linux
- passwd
- pacman -S grub efibootmgr os-prober
- mkdir /boot/efi
- mount /dev/sda1 /boot/efi
- lsblk # to check if everything is mounted correctly
- grub-install #--target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi --recheck
- grub-mkconfig -o /boot/grub/grub.cfg
- #sudo mkdir /boot/efi/EFI/BOOT
- #sudo cp /boot/efi/EFI/GRUB/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI
- #sudo nano /boot/efi/startup.nsh --> Add: bcfg boot add 1 fs0:\EFI\GRUB\grubx64.efi "My GRUB bootloader"
- exit
- umount -R /mnt
- reboot
- # After reboot
- wifi-menu
- useradd -m -g users -G wheel -s /bin/bash username
- passwd username
- EDITOR=nano visudo --> Uncomment # %wheel ALL=(ALL) ALL
- git clone https://aur.archlinux.org/yay.git .yay && cd .yay && makepkg -si
- yay -Syu pulseaudio pulseaudio-alsa xorg xorg-xinit xorg-server sddm plasma nvidia nvidia-settings nvidia-utils lib32-nvidia-utils
- sudo systemctl start sddm.service
- sudo systemctl enable sddm.service
- localectl set-x11-keymap fr
- # /etc/sddm.conf If you want to enforce Numlock to be enabled, set Numlock=on in the [General] section.
- sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- # zsh
- # Theme: https://github.com/caiogondim/bullet-train.zsh
- plugins=(git sudo vscode screen npm node man gradle gitignore catimg)
- setopt autocd autopushd
- autoload -U compinit; compinit
Add Comment
Please, Sign In to add comment