-
cjs
Clarification: Wayland already is entirely ready for regular desktop usage. It is not yet ported to be ready for regular (simple, stable) desktop usage on any BSD operating system; FreeBSD has the most of the bunch.
-
cjs
(No comment about any of this being good, bad, etc. -- just a clarification)
-
SponiX
cjs: there are some folks showing off hyprland screenshots in the FreeBSD Discord
-
SponiX
It looks slick
-
ivy
i used wayland (via sway, on amdgpu) on freebsd 15.0 for a few months and had no issues, it seemed very stable
-
[tj]
Isaac from rivervm is contracting at the foundation
-
ivy
-
quickrr
dmesg 'linux: jid 0 pid 96821 (***): syscall arch_prctl not implemented', can you make dmesg ignores it?
-
nwe
how should I do so I can close my lid and still use my external monitor, as it is now, when I close the lid it´s going to sleep mode, but I still want that functionality..
-
regis
nwe: try sysctl hw.acpi.lid_switch_state=NONE
-
nwe
regis: then I need to change it each time I dont have external monitor plugged in right?
-
regis
I can't test it now and it's a default setting iirc so it should work like that out-of-the box though.
-
regis
nwe: nah, /etc/sysctl.conf
-
regis
nwe: But honestly, I'm not sure if it'll work and can't test it at the moment.
-
nwe
regis: ended up with devd and script, and set hw.acpi.lid_switch_state=NONE
-
nwe
-
ivy
i am not finding much useful documentation on using blacklistd + postfix... i want to blacklist SMTP clients which are listed in RBLs or attempt relaying, how/where do i configure this?
-
ivy
-
mage
I use Postscreen for that
-
ivy
i use postscreen as well, but how do i configure it? does it just work magically?
-
mage
-
ivy
mage: and this make postscreen add addresses to blacklistd? i don't see any blacklist-specific configuration there so i assume it does just work by default
-
mage
no, I don't use blacklistd as I have HAProxy in front and blacklistd doesn't work with remote hosts
-
mage
blacklistd is pretty useless as it works with socket files only
-
ivy
so i have this in maillog: Jun 5 12:13:29 fuchsia postfix/postscreen[34966]: DNSBL rank 4 for [80.94.92.152]:50674
-
ivy
which is higher than postscreen_dnsbl_threshold (2), but blacklistctl dump does not show an entry for it
-
ivy
ah, i wonder if this is because i run smtpd in a chroot
-
mage
probably
-
ivy
there we go, with blacklistd_flags="-s /var/spool/postfix/var/run/blacklistd.sock" it works
-
regis
+1 on mage postscreen approach. I'm happy to share my postscreen settings and RBLS which work for me
-
ivy
i already use postscreen, my question is how to make postscreen talk to blacklistd
-
ivy
and the answer is indeed "it works by default", but only if you manually create the socket in the postscreen chroot
-
ivy
which does not seem to be documented anywhere, but i'm also not sure where it could reasonably be documented...
-
regis
-
regis
ivy: What would you use blacklistd for? I understand some kind of abuse like brute-force or bots?
-
ivy
regis: to drop connections from hosts which attempt to repeatedly connect, to avoid spamming maillog and creating unnecessary load on RBL servers
-
regis
ivy: I really only needed to do it on shared hosting (and we also had to implement web panel option for people to whitelist themselves in case they got blocked after unsuccessful dovecot login auth attempts etc) but I seriously don't bother fith blacklistsd or fail2ban on my private MTA. You do you of couse.
-
mzar
regis: blacklistd is a bit faster than fail2ban, it can break connection upon failure, but software support is very limited
-
regis
mzar: I'm not arguing around blacklistd/fail2ban comparison but just asked if any of these is really needed. That being said, I have little experience with blacklistd and never had issues with fail2ban's performance on environments like shared hosting - blocking addresses after several IMAP or SSH auth failures, bots scanning websites for vulns and getting given number of 404 responses during some
-
regis
timespan, etc
-
mzar
I am sorry, I didn't follow
-
ivy
it's not "really needed" since postscreen will drop these connections anyway, but it avoids generating 10MB+ of /var/log/maillog per day on a system that processes < 500 actual emails per day, which wastes CPU cycles and makes it harder to notice actual issues
-
ivy
huh, when did abuseat.org get swallowed by spamhaus?
-
quickrr
lines missing? always need plain?
imgur.com/9RY3pcA
-
tk
If creating a little utility, should I be storing state in /var/db/<program> or /usr/local/var/db/<program> ?
-
mzar
tk: /usr/local/var/db/ is nonexistent
-
tk
Sure, but I can create it.
-
tk
I assume you mean to imply that its non-existence suggests everything should be using /var/db regardless of whether it's installed to /bin or /usr/local/bin ?
-
mzar
tk: I don't know, can't judge, but never seen /usr/local/var/db/
-
|cos|
tk: /opt/tk-rulez/<program>, but make the path easily configurable in case your utility ever gets included in FreeBSD or ports?
-
tk
I doubt anyone will ever include my utility in anything. Would it be /opt/<organisation>/<program>/var/db then?
-
|cos|
typically the buildsystem resolves $PREFIX or something to /usr, /usr/local or whatever floats your boat
-
tk
The question is not where to put the binaries, I already understand the idea behind /opt and /usr and /usr/local, I was asking specifically about "database" type of data
-
mzar
tk: /var/db/ looks reasonable with regard to anothe db
-
ivy
tk: don't use /opt, that's an SVR4 thing, BSD doesn't use it. don't use /usr/local/var, ports specifically recommends against this because /usr/local is not meant to contain volatile data. use /var/db/<yourprogram> which is the standard path for this.
-
tk
thanks ivy
-
ek
Yes. I agree with: /var/db/<program>
-
ivy
security/krb5 puts its data in /usr/local/var but this is wrong and it shouldn't do that
-
|cos|
Since its personal software on personal systems, the question really becomes what you desires to achieve?
-
ivy
also even *if* you want to use /opt, you don't use /opt/myprogram/var/db, you use /opt/myprogram/bin, /etc/opt/myprogram and /var/opt/myprogram
-
ivy
but again this is SVR4, not BSD
-
|cos|
ek: You've read `man hier`. I'm uncertain if it answers your question.
-
|cos|
ek: sorry. tk was the intended recipient.
-
tk
Yeah I think hier(7) combined with what ivy said seems to answer what I needed
-
ek
|cos|: All good!
-
cjs
ivy: [tj]: Well, it is great to know that the next -RELEASE will have some daily driver ready Wayland :)
-
cjs
That will make FreeBSD the first of the BSDs to have Wayland for someone who is not trying to write code for Wayland.
-
kevans
er, is there actually anything specific to 15 for Wayland? wouldn't really think so
-
mewt
-/20
-
ivy
not that i'm aware of, other than having a newer drm version
-
ivy
i was mainly responding to the person who said Wayland won't be stable for 10 years, which seems... inaccurate
-
ivy
adrian: are you going to land D50111 or do you want me to nag kevans for approval and do it myself?
-
ivy
er, wrong channel
-
regis
ivy: Have you ad issues with "never drm" versions?
-
regis
s/ad/had/
-
ivy
regis: i don't know what "never drm" means
-
regis
ivy: Apologies - s/never/newer/
-
regis
ivy: quoting you. I refer to: not that i'm aware of, other than having a newer drm version
-
ivy
regis: ah. the reason i mentioned that was that 15.0 has newer versions of drm-kmod than stable/release versions. so it's possible someone using 14.x might have encountered problems that i didn't.
-
ivy
i have no idea about specific versions of drm-kmod and i'm not currently using freebsd on desktop
-
regis
ivy: Got it. I switched from 14-CURRENT directly to 15-CURRENT.
-
regis
That being said, drm-kmot is a port and you can you can switch to 'latest' (HEAD) ports on 14.
-
regis
s/kmot/kmod/
-
ivy
yes, but the 14.x "latest" version is older than the 15.0 "latest" version
-
ivy
the port makefile contains conditional code to build an older version on 14.x since it's missing KBI features that are in 15.0
-
ivy
(mostly related to LinuxKBI, aiui)
-
regis
ivy: Are drm-kmod and amdgpu from HEAD working differently on 14?
-
ivy
regis: they don't "work differently" but they are different versions of amdgpu
-
regis
By HEAD here, I mean latest ports and compiling from ports, not pulling pkg.
-
ivy
each new release of drm-XX-kmod typically requires new features from the Linux kernel being added to LinuxKBI, and those features are added in -CURRENT first, so it's typicaly that e.g. 15.0 has drm-66-kmod while 14.x only has drm-55-kmod, or whatever
-
ivy
('66' and '55' are made up version numbers, but you get the idea)
-
regis
ivy: Ports HEAD is the same for release/stable and current iirc.
-
ivy
no, you're misunderstanding my point
-
SponiX
lol
-
ivy
'drm-kmod' is a meta-port that depends on a specific port which is called drm-XX-kmod, where 'XX' is the version of the Linux kernel the drivers were taken from
-
regis
ivy: Ah, so you mean that 14 is missing some linux features from linuxkbi to make this stuff work. Got it.
-
ivy
the metaport almost always chooses a higher 'XX' (Linux kernel version) for 15.0 than it does for 14.x
-
ivy
this means people using drm-kmod on 14.x have an older version of the DRM drivers than people on 15.0, even if they're both using drm-kmod from the ports main branch
-
regis
ivy: I know what drm-kmod is. I was pulling it from github and testing different branches based on different Linux kernel versions before it was merged to ports.
-
ivy
regis: ok, then perhaps you weren't aware that this changed when the driver was added to ports. i'm not insulting you, i'm trying to explain why people on 14.x have an older version of the DRM drivers.
-
regis
ivy: Thanks. I was under the impression that since you can install it on 15 from ports, you could do it on 14 from HEAD ports as well.
-
ivy
that is true, you can install drm-kmod on both 14.x and 15.0. however, on 14.x, you will get an older version of the drm-XX-kmod driver.
-
ivy
because drm-kmod is a metapackage which depends on the specific version of drm-XX-kmod for the version of freebsd it was built for
-
regis
But the 'specific version' is the same from HEAD ports for 14 and 15
-
ivy
no, it's not
-
regis
Unless there are some Makefile if/or
-
ivy
please look at graphics/drm-kmod/Makefile to understand this
-
ivy
-
ivy
right now, freebsd 15.0 gets drm-66-kmod, while 14.x gets drm-61-kmod
-
ivy
unless you're on arm64 or i386 in which case you only get drm-510-kmod...
-
regis
ivy: OK, I understand that there some established defaults. But have you tried: git clone
github.com/freebsd/drm-kmod; cd drm-kmod; branch -a and compiling from different branches?
-
ivy
these are not "defaults", this is the *only* supported drm-XX-kmod version on each release
-
SponiX
regis: do that, give it a shot, then have a look at the code and see why it fails ;)
-
regis
ivy: clone above repo, git checkout origin/6.6-lts
-
ivy
unless you have an example of a 14.x system running drm-66-kmod, which i would certainly be interested in
-
SponiX
ivy: I have a TON of builds going, but I could try drm-66-kmod build with a pourdriere 14.2-RELEASE jail for lolz
-
regis
SponiX: I'm the one suggesting, not the one requiring a hint ;)
-
ivy
SponiX: i recommend not wasting time to respond to someone on IRC, but it's up to you :-)
-
SponiX
ivy: but I think even if it did manage to build properly it would likely kernel panic when it attempts to load
-
ivy
this discussion is fairly bizarre tbh, anyone who's actually used drm-kmod on freebsd is aware that newer freebsd versions have newer drm-kmod versions
-
SponiX
regis: I'm on the old "try it and see" stance
-
ivy
i'm not sure why someone would try to argue this is not true, other than trolling
-
regis
SponiX: Sure but I thought that you directed your comment not the right person. You wrote "give it it a shot" to me when I'm a guy here, telling someone how to do something.
-
regis
ivy: You got your hints. Work on them.
-
ivy
lol
-
regis
ivy: Not that I like responding to "lol" but tl;dr: pull the official repo and compile this fucking thing from proper branch on your 14
-
SponiX
O my
-
SponiX
root@bareMetalFreeBSD:/usr/ports # poudriere testport -j 142amd64 -p latest graphics/drm-66-kmod
-
SponiX
=======================<phase:check-sanity>============================
-
SponiX
===== env: DEVELOPER_MODE=yes DEVELOPER=1 STRICT_DEPENDS=yes USER=nobody UID=65534 GID=65534
-
SponiX
===> drm-66-kmod-6.6.25.1402000_3 not supported on older than 1500031, no
-
SponiX
kernel support.
-
SponiX
*** Error code 1
-
SponiX
It literally says to "check your sanity" lol
-
regis
OK, my mistake. I was unaware of this.
-
ivy
SponiX: this person is obviously trolling, i suggest /ignore ...
-
SponiX
ivy: you are correct, it for sure will not build
-
SponiX
ivy: Its okay, I'm new to FreeBSD, and don't mind the extra time to confirm ;)
-
ivy
mason: have you seen this?
openzfs/zfs #17340 -- apparently, they may have actually fixed the long-standing data corruption bug in ZFS native encryption
-
regis
I stated that I switched direction from 14 CURRENT to 15 CURRENT. Sucks to be called a troll.
-
SponiX
Yeah, its okay to just not know something. It happens
-
SponiX
I've been doing Linux since roughly 1995. And only recently got into FreeBSD. So the "try it and see" was my honest recommendation. I wasn't trying to be an ass or anything
-
SponiX
That does remind me though, I probably need to make another bectl snapshot in case I do jack up my OS
-
mason
ivy: I haven't. Reading now - thanks! It would be extremely convenient for native encryption to be reliable.
-
ivy
mason: right? although aiui, they aren't quite sure why this actually fixes the problem. but apparently it does
-
mason
ivy: Yeah, the commentary near the end makes me think I want to wait to see the test suite updated, a reliable root cause identified, and then for some time to pass with people happily encrypting away before I migrate.
-
ivy
this also doesn't change that they continued to ship ZFS encryption for years with a known data corruption bug and felt no need to informs users about it
-
ivy
apparently i am being told off in another channel for going on about this, but i find this very concerning
-
mason
Oh? =looks=
-
SponiX
anything related to data corruption should be taken seriously
-
scoobybejesus_tl
the last episode of 2.5 Admins seemed to give it a decent explanation (the ZFS encryption bug/fix on raw sends)
-
ivy
finally got around to opening an issue for my weird poudriere bug:
freebsd/poudriere #1225
-
SponiX
ivy: might not be needed, but your jail OS version isn't filled out on that post
-
ivy
SponiX: yeah i wasn't sure what to put there
-
ivy
the poudriere jail is the same version as the host
-
ivy
-
ivy
apparently today is bug day
-
regis
> the poudriere jail is the same version as the host
-
regis
version of?
-
ek
regis: Version of the host. 15.0-CURRENT
-
demido
how's 14.3 RC1 looking?
-
kevans
things seem to be going smoothly
-
demido
nice