Void

x86_64

  • Write
    • USB Flash Drives
      • sudo fdisk -l
      • sudo dd if=void-live-x86_64-20250202-base.iso of=/dev/sdX bs=4M status=progress
    • Ventoy (USB,HDD,SSD)
      • Format
      • Drag and Drop

Raspberry Pi

  • Browse
    • Download rpi-aarch64
  • Termux
    1
    2
    3
    termux-setup-storage
    cd storage/downloads
    unxz void-rpi-aarch64-20250202.img.xz
    
  • EtchDroid
    • Write RAW or ISO
      • void-rpi-aarch64-20250202.img
      • (USB Type C) to (MicroSD Card) Adaptar

Login

login: root
password: voidlinux

Installer

void-installer # <  OK  >

Install Void

  • Keyboard
    • us
    • jp106
  • Network
    • Ethernet
      • < OK >
    • Wi-Fi
      • SSID-ABC123
      • wpa
      • PASS-ABC123
  • Source
    • Network
  • Mirror
    • Tier 1: Latest
    • Tier 2: Old
  • Hostname
    • void
  • Locale
    • ja_JP.UTF-8
  • Timezone
    • Asia
      • Tokyo
  • RootPassword
    • void
  • UserAccount
    • Full: Void User
    • Name: void
    • Pass: void
  • BootLoader
    • /dev/sda
  • Partition EFI (Latest)
    • /dev/sda: fdisk
      • gpt: g
      • write: w
    • /dev/sda: cfdisk
      • sda1: 2G: EFI
      • sda2: 16G: SWAP
      • sda3: ALL: Linux
  • Filesystems EFI (Latest)
    • /dev/sda
      • sda1: efi: /boot/efi
      • sda2: swap: swap
      • sda3: ext4: /
  • Partition MBR (Old)
    • /dev/sda: fdisk
      • dos: o
      • write: w
    • /dev/sda: cfdisk
      • sda1: 16G: SWAP
      • sda2: ALL: Linux: Bootflag: True (Enable Booting)
  • Filesystems MBR (Old)
    • /dev/sda
      • sda1: swap: swap
      • sda2: ext4: /
  • Install
    • < OK >
  • Reboot
    • < Yes >

Login

login: void
password: void

  • Raspberry Pi
  • Swapon (Raspberry Pi)
    1
    2
    3
    4
    5
    6
    sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress
    sudo chmod 0600 /swapfile
    sudo mkswap /swapfile
    
    # sudo nvim /etc/fstab
    /swapfile none swap sw 0 0
    
  • Update (Raspberry Pi)
    1
    2
    3
    # SSL_connect returned 1
    SSL_NO_VERIFY_PEER=true xbps-install -Su xbps
    SSL_NO_VERIFY_PEER=true xbps-install -Su
    
  • Change Shell

    su -c 'chsh -s /bin/bash'

  • Timezone Setting

    su -c 'ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime'

  • Check Wi-Fi Setting

    su -c 'cat /etc/wpa_supplicant/wpa_supplicant.conf; iw dev; iwconfig'

  • Wi-Fi SSID & PASS Setting

    su -c 'wpa_passphrase SSID-ABC123 PASS-ABC123 >> /etc/wpa_supplicant/wpa_supplicant.conf'

Install Xfce4 Base Desktop (Intel CPU & Intel GPU)

sudo xbps-install -S xorg-minimal xorg-video-drivers xorg-input-drivers lightdm lightdm-gtk-greeter xfce4 gvfs rsyslog
sudo xbps-install -S xfce4-pulseaudio-plugin xfce4-power-manager xfce4-clipman-plugin thunar-archive-plugin
sudo xbps-install -S noto-fonts-ttf noto-fonts-cjk noto-fonts-emoji nerd-fonts-otf
sudo xbps-install -S git curl conky xclip neovim firefox python3-pipx
sudo xbps-install -S arc-theme papirus-icon-theme
sudo xbps-install -S xdg-utils fzf jq

# sudo nvim /etc/X11/xorg.conf
Section "Device"
    Identifier "GPU0"
    Driver "modesetting"
EndSection

# sudo nvim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=igfx_off"

sudo update-grub

# Intel FW
sudo xbps-install -S linux-firmware-intel

# Intel OpenGL
sudo xbps-install -S mesa-dri mesa-intel-dri

# Intel Vulkan
sudo xbps-install -S vulkan-loader mesa-vulkan-intel

