setfont sun12x22
iwctl
timedatectl set-ntp true
mount /dev/nvme0n1p7 /mnt
mount /dev/nvme0n1p6 /mnt/boot
# move italy server ontop of /etc/pacman.d/mirrorlist
pacstrap /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
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
| [Unit] | |
| Description=Pacman mirrorlist update | |
| Requires=network-online.target | |
| After=network-online.target | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/reflector --protocol https --country 'United States' --country 'Canada' --age 2 --sort rate --save /etc/pacman.d/mirrorlist | |
| [Install] |
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
| ## | |
| # Bash 4+ required | |
| # FROM, | |
| # 1. http://tldp.org/LDP/abs/html/sample-bashrc.html | |
| # 2. git://github.com/chenkaie/DotFiles.git | |
| ## | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; |
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
| #!/bin/sh | |
| # Description: Script sorts pacman mirrors for Arch Linux as per ping received. | |
| # Author: HelixW <shreyas.2000@hotmail.com> | |
| # Check for sudo | |
| if ! [ $(id -u) = 0 ]; then | |
| echo "$(tput setaf 1)Root priviledge required; use sudo." | |
| exit 1 | |
| fi |
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
| ### INSTALLATION ### | |
| # sda = main drive (root, home, swap) | |
| # sdc = usb drive (boot) | |
| 1. Create partitions: | |
| # fdisk /dev/sda | |
| ((d -> )n -> [Enter] -> [Enter] -> +600G -> w) | |
| # fdisk /dev/sdc | |
| (make it gpt + EFI system type) |
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
| #!/bin/bash | |
| echo "Updating packages (official repository)..." | |
| pacman -Suy --noconfirm | |
| echo "Installing make packages..." | |
| pacman -S --noconfirm \ | |
| git \ | |
| binutils \ | |
| make \ |
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
| #!/bin/sh | |
| ############################################################################## | |
| # ARCH LINUX INSTALL SCRIPT: | |
| # btrfs, lvm, luks, hibernate, trim | |
| # | |
| # PARTITION LAYOUT: | |
| # /dev/<disk>1 = grub boot partition | |
| # /dev/<disk>2 = luks encrypted root | |
| # | |
| # ROOT LAYOUT: |
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/bash | |
| HOSTNAME="juust" | |
| SERVER="http:/10.42.0.1" | |
| echo "Stupid Arch cluster installer" | |
| umount -R /mnt | |
| echo "Partition disk" |
Boot from USB Arch Linux drive
NewerOlder