Здесь различные конфиги и небольшая инструкция об установке Arch linux на i3+polybar+zsh
солянка из следующих стетай https://ctlos.github.io/wiki/btrfs/btrfs-part1/ https://youtu.be/D7_Xcx1sZq8 https://habr.com/ru/post/672502/ https://www.vojtech.net/posts/install-arch-dualboot #dualboot
29 cfdisk /dev/nvme0n1
30 clear
31 cryptsetup -y -v luksFormat /dev/nvme0n1p5
32 cryptsetup open /dev/nvme0n1p5
33 cryptsetup open /dev/nvme0n1p5 cryptdisk
34 ls /dev/mapper
35 mkfs.btrfs -f /dev/nvme0p5
36 mkfs.btrfs -f /dev/mapper/cryptdisk
37 mount /dev/mapper/cryptdisk /mnt
38 btrfs subvolume create /mnt/@
39 btrfs subvolume create /mnt/@home
40 umount -R /mnt
41 mount -o subvol=@,compress=zstd /dev/mapper/cryptdisk /mnt
42 mkdir /mnt/home
43 mount -o subvol=@home,compress=zstd /dev/mapper/cryptdisk /mnt/home
mkdir /mnt/boot
mount /dev/nvme0p1 /mnt/boot #монтируем загрузчик
pacstrap /mnt base base-devel linux linux-firmware nano dhcpcd net-tools grub linux-headers networkmanager network-manager-applet git ntp btrfs-progs
genfstab -pU /mnt >> /mnt/etc/fstab
bootctl --path=/boot install
Create file /boot/loader/entries/arch.conf
Файл в загрузчике
arch.conf
title Arch Linux Stable
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options cryptdevice=UUID=c6fef343-9918-42bb-b56f-05a54fe1497b:cryptdisk root=/dev/mapper/cryptdisk rootflags=subvol=@ rw
Устанвливаем пакеты. (до сборки ядра)
pacman -Syyuu && pacman -S python docker htop git wget lsof unzip p7zip openssh nitrogen nvidia nvidia-utils nvidia-settings xorg-server-devel opencl-nvidia sddm xorg-apps xorg-xinit i3-wm numlockx dmenu ranger rofi picom feh xorg-setxkbmap xorg-xrandr xclip alacritty pulseaudio pavucontrol bluez bluez-utils pulseaudio-bluetooth blueman noto-fonts ttf-ubuntu-font-family ttf-dejavu ttf-freefont ttf-liberation ttf-droid ttf-inconsolata ttf-roboto terminus-font ttf-font-awesome
Как добавить swap file в btrfs https://yamadharma.github.io/ru/post/2022/05/20/btrfs-swap-file/
http://dkhramov.dp.ua/Comp.InstallArchOnVitrualbox#.X7bBgc0zYuU
fdisk -l
или
cfdisk /dev/sda
Размечаем bootable 1G /dev/sda1
(для биоса) и dev/sda2
для оставшегося диска)
#форматируем
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
# монтируем
mount /dev/sda2 /mnt
mkdir /mnt/etc
mkdir -p /mnt/var/lib/pacman
# устанавливаем время
timedatectl set-ntp true
# генерируем fstab
genfstab -U /mnt >> /mnt/etc/fstab
#устанавливаем нужные тулы
pacstrap /mnt base base-devel linux linux-firmware nano dhcpcd net-tools grub linux-headers networkmanager network-manager-applet git ntpd
arch-chroot /mnt
В etc/locale.gen
раскомментируем
ru_RU.UTF-8 UTF-8
en_EN.UTF-8 UTF-8
echo 'LANG=en_EN.UTF-8' > /etc/locale.conf
locale-gen
ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime
hwclock — systohc
Edit /etc/ntpd
set
server ru.pool.ntp.org
systemctl enable ntpd.service
systemctl start ntpd.service
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
#Генерируем ядро (не надо при использовании grub)
# mkinitcpio -p linux
pacman-key --init
pacman-key --populate archlinux
passwd
nano /etc/sudoers (wheel group)
exit
umount /mnt/boot
umount /mnt
reboot
lsblk
ищем диск с Windows
fdisl -l /dev/<disk>
ищем загрузчик Windows
mount /dev/sdc1 /mount
монтируем загрузчик
Если не монтируется из-за ntfs то устанавливаем доп. прогу, так же устанавливаем пакет ядра
pacman -S ntfs-3g os-prober
бэкапим конфиг GRUB и генерируем новый:
grub-mkconfig -o /boot/grub/grub.cfg
Into Windows change localtime to UTC
fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
В /etc/fstab прописываем:
/swapfile none swap defaults 0 0
используется TAB button as delimenter
По информации из АрчВики
pacman -S virtualbox-guest-utils
Загружаем модули ядра вручную:
modprobe -a vboxguest vboxsf vboxvideo
Для Автозагрузки модулей прописываем файл:
/etc/modules-load.d/virtualbox.conf
vboxguest
vboxsf
vboxvideo
systemctl enable vboxservice
Если у вас нет каких-либо DE, добавьте следующую строку в начале ~/.xinitrc перед любыми exec функциями:
~/.xinitrc
/usr/bin/VBoxClient-all
pacman -Syyuu && pacman -S python docker htop git bash-completion wget lsof unzip p7zip openssh nitrogen
**nitrogen** - обои
groupadd -r autologin && \
useradd -m -g wheel -G docker,autologin -s /bin/bash dmitriy && \
passwd dmitriy
sudo -i -u dmitriy
mkdir sources && \
cd sources && \
git clone https://aur.archlinux.org/yay.git && \
cd yay && \
makepkg -si && \
WARN: After i3 install
pacman -S slim slim-themes
Конфиги тут: /etc/slim.conf
systemctl enable slim
Тут в примере 4 ядра.
#Инфа по ядрам:
lscpu | grep “CPU(s):” | grep -v NUMA | grep "COMPRESSXZ=(xz" /etc/makepkg.conf && \
grep "MAKEFLAGS=" /etc/makepkg.conf && \
sudo sed -i 's/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -T 4 -z -)/g' /etc/makepkg.conf && \
sudo sed -i 's/#MAKEFLAGS=”-j2"/MAKEFLAGS=”-j9"/g' /etc/makepkg.conf && \
grep "MAKEFLAGS=" /etc/makepkg.conf &&\
grep "COMPRESSXZ=(xz" /etc/makepkg.conf
Совмещал статьи: https://ordanax.github.io/i3wm_polybar https://xakep.ru/2017/03/22/geek-desktop/ https://losst.ru/nastrojka-i3wm
pacman -S xorg-server xorg-apps xorg-xinit i3-wm numlockx xterm dmenu ranger rofi numlockx nitrogen picom feh xorg-setxkbmap redshift xorg-xrandr xclip alacritty pulseaudio pavucontrol --noconfirm --needed
pacman -S bluez bluez-utils pulseaudio-bluetooth blueman
Устанавливаем шрифты
pacman -S noto-fonts ttf-ubuntu-font-family ttf-dejavu ttf-freefont ttf-liberation ttf-droid ttf-inconsolata ttf-roboto terminus-font ttf-font-awesome -noconfirm -needed
Чтобы работало копирование, необходимо установить и настроить clipboard-manager https://wiki.archlinux.org/index.php/clipboard Например, xclip
pacman -S rxvt-unicode urxvt-perls
nano ~/.Xresources
yay cherrytree slack micro vscode google-chrome polybar
pacman -S firefox notepadqq python-pip telegram-desktop jq dnsutils networkmanager-openvpn
COLORS!!!(Можно взять отсюда)
###START i3
cp /arch-config/.xinitrc ~/.xinitrc
cp -r /arch-config/.config/i3/* ~/.config/i3/
#copy other path to config (picom, polybar, etc)
startx
pacman -S zsh zsh-completions
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
yay -S ccat-git
#colored cat
Полезная статья на Хабр
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
$ZSH_CUSTOM/plugins/zsh-syntax-highlighting
# edit plugins=(git zsh-syntax-highlighting) in .zshrc
yay -S nerd-fonts-jetbrains-mono
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
Для настройки и кастомизации zsh используется Powerlevel10k
echo 'ZSH_THEME="powerlevel10k/powerlevel10k" \nPOWERLEVEL9K_MODE="nerdfont-complete"' >> ~./zshrc
Конфигурируем:
p10k configure
Или
cp arch-config/.p10k.zsh ~/.p10k.zsh
HELPFUL LINKS https://ordanax.github.io/i3wm_polybar https://github.com/polybar/polybar/wiki https://github.com/ordanax/dots/tree/master/3wm_v_3
yay -S polybar ttf-weather-icons ttf-clear-sans tlp
sudo pacman -S ttf-font-awesome
pip install --user speedtest-cli
from here https://gist.github.com/dianjuar/ee774561a8bc02b077989bc17424a19f
- maim
- xclip
Set this on your i3 config file ~/.i3/config
# Screenshots
bindsym Print exec --no-startup-id maim "/home/$USER/Pictures/$(date)"
bindsym $mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) "/home/$USER/Pictures/$(date)"
bindsym Shift+Print exec --no-startup-id maim --select "/home/$USER/Pictures/$(date)"
## Clipboard Screenshots
bindsym Ctrl+Print exec --no-startup-id maim | xclip -selection clipboard -t image/png
bindsym Ctrl+$mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) | xclip -selection clipboard -t image/png
bindsym Ctrl+Shift+Print exec --no-startup-id maim --select | xclip -selection clipboard -t image/png
You may remove the default screenshot shortcuts to prevent error
Feature | Shortcut |
---|---|
Full Screen | PrtScrn |
Selection | Shift + PrtScrn |
Active Window | Super + PrtScrn |
Clipboard Full Screen | Ctrl + PrtScrn |
Clipboard Selection | Ctrl + Shift + PrtScrn |
Clipboard Active Window | Ctrl + Super + PrtScrn |
All the screen shots are saved on
~/Pictures/CURRENT_DATE
super
key is the windows key
http://dotshare.it/category/terms/colors/
https://medium.com/@mudrii/arch-linux-installation-on-hw-with-i3-windows-manager-part-1-5ef9751a0be install on VM video:
https://www.youtube.com/watch?v=ex87GoUEcac
Плагины для urvxt: /usr/lib/urxvt/perl
~/.Xresources
~/.xinitrc
~/.bashrc
~/.config/
~/.zshrc
~/.zsh-profile
~/.p10k.zsh
~/.config/*
https://igancev.ru/2020-01-05-installing-and-configuring-i3wm-on-arch-linux !!! очень качественная статья
https://github.com/arcolinux/arcolinux-i3wm Множество конфигов
https://github.com/arcolinux/arcolinux-i3wm/blob/master/etc/skel/.config/i3/picom.conf конфиг Picom
https://igancev.ru/2020-04-18-terminal-emulator-alacritty про терминал alacritty
https://gist.github.com/tz4678/bd33f94ab96c96bc6719035fcac2b807 про arch и все что связано с работой с ним
https://habr.com/ru/post/515750/
https://rtfm.co.ua/arch-linux-ustanovka-s-efi-i-dual-boot-s-windows/#Windows_dual_boot ПРо дуалБуут
efibootmgr -c -d /dev/sda --part 1 --loader /boot/EFI/BOOT/bootx64.efi --label "rEFInd"