r/voidlinux • • Jan 13 '25

Just for fun: Created a TUI for managing XBPS

81 Upvotes

Over the last weeks I wanted to learn multi-threading/bg-processes/parallel tasks in Rust. The best way to do this, is learning-by-doing. Thus, I decided to start a little project.

Because there is no "real" TUI for managing xbps and I love terminal user interfaces, I decided to write a littel XBPS-TUI (I know there is fuzzypkg and fzf-xbps, but both are, very good working, wrappers for fzf and not complete TUIs).

Now, I reached a state where I would like to share the project and hopefully get some feedback. However, the project is still in an early stage. Possible things right now are:

  • Searching the package list with fuzzy search

  • Mark packages for installation/removal

  • Execute those commands (as dry-run and "for real")

  • Update packages

  • Check the CLI output produced by all xbps calls

There are still many things missing. I hope for ideas and feedback at the repo page: https://codeberg.org/lukeflo/xbps-tui .

Important (Updated): At the moment you need polkit and a polkit-agent installed to run commands with root permissions if you build from the main branch. I just pushed a WIP branch which uses su for authentication, but its not tested thoroughly. Be careful, those commands run as root can always break something!!! Better check with dry-run option before executing.

Some expressions:

PS: The Rust code base could surely be enhanced. But initially it was a project for learning multi-threading. Thus, I did not use any fancy async stuff, but only std::thread etc. Making it more efficient in the future is also plan of my learning process.


r/voidlinux • • Aug 15 '25

Well I saw that comming, I can login at least (compiled and installed systemd)

Post image
80 Upvotes

Well it went about as well as this cursed adventure could have gone. Finally answered the question that many have asked and some have jokingly mentioned that probably nobody really wanted to find out, but my curiosity got the best of me and decided after all why not. So I set it up Void on and extra drive I had and got all the the build deps installed and got the source for systemd and dbus then compiled and installed, rebooted fixed a few errors then finally got it to load all the way to the login prompt and logged in with no problems... except no networking and sway would not load, though it loads and you can login and if I was to invest more time, which I'm not goin to, it could be usable. As for any difference in boot time there wasn't much of one, it took about 20 seconds for ether runit or systemd to load everything. So in other words yes it can be done, but I wouldn't recommend.

image description cause it was to long for image caption "screen shot of hyfetch showing system speecs, OS: Void Linux x86_64,Host: Inspiron 16 5646, Kernel: Linux 6.12.41_1, Uptime: 4 mins, Packages: 681 (xbps),Shell: bash 5.2.32, Display (LGD0794): 1920x1200 @ 60 Hz in 16" [Built-in], Terminal: tmux 3.5a,CPU: AMD Ryzen 7 8840U (16) @ 5.13 GHz, GPU: AMD Radeon 780M Graphics [Integrated],Memory: 557.35 MiB / 14.93 GiB (4%), Swap: Disabled, Disk (/): 7.86 GiB / 17.98 GiB (44%) - ext4, Battery (DELL WV3K8458): 100% [AC Connected], Locale: en_US.UTF-8"


r/voidlinux • • Mar 26 '21

My VoidLinux netbook rice [i3-gaps]

Thumbnail
gallery
80 Upvotes

r/voidlinux • • May 27 '26

Just took a shot at "oxidising" Void Linux and so far it's working great!

Post image
79 Upvotes

I swear I'm not in the Rust cult :) just had some spare time and wanted to see if it's feasible.

Aside from some overlapping utilities with util-linux and procps-ng (which I decided to omit), it's working great. I've opened PRs if anyone else want to try them out.


r/voidlinux • • Nov 24 '25

A note on this forum's moderation

79 Upvotes

This morning I asked two questions about configuration quirks, one about default image configuration for KDE under the hood, the other about disabling the suspend feature. Apparently Void Linux doesn't handle this like the RHEL clones I'm using at work here, so I just asked.

I just came back after a couple hours, and my two posts disappeared. My messages were deemed "off-topic".

So here's a short remark on moderation. I'm a member of the Linux Professional Institute's documentation team. I've been 100% GNU/Linux for the last two and a half decades. I've probably posted tens of thousands of messages in various Linux-related forums and mailing lists, and I've probably also posted such as many answers. So I guess it's fair to say I know how to ask technical questions and where to ask them.

If my two last questions are deemed off-topic, then I have to conclude that this forum is unusable in its present form. Which also makes Void Linux unusable for me, because there's no alternative in the form of a mailing list or some other forum. I don't want to have to jump through burning loops of compulsive obsessive correctness everytime I have to ask a straightforward technical question about Void Linux.

Jesus, even the moderators in the FreeBSD forum are a bunch of chaotic hippies in comparison to the Void Linux moderation.

