really shitty guide
This commit is contained in:
parent
b13d0a776a
commit
2474bea1db
|
@ -0,0 +1,139 @@
|
||||||
|
# Install guide for myself lol
|
||||||
|
|
||||||
|
## based on artix
|
||||||
|
I am not ready to make my own iso and fully own repos so we be using artix and aur as a base
|
||||||
|
|
||||||
|
## From Artix ISO
|
||||||
|
For now ive used runit which is a bit flawed as i heard so ill try and move to dinit or some other widely supported thing aslong as it aint systemd
|
||||||
|
Also this guide only for uefi systems for now
|
||||||
|
|
||||||
|
### Load us keyboard layout because thats what i use
|
||||||
|
loadkeys us
|
||||||
|
|
||||||
|
### Partition disk using fdisk
|
||||||
|
fdisk /dev/whatever
|
||||||
|
|
||||||
|
kernel doesnt support many filesystems so btrfs and fat for efi
|
||||||
|
make sure to label em correctly and stuff
|
||||||
|
also add big boy swap partition because i preferably want hibernation
|
||||||
|
|
||||||
|
### format partitions
|
||||||
|
|
||||||
|
#### data partition
|
||||||
|
|
||||||
|
mkfs.btrfs -L DATA /dev/whateverp2
|
||||||
|
|
||||||
|
#### efi
|
||||||
|
mkfs.fat -F 32 /dev/whateverp1
|
||||||
|
fatlabel /dev/whateverp1 ESP
|
||||||
|
|
||||||
|
#### get disk uuids
|
||||||
|
sudo blkid
|
||||||
|
|
||||||
|
#### mount stuff
|
||||||
|
|
||||||
|
swapon /dev/disk/by-uuid/swapuuid
|
||||||
|
mount /dev/disk/by-uuid/datauuid /mnt
|
||||||
|
mkdir /mnt/boot
|
||||||
|
mkdir /mnt/boot/efi
|
||||||
|
mount /dev/disk/by-uuid/datauuid
|
||||||
|
|
||||||
|
#### connect to internets
|
||||||
|
since most likely im stuck with using wifi just use iwctl, otherwise use you phone as usb modem or ethernet
|
||||||
|
ping init7.net
|
||||||
|
|
||||||
|
#### update systems rtc
|
||||||
|
rc-service ntpd start
|
||||||
|
or
|
||||||
|
sv up ntpd
|
||||||
|
or
|
||||||
|
s6-rc -u change ntpd
|
||||||
|
or
|
||||||
|
dinitctl start ntpd
|
||||||
|
|
||||||
|
#### base install
|
||||||
|
basestrap /mnt base base-devel openrc elogind-openrc
|
||||||
|
or
|
||||||
|
basestrap /mnt base base-devel runit elogind-runit
|
||||||
|
or
|
||||||
|
basestrap /mnt base base-devel s6-base elogind-s6
|
||||||
|
or
|
||||||
|
basestrap /mnt base base-devel dinit elogind-dinit
|
||||||
|
|
||||||
|
then because artix is autistic and goofy do this
|
||||||
|
basestrap -i /mnt base
|
||||||
|
|
||||||
|
#### install a preexisting kernel so we have one to finish the installation and rely on to not be broken like mine
|
||||||
|
basestrap /mnt linux-zen linux-zen-headers linux-firmware
|
||||||
|
|
||||||
|
#### copy existing fstabber to installation
|
||||||
|
|
||||||
|
fstabgen -U /mnt >> /mnt/etc/fstab
|
||||||
|
|
||||||
|
#### chroot into installtion
|
||||||
|
artix-chroot /mnt
|
||||||
|
|
||||||
|
#### install tmux so i have two screens to work with
|
||||||
|
pacman -S tmux
|
||||||
|
tmux new-session \; split-window -h \; attach
|
||||||
|
(switch by pressing ctrl+b and after that arrow keys)
|
||||||
|
|
||||||
|
#### set region
|
||||||
|
ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime
|
||||||
|
hwclock --systohc
|
||||||
|
date
|
||||||
|
|
||||||
|
#### localization
|
||||||
|
pacman -S nano
|
||||||
|
nano /etc/locale.gen
|
||||||
|
locale-gen
|
||||||
|
|
||||||
|
nano /etc/locale.conf
|
||||||
|
add this :
|
||||||
|
export LANG="en_US.UTF-8"
|
||||||
|
export LC_COLLATE="C"
|
||||||
|
export LC_ALL="C"
|
||||||
|
export LC_CTYPE=en_US.UTF-8
|
||||||
|
|
||||||
|
#### boot loader
|
||||||
|
for now grub even though id prefer to use elilo (will add later to guide)
|
||||||
|
|
||||||
|
pacman -S grub os-prober efibootmgr
|
||||||
|
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=schizOS
|
||||||
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
|
#### set root passwd
|
||||||
|
passwd
|
||||||
|
|
||||||
|
#### add user with sudo righters and stuff so i can use it as good desktop user
|
||||||
|
pacman -S sudo
|
||||||
|
EDITOR=nano visudo
|
||||||
|
make changes lol
|
||||||
|
useradd -m -g users -G wheel -s /bin/bash crt
|
||||||
|
add him to em all groups needed : power audio input video users avahi colord wheel
|
||||||
|
passwd crt
|
||||||
|
|
||||||
|
#### set hostname
|
||||||
|
nano /etc/hosts
|
||||||
|
127.0.0.1 localhost
|
||||||
|
::1 localhost
|
||||||
|
127.0.1.1 schizobook.ada schizoboot
|
||||||
|
|
||||||
|
nano etc/conf.d/hostname
|
||||||
|
|
||||||
|
#### netowrk stuff
|
||||||
|
|
||||||
|
pacman -S dhclient iwd networkmananger modemmanager
|
||||||
|
(add you service files stuff too : example; networkmanager-s6)
|
||||||
|
and enable ofcourse
|
||||||
|
rc-update add NetworkManager
|
||||||
|
or
|
||||||
|
ln -s /etc/runit/sv/NetworkManager /etc/runit/runsvdir/default
|
||||||
|
or
|
||||||
|
touch /etc/s6/adminsv/default/contents.d/NetworkManager
|
||||||
|
s6-db-reload
|
||||||
|
or
|
||||||
|
ln -s ../NetworkManager /etc/dinit.d/boot.d/
|
||||||
|
|
||||||
|
|
||||||
|
### done with base install
|
Loading…
Reference in New Issue