/r/voidlinux
Void Linux is a general operating system based on the Linux Kernel.
Void is a general purpose operating system, based on the monolithic Linux® kernel. Its package system allows you to quickly install, update and remove software; software is provided in binary packages or can be built directly from sources with the help of the XBPS source packages collection.
/r/voidlinux
Hi
I'm Linux user with some experience, and usually I can find solutions for my issues on internet, but this is something specific and I can't find solution anywhere. And I haven't seen this error on any other distro.
So, recently I got this 2018 Macbook pro with dead SSD ,and decided to use it as machine where to installed random Linux distros. First one was Void Linux. Installation went successful, and I'm able to log in into installed system, but when I'm trying to run any fresh installed app from official repo (xbps), I run into segmentation fault error. I can run packages with are already installed, but not fresh ones.
Quick search on internet says that it can be RAM fault, but I have enough RAM with is visible by top tool. I run memtest and RAM was good. So, I'm definitely messed up something during installation, but what?
Maybe its 'ssomething to do with specific setup, when I'm trying to install this distro on Macbook on Micro SD card using TypeC to Micro SD adapter? I checked SD card for bad blocks, but not issues there..
OK, thanks for reading this, and I hope to get some answers.
Thanks.
To be clear, I am completely sure that this is either a Linux issue or a Void Linux issue (by which I mean that Pipewire or something is screwing things up).
I cannot entertain the idea that it's somehow related to the hardware. This is a software issue.
On the exact same computer, in the exact same sitting position, in the exact same room, etc., if I boot into Windows, there is no popping sound. So, it is impossible for it to be any of the following:
I've tried two different GPUs. My old GPU is an AMD RX 570. I had used this on Void Linux several times, but each time I quit due to this popping sound. I tried it again today and it pops and crackles all the same.
My current GPU is an Intel A770. It makes the same crackle pop as when I had my AMD GPU in.
Again, to be clear, both my AMD and Intel GPU produce this sound.
And again, this sound is not produced in Windows using either GPU.
My specs:
I have all of the drivers that I am aware of and I can play video games just fine (aside from the audio issue). This is a new system using the latest iso from Void's website.
I've tried messing with PavuControl and alsamixer with no success. I've restarted, etc., and the usual tricks.
Hi, I'm looking for some help setting up my graphical session. I installed sddm, labwc, and lxqt. I'm not sure how to get these things to work together.
The Arch wiki for sddm states:
Everything should work out of the box, since Arch Linux uses systemd and SDDM defaults to using systemd-logind for session management.
I think everyone can see the problem with this..
How do I get sddm to work, detect labwc, and get lxqt working with labwc?
Thanks!
Edit: I should mention that I have elogind installed, or rather, it seems like it was installed by default.
On a dual boot laptop (refind) working fine for ages, rebooted with a stick and chrooted in an reinstalled 6.6 kernel but it still won't boot, any ideas ?
I've been using distrobox for quite a while along with Podman and every command results in this warning: WARN[0000] Using cgroups-v1 which is deprecated in favor of cgroups-v2 with Podman v5 and will be removed in a future version. Set environment variable PODMAN_IGNORE_CGROUPSV1_WARNING to hide this warning.
I know it can be hidden but I'm just wondering if there's a way to use cgroups-v2 instead of the older version.
Hi,
Our local school is currently 100 % GNU/Linux, with servers and desktops all running Rocky Linux 8.x. We have central authentication and roaming profiles with a bone-headed NIS/NFS setup. It's not ideal, but it just works, is simple to setup and Red Hat supports it until 2029 when RHEL 8 is EOL.
Since I began to fiddle with Void Linux, I wonder what I could possibly replace that setup with. So I thought I'd ask here. Are any of you running some kind of central authentication solution on Void Linux ? Preferably one that doesn't make you jump through a series of burning loops to setup ?
Thanks & cheers from the sunny South of France,
Niki
Background:
Hi, I recently decided I want to make the switch from Fedora to Void because I appreciate its design philosophy and am thinking I could learn more about linux along the way.
I enjoy having a lightweight desktop environment but also want to use Wayland. After years of the aforementioned not existing it seems like I'm in luck, LXQt's new release includes what looks to be Wayland support. I also hear that xfce is finally getting around to it. I tried Enlightenment and really liked it but it was essentially unusable on Wayland when I tried it :(. I don't know why this was, maybe had something to do with installing it using the Fedora Everything net installer.
Cut to the chase:
I'd be willing to try any desktop environment recommended to me as long as it's light and supports Wayland. The problem that I'm facing is that I don't fully understand how Wayland works and what packages I'll need to install. Could someone walk me through getting LXQt or any light DE running on void from the base image, and maybe a short lesson on the workings of Wayland?
Your help is greatly appreciated.
P.S. Sorry if this post is not formatted correctly or something
Hi,
I'm relatively new to Void Linux (been only tinkering with it for a few weeks) and I just noticed something weird.
I'm using the glibc
Base ISO. When I opt for ISO
install (e. g. install the packages from the installation media) then sshd
is activated by default.
Whereas when I opt for a Network
installation of the base system, sshd
is not activated and I have to activate it after the initial reboot.
Just curious: is there a particular reason behind this?
Here's the log I'm getting when I'm trying to run the script. Seems to be a protontricks related issue, tried the flatpak version too, same thing.
Edit: Solved by putting: "dbus-run-session dwm" into my xinitrc!
Hey everyone im a very noob linux user and i have installed void linux on a 32 bits device (Hp compaq mini 110). After two fresh installs, I encountered the same issue: pressing Enter + Mod
doesn’t open the terminal in Qtile (The config.py seems to be correct). I followed this tutorial to install Qtile:
https://www.reddit.com/r/voidlinux/comments/weiy19/how_to_get_qtile_working_on_voidlinux/
I’ve been restarting Qtile using qtile cmd-obj -o cmd -f restart
(not sure if this is correct), but I keep seeing the error:
Could not open /home/<user>/.cache/qtile/qtilesocket.:0
.
Could not open {self.socket_path}.
(But maybe this error is being shown because that is not a correct command for restarting or something)
I dont even know if i need to do something special when installing qtile on a 32 bits device.(my Qtile version is 0.29.0
)
The tutorial lists all the dependencies I’ve installed. I’m unsure how to debug the terminal issue Let me know if you need more details
I’m honestly at a loss and feeling desperate for help with this issue. If anyone could guide me through what might be going wrong or how to fix it, I would be deeply grateful.
I've wrote an install script setup void linux with an encrypted disk and refind instead of grub.
Refind starts but doesn't see the system and I don't know what is wrong or missing
Someone can help me ? :)
#!/bin/bash
connect_wifi()
{
#Network
INTERFACE=""
SSID=""
PASSWIFI=""
#Configure wifi
wpa_passphrase ${SSID} ${PASSWIFI} >> /etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant -B -i ${INTERFACE} -c /etc/wpa_supplicant/wpa_supplicant.conf
sv restart wpa_supplicant
sv restart dhcpcd
}
defined_variables()
{
# Define arch
ARCH=x86_64
# Disk to install Void Linux on. You can use 'lsblk' to find the name of the disk.
DISK="/dev/sda"
# Minimum of 100M: https://wiki.archlinux.org/title/EFI_system_partition
EFI_SIZE="512M"
BOOT_SIZE="1G"
ROOT_SIZE="10G"
SWAP_SIZE="2G"
HOME_SIZE="100%FREE"
# Name to be used for the hostname of the Void installation
HOSTNAME="void"
# Name to be used volume group
VOLUME_GROUP="voidvg"
# Filesystem to be used
EFI_FS="vfat"
BOOT_FS="ext4"
ROOT_FS="ext4"
HOME_FS="ext4"
# 'musl' for musl, '' for glibc.
LIBC=""
# USER INPUT
echo -e "\nEnter password to be used for disk encryption, the same will be configure for root:\n"
read LUKS_PASSWORD
# The root password is set equal to the luks one, change it
ROOT_PASSWORD=$LUKS_PASSWORD
}
mk_partitions()
{
# Wipes disk from magic strings to make the filesystem invisible to libblkid: https://linux.die.net/man/8/wipefs
wipefs --all $DISK
# Set partition names based on disk name for most common disks by driver: https://superuser.com/a/1449520/393604
if [[ $DISK == *"sd"* ]]; then
EFI_PARTITION=$(echo $DISK'1')
BOOT_PARTITION=$(echo $DISK'2')
LUKS_PARTITION=$(echo $DISK'3')
elif [[ $DISK == *"nvme"* ]]; then
EFI_PARTITION=$(echo $DISK'p1')
BOOT_PARTITION=$(echo $DISK'p2')
LUKS_PARTITION=$(echo $DISK'p3')
else
echo "Error: disk name not supported, just change it"
exit 1
fi
# Create EFI and boot partition with selected sizes and LUKS partition with remaining size.
# To create these interactively you can use 'fdisk' or the friendlier 'cfdisk'
# A warning about existing signature can be ignored
#printf 'label: gpt\n, %s, U, *\n, , L\n' "$EFI_SIZE" | sfdisk -q "$DISK"
printf 'label: gpt\n, %s, U, *\n, %s, L\n, , L\n' "$EFI_SIZE" "$BOOT_SIZE" | sfdisk -q "$DISK"
}
mk_filesystems()
{
# ENCRYPT LUKS PARTITION
echo $LUKS_PASSWORD | cryptsetup -q luksFormat --type luks2 $LUKS_PARTITION
#
# CREATE VOLUME GROUP, LOGICAL ROOT PARTITION, FILE SYSTEM ON ROOT
#
# Open LUKS partition into dev/mapper/luks
echo $LUKS_PASSWORD | cryptsetup luksOpen $LUKS_PARTITION luks
# Create volume group on device
vgcreate $VOLUME_GROUP /dev/mapper/luks
# Ceate logical root volume in existing volume group
# Home and swap volumes can also be created
lvcreate --name root -L $ROOT_SIZE $VOLUME_GROUP
lvcreate --name swap -L $SWAP_SIZE $VOLUME_GROUP
lvcreate --name home -l $HOME_SIZE $VOLUME_GROUP
# Create EFI and boot file systems on physical paritions
#mkfs.$EFI_FS -n boot $EFI_PARTITION
mkfs.$EFI_FS $EFI_PARTITION
mkfs.$BOOT_FS $BOOT_PARTITION
# Create lvm file systems
mkfs.$ROOT_FS -L root /dev/$VOLUME_GROUP/root
mkfs.$HOME_FS -L home /dev/$VOLUME_GROUP/home
mkswap /dev/$VOLUME_GROUP/swap
}
mount_partitions()
{
# Mount root partition
mount /dev/$VOLUME_GROUP/root /mnt
# Mount home partition
mkdir -p /mnt/home
mount /dev/$VOLUME_GROUP/home /mnt/home
# Mount the boot parition
mkdir -p /mnt/boot
mount $BOOT_PARTITION /mnt/boot
# Mount EFI partition (needs to be mounted after root partition, to not be overwritten I assume)
mkdir -p /mnt/boot/efi
mount $EFI_PARTITION /mnt/boot/efi
}
setup_system()
{
# Install Void base system to the root partition, echo y to accept and import repo public key
echo y | xbps-install -S --yes \
-R https://repo-default.voidlinux.org/current/$LIBC \
-r /mnt \
base-system cryptsetup grub-x86_64-efi refind lvm2 mesa-dri bluez
#
# SETUP ROOT USER
#
# Change ownership and permissions of root directory
chroot /mnt chown root:root /
chroot /mnt chmod 755 /
# Set root password
echo -e "$ROOT_PASSWORD\n$ROOT_PASSWORD" | xchroot /mnt passwd -q root
#
# GLIBC CONFIGURATION
#
# Set hostname and language/locale
echo $HOSTNAME > /mnt/etc/hostname
if [[ -z $LIBC ]]; then
echo "LANG=en_US.UTF-8" > /mnt/etc/locale.conf
echo "en_US.UTF-8 UTF-8" >> /mnt/etc/default/libc-locales
xchroot /mnt xbps-reconfigure -f glibc-locales
fi
#
# FSTAB CONFIGURATION
#
# Add lines to fstab, which determines which partitions/volumes are mounted at boot
echo -e "/dev/$VOLUME_GROUP/root / $ROOT_FS defaults 0 0" >> /mnt/etc/fstab
echo -e "/dev/$VOLUME_GROUP/home /home $HOME_FS defaults 0 0" >> /mnt/etc/fstab
echo -e "/dev/$VOLUME_GROUP/swap swap swap defaults 0 0" >> /mnt/etc/fstab
echo -e "$BOOT_PARTITION /boot $BOOT_FS defaults 0 0" >> /mnt/etc/fstab
echo -e "$EFI_PARTITION /boot/efi $EFI_FS defaults 0 0" >> /mnt/etc/fstab
#
# UNLOCK ENCRYPTED DEVICE ON BOOT
#
# Generate keyfile
xchroot /mnt dd bs=1 count=64 if=/dev/urandom of=/boot/volume.key
# Add the key to the encrypted volume
echo $LUKS_PASSWORD | xchroot /mnt cryptsetup -q luksAddKey $LUKS_PARTITION /boot/volume.key
# Change the permissions to protect generated the keyfile
xchroot /mnt chmod 000 /boot/volume.key
xchroot /mnt chmod -R g-rwx,o-rwx /boot
#Add keyfile to /etc/crypttab
echo "cryptroot UUID=$LUKS_UUID /boot/volume.key luks" >> /mnt/etc/crypttab
#Add keyfile and crypttab to initramfs
echo -e "install_items+=\" /boot/volume.key /etc/crypttab \"" > /mnt/etc/dracut.conf.d/10-crypt.conf
}
setup_grub()
{
# Modify GRUB config to allow for LUKS encryption.
echo "GRUB_ENABLE_CRYPTODISK=y" >> /mnt/etc/default/grub
LUKS_UUID=$(blkid -s UUID -o value $LUKS_PARTITION)
kernel_params="rd.lvm.vg=$VOLUME_GROUP rd.luks.uuid=$LUKS_UUID"
sed -i "s/GRUB_CMDLINE_LINUX_DEFAULT=\"/GRUB_CMDLINE_LINUX_DEFAULT=\"$kernel_params /" /mnt/etc/default/grub
# Install GRUB bootloader
mkdir -p /mnt/boot/grub
#xchroot /mnt grub-install --target=x86_64-efi --boot-directory=/boot --efi-directory=/boot/efi $DISK
xchroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot/efi /dev/${DISK}
# Ensure an initramfs is generated
xchroot /mnt xbps-reconfigure -fa
}
setup_refind()
{
# Execute the refind install script
xchroot /mnt refind-install
# Defined kernel options
rm -f /mnt/boo/refind_linux.conf
LUKS_UUID=$(blkid -s UUID -o value $LUKS_PARTITION)
KERNEL_PARAMETERS="cryptdevie=UUID=$LUKS_UUID:${VOLUME_GROUP} root=/dev/${VOLUME_GROUP}/root loglevel=0 quiet splash"
echo "\"Boot default\" \"$KERNEL_PARAMETERS\"" > /mnt/boot/refind_linux.conf
# Ensure an initramfs is generated
xchroot /mnt xbps-reconfigure -fa
}
main()
{
set -ex
#connect_wifi
defined_variables
mk_partitions
mk_filesystems
mount_partitions
setup_system
setup_refind
#umount -R /mnt
echo "Install is complete, reboot."
}
main
Hello, I'm having some trouble with a custom setup I wanted to try.
I have a single NVME drive with two partitions, /dev/nvme0n1p1
and /dev/nvme0n1p2
. The first one is used for UEFI, while the second is and encrypted LUKS partition with a void
volume group, containing two logical volumes:
master
, which hosts a btrfs filesystem with 3 subvolumes - @
, @home
, and @snapshots
swap
, which should just be used as a swap partition once the disk is unlocked.I installed rEFInd on the EFI partition; /boot
is located inside the aforementioned root subvolume though.
I used various guides, articles, and posts:
https://wiki.archlinux.org/title/Dm-crypt/Device_encryption
https://wiki.archlinux.org/title/Dm-crypt/System_configuration
https://wiki.archlinux.org/title/Dm-crypt/Swap_encryption
https://docs.voidlinux.org/installation/guides/fde.html
https://old.reddit.com/r/archlinux/comments/15v7i7z/refind_boot_options_for_luks_partition_with_lvm/
https://www.pierov.org/2021/12/12/cryptsetup-refind/
At the moment, /etc/crypttab
looks like this:
void UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none luks
and I included it in the initramfs as stated in the void linux docs.
I wrote the following boot stanza since rEFInd couldn't see the partition when booting:
menuentry "LUKS with btrfs" {
volume /dev/nvme0n1p2
loader /@/boot/vmlinuz-6.6.58_1
initrd /@/boot/initramfs-6.6.58_1.img
graphics off
options "rw root=/dev/void/master cryptdevice=UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:void rootflags=subvol=@"
}
The UUID I used was obtained with
blkid -s UUID -o value /dev/nvme0n1p2
.
I can get into the system just fine from a live environment, by unlocking the disk with cryptsetup luksOpen /dev/nvme0n1p2 void
, which prompts me for the password, and then manually mounting all the partitions. However, I can't get the system to boot on its own. I currently get this message:Error: Not Found while loading vmlinuz-6.6.58_1
Honestly, I'm not sure what I did wrong. Could anybody help me?
Hey. I am a new Void user.
I have been struggling for hours trying to get the GTK themes to work.
There does not seem to be any official documentation and I tried the "Generally recommended" ways to get the themes working.
specifically from here(Also that is the theme I want use):
https://github.com/catppuccin/gtk/blob/main/docs/USAGE.md
The instructions seem awfully simple and they basically boil down to:
THEME_DIR="$HOME/.local/share/themes/catppuccin-${FLAVOR}-${ACCENT}-standard+default"THEME_DIR="$HOME/.local/share/themes/catppuccin-${FLAVOR}-${ACCENT}-standard+default"
and then
mkdir -p "${HOME}/.config/gtk-4.0" &&
ln -sf "${THEME_DIR}/gtk-4.0/assets" "${HOME}/.config/gtk-4.0/assets" &&
ln -sf "${THEME_DIR}/gtk-4.0/gtk.css" "${HOME}/.config/gtk-4.0/gtk.css" &&
ln -sf "${THEME_DIR}/gtk-4.0/gtk-dark.css" "${HOME}/.config/gtk-4.0/gtk-dark.css"mkdir -p "${HOME}/.config/gtk-4.0" &&
ln -sf "${THEME_DIR}/gtk-4.0/assets" "${HOME}/.config/gtk-4.0/assets" &&
ln -sf "${THEME_DIR}/gtk-4.0/gtk.css" "${HOME}/.config/gtk-4.0/gtk.css" &&
ln -sf "${THEME_DIR}/gtk-4.0/gtk-dark.css" "${HOME}/.config/gtk-4.0/gtk-dark.css"
I did these exact things and the theme simply does not apply. I see no difference.
I tried using:
- lxappearance --- Which had no themes and was empty (So this was not recognized)
- setting the theme manually via gsettings set org.gnome.desktop.interface gtk-theme
- Moving it to /usr/share/themes
- Moving it to ~/themes
- Various questionable configurations and settings that I dug up on forums.
Nothing seems to work. I think I am missing something fundamental here.
Does anyone have experience with this? Any information and help would be appreciated
Using wayfire as a window manager
EDIT:
It was an issue on my end:
For some reason my dumbass was exporting GTK_THEME in my .bashrc which was set to some random crap and was overriding the settings.
it released today and i'm really excited to try it out with wayland
Hi,
I have a suggestion : add the VirtualBox Extension Pack for the current release in the nonfree
repository. Some other projects do this, like SlackBuilds.org for example:
http://slackbuilds.org/repository/15.0/system/virtualbox-extension-pack/
Cheers,
Niki
DM: SDDM(also tried with LightDM(GDM refuses to start))
I can't really start RiverWM from any DM, it works fine while starting on text mode, but from a DM, it just doesn't work. I checked the session files, they looked fine, I checked the logs: only an error that says something among the lines of "Greeter error: Process crashed" and the it kicks me back to SDDM(Also tried with LightDM).
Hi,
I just installed Void Linux on an HP Z440 Workstation. Things look quite crisp and clean.
There seems to be a small encoding problem. My system locale is fr_FR.UTF-8. Here's what a text file in french looks like. All the upper case "E" characters with an "accent aigu" ("É") cannot be displayed in Konsole.
This happens with pretty much every available font.
Any idea what's wrong here?
Hey i have been trying to switch to void but the download is waaaay slow, idk why since i tried some other distros iso and they went quick, does anyone know anything about this problem or is it just my internet.
I have AMD APU Ryzen 5 5625U with Vega 7, and I get framedrops on YouTube every ~20 seconds, while having no framedrops at all on windows 11
Kernel 6.12 latest, KDE Plasma Wayland session with Firefox 133, using power-profiles-daemon balanced preset, pulseaudio
I have all packages installed from wiki: linux-firmware-amd, mesa-dri, xorg-minimal, amdvlk, mesa-vulkan-radeon, vulkan-loader, mesa-vdpau, mesa-vaapi
Been trying to install void on raspi5 for a few days now. The live image doesn’t come with the void-installer, tried manual install through GitHub but breaks when trying to install. Tried ROOTFS install but can’t install without a aarch64 system. Any ideas?
Hi,
I just got myself a nice HP 440 workstation, as a replacement for my battered HP Elite workstation.
I was surprised to see that the installer won't boot at all. GRUB menu shows OK, but when I hit Enter
to boot the default selection... nothing happens.
It's not a Secure Boot issue because I made sure to disable it. I tried both UEFI mode and Legacy mode, and I ended with the same problem.
Tried two different flash drives on different USB ports, to no avail.
On a side note: Rocky Linux 9 boots and installs fine in both UEFI and Legacy mode.
This is what I get in Legacy Mode with UEFI disabled:
On a side note, can it be that the NVidia card is the culprit here? Here's what the installed minimal Rocky Linux system says:
# lspci | grep -i vga
02:00.0 VGA compatible controller: NVIDIA Corporation TU116 [GeForce GTX 1650] (rev a1)
Hi, I have tried changing my mirror to almost every option available. They all are stuck running at most at about 200kb/s, but usually average at around 50kb/s. My internet is not slow and I usually get 50mb/s on all other downloads such as steam, browser, etc. Is there some sort of bottleneck in xbps that could be causing this? Are the mirrors just actually that slow and there's nothing I can actually do about it? I hate that it takes so long to install and update packages.
Rust, Java, Zig, Lua, Python, C++ and any other popular or lesser known programming languages: Can Voidlinux be used as a "Coding Distro"?
given a folder ./test/run with
#!/bin/bash -eux
TRAPS="TERM INT STOP EXIT USR1"
for kind in $TRAPS; do
trap "echo got $kind ; exit 0 " $kind
done
sleep 100
exit
i was under the impression that sv SOME_CMD ./test
would forward some signals, but i'm not getting any echo.
So today I synced the package list and there were a lot of updates for seemingly Steam-related packages. Now the Steam client fails to start with the usual glXChooseVisual failed
error message as if the mesa-32bit package was missing. No matter what I reinstall or try to update, the client does not start. Is there a known workaround or fix for this issue? Maybe this is because of the recent mesa rollback?
Edit: Solved with latest update, thanks!
sudo xbps-install -Suv
or sudo vpm update
I noticed something after installing postgresql and then removing it once: residual files stay. The files in /etc/sv and /var/service weren't removed, the postgres user wasn't removed and stuff like that. Does this happen only with the postgresql package or is it true for other such packages as well?
Hi there,
I'm having trouble installing software on void within a Podman/Docker image. In particular, when running xbps-install -Su
within the container, I get
# xbps-install -Su
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
ERROR: [reposync] failed to fetch file `https://repo-default.voidlinux.org/current/x86_64-repodata': Requested Range Not Satisfiable
The dockerfile to reproduce is quite straigtforward:
FROM ghcr.io/void-linux/void-glibc-full:latest
CMD ["sh"]
This same dockerfile used to work fine about 4 weeks ago.
Has anybody had this problem before?
I have to change the version if I know correctly, where do I get that?
Edit: Do I have to change the hash too? Okay, I figured the version number out, where do I find the hash? I'm talking about Discord.
I am new to Void. Been loving it so far... But I don't know why a command that is supposed to upgrade packages, actually downgrades some packages. Would someone please explain?
Thank you.