# Intel Video Acceleration
sudo xbps-install -S libva-utils intel-gpu-tools intel-video-accel

# sudo nvim /etc/profile.d/accel.sh
export LIBVA_DRIVER_NAME=iHD

# sudo nvim /etc/modprobe.d/i915.conf
options i915 enable_rc6=0 enable_fbc=1

sudo dracut --force

sudo ln -s /etc/sv/dbus /var/service
sudo ln -s /etc/sv/lightdm /var/service
sudo ln -s /etc/sv/rsyslogd /var/service
GPU 世代 GPU 名称 推奨 VA‑API ドライバ
2nd Gen HD 2000 / HD 3000 i965
3rd Gen HD 2500 / HD 4000 i965
4th Gen HD 4200 - HD 5000 i965
5th Gen HD 510 / HD 5500 - HD 6000 (Broadwell) iHD 推奨(古いドライバで動くことはあるが非推奨)
6th Gen HD / UHD 610 - 630 (Skylake) iHD
7th Gen UHD 610 / 620 / 630 / Iris Plus (Kaby Lake) iHD
8th Gen UHD 600 系 (Coffee Lake) iHD
9th Gen UHD 600 系 (Coffee Lake Refresh) iHD
10th Gen Iris Xe (Ice Lake / Tiger Lake) iHD
11th Gen Intel Xe Graphics (Rocket Lake) iHD
12th Gen Intel Xe Graphics (Alder Lake) iHD
13th Gen Intel Xe Graphics (Raptor Lake) iHD
14th Gen Intel Xe Graphics (Meteor Lake / beyond) iHD

Install Raspberry Pi Desktop (Xorg)

# Install Mesa Driver
sudo xbps-install -S mesa-dri

# sudo nvim /boot/config.txt
dtoverlay=vc4-kms-v3d

# sudo nvim /etc/X11/xorg.conf
Section "OutputClass"
    Identifier "vc4"
    MatchDriver "vc4"
    Driver "modesetting"
    Option "PrimaryGPU" "true"
EndSection

Install Desktop Locales

sudo xbps-install -S flatpak
flatpak remote-add --user flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user org.fcitx.Fcitx5
flatpak install --user org.fcitx.Fcitx5.Addon.Mozc

# sudo grep -v '#' /etc/default/libc-locales
# sudo nvim /etc/default/libc-locales
ja_JP.UTF-8 UTF-8

# sudo nvim /etc/locale.conf
LANG=ja_JP.UTF-8
LC_COLLATE=C

LANG=ja_JP.UTF-8 xdg-user-dirs-update --force
sudo localedef -f UTF-8 -i ja_JP ja_JP.UTF-8
sudo xbps-reconfigure -f glibc-locales

# sudo nvim /etc/profile.d/fcitx.sh
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

# Autostart
flatpak run org.fcitx.Fcitx5

# Settings
XIM: Enable, Theme: Dark, Switch: Shift+Space

Install Desktop Audio

sudo xbps-install -S pipewire alsa-pipewire rtkit pavucontrol

# Autostart: pipewire
sudo ln -s /etc/sv/rtkit /var/service
sudo mkdir -p /etc/alsa/conf.d
sudo mkdir -p /etc/pipewire/pipewire.conf.d
sudo cp /usr/share/pipewire/pipewire.conf /etc/pipewire/
sudo cp /usr/share/pipewire/pipewire-pulse.conf /etc/pipewire/
sudo ln -s /usr/share/alsa/alsa.conf.d/50-pipewire.conf /etc/alsa/conf.d/
sudo ln -s /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/
sudo ln -s /usr/share/examples/wireplumber/10-wireplumber.conf /etc/pipewire/pipewire.conf.d/
sudo ln -s /usr/share/examples/pipewire/20-pipewire-pulse.conf /etc/pipewire/pipewire.conf.d/

# sudo nvim /etc/pipewire/pipewire.conf
# sudo nvim /etc/pipewire/pipewire-pulse.conf
nice.level   = -15
rt.prio      = 99

Install Bluetooth

1
2
3
4
5
6
7
8
sudo xbps-install -S libspa-bluetooth blueman

# sudo nvim /etc/bluetooth/main.conf
AutoEnable=false

sudo gpasswd -a $USER bluetooth
rfkill; rfkill unblock bluetooth
sudo ln -s /etc/sv/bluetoothd /var/service

