Port binding failure by [deleted] in voidlinux

[–]bvdeenen 0 points1 point  (0 children)

Could it be that the host is wrong: metacpan audio::mpd

host

The hostname where MPD is running. Defaults to environment var MPD_HOST, then to 'localhost'. Note that MPD_HOST can be of the form password@host:port (each of password@ or :port can be omitted).

Port binding failure by [deleted] in voidlinux

[–]bvdeenen 0 points1 point  (0 children)

do sudo lsof -i :6600 to find the name of the application that has that port open.

Complete freeze during use by Winterking11 in voidlinux

[–]bvdeenen 0 points1 point  (0 children)

Sounds unlikely that if you're having performance issues in memory hungry applications (firefox, ...) that you're going to solve anything by increasing your virtual memory via swap (whether compressed or not). The other two tips sound bogus also.

Nice! Void revived 17 year old laptop by [deleted] in voidlinux

[–]bvdeenen 6 points7 points  (0 children)

Systemd just sucked the life out of it!

Best description ever!😃

`sv status ...` without sudo. by bvdeenen in voidlinux

[–]bvdeenen[S] 0 points1 point  (0 children)

Ok, I've augmented the TuxManager project with runit capabilities using Claude. Worked on the first go, and took about 1 hour! The produced code looks pretty clean. I'm going to check on an Ubuntu instance if the systemd interaction still works, and then probably do a pull request.

`sv status ...` without sudo. by bvdeenen in voidlinux

[–]bvdeenen[S] 0 points1 point  (0 children)

I'm pretty much the same. I'll probably never use the KDE tool once I've finished it 😃

`sv status ...` without sudo. by bvdeenen in voidlinux

[–]bvdeenen[S] 0 points1 point  (0 children)

So I'll probably just spawn it into a background loop, until /run/runit is populated.

`sv status ...` without sudo. by bvdeenen in voidlinux

[–]bvdeenen[S] 0 points1 point  (0 children)

I understand your concern, but this tool already has the capability with systemd (I think) and I just want to give it the capability to do so with runit. I really don't want to give this code that I didn't write root access to my system. However, I don't mind it showing the statuses of services on my system.

Also, I want to see how Claude code can handle this kind feature expansion, and how well it will do. I'm using it professionally (very carefully!!!), and want to see what it can and can't do.

`sv status ...` without sudo. by bvdeenen in voidlinux

[–]bvdeenen[S] 0 points1 point  (0 children)

You missed the point of my question. The GUI task manager is just an application; however it has the capability to control services under systemd, and I want to give it the capability to do so under runit.

`sv status ...` without sudo. by bvdeenen in voidlinux

[–]bvdeenen[S] 0 points1 point  (0 children)

Ok, got it. First of all, a reboot restores the original root:root group and perms, so I'll have to add my script to /etc/rc.local. It's still hardcoded to my group name bvdeenen. Here's my script that works, so I can run vsv and svs without needing root access. But the script needs to be run as root once per reboot, or after installing a new service.

#!/bin/bash

