random- collection of un-sorted bollocks |
git clone git://git.acid.vegas/random.git |
Log | Files | Refs | Archive |
x86 (1528B)
1 #!/bin/sh 2 # arch linxu x86 helper - developed by acidvegas (https://git.acid.vegas/archlinux) 3 4 MNT="sda" 5 DEV="wlan0" 6 7 lspci -v | grep -A1 -e VGA -e 3D 8 iwctl --passphrase PASSWORD station $DEV connect SSID 9 #fdisk # convert mbr to gpt 10 mkfs.ext4 /dev/${MNT}p2 11 #mkswap /dev/swap_partition 12 mkfs.fat -F 32 /dev/${MNT}p1 13 mount /dev/${MNT}p2 /mnt 14 mount --mkdir /dev/${MNT}p1 /mnt/boot 15 #swapon /dev/swap_partition 16 pacstrap -K /mnt base linux linux-firmware # Microcodes: amd-ucode intel-ucode 17 genfstab -U /mnt >> /mnt/etc/fstab 18 arch-chroot /mnt 19 20 ln -sf /usr/share/zoneinfo/Region/City /etc/localtime 21 hwclock --systohc 22 echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen 23 echo "LANG=en_US.UTF-8" > /etc/locale.conf 24 echo "wildwest" > /etc/hostname 25 passwd 26 bootctl install 27 systemctl enable systemd-boot-update.service 28 mkdir -p /etc/pacman.d/hooks 29 echo -e "[Trigger]\nType = Package\nOperation = Upgrade\nTarget = systemd\n\n[Action]\nDescription = Gracefully upgrading systemd-boot...\nWhen = PostTransaction\nExec = /usr/bin/systemctl restart systemd-boot-update.service" > /etc/pacman.d/hooks/95-systemd-boot.hook 30 echo -e "title Arch Linux\n\nlinux /vmlinuz-linux\ninitrd /intel-ucode.img\ninitrd /initramfs-linux.img\noptions root=\"/dev/mmcblk0p2\" rw" > /boot/loader/entries/arch.conf 31 echo -e "title Arch Linux (fallback initramfs)\n\nlinux /vmlinuz-linux\ninitrd /intel-ucode.img\ninitrd /initramfs-linux-fallback.img\noptions root=\"/dev/mmcblk0p2\" rw" > /boot/loader/entries/arch-fallback.conf 32 exit 33 34 umount -R /mnt