Install Archive

sudo xbps-install -S xz 7zip unzip engrampa

Install Shell

# zsh
sudo xbps-install -S zsh curl git

# ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

# nvim ~/.oh-my-zsh/custom/aliases.zsh
alias xq='sudo xbps-query'       # query
alias xs='sudo xbps-query -Rs'   # search
alias xr='sudo xbps-remove'      # remove
alias xp='sudo xbps-remove -R'   # purge
alias xi='sudo xbps-install'     # install
alias xu='sudo xbps-install -Su' # update

# nvim ~/.zshrc
export ZSH="$HOME/.oh-my-zsh"
export PATH="$PATH:$HOME/.local/bin:$HOME/.cargo/bin"
ZSH_THEME="xiong-chiamiov-plus"
plugins=(git zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh; source $ZSH_CUSTOM/aliases.zsh

Downgrade

sudo xbps-install -S xtools

# Downgrade
sudo xdowngrade /var/cache/xbps/<name>_<version>_<arch>.xbps

# Stop Upgrade
sudo xbps-pkgdb -m hold <name>

# Start Upgrade
sudo xbps-pkgdb -m unhold <name>

Firmware

# sudo nvim /etc/xbps.d/00-repository-main.conf
repository=https://repo-fi.voidlinux.org/current
repository=https://repo-fi.voidlinux.org/current/nonfree
repository=https://repo-fi.voidlinux.org/current/multilib
repository=https://repo-fi.voidlinux.org/current/multilib/nonfree

# Firmware Updater
sudo xbps-install -S fwupd

# Intel CPU Microcode
sudo xbps-install -S intel-ucode

Tuning

# sudo nvim /etc/rc.local
#!/bin/sh
echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

sudo chmod 0755 /etc/rc.local

# sudo nvim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="zswap.enabled=1 zswap.compressor=lz4"

sudo update-grub

sudo xbps-install -S tlp zramen preload irqbalance

# sudo nvim /etc/sv/zramen/conf
export ZRAM_COMP_ALGORITHM=zstd

sudo ln -s /etc/sv/tlp /var/service
sudo ln -s /etc/sv/zramen /var/service
sudo ln -s /etc/sv/preload /var/service
sudo ln -s /etc/sv/irqbalance /var/service

# sudo nvim /etc/sysctl.conf
vm.swappiness=20

# sudo nvim /etc/fstab
UUID=<UUID> / ext4 defaults,noatime 0 1

# Trim SSD
sudo xbps-install -S cronie

# sudo crontab -e
0 */3 * * * fstrim /

sudo crontab -l

sudo ln -s /etc/sv/crond /var/service

# Intel CPU
sudo xbps-install -S thermald
sudo ln -s /etc/sv/thermald /var/service

# sudo nvim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=enable"

sudo update-grub

Debpkg

1
2
3
4
5
sudo xbps-install -S git binutils
git clone https://github.com/xdeb-org/xdeb
cd xdeb
./xdeb -Sd <name>_<version>_<arch>.deb
sudo xbps-install -R <name>_<version>_<arch>.xbps

Kernel

1
2
3
4
5
6
7
8
# Raspberry Pi
sudo xbps-install -S rpi<version>-kernel

# Latest
sudo xbps-install -S linux-mainline

# LTS
sudo xbps-install -S linux-lts

Clean

1
2
3
4
5
6
7
8
# Flatpak
flatpak uninstall --unused

# Orphans
sudo xbps-remove -o

# Kernel
sudo vkpurge rm all

Check

# Scaling
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

# Zswap
cat /sys/module/zswap/parameters/enabled /sys/module/zswap/parameters/compressor

# Logs
sudo cat /var/log/messages

# Cron
sudo cat /var/log/cron

# Pipe
pactl info

# Zram
zramctl

# Vai
vainfo

# Pkg
su -c 'xbps-pkgdb -a'

Grub

# sudo nvim /etc/grub.d/90_power
#!/bin/sh
cat << EOF
menuentry "Reboot" {
    reboot
}
menuentry "Halt" {
    halt
}
EOF

sudo chmod 0755 /etc/grub.d/90_power

# sudo nvim /etc/default/grub
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

sudo update-grub
Edit

Pub: 20 Feb 2026 01:34 UTC

Edit: 21 Mar 2026 05:15 UTC

Views: 200

Auto Theme: Dark