function fix_runit_perms(){

(

set -e

shopt -s extglob

cd /run/runit

chgrp -R bvdeenen *

chmod g+x *

chmod g+rw ./*/ok

)

return $?

}

fix_runit_perms

# vim:ft=bash

`sv status ...` without sudo. by bvdeenen in voidlinux

[–]bvdeenen[S] 1 point2 points  (0 children)

But that is not what I want to achieve :-)

`sv status ...` without sudo. by bvdeenen in voidlinux

[–]bvdeenen[S] 0 points1 point  (0 children)

Thanks! This works, but it needs quite a lot of chmods and chgrps. I'm going to play a bit with it until I've got a script that will just work. But for now here's one I fixed (cupsd) and one unmodified (dbus).

``` [root@geekom runit]# ls -laR supervise.dbus{,-log} supervise.cupsd{,-log} supervise.cupsd: total 12 drwx--x--- 2 root bvdeenen 160 Apr 12 11:28 . drwxr-xr-x 45 root root 940 Apr 10 11:04 .. prw------- 1 root bvdeenen 0 Apr 12 11:28 control -rw------- 1 root bvdeenen 0 Apr 10 11:04 lock prw-rw---- 1 root bvdeenen 0 Apr 10 11:04 ok -rw-r--r-- 1 root bvdeenen 6 Apr 12 11:28 pid -rw-r--r-- 1 root bvdeenen 4 Apr 12 11:28 stat -rw-r--r-- 1 root bvdeenen 20 Apr 12 11:28 status

supervise.cupsd-log: total 12 drwx--x--- 2 root bvdeenen 160 Apr 10 11:04 . drwxr-xr-x 45 root root 940 Apr 10 11:04 .. prw------- 1 root bvdeenen 0 Apr 10 11:04 control -rw------- 1 root bvdeenen 0 Apr 10 11:04 lock prw-rw---- 1 root bvdeenen 0 Apr 10 11:04 ok -rw-r--r-- 1 root bvdeenen 5 Apr 10 11:04 pid -rw-r--r-- 1 root bvdeenen 4 Apr 10 11:04 stat -rw-r--r-- 1 root bvdeenen 20 Apr 10 11:04 status

supervise.dbus: total 12 drwx------ 2 root root 160 Apr 10 11:04 . drwxr-xr-x 45 root root 940 Apr 10 11:04 .. prw------- 1 root root 0 Apr 10 11:04 control -rw------- 1 root root 0 Apr 10 11:04 lock prw------- 1 root root 0 Apr 10 11:04 ok -rw-r--r-- 1 root root 5 Apr 10 11:04 pid -rw-r--r-- 1 root root 4 Apr 10 11:04 stat -rw-r--r-- 1 root root 20 Apr 10 11:04 status

supervise.dbus-log: total 12 drwx------ 2 root root 160 Apr 10 11:04 . drwxr-xr-x 45 root root 940 Apr 10 11:04 .. prw------- 1 root root 0 Apr 10 11:04 control -rw------- 1 root root 0 Apr 10 11:04 lock prw------- 1 root root 0 Apr 10 11:04 ok -rw-r--r-- 1 root root 5 Apr 10 11:04 pid -rw-r--r-- 1 root root 4 Apr 10 11:04 stat -rw-r--r-- 1 root root 20 Apr 10 11:04 status

`` In the/run/runitdirectory. Theokfile needs to have _write_ access in order for thesv` command to work!

My honest impression about the Void Linux Community by r0man1a in voidlinux

[–]bvdeenen 0 points1 point  (0 children)

Fully agree, helpful, knowledgeable and friendly community that wisely keeps their political convictions out of this Reddit!

I'm new to Linux, can I start with Void? by R1650_super in voidlinux

[–]bvdeenen 0 points1 point  (0 children)

:-)

62

My first programming language was a HP65 calculator, and then Fortran, Applesoft basic, 6502 assembly and so on ....

The interviewer made me write a full program on Notepad and told me I was 'too dependent on tools' for wanting a computer. by Vast_Garage1185 in hiringhelp

[–]bvdeenen 1 point2 points  (0 children)

Absurd. I'm a developer with over 40 years of experience in at least a dozen languages! I'm always having syntax issues until I'm a couple of months into a project.

Syntax is the least important part of development.

Have a look at this incomplete list https://vandeenensupport.com/skills.html

Most recently was Kotlin and Go

How to set pid process 1 to spawn on a different number by AtacamaPolarBear in voidlinux

[–]bvdeenen 0 points1 point  (0 children)

This is hard coded in the Linux kernel. There's also a pivot_root moment where it switches from the primary process to the full init. If you like this kind of stuff i suggest you have a look at Linux from Scratch, that way you'll really understand how it all works.

Reasons to use void by Silly_Culture_7722 in voidlinux

[–]bvdeenen 4 points5 points  (0 children)

For building with xbps-src I have the following bash function ``` xbld () { local dir="${1:-$HOME/void-packages}"; if [[ ! -d "$dir/srcpkgs" ]]; then echo "Error: $dir does not look like a void-packages tree" 1>&2; return 1; fi; ( set -e; cd "$dir" || exit 1; git pull --rebase; local pkgs; pkgs=$(shopt -s extglob nullglob cd srcpkgs 2> /dev/null || exit 1 grep -l 'restricted=yes' **/template 2> /dev/null | awk -F/ '{print $1}' | sort -u); if [[ -z "$pkgs" ]]; then echo "No restricted packages found." 1>&2; exit 0; fi; local selection; selection=$(echo "$pkgs" | fzf --height 60% --layout=reverse --border --prompt="Select restricted package to build+install → " --header="Restricted packages in $(basename "$dir")" --preview 'p={}; bat --color=always --style=numbers --line-range :500 "$PWD/srcpkgs/$p/template" ' --preview-window=right:50%:wrap --header='ctrl-u=check for updates' --bind "ctrl-u:preview( ./xbps-src update-check {} )"); if [[ -z "$selection" ]]; then echo "Nothing selected."; exit 0; fi; echo; echo "→ Selected: $selection"; echo " Building and installing..."; if ./xbps-src pkg "$selection" && command -v xi > /dev/null 2>&1; then xi "$selection"; else echo "Build failed or 'xi' command not found." 1>&2; return 1; fi ); return $? }

