JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

test | JustPaste.app
about 24 hours ago1 views
👨‍💻Programming

test

lsblk

fdisk /dev/nvme0n1

# g

# n

# Enter

# Enter

# +1G

# n

# Enter

# Enter

# Enter

# t

# 1

# 1

# w

#

# If asked to remove signatures:

# y

mkfs.vfat -F32 /dev/nvme0n1p1

cryptsetup luksFormat /dev/nvme0n1p2 --type luks2 --pbkdf argon2id --iter-time 2000 --pbkdf-memory 262144 --pbkdf-parallel 4

cryptsetup luksOpen /dev/nvme0n1p2 root

mkfs.ext4 /dev/mapper/root

mount /dev/mapper/root /mnt

mkdir -p /mnt/boot

mkdir -p /mnt/var/db/xbps/keys

mount /dev/nvme0n1p1 /mnt/boot

cp -a /var/db/xbps/keys/* /mnt/var/db/xbps/keys/

REPO=https://repo-fastly.voidlinux.org/current

ARCH=x86_64

XBPS_ARCH="$ARCH" xbps-install -S -r /mnt -R "$REPO" \

base-container \

linux \

linux-headers \

glibc-locales \

e2fsprogs \

linux-firmware-amd \

linux-firmware-network \

booster \

cryptsetup \

efibootmgr \

eudev \

kmod \

kbd \

dbus \

NetworkManager \

helix \

base-devel \

pkg-config \

ncurses

xgenfstab -U /mnt > /mnt/etc/fstab

xchroot /mnt /bin/sh

ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime

echo "void" > /etc/hostname

cat > /etc/locale.conf << "EOF"

LANG=en_US.UTF-8

EOF

echo "en_US.UTF-8 UTF-8" >> /etc/default/libc-locales

xbps-reconfigure -f glibc-locales

useradd -mG wheel,audio,video,storage,plugdev qiang

passwd qiang

echo "repository=https://repo-fastly.voidlinux.org/current" > /etc/xbps.d/00-repository-main.conf

xbps-install -S opendoas

echo "permit qiang as root" > /etc/doas.conf

echo "repository=https://repo-fastly.voidlinux.org/current/nonfree" > /etc/xbps.d/10-repository-nonfree.conf

xbps-install -S

xbps-install nvidia

ln -s /etc/sv/dbus /etc/runit/runsvdir/default/dbus

ln -s /etc/sv/NetworkManager /etc/runit/runsvdir/default/NetworkManager

xbps-alternatives -s booster

ls -l /boot

xbps-reconfigure -f linux6.18

SID=$(blkid -s UUID -o value /dev/nvme0n1p2)

echo "$SID"

ls -l /boot

KERNEL=vmlinuz-6.18.52_1

INITRAMFS=initramfs-6.18.52_1.img

ls -l "/boot/$KERNEL" "/boot/$INITRAMFS"

efibootmgr -c -d /dev/nvme0n1 -p 1 -L "Void" -l "\\$KERNEL" -u "rd.luks.name=$SID=root root=/dev/mapper/root initrd=\\$INITRAMFS"

efibootmgr

exit

umount -R /mnt

reboot

← Back to timeline