-
Dimonax
Anyone having trouble with this site?
wiki.freebsd.org/CoverityPrevent
-
phryk
Dimonax: i assume you're just getting varnish errors, too?
-
phryk
Dimonax: wayback machine on archive.org likely has a working snapshot of that page. worked for the UEFI page on the wiki a couple hours back. :P
-
Dimonax
phryk: Yup.
-
Dimonax
I'm assuming someone is working on it.
-
phryk
I'm honestly not so sure. If memory serves the wiki is kinda-sorta deprecated, but I don't recall the specifics…
-
Dimonax
phryk: Is there another place I should be reading besides the wiki?
-
kevans
phryk: #comments on same line should be fine
-
phryk
Dimonax: i have no idea what CoverityPrevent is. usually it's a matter of figuring out what the right man page to read is…
-
phryk
kevans: okay, they never did for me, and having 'tmpfs_load="YES" # comment here' in my loader.conf made it act as if the line wasn't in the file at all…
-
kevans
interesting, I'll have to fix that
-
phryk
^^
-
phryk
sorry to heap the trouble onto you :D
-
Dimonax
I'm just looking through the packages list to see what's available for static code analysis.
-
kevans
phryk: where does the tmpfs come into play in this setup, exactly?
-
phryk
kevans: it's defined in my /etc/fstab
-
phryk
"tmpfs /tmp tmpfs rw,mode=777 0 0"
-
phryk
I'm honestly not sure if mode=777 is a good idea, but that's beside the current problem^^
-
kevans
ah, ok, so the geli issues in this dmesg were just to get it rebiited
-
phryk
kevans: geli issues? you mean all the ada ones? i assigned the geli keys to gpt labels and there's no option to just ask for passphrase for devices that are actually configured in loader.conf…
-
phryk
it's super annoying and also the reason why loader.conf disables kern.geom.label.gptid.enable because those would come before the text-based gpt labels, making the whole thing even longer. :F
-
kevans
ahh, ok
-
phryk
(i want the setup to just keep running if i shuffle drives around)
-
kevans
yeah, so tmpfs is in the kernel, MOD_LOAD fails because of that but then we run sysuninits and actually kill parts of the in+kernel tmpfs, presumably
-
phryk
kevans: huh, i actually looked into kern.conftxt and it doesn't mention tmpfs…
-
kevans
phryk: did you look for tmpfs or TMPFS?
-
phryk
it does mention aesni tho, which is why i commented that out – but that option also didn't create any trouble with the current kernel when it was still active
-
phryk
kevans: oooooooooooooooooooooooooooh :D
-
kevans
yeah, fs are options rwther than devices
-
phryk
good to know^^
-
kevans
this still shouldn't happen, I'll take a look at it, too
-
phryk
mhh, I've run into a different wall with my update tho… all certificate validation fails. i assumed it was because ca_root_nss is so outdated, so i copied over the cert.pem from my laptop running 13.0 (device i'm writing from) – but that doesn't fix the issue and I'm not at all sure why…
-
phryk
can't even update my pkg because of that… can't get a current version of ports for poudriere either…
-
phryk
put the cert at the same location pkg query says ca_root_nss puts it and md5 /etc/ssl/cert.pem gives the same result on my laptop and the server… still, cert validation works on my laptop but not the server
-
kevans
how's time look?
-
phryk
time or date?
-
kevans
both
-
kevans
time being shorthand for rtc =p
-
phryk
ntp is active, my laptop is actually a couple seconds behind because i don't have ntp[date] active on it…
-
kevans
csn you remove ca_root_nss?
-
phryk
yes, but then i won't be able to reinstall, will i? a bit skittish as cert.pem doesn't seem to be all there is to it…
-
kevans
base has root ca bundle installed
-
kevans
ca_root_nss has net negative value these days
-
phryk
uh, that will also remove poudriere, qemu, git, gpg and a bunch of other things…
-
phryk
(userland is still on 11.2, that's the thing i'm currently trying to rectify)
-
kevans
ahh
-
kevans
nevermind, carry on
-
phryk
kernel base is on 13.1, tho.
-
phryk
guess I'll just pkg query -a %n >> some_file and later pkg install `cat some_file`…
-
kevans
for a long while I considered running 13.1 userland with dev kernel normally for stability, but I do enough one-off userland replacements that it doesn't make sense
-
phryk
kevans: the reason i started with poudriere is a mix of ideology plus the musicpd package from official sources (at least way back when) not supporting sqlite out of the box… nowadays it's mostly a thing of keeping things just in case of an apocalypse :P
-
phryk
mhh, so first pkg complained about the mismatch of the new .cert file i overwrote the old one with and said it wouldn't remove the package, but then pkg query didn't show it installed anymore and pkg remove says it's not installed either – cert validation still fails…
-
phryk
i think i might just be confused about pkg-static – i thought that was a guaranteed-to-work version of pkg within the base system… but pkg-static is in /usr/local/sbin while pkg is in /usr/sbin…
-
kevans
that pkg is a fraud
-
kevans
it just invokes the pkg binary in /usr/local/sbin
-
phryk
then what's the point of pkg-static and why is it recommended to use it after doing major upgrades?
-
kevans
because it's statically linked, if any of your
-
kevans
critical .so are hosed you lose dynamic pkg
-
phryk
ah. alright.
-
phryk
anyhow, pkg[-static] fails with "FreeBSD.meta has wrong version 2" – there's a pkg2ng executable which I surmise might be what I'm looking for, but no man page or --help for it…
-
phryk
ah no, apparently pkg bootstrap -f, and cert validation actually works for that…
-
phryk
worked. :)
-
phryk
hah, and poudriere immediately pulls in ca_root_nss again^^
-
kevans
phryk: I can't seem to reproduce the loader comment... I've tried both foo_load="YES"\t# comment and foo="yes" # comment
-
kevans
issue
-
phryk
kevans: huh, weird… well, at least we know it's not an issue on every system then…
-
kevans
oh, I have an idea
-
kevans
this was an 11.x world
-
kevans
kenv script.lang from userland?
-
kevans
I wonder if forthloader didn't actually handle inline comments
-
phryk
"lua"
-
phryk
11.x? this is on a server without X11 or other GUI thing if that's your thought.
-
phryk
oh wait, 11.x as in freebsd 11.x :'D
-
kevans
yeah
-
kevans
is it running an updated kernel *and* loader?
-
phryk
yes. i just replaced the old-style gpart bootcode thing with efi today.
-
kevans
hmm, funky
-
phryk
with loader.efi that i had in /boot after the upgrade
-
kevans
I don't think there's been any real changes to lualoader since 13 branched, but I'll take a gander again
-
phryk
good luck, sounds like it might be hard to find^^
-
CCFL_Man
phryk: thanks mang!
-
tuaris
Does inetd starts a copy of each command as it's own process for every inbound connection? meaning I don't need to worry making sure my script has to handle multiple connections and forking each one?
-
yuripv
tuaris: i *think* that depends on the wait/nowait entry
-
MelMalik
tuaris, correct, inetd forks for you. that is also the behavior of UCSPI tcpserver. inetd also allows starting the command once and letting it do the accepting in the future - tcpserver does not support this.
-
saltd
bad and resource heavy scenario
-
saltd
but in unix world threads has no such use like in windows/(probably linux kernel)
-
saltd
why, i dont know
-
tuaris
"tcpserver".. hmm, never knew about that one
-
saltd
trading entire process to connection versus 1024k stack space
-
pstef
dvl: launching a jail is easy, but I think technically, even a chroot env would do. Ultimately, you just need two sets of binaries
-
joneum
hm, is the form down?
-
joneum
"Page could not be loaded"
-
joneum
*forum
-
crb
I'm so confused! I'm trying to track down a kernel problem that prevents 13.1 release from booting on my board. I've found to commits one that works and one that doesn't so I'm trying to use git bisect to figure out where the issue was introduced. I've done git bisect start ; git bisect good foo; git bisect bad bar and then tried building the kernel but the build fails as Makefile is missing in my /usr/usrc
-
crb
That's my first problem
-
crb
then I try to look at the commit using git hub that gets checked out by git bisect. The commit is 3e5300e0ed3c4b49e3b0dab7daded1e3bfaaded7 which git find in my local repo but not in the git hub repo
-
crb
I'm lost and dazed and confused and not sure how to proceed
-
parv
crb, To start do you have the full repository (not the "shallow" kind)? As for the missing commit, I see that in my local copy of the repository ("Support Debian DKMS builds" of 2018)
-
crb
parv, yes I have a full repo
-
crb
yes that's what my local git shows, but I don't see when searching on git hub
-
crb
I'm probably just doing something wrong
-
parv
-
VimDiesel
Title: src - FreeBSD source tree
-
parv
crb, By "build fails as Makefile is missing in my /usr/usrc", do you mean "/usr/src/Makefile" or some other Makefile elsewhere under the tree gone missing?
-
crb
yes /usr/src/Makefile
-
parv
Ok
-
crb
So I was going to go to git hub and look at the failing commit and start trying to see why Makefile was missing, or indeed if it's missing in git hub, maybe it's something wrong with my local usage of git bisect
-
crb
this is my first time try to git bisect
-
parv
Wish I could help you with "git-bisect" :-( but have yet to use it
-
crb
parv no problem, but thank you for trying
-
Plasmoduck
Hey, I've got a usb dj mixer I want to use with mixxx, how can I configure it in FreeBSD?
-
Plasmoduck
This is the dmesg output for the device
dpaste.com/7MUEG8BJ8.txt
-
meena
jeffpc: i created this:
alpha.pkgbase.live but I'm currently back to working on adding better BSD support to cloud-init and don't have much time to work on PkgBase. that being said, it's constantly evolved in CURRENT and stable fixes and features are merged to STABLE
-
VimDiesel
Title: Unofficial FreeBSD pkgbase repository
-
Plasmoduck
anyone?
-
Plasmoduck
when I click on controllers in mixxx it can't see anything
-
Plasmoduck
so I need to make freebsd turn it on
-
phryk
CCFL_Man: yw :)
-
Remilia
Plasmoduck: did you check device permissions?
-
Plasmoduck
how?
-
Remilia
it should be in /dev and your user probably needs permissions for it (might be a group)
-
Remilia
I cannot really think of anything else at the moment :\
-
Plasmoduck
ok what am I looking for in /dev?
-
Remilia
-
VimDiesel
Title: Solved - USB MIDI controller not recognized by DAWs | The FreeBSD Forums
-
Remilia
weird
-
Remilia
oh, you might need that jackd thing
-
Plasmoduck
umidi0.0
-
Remilia
it seems like mixxx supports JACK
-
Remilia
you may want to try adding it between your controller and mixxx
-
Plasmoduck
so I need jack_umidi-1.1.1_1 ?
-
Remilia
I have no idea, sorry, never tried anything MIDI with FreeBSD
-
Remilia
but the forum post should give some pointers
-
meka
Plasmoduck: if you are running mixxx with jack, yes, you need jack_umidi and then run it with jack_umidi -d /dev/umidi0.0
-
meka
If it uses alsa, then you probably want alsa-seq-server
-
Plasmoduck
yep so I jack working
-
Plasmoduck
but mixxx still doesn't show my mixer/scratcher
-
Plasmoduck
do I need to add myself to some group?
-
meka
I never used mixxx so I can't help
-
meka
ls -l /dev/umidi0.0 and post the output
-
meka
I think 13.1 got patch to fix permissions
-
Plasmoduck
im not on 13
-
Plasmoduck
crw-r--r-- 1 root operator 0x29b 24 Sep 21:57 /dev/umidi0.0
-
meka
Ah, that makes sense
-
meka
Wait I had config for that, too, let me try and find it
-
meka
Plasmoduck:
bsd.to/ZAsx is from /etc/devfs.rules
-
VimDiesel
Title: dpaste/ZAsx (Plain Text)
-
meka
You will probably have to restart devfs service
-
Plasmoduck
ok I added that in /etc/devfs.rules and done 'service devd restart' but 'ls -l /dev/umidi0.0' still shows 'crw-r--r-- 1 root operator 0x29b 24 Sep 22:14 /dev/umidi0.0'
-
Plasmoduck
do I need to reboot?
-
meka
not devd, devfs
-
Plasmoduck
oh oops
-
Plasmoduck
okay, restarted devfs and same thing crw-r--r-- 1 root operator 0x29b 24 Sep 22:17 /dev/umidi0.0
-
meka
oh yeah, sorry, there is something in rc.conf
-
meka
devfs_system_ruleset="5"
-
meka
ah, wait, wrong again devfs_system_ruleset="localrules"
-
Plasmoduck
ok now what?
-
meka
restart devfs again and see if permissions are OK
-
Plasmoduck
same thing
-
meka
Plasmoduck: I remembered I have it written down:
meka.rs/blog/2017/06/17/freebsd-usb-midi
-
VimDiesel
Title: meka - Goran Mekic - hacker and a musician
-
meka
Sorry for being slow, dealing with hangover here
-
Plasmoduck
all good
-
Plasmoduck
it says to reboot
-
Plasmoduck
brb
-
Plasmoduck
back, still same crw-rw-rw- 1 root operator 0x281 24 Sep 22:30 /dev/umidi0.0
-
meka
but rw-rw-rw- is exactly what you need
-
Plasmoduck
ok
-
Plasmoduck
cool
-
meka
I don't know what mixxx requires, but you can check midi works
-
meka
-
VimDiesel
Title: ⚙ D36195 The simplest OSS MIDI example
-
meka
it will just print note/controller data to console
-
meka
or even simpler, cat /dev/umidi0.0 should spew out garbage when you change your controls
-
meka
If you have MIDI hardware connected to your computer's MIDI out, you can "cat /dev/umidi0.0 >/dev/umidi0.0" to see if you can read and write to the device
-
Plasmoduck
it's still now working though, like on macos all the lights are on the mixer when it's connected. On FreeBSD, it only lights up when I plug it in for a second.
-
Plasmoduck
yeah its not working, cat /dev/umidi0.0
-
Plasmoduck
oh actually, it only shows stuff for one button, the cross fader
-
jeffpc
meena: very cool; thanks for working on this
-
jeffpc
if it isn't clear, I look forward to pkgbase being the way to manage the base
-
jeffpc
:)
-
debdrup
pkgbase is gonna be nice if you have a laptop and a buildserver.
-
meka
Plasmoduck: it means you can read whatever is coming from the controler, but I guess it's about figuring out why controler is not sending everything
-
debdrup
Building just what you need without clang et al is gonna keep FreeBSD nice and swelte.
-
jeffpc
IMO just having one way to update the whole system is going to be sweet
-
meka
Plasmoduck: can you "ls -l /dev/umidi1.0"
-
jeffpc
instead of freebsd-update multi-step process followed by pkg update/upgrade
-
Plasmoduck
No such file or directory
-
Plasmoduck
its /dev/umidi0.0
-
meka
Sometimes hardware expose multiple MIDI devices so I'm just checking
-
meka
No idea at this point, honestly
-
Plasmoduck
ok
-
Plasmoduck
yeah, I think maybe it's just not supported
-
Plasmoduck
I give up
-
meka
You definetely needed those umidi permissions set, but I don't know what you could try next
-
debdrup
jeffpc: the only issue is, it's kind of a violation of the whole idea that the BSDs have with a base system and third-party packages being separate, and I don't think it means freebsd-update is going away any time soon.
-
jeffpc
right, it is a bit of a shift in perspective; we'll see what it actually looks like when it hits a release
-
debdrup
It certainly has its uses, there's absolutely no doubt about that - but there's also places where it doesn't make a whole lot of difference.
-
debdrup
Like I hinted before, the best use-case for it if you've got a combination of a less-powerful system and a very powerful system.
-
V_PauAmma_V
Since I only have a laptop, it looks like pkgbase isn't for me.
-
jeffpc
actually, speaking of freebsd-update, recently I upgraded from 13.0 to 13.1, and some of my jails look funny afterward; some of the libs (e.g., /lib/libedit.so) look old but freebsd-update says that I'm up to 13.1-p2
-
debdrup
The buildserver can build FreeBSD in.. minutes, especially if you strip out things by using WITHOUT_ in make.conf(5).
-
debdrup
V_PauAmma_V: unless you can find someone who you trust and who'd be interested in building things for you.
-
debdrup
jeffpc: might've been missed in ObsoleteFiles.inc
-
jeffpc
debdrup: but other jails on the same box upgraded fine
-
debdrup
Huh.
-
» debdrup shrugs
-
V_PauAmma_V
debdrup, I found that someone already. It's releng and the infra people. :-)
-
debdrup
V_PauAmma_V: :)
-
debdrup
If you're happy with -RELEASE, there's absolutely no reason to use anything else.
-
debdrup
Once 14 hits -RELEASE, I might go back to it, we'll see.
-
V_PauAmma_V
I like not being any more of a sysadmin than I strictly have to.
-
debdrup
pkgbase also makes it easier to build ones own releases of FreeBSD that're minified the same way I mentioned earlier.
-
debdrup
V_PauAmma_V: that makes sense.
-
Plasmoduck
if I change my hostname in rc.conf can it mess anything up? Like existing config files or programs functioning?
-
debdrup
I don't think I do more than I strictly have to, so I guess I feel the same way, it's just a question of degree.
-
jeffpc
debdrup: in a way, I don't care - the jails work, but it does look like things aren't upgrading properly (likely because I screwed something up)
-
jeffpc
-
VimDiesel
Title: dpaste/Kwnj (Plain Text)
-
» debdrup shrugs
-
jeffpc
:)
-
debdrup
If it ain't broke, et al.
-
jeffpc
yeah, at some point I'll probably reinstall the jails from scratch, so I don't care much :)
-
debdrup
Well, that sentence can go two ways; either "don't mess with it", or "tweak it until it breaks" ;)
-
jeffpc
:)
-
debdrup
They're dynamically loaded libraries, so if you were the paranoid kind you could always try renaming them, with the knowledge that you might have to boot to /rescue/init using a kernel environment variable in the loader environment if anything breaks. :P
-
jeffpc
it's actually more than just libedit.so; the nightly security email from one of the jails lists only 2 setuid files changing during the upgrade (which is wrong given that other jails listed a ton of files)
-
Remilia
Plasmoduck: it is a good idea to make sure the hostname you set in rc.conf resolves (via /etc/hosts for example)
-
saltd
forget about rules you have rc.local! (touch /etc/rc.local && chmod a+x /etc/rc.local && echo "fortune" >> /etc/rc.local)
-
saltd
oopts
-
saltd
#!/bin/sh al so
-
Plasmoduck
oh no I just accidently deleted my /etc/devfs.conf
-
Plasmoduck
how can I get it back
-
yuripv
find /usr/src -name devfs.conf and copy it over
-
Plasmoduck
thanks
-
debdrup
If you use periodic snapshots, there's also .zfs
-
Plasmoduck
debdrup: I need to learn all that
-
Plasmoduck
I'm going to order the FreeBSD ZFS book
-
daemon
alterantive is you could pop a vm and just keep prototype trying stuff to find out what works :)
-
Plasmoduck
true
-
daemon
plus you get to cock about with bhyve
-
daemon
which is always fun
-
Plasmoduck
I need to get some more Thinkpads, one for FreeBSD 13* and one for OpenBSD.
-
daemon
mhmmm
-
daemon
I mean on the note of bhyve
-
daemon
you could just run a thin hypervisor and do both
-
daemon
or simply dualboot
-
daemon
as old school as that is
-
daemon
I took to installing all my bsd's and linux's on usb pens, so my carbon x1 runs windozer 11 normally
-
daemon
but I can boot into whatever
-
daemon
256G of space on a usb pen x-x insane
-
daemon
whats more if you want to be extra spicy, you can reduce the space the windows install uses, and use the usb pens as roots only
-
daemon
i.e. bootkey only
-
daemon
mount a slab of space on the internal nvme's
-
daemon
and you won't cock the bootloader up that way
-
Plasmoduck
I have an X1 Carbon also, Gen 4
-
daemon
ah mines a gen 6 I think
-
daemon
im not actually sure x-x
-
daemon
wonder if it says on the back
-
edenist
X1 carbon Gen 1 here :-D
-
daemon
yep it says it on transparent writing on the black back of the case
-
daemon
thanks lenovo
-
daemon
6th gen
-
daemon
lol
-
Plasmoduck
nice
-
Plasmoduck
I want to upgrade to that model
-
daemon
apparently a 20KH-007BUK 18/11
-
daemon
in a weird way its not even mine I gave it to the mrs
-
daemon
she started a job at the same company I work for (I know weird right)
-
daemon
and I know what laptops they give to employees (horrible asus bricks)
-
daemon
its always mystified me why companies give such cheap crap hardware out to employees
-
daemon
the difference between something decent being so small and all
-
daemon
but eh not my department -_-
-
Remilia
daemon: I used an Asus laptop from 2007 to 2014 and gave it away to an acquaintance, and they are still using it
-
Remilia
everything works, from the DVD-RW to all USB ports and wifi etc.
-
Remilia
(tbh your definition of cheap scares me, I paid €1900 for that machine)
-
phryk
Plasmoduck: if memory serves, i had to install some obscure package and run it manually in my terminal for a midi keyboard to be recognized, but i just read through my complete package list and didn't recognize the name… :F
-
phryk
also, not sure if jack had to be running as it was needed for ardour anyways. i see in my rc.conf that i have jackd_user="phryk" in my rc.conf which IIRC was needed so programs run by my user could actually use jack.
-
phryk
mhh, the obscure package might be jack_umidi but it's been at least half a year since I fiddled with the midi keyboard…^^
-
Remilia
-
VimDiesel
Title: GitHub - hselasky/jack_umidi: Raw MIDI to JACK daemon
-
skered
The whole sshd needing to be reset for upgrades to 13.1 has been fixed in the upgrade/installer right?
-
skered
er ok.. still needed in 13.1 userland install
-
rwp
skered, Lurker here. What do you mean by "sshd reset"? As I was about to upgrade a system from 12.3 to 13.1 today...
-
skered
-
VimDiesel
Title: 263489 – sshd does not work after reboot to 13.1-RC4
-
skered
Just reboot or restart sshd after userland install.
-
skered
Even though I think that service sshd restart isn't correct.
-
rwp
Thanks for the heads up about it. sshd not accepting new connections feels very odd!
-
V_PauAmma_V
Check the release notes. I think 13.1 has a different OpenSSH version.
-
rwp
Reading through
bug 263489 has more details. Looks like it is something between OpenSSH <8.2 to >8.2.
-
VimDiesel
263489 – sshd does not work after reboot to 13.1-RC4
bugs.freebsd.org/bugzilla/show_bug.cgi?id=263489
-
rwp
And FreeBSD 12.3 has 7.9 and 13.1 has 8.8 so that definitely crosses that threshold of OpenSSH versions.
-
skered
rwp: Ok nm.. I confirmed it's all good. And restart after userland restores sshd.
-
rwp
Thanks skered. I reviewed the OpenSSH notes but don't see the root cause in the 8.x series.
-
rwp
The machine today I have physical access to so no problem in any case. But I will look to see what if any errors are logged.
-
rwp
In the meantime I got distracted by working on other problems!
-
jeffpc
yeah, ok... one of the jails is very messed up and not fully upgraded:
-
jeffpc
ld-elf.so.1: /lib/libc.so.7: version FBSD_1.7 required by /usr/local/lib/libpython3.9.so.1.0 not found
-
jeffpc
libc.so.7 has only up to FBSD_1.6
-
jeffpc
but when I run freebsd-update -j $jail fetch, I get:
-
jeffpc
No updates needed to update system to 13.1-RELEASE-p2.
-
jeffpc
is there a way to force freebsd-update to replace files instead of whatever optimization it is doing?
-
skered
-
VimDiesel
Title: upstream: Add a sshd_config "Include" directive to allow inclusion · openssh/openssh-portable@c2bd7f7 · GitHub
-
skered
As long as you're not exiting the session that does the userland install or you reboot it's fine.