aboutsummaryrefslogtreecommitdiff
path: root/parabola-openrc-install
blob: b9d0567e638a094dc231608146d37a4ea0a4f13b (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
#!/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

#pacman
vim /etc/pacman.conf
vim /etc/pacman.d/mirrorlist

#Update keys
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

#Set time if necessary
date MMDDhhmmYYYY.ss

#Install system
pacstrap /mnt base elogind
pacstrap /mnt base-devel syslog-ng #don't accept systemd
pacstrap /mnt linux-libre linux-libre-lts linux-libre-fireware
pacstrap /mnt parabola-base
pacstrap /mnt networkmanager
pacstrap /mnt grub
#pacstrap /mnt openrc-init eudev
#pacstrap /mnt openrc-base

#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

#Set hostname
echo "hostname=\"myhostname\"" > /etc/conf.d/hostname

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

rc-update add NetworkManager default

#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
echo > /etc/init.d/powertop << EOF
#!/sbin/openrc-run
name="PowerTop"
description="Fix your buzzing problem..."

start () {
	/usr/bin/powertop --quiet --auto-tune > /dev/null
}
#No need for stop() since powertop isn't a deamon
EOF

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

#NTP
pacman -S ntp
rc-service ntp-client start
hwclock --systohc