Cheers from the sunny South of France,

Niki


r/voidlinux • • Jul 29 '25

Installed on a D630 (Freebsd -> Void)

Post image
79 Upvotes

Long story short, wife and I are expecting baby #3 so I wanted to run similar distributions on all of my servers. The D630 was my web server/ssh access point/rdp relay, so it was running FreeBSD for a long time (I was a member of the 25+mo uptime club). Great stability and I loved it, but...

FreeBSD is pretty dissimilar from Linux and my main workstation runs Gentoo while the other boxes run Fedora Server. Thanks to the software landscape changing so much and especially with the inclusion of Rust (gag), using distcc was no longer viable...

Since I was going to be running a binary distribution anyways, I wanted the flexibility of Gentoo with the rolling structure of Arch, and that's the niche Void occupies.

So I got installed and everything is great. I'll look for a way to give back.


r/voidlinux • • Aug 02 '20

PDF version of Void Handbook now available

79 Upvotes

The current version of the PDF is here. There are still fixes and improvements to be made, such as having a table of contents that reflects that of the docs.voidlinux.org site, but i thought people might appreciate having access to it now. :-) Eventually it will be available for download from docs.voidlinux.org, but there are deployment issues that need to be resolved first (and there's no clear timetable for that at this stage).


r/voidlinux • • May 19 '20

Just to say thank you.

79 Upvotes

I started with the free operating systems with NetBSD in the early 90's. I've been working with NetBSD since then. Then I discovered Linux with various distributions in 96/97.

Archlinux was one of my favorites for a long time, until systemd.

I would like to sincerely thank all those who worked to make foundling.

Thanks :)


r/voidlinux • • Jan 19 '23

Void Accepted to Fastly Fast Forward!

Thumbnail voidlinux.org
78 Upvotes

r/voidlinux • • Feb 07 '22

Void is love, Void is the best distro I've met.

Post image
78 Upvotes

r/voidlinux • • Jul 28 '21

I made this sticker using GIMP, hope you like it

Post image
78 Upvotes

r/voidlinux • • Jun 26 '20

A Void Linux wallpaper I created

Post image
78 Upvotes

r/voidlinux • • Dec 24 '22

Merry Christmas to everyone.

77 Upvotes
                 *                         *
                /+\         +        +
               /+ +\     *       *           *
               /~0~\        Merry Christmas!  +
              / +  +\         *
              /  +  \       *      +      *
             /~0~~~0~\
            /   +  +  \
            /+   +    \
           / ~0~~0~~0~ \
          /   +   +    +\
         /\/\/\/\/\/\/\/\\
               ___/

r/voidlinux • • Jan 30 '22

First time using void

Post image
77 Upvotes

r/voidlinux • • Apr 13 '21

GNOME 40 has officially arrived on xbps. Couldn't be happier.

Post image
77 Upvotes

r/voidlinux • • Feb 27 '21

Switching back to OpenSSL

Thumbnail voidlinux.org
77 Upvotes

r/voidlinux • • Feb 02 '25

Why void?

76 Upvotes

I did a lot of distro hopping when I first got into Linux, but at the time, I didn’t really understand the differences between distros beyond their package managers and default window managers. Eventually, during my Arch era, I actually learned Linux, understood how things worked under the hood, set up my own configs, and got comfortable with the system.

At some point, a friend recommended Void to me and described it as “feels similar to Arch but doesn’t have systemd.” That was compelling enough for me to give it a shot, and when I moved from my old Arch setup to Void, I immediately noticed better battery life on my potato Lenovo laptop. That was the moment I stopped distro/os hopping, and I’ve been using Void ever since.

I’m curious how did you first hear about Void? What made you switch, and why are you still using it?


r/voidlinux • • Jul 23 '20

My desktop setup for Void linux

Post image
76 Upvotes

r/voidlinux • • Jul 13 '20

xdeb: A Simple utility to convert deb(ian) packages to xbps packages

Thumbnail
github.com
76 Upvotes

r/voidlinux • • Aug 15 '21

When scientists find out that void linux is out of this world.

Post image
75 Upvotes

r/voidlinux • • Jul 08 '21

Void linux inspired me to do something

75 Upvotes

Hello void linux community! I wrote a small program for enabling/disabling services in runit because I was lazy and didn't want to keep using the ln command. As such, that means void inspired me to write my very first C program. Please help me improve upon it / roast me on my garbage code here.


r/voidlinux • • Dec 11 '20

PSA: Review your PAM configuration ahead of upcoming PAM 1.5.1 update

75 Upvotes

The Void team plans to update PAM to version 1.5.1 by the end of the year. The new release drops the pam_tally and (on musl) pam_lastlog modules. If your PAM configuration includes reference to these modules, you may be unable to log in after upgrading.