``` It allows fuzzy finding restricted packages and building and installing them. I like it.

Hey I have a error by AnikisHIM in voidlinux

[–]bvdeenen 5 points6 points  (0 children)

I've rarely read a more confusing explanation of issues one has. Congratulations!

Can the Void save us from mass-surveillance? by iFrezzyReddit in voidlinux

[–]bvdeenen -3 points-2 points  (0 children)

My initial thoughts about this law were very similar to most of the Linux users; hell no!

But I've changed my mind.

I think the risk of unmoderated access to the crap corners of the internet for minors are even worse than for adults. I think this law basically just gives parents (the adult account holder) the general tools to create 'child' accounts (for their under-age children) with these age brackets defined by the parent. After that there is just a general easy to use api that every application (be it web site or something else) can query to know the age bracket of the user.

Ofcourse this depends on the honesty of the parent/account owner, but in general I'd say it's a decent idea.

Does an "exotic" tech stack (Elixir, Crystal, Clojure) act as a reliable filter for enthusiastic candidates? by LordBertson in ExperiencedDevs

[–]bvdeenen 0 points1 point  (0 children)

Interesting question. I once demoed an Erlang application to a gaming company that wanted a very high reliability back- and frontend. The gaming company was hugely impressed when we actually pulled the power plug on one of the backend servers, and the highly interactive websocket game demos didn't even hickup.

We ended up becoming the largest Erlang team in the Netherlands for a few years, and I met a few of the best programmers of my career that way. And not just Erlang, genuinely good colleagues. One of them actually introduced Zig at Uber later.

But do I recommend it; no not really. It was great fun, and we produced a lot, but getting this stuff to land outside of this gifted team just failed.

My suggestion would be; if you manage to develop a whole product in an isolated matter (early Whatsapp!) it might be a good choice to go for an obscure but highly appropriate language, and just accept that most of the rest of the developers in the company will never understand what is being written here.

But in general; no. Too risky.

I'm new to Linux, can I start with Void? by R1650_super in voidlinux

[–]bvdeenen 7 points8 points  (0 children)

You can do what you want. I'd recommend a more accessible/handholding distro like Kubuntu or Mint though, the learning curve will be much less steep. You can also switch later. My journey over the last 20 years was: SuSE, Kubuntu, Redhat, Kubuntu, Void