-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathu2.sh
44 lines (30 loc) · 1.36 KB
/
u2.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
#!/bin/bash
# для UEFI Intel Nvidia
ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime
hwclock --systohc
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
echo "ru_RU.UTF-8 UTF-8" >> /etc/locale.gen
echo "LANG=ru_RU.UTF-8" >> /etc/locale.conf
locale-gen
echo "KEYMAP=ru" >> /etc/vconsole.conf
echo "FONT=cyr-sun16" >> /etc/vconsole.conf
echo "Alex-PC" >> /etc/hostname
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
echo "127.0.1.1 Alex-PC" >> /etc/hosts
passwd
useradd -mG realtime,wheel liberty
passwd liberty
systemctl enable NetworkManager sddm
systemctl mask NetworkManager-wait-online
bootctl install
echo "default linux-zen.conf" > /boot/loader/loader.conf
echo "timeout 0" >> /boot/loader/loader.conf
echo "console-mode auto" >> /boot/loader/loader.conf
echo "editor no" >> /boot/loader/loader.conf
echo "title linux-zen" >> /boot/loader/entries/linux-zen.conf
echo "linux /vmlinuz-linux-zen" >> /boot/loader/entries/linux-zen.conf
echo "initrd /intel-ucode.img" >> /boot/loader/entries/linux-zen.conf
echo "initrd /initramfs-linux-zen.img" >> /boot/loader/entries/linux-zen.conf
echo 'options root="LABEL=arch_os" rw rootflags=subvol=@ nowatchdog loglevel=6 rootfstype=btrfs nvidia.NVreg_EnablePCIeGen3=1 nvidia.NVreg_UsePageAttributeTable=1 nvidia-drm.modeset=1' >> /boot/loader/entries/linux-zen.conf
# Liberty − 2023.06.28 23:08