In preparation, we have pushed a new pam-base update that removes these requirements from the standard configuration. Unless you have enabled the XBPS keepconf option or modified your PAM configuration, upgrading pam-base should drop these requirements from your system automatically.

To avoid any issues, you should upgrade pam-base and verify that no configuration files in /etc/pam.d contain any references to pam_tally.so or pam_lastlog.so before upgrading PAM when it becomes available.

See also: https://voidlinux.org/news/2020/12/pam-1.5.1.html


r/voidlinux • • Dec 12 '19

A Quick Guide to Optimizing Intel Graphics on Void Linux

75 Upvotes

The following is a quick guide based on my experience of optimizing Void Linux for Intel Skylake HD Graphics 520 on a laptop, hopefully it is of help to someone.

One of the things about running a more minimalist OS is that you sometimes need to take responsibility for tweaking certain things to get the most out of it; Intel Graphics is one such thing. After a fairly standard install of Void Linux, plus Xorg, I discovered that I wasn't happy with video playback and browser scrolling. The video playback looked kind of sloppy, with a good amount of tearing (visible redrawing) and Firefox was laggy when scrolling.

So here's what I did about it.

Prerequisites

In addition Xorg, and perhaps a window manager, there's a bunch of packages you probably need installed.

sudo xbps-install -S mesa-intel-dri libva-intel-driver sysfsutils

Installing Xorg and configuring a window manager is a whole other topic I'm not going to touch.

Configuring Xorg

Assuming you already have Xorg and a window manager installed, you'll need to ensure that Xorg is configured to use the "modesetting" display driver. Kernel Mode Setting (KMS), is part of the Linux kernel that enables it to manage the video card. Under Void, this is the default so NO further configuration is needed.

However, if you have already created an Xorg.conf file then simply either remove it, remove the display device section or update it to include something like the following:

Section "Device"
        Identifier "Intel Graphics"
        Driver "modesetting"
EndSection

This also means you won't be using the xf86-video-intel package anymore, which is the Xorg supplied driver. On a simple system with on onboard Intel graphics, this should generally be enough to get your Xorg display working properly. Now for the fun stuff.

Tweaking Your Intel Graphics driver

A word of warning here, the things I'm about to suggest could possibly break on your machine, proceed with all necessary caution.

The Intel Graphics driver on Linux exists primarily in the form of a kernel module called 'i915'. This kernel module comes with a bunch of configurable parameters to help you get the most out of your display.

First, you should probably confirm exactly what model of Intel Graphics the system has:

sudo lspci -v

