blog-contributions/opsec/Arch/skid9000_memento.sh

66 lines
1.3 KiB
Bash

#!/bin/bash
#Arch Install :
loadkeys fr
#ip a | grep inet --> dhcpcd
timedatectl set-ntp true
#Partitionnement (uefi) :
#[/boot] 512M vfat (uefi system)
#[/] le reste ext4 (Linux Root x86_64)
#mkfs.truc --> /dev/device
#mount -> /mnt
pacstrap /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
#(ATTENTION AUX UUID et PARTUUID --> blkid)
#Pour extract un truc : blkid | awk '{print $?}' | tr -d '"'
#Exemple : https://puush.tuto-craft.com/1591199923-MHvA42QvSt.png
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc
echo 'fr_FR.UTF-8 UTF-8' > /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
echo 'KEYMAP=fr' > /etc/vconsole.conf
echo 'nowhere' > /etc/hostname
echo "127.0.0.1 localhost
::1 localhost" > /etc/hosts
mkinitcpio -P
passwd
useradd nothing
mkdir /home/nothing
cp /etc/skel/.* /home/nothing/
chown -R nothing: /home/nothing
passwd nothing
pacman -S sudo
usermod -aG wheel nothing
pacman -S dhcpcd
systemctl enable dhcpcd
pacman -S refind
refind-install
Check /boot/refind_linux.conf : https://puush.tuto-craft.com/1589786074-QHD8Lw5Men.png
(also check if /boot is really /boot and not / /boot lol)
exit
umount /mnt/boot /mnt
reboot
*login as somebody*
sudo pacman -S base-devel git i3 xorg-server xorg-xinit