-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.sh
executable file
·59 lines (46 loc) · 1.16 KB
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
# https://wiki.archlinux.org/index.php/Installation_guide
# KEYBOARD
loadkeys /usr/share/kbd/keymaps/i386/qwerty/br-abnt2.map.gz
# DATE/TIME
timedatectl set-ntp true
# PARTITION
umount /mnt/boot
umount /mnt/home
umount /mnt
swapoff -a
mkfs.vfat -F32 /dev/sda1
mkfs.ext4 /dev/sda2
mkswap /dev/sda3
mkfs.ext4 /dev/sda4
swapon -a
mount /dev/sda2 /mnt
mkdir /mnt/home
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
mount /dev/sda4 /mnt/home
# BACKUP
cp ~/script.sh /mnt/home/script.sh
# ARCHLINUX
pacstrap /mnt base base-devel intel-ucode nvidia
# FSTAB
genfstab -U /mnt >> /mnt/etc/fstab
# LOCALE
ln -sf /usr/share/zoneinfo/America/Fortaleza /mnt/etc/localtime
sed -i 's/#en_US.UTF-8/en_US.UTF-8/g' /mnt/etc/locale.gen
sed -i 's/#pt_BR.UTF-8/pt_BR.UTF-8/g' /mnt/etc/locale.gen
echo 'LANG=en_US.UTF-8' > /mnt/etc/locale.conf
echo 'LANG=pt_BR.UTF-8' >> /mnt/etc/locale.conf
echo 'KEYMAP="br-abnt2.map.gz"' > /mnt/etc/vconsole.conf
# HOSTNAME
echo 'leandro-pc' > /mnt/etc/hostname
# CHANGE ROOT INTO THE NEW SYSTEM
# arch-chroot /mnt
# GENERATE /etc/adjtime
# hwclock --systohc
# GENERATE LOCALE
# locale-gen
# SET THE ROOT PASSWORD
# passwd
# CONFIGURE BOOT
# bootctl install