This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Переменные для разделов и RAID массива | |
raid_device="/dev/md0" | |
efi_partitions=("/dev/sdd2" "/dev/sdb2" "/dev/nvme2n1p2" "/dev/sdc2" "/dev/nvme1n1p2" "/dev/sda2") | |
mount_point="/mnt/efi" | |
backup_dir="/tmp/efi_backup" | |
log_file="/var/log/raid_bootloader_install.log" | |
# Функция для логирования сообщений |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bcachefs format --verbose --force --acl --usrquota --grpquota --prjquota --errors=fix_safe \ | |
--fs_label=Linux --label=Linux --compression=lz4 --background_compression=zstd --inodes_use_key_cache \ | |
--replicas=3 --metadata_replicas=3 --data_replicas=2 --metadata_replicas_required=3 --data_replicas_required=2 \ | |
--str_hash=siphash --gc_reserve_percent=10 --root_reserve_percent=5 --metadata_checksum=xxhash --data_checksum=xxhash --wide_macs \ | |
--label=hdd.tsh1 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A031FB4G-part4 \ | |
--label=hdd.tsh2 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A036FB4G-part4 \ | |
--label=hdd.wdc1 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGL0RF-part4 \ | |
--label=hdd.wdc2 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGLSNF-part4 \ | |
--label=ssd.wd21 --discard --durability=0 /dev/disk/by-id/nvme-WD_Blue_SN580 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /mnt/root/usr;tar -cpf - .|tar -C /mnt/Data/sys/usr -xpvf - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/apt --install-suggests --install-recommends --autoremove --purge -fmy --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages --fix-missing --fix-broken --ignore-hold --show-progress --option DPkg::Options::="--force-all" --option DPkg::Options::="--force-confnew" -t experimental --reinstall --update full-upgrad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enabled: yes | |
Types: deb deb-src | |
URIs: https://mirrors.edge.kernel.org/ubuntu/ mirror://mirrors.ubuntu.com/mirrors.txt | |
Suites: noble noble-updates noble-security noble-proposed noble-backports devel-backports devel-proposed devel-security devel-updates devel | |
Components: main multiverse restricted universe | |
Signed-By: /usr/share/keyrings/ubuntu-master-keyring.gpg /usr/share/keyrings/ubuntu-archive-keyring.gpg | |
X-Repolib-Name: "Ubuntu Sources" | |
Architectures: amd64 i386 | |
By-Hash: force | |
Check-Valid-Until: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enabled: yes | |
Types: deb deb-src | |
URIs: https://deb.debian.org/debian https://httpredir.debian.org/debian https://cdn-fastly.deb.debian.org/debian | |
Suites: trixie-backports trixie-proposed-updates trixie-updates trixie experimental proposed-updates rc-buggy testing-backports testing-proposed-updates testing-updates testing | |
# Suites: experimental proposed-updates rc-buggy sid testing-backports testing-proposed-updates testing-updates testing trixie-backports trixie-proposed-updates trixie-updates trixie | |
# Suites: bookworm-backports-sloppy bookworm-backports bookworm-proposed-updates bookworm-updates bookworm experimental proposed-updates rc-buggy sid stable-backports-sloppy stable-backports stable-updates stable testing-backports testing-proposed-updates testing-updates testing trixie-backports trixie-proposed-updates trixie-updates trixie unstable | |
# Debian10.13 Debian11.7 Debian12.1 bookworm-backports-sloppy bookworm-backports bookworm-proposed-updates bookworm-updates bookworm bullseye-backports-sloppy bul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /dev/disk/by-id/ -type l|xargs -I{} ls -l {}|grep -v -E '[0-9]$' |sort -k11|cut -d' ' -f9,10,11,12 | |
lsblk |awk 'NR==1{print $0" DEVICE-ID(S)"}NR>1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'|grep -v -E 'part|lvm' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://deb.devuan.org/devuan/pool/main/d/devuan-keyring/ | |
apt install ./devuan-keyring | |
debootstrap --verbose --arch=arm64 --variant=minbase --force-check-gpg --components=main,contrib,non-free,non-free-firmware --extra-suites=6.0,ceres,daedalus,daedalus-backports,daedalus-proposed-updates,daedalus-security,daedalus-updates,excalibur,stable,stable-backports,stable-proposed-updates,stable-security,stable-updates,testing,unstable --include=vim,openssh-server,ntpdate,sudo,ifupdown,net-tools,udev,iputils-ping,wget,dosfstools,unzip,binutils,libatomic,mc,htop,most,mosh,screen,tmux,locales,dialog,aptitude,apt,apt-file,tasksel,debootstrap daedalus /mnt/Data/sys/sublin/devuan http://deb.devuan.org/merged/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount /dev/sda21 -t btrfs -o subvol=sys/sublin/alpine /mnt/alpine/ | |
/bin/systemctl --no-block --force switch-root /mnt/alpine /sbin/init | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-WindowsCapability -Online -LimitAccess ` | |
| where { $_.Name -notlike 'Lang*' -and $_.State -eq 'NotPresent' -and $_.Name -notlike 'Windows.Kernel.LA57*' -and $_.Name -notlike 'Accessibility.Braille*' } | Add-WindowsCapability -Online -Source D:\LanguagesAndOptionalFeatures -Verbose | |
Get-WindowsCapability -Online -LimitAccess ` | |
| where { $_.Name -like '*Font*' -and $_.State -eq 'NotPresent' } |Add-WindowsCapability -Online -Source D:\LanguagesAndOptionalFeatures -Verbose | |