aboutsummaryrefslogtreecommitdiff
path: root/parabola-systemd-install
blob: 294c8b875a30f92a6b2904c1f401e84a6a7e4aa8 (plain) (blame)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#!/usr/bin/env bash
#grub> set root=(usb0)
#grub> linux /parabola/boot/x86_64/vmlinuz append parabolaisobasedir=parabola parabolaisolabel=PARA_202001
#grub> initrd /parabola/boot/x86_64/parabolaiso.img
#grub> boot
#
#AUTOMATIC ISOLINUX RECOGNISED

#Check internet
ping parabola.nu

vim /etc/pacman.conf #comment nonsystemd!
vim /etc/pacman.d/mirrorlist

pacman -Sy archlinux-keyring archlinuxarm-keyring parabola-keyring
pacman-key --refresh-keys

#Format hard drive
#Three partition needed: root home swap
fdisk -l
#wipefs --all /dev/sda
fdisk /dev/sda

#Format partitions
mkfs.ext4 /dev/sdaX
mkfs.ext4 /dev/sdaY

#Set swap
mkswap /dev/sdaZ
swapon /dev/sdaZ

#Mount partitions
mount /dev/sdaX /mnt
mkdir /mnt/home
mount /dev/sdaY /mnt/home

#Check time - important because of the timestamps on gpg keys
timedatectl set-ntp true
timedatectl status

#Set time if necessary
date MMDDhhmmYYYY.ss

#USE OPENRC ISO INSTEAD-----------------------------------------------------
#Very old iso :(
pacman -Sy archlinuxarm-keyring parabola-keyring
pacman-key --populate archlinux archlinux32 archlinuxarm parabola
pacman-key --refresh-keys
wget https://pkgbuild.com/~eschwartz/repo/x86_64-extracted/pacman-static
chmod +x pacman-static
./pacman-static -S libarchive
pacman -Sy archlinux-keyring
pacman-key --populate archlinux archlinux32 archlinuxarm parabola
pacman-key --refresh-keys
pacman -Sy archlinux32-keyring
pacman-key --populate archlinux archlinux32 archlinuxarm parabola
pacman-key --refresh-keys

#Doesn't do anything useful
pacman -U https://www.parabola.nu/packages/core/i686/archlinux32-keyring-transition/download/
#----------------------------------------------------------------------------

#Install system
#pacman unsubscribe from nonsystemd
pacstrap /mnt base base-devel
pacstrap /mnt linux-libre linux-libre-lts linux-libre-firmware
pacstrap /mnt networkmanager
pacstrap /mnt parabola-base
pacstrap /mnt grub

#Generate fstab file
genfstab -U /mnt >> /mnt/etc/fstab

#Chroot to newly build system
arch-chroot /mnt {/bin/bash}

#Set timezone
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock --systohc

#Generate locale
sed -i "s/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/" /etc/locale.gen
locale-gen

echo "LANG=en_US.UTF-8" > /etc/locale.conf

echo "KEYMAP=us" > /etc/vconsole.conf

#Set hostname
echo "myhostname" > /etc/hostname

#Network configuration
cat > /etc/hosts << EOF
127.0.0.1	localhost
::1		localhost
127.0.1.1	myhostname.localdomain	myhostname
EOF

systemctl enable NetworkManager

#YOU WILL NEED TO REMOVE LINUX KERNAL AND MKINITCPIO PRESETS AND THEN REINSTALL KERNAL - EMPTY MKINITCPIO PRESET
#Generate boot disk
mkinitcpio -p linux-libre-lts

#Install bootloader
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

#Set root password
passwd

#Set new user and give him root privileges
useradd -mg users -G wheel {-s /bin/bash} username
passwd username
visudo
	%wheel ALL=(ALL) ALL

#Exit chroot
exit

#Unmount partitions
umount -R /mnt

#Boot to new system
reboot

#--------------------------------------------------------------------------------
#buzzing
sudo su
pacman -S powertop

cat > /etc/systemd/system/powertop.service << EOF
[Unit]
Description=Powertop tunings

[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/bin/powertop --auto-tune
Environment="TERM=xterm"

[Install]
WantedBy=multi-user.target
EOF

systemctl enable --now powertop

nmtui [OR]
nmcli device wifi list
nmcli device wifi connect SSID password PASSWORD