-
Demosthenex
hrm. so i'm using virtual_oss and the software dsp is my default sound device. it works for mpd and virtualbox, but firefox still insists on going to my laptop speaker. i've already set the cubeb to oss. any ideas?
-
mason
Demosthenex: I think you need to select a sound back-end in Firefox's config.
-
Demosthenex
mason: i have, the media cubed oss thing
-
mason
Demosthenex: in the context of about:config?
-
Demosthenex
about:config, media.cubeb.backend = oss
-
mason
kk
-
mason
That's the only thing that comes to mind then. Hopefully someone else will have an idea. As usual, the devout X folks are in efnet:#freebsd-xorg
-
jauntyd
Demosthenex, 'media.cubeb.backend "OSS"' in about:config for FF
-
mason
Case matters?
-
jauntyd
i have never tried any other way ;-;
-
jauntyd
would be interested to know as well
-
Demosthenex
nope, still laptop speakers
-
Demosthenex
oss and OSS
-
Demosthenex
and restarted ff
-
jauntyd
oh hmm
-
jauntyd
what is the output of "cat /dev/sndstat"
-
eborisch
-
VimDiesel
Title: HEADS-UP: stable/14 branched
-
torbo
Can I run an LLM on an Nvidia 3090 on FreeBSD?
-
kenrap
RhodiumToad: on a related note from our discussion about usb3, I'm using sata-to-usb adapters for SSDs that I use as external storage and the chipset of those adapters allow me to pass TRIM to them. Recently I decided to reformat one of my drives to using UFS+SU but I couldn't use trim with it, despite having done so with them formatted with ntfs.
-
kenrap
Would you know what's going on there?
-
RhodiumToad
what does sysctl kern.cam.da.N.delete_method show?
-
kenrap
Ah: kern.cam.da.0.delete_method: NONE
-
kenrap
Okay, so I need to assign it with ATA_TRIM
-
kenrap
I suppose that's a thing that should have been detected already and not a tunable.
-
RhodiumToad
it looks like you can only set it to values that were detected as supported, except for DISABLE and ZERO
-
kenrap
Gotcha
-
kenrap
I might want to make a report for this for the adapter chipset.
-
nerozero
just found btop - mind blown....
-
Demosthenex
nerozero: yeah, btop rocks
-
Demosthenex
but the zfs stats dont work
-
Demosthenex
regarding sndstat,
termbin.com/9dsl pcm0 is the laptop speaker, and dsp (no number) is virtual_oss
-
Beladona
Question: If i put one database or one part of table (a partition) on another disk via tablespace, the system shuts down, at reboot freebsd tries to recover db data but finds that one of the disks are unavailable as those were encrypted disks (not yet decrypted). They are manually decrypted after the system starts. Any ideas how safe and sane is
-
Beladona
it?
-
Demosthenex
Beladona: just means you'll have to enter a password
-
Demosthenex
and maybe not autostart your db
-
Beladona
no, those are geli disks with pools, i decrypt manually
-
Demosthenex
so i set the ifconfig debug flag on my wlan0 using iwm, and i'm only seeing wpa_supplicant messages, any way to see additional data? i'm curious about abnormal retries or state changes
-
Demosthenex
Beladona: ok, so it just means you have no automatic startup
-
Demosthenex
dont' start the DB at boot, or it'll complain it's missing the FS
-
Beladona
ok, how can I disable autostartup of postgres? Demosthenex
-
Demosthenex
Beladona: disable it in sysrc
-
Demosthenex
maybe sysrc postgres_enable=NO
-
Beladona
ok
-
Beladona
then service start postgresql manuall?
-
Beladona
Demosthenex where is sysrc?
-
Demosthenex
edit /etc/rc.conf by hand, or use the sysrc command
-
Demosthenex
/usr/sbin/sysrc postgres_enable=NO
-
Demosthenex
and i'm only guessing at the service name
-
Demosthenex
check what's in the /etc/rc.conf first
-
Demosthenex
later you can do service postgres onestart
-
Demosthenex
later you can do "service postgres onestart"
-
meena
Beladona: my recommendation is to use service <service_name> enable
-
meena
it uses sysrc underneath, but it also makes sure the service you're trying to enable actually exists
-
kenrap
Neat!
-
kenrap
That needs to be documented in the help usage and man pages
-
Demosthenex
meena: but it shouldn't autostart, does enable set that or just start it?
-
CmdLnKid
man service
-
meena
enable enables it for autostart
-
Demosthenex
then that's wrong. needed to disable it
-
meena
Demosthenex: service <service_name> disable
-
CmdLnKid
try onestart
-
meena
i misread.
-
dstolfa
Demosthenex: in that case onestart is what you want, but you'll have to do it every time
-
dstolfa
(obviously)
-
CmdLnKid
seems all those descriptions are missing from the man page for service
-
kenrap
Yep
-
CmdLnKid
someone didn't have the time for the BSD way
-
CmdLnKid
bet its mentioned in the handbook though
-
» meena needs to submit that patch
-
CmdLnKid
only mentioned once from a brief cursory
-
CmdLnKid
service nginx onestart
-
CmdLnKid
thx meena
-
CmdLnKid
🍺
-
kenrap
I appreciate it as well
-
» CmdLnKid <<< no good at manpages. I usually end up copying another section and then hack it into place with machette
-
meena
all I've done for the past week or so was write man pages
freebsd/freebsd-src #827
-
VimDiesel
Title: document pmap_kextract/vtophys and optionally improve the code by igalic · Pull Request #827 · freebsd/freebsd-src · GitHub
-
CmdLnKid
high respect
-
meena
but low income
-
CmdLnKid
see something commit something
-
dstolfa
meena: write the software: 2 days. write the man page: 1 month. at least that's how it goes for me usually
-
CmdLnKid
service has been around since how long tho
-
CmdLnKid
one month turns into a decade
-
Beladona
meena so I disable it? I mean how to disable it at boot
-
CmdLnKid
you know how rc.conf(5) works ?
-
CmdLnKid
$EDITOR /etc/rc.conf
-
CmdLnKid
you can use (service disable) but its important that you know where that comes from
-
CmdLnKid
and that you can verify that
-
CmdLnKid
a front loader doesn't ask if the shovel is attached
-
CmdLnKid
only said it that way cause there is one driving down the street right now an im annoyyed
-
Beladona
CmdLnKid so I put postgresql_enable=no" in /etc/rc.conf and it will not run it at boot time. Thats all? I can then run manually by `service start postgresql` later?
-
CmdLnKid
just make sure that var doesn't appear and youll be in the right place
-
Beladona
ok.
-
Beladona
CmdLnKid so I delete postgresql_enable=yes" in /etc/rc.conf and it will not run it at boot time. Thats all? I can then run manually by `service start postgresql` later?
-
CmdLnKid
but in the least if set no then yes the service will not start
-
CmdLnKid
correct
-
Beladona
thanks
-
CmdLnKid
whatever appears last in rc.conf will be the last evauluated statement
-
rtprio
*onestart, rather than start, but yes
-
CmdLnKid
if you have more than one then the whats above will take effect
-
CmdLnKid
grep 'postgresql_enable' /etc/rc.conf will show
-
iomartin
Hello, I'm creating a new port to FreeBSD and I want to split it into multiplace packages (one package with main program and shared libraries, another with development headers, another pkg with optional features, etc.). I'm thinking about using slave ports, is this the right way to go?
-
iomartin
-
VimDiesel
Title: Chapter 5. Configuring the Makefile | FreeBSD Documentation Portal
-
iomartin
Essentially I want to build it once, but have a different pkg-plist for each subpackage
-
RhodiumToad
iomartin: there's a #freebsd-ports channel; but the short answer is that currently, one build can only produce one package
-
RhodiumToad
slave ports or flavors can produce separate packages from a single distribution, but each is built separately
-
iomartin
RhodiumToad: I see, thanks for the explanation. That's unfortunate, but I think I can live with it it, my port doesn't take too long to compile
-
RhodiumToad
it's not conventional in freebsd to split out development headers/libs into separate packages from the runtime
-
RhodiumToad
splitting out optional features is good especially if it reduces the number of dependencies on the main package
-
iomartin
Yeah, this is what I'm trying to achieve. I'm porting something that on Debian/Red Hat is split into 6 packages so I was thinking I'd replicate it on FreeBSD. Some features are useful just for a handful of users
-
iomartin
But some have distinct "make" targets so I can avoid compiling everything for all of them
-
costly
you can use options in ports
-
RhodiumToad
options are... often problematic
-
RhodiumToad
firstly, the package builders build only with default options
-
RhodiumToad
secondly, packages depending on it can't specify which options they need
-
costly
maybe I missed it, but what package does iomartin want to port?
-
RhodiumToad
they didn't say
-
RhodiumToad
I'm pretty sure that the ability to produce multiple packages from one build is a feature that people want, but I don't think anyone's done the work to see what kind of modifications to the framework would be needed
-
RhodiumToad
flavors have existed for a long time and there is still a _ton_ of framework stuff that doesn't handle them properly
-
iomartin
costly: can you elaborate on how I could use options?
-
costly
-
VimDiesel
Title: Chapter 5. Configuring the Makefile | FreeBSD Documentation Portal
-
costly
iomartin: it really depends on what you are porting, for "normal" applications, I suggest you use Options, for more complex libraries or apps which become dependencies see RhodiumToad's comment, they may not be suitable
-
iomartin
costly: I had somehow missed that section, let me take a look
-
iomartin
costly: but it is an application to interact with the hardware my company makes. It is not particular large but logically the packages are different parts. For example, there is a documentation package that is large-ish. Or a prometheus-exporter package. So stuff that not everyone will need
-
iomartin
costly: I'm getting the impression that options is better suited to allow an user to configure their build once and then they'll always get the same "parts" when they recompile. Is this right? That's not quite what I'm looking for though. The packages will be distributed only on binary form, so there will be no configuring done by the user
-
RhodiumToad
oh, this is a private port?
-
iomartin
Yes
-
RhodiumToad
in that case options are of no use
-
costly
iomartin: agreed with RhodiumToad
-
meena
"Or a prometheus-exporter package. So stuff that not everyone will need"
-
» meena has somehow avoided getting into that that particular hole
-
meena
-
VimDiesel
Title: FreeBSD / src / 1554ba0 / Add mac_grantbylabel - FreshBSD
-
creith
hey folks, good evening
-
jauntyd
\o
-
Freaky
meena: that looks cool
-
creith
is there any chance that FreeBSD get something like OpenBSD's pledge(2) and unveil(2) ?
-
yuripv
i guess it's better to describe the functionality you need instead of saying names not everyone is familar with :)
-
creith
Oh ok, I'm sorry
-
creith
basically, pledge is a system call which allows a program to limit it's access to system calls
-
creith
the basic observation was that most programs (ok, especially daemons, but also things like tcpdump) need high privileges only during initialization phase
-
creith
so the OpenBSD guys grouped system calls in groups (stdio, inet, wpath, rapth ...)
-
RhodiumToad
freebsd has capability mode, which has some similarities but is probably somewhat harder to use
-
creith
capsicum is difficult
-
creith
and it it not used ... well, obvious there were some tries with some simple programs
-
creith
capsicum is too difficult
-
creith
it was an academical exercise as far as I can see
-
creith
though it would defintely serve FreeBSD's security, if applied to the base system consequently
-
creith
I would volunteer, if this is the strategy
-
creith
unveil(2) is a way to limit file system access (it is strongly interwined with the FS with OpenBSD) ... it might be hard
-
creith
you can say: unveil("/home/user/", NULL)
-
creith
This will limit the file system name space
-
meena
some people are trying to make capsicum easier to use. but making it possible to kind of capsicumize a program blindly
-
Freaky
-
VimDiesel
Title: Oblivious Sandboxing with Capsicum and EBPF :: FreeBSD Presentations and Papers
-
creith
The error messages will be the normal ones: ENOENT
-
RhodiumToad
take a look at, for example, commit b4d2c3385c (which adds capsicum to tail(1))
-
creith
that's cool
-
creith
are there any priorities I can have a look at or help ?
-
creith
eBPF makes my stomach hurt ...
-
creith
"How can we run 3rd party software within a capsicum sandbox without modifying their source code ?" (from the presentation)
-
creith
wrong approach, imho
-
creith
firefox and chrome run with pledge and unveil on OpenBSD ... upstream
-
creith
sorry, I'm not good at intercting with people
-
creith
I love FreeBSD ... but I love some features of OpenBSD, too
-
creith
and I would love to have them in FreeBSD, too
-
creith
again, I would like to help, if I can
-
checkpoint
creith: can you please name a few feature ?
-
creith
well, pledge and unveil
-
creith
unveil will not be possible
-
creith
but maybe pledge would be feasible
-
creith
capsicum is not the solution, it's too complicated imho
-
creith
otherwise FreeBSD should probably have a more restrictive way to let new features in
-
creith
don't get me wrong, I try to be nice
-
creith
I think to look at Linux is not the BSD way, Linux has become a "Windows badly reinvented"
-
RhodiumToad
not sure why you think unveil wouldn't be possible
-
» checkpoint has read man on unvail() and is now trying to figure out any decent usecase
-
creith
unveil needs a very deep implementation in the file system
-
creith
that's easy when you just support one file system
-
creith
I don't think it will be easy with ZFS
-
creith
The use case is simple, chromium on OpenBSD (well the appropriate process to be precise) is only allowed to read or write in ~/Downloads
-
creith
no more unvoluntary backups of your .ssh/<name your key>
-
» checkpoint thinks a syscall like unvail can be imlemented independently of file system type
-
creith
if you have a good idea, great !
-
checkpoint
creith: how is it any better than chroot ?
-
creith
there are some differences, you can gradually unveil
-
creith
the error messages you get are normal, which is not the case in a chroot all the times (it is such no file or directory)
-
creith
are you interested in this ? I can have a look for a presentation of Theo, but it was in 2015 or 2016 ... I am not so much organized with my backups :-=
-
checkpoint
the problem is that it takes quite some effort from application developers and quite a lot of it for things like Chromium
-
creith
chromium was pledged in less than 7 days ...
-
checkpoint
pledge is for system calls, not for file system access, right ?
-
creith
do you know how many SELinux projects I have been through which failed ?
-
creith
@checkpoint: yes
-
creith
it must be in the source code
-
checkpoint
so, yes pledge is way easier to integrate
-
creith
if you try it from the outside, you'll always miss one path of execution
-
creith
and it is the one your manager wants definitely to have
-
creith
@checkpoint: yes, unveil is pretty difficult
-
checkpoint
I read that unvail makes app just to segfault if it tries to access restricted path. Now imagine how many surprizes one can get using poorly unvailed Chromium. It will take ages to fix all the possible crashes unvail causes till the app can be usable again.
-
creith
no, unveil will not segfault ... if a process tries to access a file or directory outside of which is unveiled, he will get a ENOEN
-
creith
T
-
creith
sorry
-
creith
No such file or directory
-
creith
if you want to play with it, I have an OpenBSD server ...
-
creith
in practice, if you want to download a file, you can download it to ~/Downloads
-
creith
The file selection dialog will not show you anything else
-
creith
you can configure it, if you feel like