00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07) (prog-if 00 [VGA controller])
DeviceName:  Onboard IGD
Flags: bus master, fast devsel, latency 0, IRQ 127
Memory at e0000000 (64-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915

If you see something like this, most crucially the line that say "Kernel modules: i915", then you're probably right to carry on. The next step is to see what features the kernel module offers for this device:

sudo modinfo i915

filename:       /lib/modules/5.3.15_1/kernel/drivers/gpu/drm/i915/i915.ko.gz
license:        GPL and additional rights
description:    Intel Graphics
author:         Intel Corporation
author:         Tungsten Graphics, Inc.
firmware:       i915/bxt_dmc_ver1_07.bin
...
parm:           modeset:Use kernel modesetting [KMS] (0=disable, 1=on, -1=force vga console preference [default]) (int)
parm:           enable_dc:Enable power-saving display C-states. (-1=auto [default]; 0=disable; 1=up to DC5; 2=up to DC6) (int)
parm:           enable_fbc:Enable frame buffer compression for power savings (default: -1 (use per-chip default)) (int)
...

The lines beginning with "parm:" are the configurable parameters for the i915 kernel module. It's important to understand what these parameters really mean before changing them, as getting them wrong might result in all manner of undesirable results. So, the first step is to carefully read and inquire as to what the parameters actually represent.

There are generally two or three important details on each line:

  • the default option

  • the parameter type (eg int, bool etc)

  • the range of acceptable values (eg 0..4)

Where ...

  • int - integers (0,1,2,3,4... etc)

  • bool - boolean values are either "Y" or "N"

  • charp - strings (eg "/some/path")

It's important to pay attention this information, if get this wrong you may see errors during boot time and things may not work as expected.

Next, take a look and compare the available parameter options with what is currently set on the running i915 kernel module:

sudo systool -m i915 -av

Module = "i915"

  Attributes:
    coresize            = "2232320"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "22"
    taint               = ""
    uevent              = <store method only>

  Parameters:
    alpha_support       = "N"
    disable_display     = "N"
    disable_power_well  = "1"
    dmc_firmware_path   = "(null)"
    edp_vswing          = "0"
    enable_dc           = "0"
    enable_dp_mst       = "Y"
    enable_dpcd_backlight= "N"
    enable_fbc          = "0"
    enable_guc          = "0"
    enable_gvt          = "N"
    enable_hangcheck    = "Y"
    enable_ips          = "1"
    enable_psr          = "-1"
    error_capture       = "Y"
    fastboot            = "0"
    force_probe         = ""
    force_reset_modeset_test= "N"
    guc_firmware_path   = "(null)"
    guc_log_level       = "1"
    huc_firmware_path   = "(null)"
    invert_brightness   = "0"
    load_detect_test    = "N"
    lvds_channel_mode   = "0"
    mmio_debug          = "0"
    modeset             = "-1"
    nuclear_pageflip    = "N"
    panel_use_ssc       = "-1"
    prefault_disable    = "N"
    reset               = "2"
    vbt_firmware        = "(null)"
    vbt_sdvo_panel_type = "-1"
    verbose_state_checks= "Y"
    ...

These will probably be set to the defaults previously seen with the modinfo command.

To find out more information about what the various parameter actually mean, try looking through the documentation on the i915 kernel module (https://www.kernel.org/doc/html/v5.3/gpu/i915.html). Make sure you the documentation you're reading is for the version of kernel you're running ('uname -a' to check). Also, the hardware specifications from Intel (https://01.org/linuxgraphics/documentation/hardware-specification-prms) can be useful for defining terms.

To change these parameters, create a conf like the following: /etc/modprobe.d/intel-graphics.conf

Add a line to the file that starts with "options i915" and then append parameters to it as necessary. For example:

options i915 enable_dc=2 enable_fbc=1 fastboot=1

In this example, advanced power saving states, frame buffer compression and fast boot optimisations are enabled. Notably, I find frame buffer compression results in smooth video playback on my system.

The next step is to make sure these settings apply when your computer boots. To do this, the initial memory-based filesystem (initramfs), which is used while the kernel is loading, needs to be updated with these changes.

sudo xbps-reconfigure -f linux5.3

Make sure the 'linux5.3' part is changed to match the kernel version you'll be booting with.

Once this steps completes successfully, reboot your system, keeping an eye for any errors and use systool as before to ensure that the parameters you set have actually been applied as expected.

If you're interested in optimising your Intel Graphics card for power saving, you might find 'powertop' or 'intel_gpu_top' useful utilities.

Testing

Finally, it's good to do a test and make sure that everything is running smoothly. I prefer to use mpv and youtube-dl for that job (sudo xbps-install -S mpv youtube-dl), so here's how that would work:

mpv --hwdec=auto "https://www.youtube.com/watch?v=dQw4w9WgXcQ"

Provided the test video is in h264 format, and not some crusty old music video from the 80s, you should see the following terminal output in addition to silky smooth video playback:

 (+) Video --vid=1 (*) (h264 1920x1080 25.000fps)
 (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
AO: [pulse] 48000Hz stereo 2ch float
Using hardware decoding (vaapi).
VO: [gpu] 1920x1080 vaapi[nv12]
AV: 00:00:07 / 00:03:32 (3%) A-V:  0.000 Cache: 27s/13MB

Video player software, like mpv, that supports the Intel VA (Video Acceleration) API should use the video decoder built into your Intel Graphics device, providing smooth video playback with no tearing. Sometimes the video player needs to be instructed to use this video acceleration, hence the "--hwdec=auto" in mpv. According to the man page for mpv, "hwdec=auto" will attempt to give you the best hardware decoder, on my system with only Intel Graphics, that option results in the equivalent of calling "mpv --vo=gpu --hwdec=vaapi". To ensure it's always the default option, create ~/.config/mpv/mpv.conf and simply add "hwdec=auto", or whatever default you've chosen.

Finally, give Firefox a little GPU love also. Browse to "about:config" and set "layers.acceleration.force-enabled" to "true", then restart your browser. On my system this results in smoother scrolling and browser-based video playback.

Hopefully this was helpful.


r/voidlinux • • Apr 26 '26

I switched to void yesterday and i am absolutely loving it.

73 Upvotes

I switched to void on my slow jailbroken chromebook and its so fast. Takes at most 3 seconds to boot, is generally very fast. Thinking about also switching to it on my gaming laptop. I'm coming from arch and its way better.

Thank you, void devs for making a distro so blazingly fast and easy to use.

I also want to ask about something, my gaming laptop is an acer nitro and the fans dont work unless i install a driver for it called Linuwu-Sense. As far as i know that driver depends on systemd. Is there any way to make it work? If i can be sure that it'll work, i'll switch right away.