-
jb1277976
nimaje: what do you mean by units ? i know on my old laptop i needed to look at default.hints or something about units buts thats all i kow
-
nimaje
what do the numbers you wrote there mean? what are their units? you only wrote that for one of the numbers "10 mins"
-
jb1277976
oh, my battery jumpe from 65 to 58 percent in 10 mins
-
jb1277976
just a meature of how fast the battery is dying
-
polyex
how do i get the uid of a std::process?
-
polyex
is getuid() from libc the only way nothing in std?
-
meena
polyex: in C++?
-
polyex
sorry wrong chan!
-
vyryls
Hi, I'd like to install software like chromium and frescobaldi which pull in pipewire/pulseaudio/alsa dependencies/xdg-desktop-portal/et.al. I'm running a fairly vanilla freebsd 14.0-RC4 with sway/wayland. Is it likely to mess with the audio setup I have at the moment?
-
polyex
id -un lets me get the effective username but is there a way to get the username, or the username running sudo if it's being run?
-
CrtxReavr
ps auxww | grep [s]udo
-
polyex
that's it? ick
-
CrtxReavr
It's a way. . . you can clean it up more. . . or dig more into the man pages.
-
CrtxReavr
Could probably script something that walks the ppid.
-
cybercrypto
/part
-
Hello71
-
VimDiesel
Title: is there a way to get the username running sudo if it's being run%3F - Google Search
-
polyex
Hello71 CrtxReavr wait all we have to do is check $USER
-
polyex
no?
-
kenrap
polyex: that google link already lays out your answer in a 2-sentence generated summary at the top of the page: "If you execute a script with sudo , the tool will set the SUDO_USER environment variable. Use it to retrieve the login name of the user who invoked sudo ."
-
vxwarlock
Does efi alignment size need to be 4K or is it better to use 1M?
-
kevans
iirc the spec mandates 4k as a minimum alignment with no upper bound constraint
-
vxwarlock
kevans thanks for answering
-
Grell
Hello, using poudriere, how can I compile just the ports which have been updated, instead of compiling everything listed in my ports file passed to 'poudriere bulk', in other words, I do 'poudriere bulk -j 13amd64 -p local -f /usr/local/etc/poudriere.d/port-list' but it compiles everything, not just the ports that have been updated using 'poudriere ports -u -p local'
-
nimaje
Grell: poudriere will delete and rebuild packages if it thinks that is nessesary, it prints a line at start for each such port
-
Grell
yeah, i just started it up again and there's over 1600 packages on queue, which is pretty much every package on my whole system
-
nimaje
hm, maybe because of the libuv update
-
danel1
Hey guys :) we are just reading and discussing
freebsd.org/security/advisories/FreeBSD-SA-23:15.stdio.asc and are not really sure, on how and how fast we need to patch all of our servers.. As we saw, some of the stuff has been fixed back in 2014 when
freebsd.org/security/advisories/FreeBSD-SA-14:27.stdio.asc was announced. But there still is a possibility, to exploit with the patches that have been made
-
danel1
in the past. Only line-buffered streams - and not unbuffered or fully buffered streams - are affected. Correct? Could someone maybe help me to classify this a little bit further?
-
Beladona
babz: nimaje: `id` says uid=1001(user1) gid=1001(user1) groups=1001(user1),0(wheel),5(operator),44(video),145(webcamd),920(vboxusers)
-
Beladona
not sure if I am in the webcamd group but I do that (webcamd command) via root. and use wacom tablet as another user.
-
Beladona
I did `webcamd -d ugen2.3` to make wacom tablet/pen working. it worked but now I see /usr/local/libexec/Xorg :0 -auth /home/user1/.serverauth.2199 taking 200% of cpu. What should I do?
-
nimaje
"groups=[…],44(video),145(webcamd),[…]" so you are in the needed groups, so no real idea then, maybe you have to install some mesa stuff, mesa-dri and mesa-libs I think
-
babz
I was just answering the question "how do I know which group I'm in".
-
babz
it seemed to me that the message it displayed was clear enough.
-
babz
As for your problem, I've never used a graphics tablet, but I don't see what being in the wrong group has to do with high cpu usage...
-
Beladona
nimaje: mesa-.. already installed
-
Beladona
babz: ya
-
babz
danel1: read log message from commit d09a3bf72c0b5f1779c52269671872368c99f02a
-
babz
TL;DR CVE-2014-8611 was about all buffering modes, the "fix" was incorrect, and introduced a new, similar bug for line-buffered streams (CVE-2023-5941)
-
danel1
Thats what i already understood. What isn't really clear to me is, how big is the chance of being able to trigger that bug and exploit the "hole". Especially from remote (e. g. apache webserver with logging in buffered streams) but also in general.
-
last1
can I install a specific ( older ) version of nginx via pkg ?
-
last1
it seems there's a disconnect between pkgs nginx and modsecurity-nginx
-
last1
nginx is now @ 1.24 but modsecurity expects version 1.22
-
last1
hence this error: nginx: [emerg] module "/usr/local/libexec/nginx/ngx_http_modsecurity_module.so" version 1022000 instead of 1024000 in /usr/local/etc/nginx/nginx.conf:3
-
last1
even /usr/ports/security/modsecurity3-nginx builds against nginx 1.22
-
last1
eh, I modified the Makefile/distinfo manually. heading into uncharted territories
-
meena
last1: good luck
-
meena
-
VimDiesel
Title: httpd/server/log.c at 5875b400ee051852c58f3c2738fc2607b76b0549 · apache/httpd · GitHub
-
jbo
hmm... one of my bhyve VMs does no longer want to boot. I get:
-
jbo
Failed to emulate instruction sequence [ 41f646040874064c017d90eb144c89 ] at 0xbfbb45e3
-
jbo
fbuf frame buffer base: 0x37ca66600000 [sz 16777216]
-
jbo
any ideas?
-
meena
jbo: i see a similar thing here,
churchers/vm-bhyve #261
-
VimDiesel
Title: Guest fails to boot with Failed to emulate instruction error · Issue #261 · churchers/vm-bhyve · GitHub
-
VimDiesel
261 – There is no manpage for `ctm' itself; the ctm_{r,s}mail
bugs.freebsd.org/bugzilla/show_bug.cgi?id=261
-
meena
but, usually that means: you're trying to run a piece of software that was complied for a different machine
-
jbo
meena, interesting
-
jbo
meena, bhyve would be part of base tho
-
jbo
meena, and other VMs are not affected :/
-
deacon426
morning all
-
johndo100
hi, it's midnight here
-
meena
jbo: that's just the first hit i found, and it's most likely coming from bhyve directly not from vm-bhyve.
-
babz
-
nimaje
jbo: reads like bhyve is complaining ("Failed to emulate") so the software for the wrong machine would be inside the vm, not bhyve
-
meena
babz: same here
-
meena
(but that's inside a VM …let's see what outside says)
-
jbo
nimaje, yeah. I've been using this VM without any problems for month now (it's an Ubuntu guest)
-
jbo
and other VMs still run just fine q__q
-
meena
yeah, laptop also says invalid.
-
meena
jbo: which Ubuntu version is this?
-
jbo
meena, 22 something
-
jbo
freebsd host is stable/13
-
V-T60
Hello. What this thing __BEGIN_DECLS ... __END_DECLS doing in my /usr/include directory?
-
V-T60
who originates this code? what is that command doing?
-
jgh
I think it's a C++ vs. C compat thing
-
V-T60
i found it in /usr/include/ctype.h
-
V-T60
is that what i add with #include<ctype.h> ? where can i know more?
-
V-T60
which package puts it there?
-
jgh
in this Fedora, the defines are in /usr/include/sys/cdefs.h
-
jgh
commented /* C++ needs to know that types and declarations are C, not C++. */
-
V-T60
-
VimDiesel
Title: C header files (Libtool)
-
V-T60
We used to recommend __P, __BEGIN_DECLS and __END_DECLS. This was bad advice since symbols (even preprocessor macro names) that begin with an underscore are reserved for the use of the compiler.
-
V-T60
though, where is an explanation of those?
-
V-T60
why wouldn't they write about them in article, not only footnotes?
-
V-T60
jgh: can you find __BEGIN_DECLS there?
-
V-T60
before int isalnum(int);
-
babz
they are supposed to expand to
-
babz
extern "C" {
-
babz
}
-
babz
when building c++ and to nothing otherise
-
V-T60
babz: could you kindly advice me where did you find that information though?
-
V-T60
thanks
-
babz
/usr/include/sys/cdefs.h
-
jb1277976
So i'm going on campus today and i need to connect to there network. currently at home i like wpa_supplicant it just works. the security at school is eap PEAP there some examples on how to connect this ?
-
jb1277976
i saw some in wpa_supplicant.conf but i don't know which one to use
-
jb1277976
wpa_supplicant.conf man page that is
-
jb1277976
-
VimDiesel
Title: wpa_supplicant 2.6 EAP-PEAP iwm (8260) | The FreeBSD Forums
-
nimaje
do they not provide documentation how to connect to their network? you need the ssid and what to use for identity/password and phase1 and phase2
-
jb1277976
They do but basic not complex and not for linux/BSD they tell me this
dpaste.org/dNJXH
-
VimDiesel
Title: dpaste/dNJXH (Python)
-
nimaje
hm, except for phase1 it contains everything, and as I understand the man page phase1="peaplabel=0" probably works for that one
-
armin
jb1277976: WPA-EAP is a bit of pain to connect to. But if you have the relevant config file snippet, that should be no problem.
-
jb1277976
Thanks
-
armin
jb1277976: So if you have a smartphone with you for example, you could just google for "wpa supplicant conf wpa eap enterprise" or something, which would reveal stuff like this:
gist.github.com/aspyct/994b603aaefe5996ca331f107d6abb67
-
VimDiesel
Title: Connect to a WPA2 Enterprise network with wpa_supplicant with this .conf file. I used this to connect to my university's wireless network. · GitHub
-
jb1277976
armin: in rc.cinf instead of just WPA DHCP should I add something else?
-
armin
jb1277976: So if you're comfortable with editing such a wpa_supplicant.conf from scratch inside some terminal editor, you could just call wpa_supplicant without arguments, then the last line would emit a working commandline, that you can use to connect, and then you just need to dhclient/dhcpcd I believe.
-
jb1277976
rc.conf*
-
armin
jb1277976: that will not work, no.
-
armin
jb1277976: At least I think it won't, i'm not aware if that even works, connecting automatically to WPA-EAP *on boot, without any interaction*.
-
armin
But the manual way should work at least, so you could easily script something.
-
dch
before-my-time question, how did one know what version of FreeBSD your userland is back on 9.x?
-
armin
dch: There's the "freebsd-version" command, but I don't know since when.
-
dch
armin: it wasn't present then, and it looks like it has a hardcoded at build time for userland version.
-
dch
I can `fgrep \$FreeBSD /boot/version.4th` which seems reasonable enough for my purposes, I wondered if there was a better canonical way
-
armin
dch: I don't think there is one, the freebsd-update script even has the version number hardcoded as USERLAND_VERSION
-
armin
dch: I think your attempt is fairly reasonable.
-
armin
-
VimDiesel
Title: What version am I running anyway? - Random Musings
-
armin
oh I just stumbled upon your post. :)
-
dch
lol somebody should update that for 9.3 :D
-
armin
*hides* :-)
-
dch
I started immediately using 10-CURRENT before 9.3 was released, because of zfs stuff. I never actually used 9.x in anger.
-
armin
My first FreeBSD version was I think 4.something? The first one before the 5 release.
-
armin
Then 5 came and everything was SO much easier, but I can't remember what exactly the difference was. :)
-
dch
I missed out on all the fun times.
-
dch
those were my Management Years.
-
armin
I was just job-less, living in a much too small flat, no warm water but DSL.
-
armin
And so it somehow happened that I ended up trying FreeBSD, and wow was that mind-changing.
-
dch
sometimes we only need 1 good thing to get through the hard times
-
armin
OH, keep in mind that fgrep and egrep are considered "obsolete" (at least on some weird userlands), I've read some warning a couple of days ago but I can't remember on what system that was.
-
armin
I'm pretty sure a lot of scripts will break when they just silently remove that.
-
dch
all of mine will
-
armin
:)
-
dch
I even have shell aliases for gerp, grpe, and variations of fat-fingered mistypes.
-
dch
I'll just add 2 more aliases and be done with it.
-
armin
I have weeeeiiiird wrapper scripts for ALL the things, with HIGHLY questionable names, sometimes one-letter names, and sometimes the scripts are entirely un-readable and just more a piece of "art" than actual code.
-
armin
-
armin
This here is a good example.
-
» dch splutters
-
armin
There's no logical reason to write stuff like that except "boredom" I believe.
-
dch
I have lots of 2 letter funcs, thats short enough.
-
armin
I love to use one-letter aliases and stuff like that. :)
-
armin
But yea, that's one HUGE reason for me to stay with *BSD operating systems: Almost anything is just plain-text, you can simply reverse-engineer almost the whole system just while you work.
-
armin
I also feel that the levels of indirection are the lowest you can anyhow get with any operating system. FreeBSD is really really nice in that regard.
-
» kevans notes that removing [ef]grep and friends is silly
-
kevans
if there's any real maintenance burden to keeping a couple hardlinks around then you're doing something wrong
-
kevans
the implementation in grep itself should be stupid simple
-
armin
I agree. But still, just put some tiny wrapper scripts there that call grep -E "$@" or something and call it a day.
-
kevans
(it is stupid simple in bsdgrep)
-
kevans
while i'm already angry about things, you can pry rgrep from my cold dead hands thanks
-
» kevans runs away
-
armin
what about rg? :)
-
armin
fwiw, I just "ln -s /usr/bin/rg /usr/bin/ripgrep" that thing...
-
armin
same with "chromium" being symlinked to "chrome", the only reason being that I don't want to type "chrome" in dmenu and end up with "chromedriver":
-
parv
"ugrep" is much easier to use than "ripgrep". "-r" option, for recursive search, works just as expected (wrt "grep"). It could be that having equivalent option bundles of the two, "-r" does misbehaves for "ripgrep". I use "ripgrep" when "ugrep" is missing, as it is on Rocky Linux 8
-
armin
parv: Wasn't aware that ugrep exists. Thank you.
-
parv
Speaking of which, last time I tried "the_silver_searcher", its file ignoring option were massively not working; abandoned it; found "ugrep".
-
armin
What annoys me major time currently is that my "cloud VM hoster" (or whatever you choose to call it) recently moved to a new web UI. That thing does NOT allow me anymore to upload custom ISO files.
-
armin
I mean it's not THAT much of a problem, I can just write them a mail like "plz attach the following ISO kthxbai" and they will do that within a matter of minutes, but it's still itching me.
-
armin
Also now the OpenBSD 7.3 and 7.4 ISOs hang when trying to boot, something with SCSI controller blahblahblah. I'm just thankful that FreeBSD and NetBSD still work fine.
-
kevans
armin: i can't use rg out of principle, I maintain bsdgrep
-
kevans
:-)
-
armin
kevans: ahahahaha no way :D
-
armin
*laughs tears* ok. :)
-
kevans
I can't tell people that complain about bsdgrep's speed that it's "not that bad" if I go off and use something else
-
armin
I honestly don't care that much, I mean, if *I* would try to write something like grep, I can tell you 100% that it would work but also be damn slow and terrible code.
-
kevans
=D
-
armin
I also value an elegant solution over a performant one.
-
armin
I mean code, UNIX, shell, all that stuff is ART. People who do that stuff are ARTISTS. It's okay if someone just wants to build something beautiful instead of something sellable.
-
parv
Come on, kevans! You can certainly use "ripgrep" evven if you maintain "bsdgrep"; just look at all the reports of FreeBS developers using Mac for FreeBSD developement
-
armin
parv: They just use a Mac to connect to FreeBSD computers, that's not actually using a Mac to run FreeBSD. ;-)
-
kevans
I know too many FreeBSD developers not using Macs to fall for that kind of bullshit
-
» parv should retire for now as can't rite no more
-
armin
And with the current M1/M2/M3 Macs, yea it's theoretically possible to emulate FreeBSD arm64 on these, but it's still so much harder than it should be.
-
armin
It's also simply fun to run FreeBSD vanilla natively on your computer. It's good. Why not do that.
-
armin
I have some cool M1 Macbook but I still want my workstations with Linux and FreeBSD/OpenBSD, it's a sane world for me.
-
armin
I can't even say why. Most of the time I run some 800kbyte window manager and just some terminal windows.
-
armin
On some Ryzen 9 with 32GB of RAM and 43" monitor. It makes no logical sense. It's just using a very fast computer with a sane operating system and I like that.
-
armin
But meh, FreeBSD is damn damn damn good as a desktop, I see absolutely no reason to not run that.
-
souji
I also have FreeBSD on my workstation and I love it.
-
armin
FreeBSD moog 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
-
armin
works just fine over here, yea
-
armin
I've always had *some* desktop running FreeBSD since I think version 5 now.
-
armin
While I do weird stuff like making music, making graphical art, DJing and whatnot, and while not everything of that works for me on FreeBSD (yet), I still must say it's a safe harbour for me.
-
deacon426
oof groggy
-
souji
Wow, I'm not using FreeBSD for that long... I think the first version I used was 12 or 11
-
armin
Back then my whole flat (I think 7 computers) ran on FreeBSD.
-
armin
Router was also FreeBSD, attaching the other 6 computers to the internet by a 56k modem (shared).
-
souji
holy
-
souji
That's crazy
-
CrtxReavr
No, what' scrazy was doing that with a 14.4k modem.
-
armin
It was less crazy than you might think, everything just worked, I was able to set up everything out of muscle-memory, all fine.
-
armin
56k, not 14.4
-
CrtxReavr
The point. . . you missed it.
-
armin
meh :)
-
armin
But yeah that's the life that I still want to live, terminal-focused, just text, nothing weird going on.
-
CrtxReavr
Actually, I think when I was using a 14.4k modem it was with linux & ipmasq.
-
CrtxReavr
Had a chat script that demon-dialed the university modem rack, logged in, and ran slip.
-
armin
I still know ipfw by heart. ipfw deny any from CrtxReavr to #freebsd via libera0
-
CrtxReavr
route add armin localhost -blackhole
-
armin
noooooooo!
-
armin
:D
-
armin
but yeah I'm really satisfied with Xorg/Wayland on FreeBSD these days, it works great.
-
jb1277976
armin: im connected to my school :P
-
armin
jb1277976: back then we bribed the waiter of the university so he would let us sleep in the UNIX terminal rooms. We were 14 back then.
-
jb1277976
nice
-
jb1277976
you must be a boomer or something lol
-
armin
jb1277976: All that guy asked for was a "rambo doener kebab" or a large pizza.
-
armin
I'm 43. :)
-
» jb1277976 is 43 also
-
» kevans is not 43
-
armin
My father was a professor at that university so it was safe legit easy to come in.
-
armin
We just slept in the terminal rooms, ate pizza, and connected to some weird HP-UX machine that was fast as hell.
-
» ZedHedTed is only 27
-
armin
So yes, my first love with UNIX was actually HP-UX, I'm still in love with it, I admit that.
-
ZedHedTed
been on linux my whole adult life, but i really want to try out GhostBSD, which is based on FreeBSD.
-
armin
GhostBSD is just plain bad, try FreeBSD vanilla, if you have any issues ask just here.
-
armin
Well it's not plain bad, it starts a working FreeBSD desktop for you, but it's slow as hell and whatnot.
-
armin
At least *try* to do it yourself.
-
ZedHedTed
i have no experience installing and configuring the GUI manually, outside of OpenBSD which was extremely simple.
-
jb1277976
i've been on linux off and on since the early 2000's but neve really stuck to it casue of life. im back in teh groove and am on vanilla freebsd. i just came from gentoo like 3 days ago
-
armin
ZedHedTed: FreeBSD is super simple, too, you just need to know how that works. Ask here, we're here to help you.
-
armin
ZedHedTed: It's not complex or magic stuff by any means, it's 15 steps you need to learn and then it's good for the next 7 years.
-
ZedHedTed
armin: will do! i'm still gonna try GhostBSD first but getting the real deal (meaning FreeBSD) is the ultimate goal.
-
armin
ZedHedTed: GhostBSD is superb, no question, but still, you will get a MUCH faster desktop with vanilla FreeBSD if you want that.
-
ZedHedTed
and i'll look up those 15 steps. if 1 of them doesn't go as expected, i'll ask here.
-
armin
just ask, we will point you there.
-
armin
You will realize why removing bloat is much more difficult than adding it. :)
-
ZedHedTed
i don't wanna be lazy. i'm cool w/ googling it first. plus i'm not doing it today.
-
armin
nah be lazy, we're not some elitist nerds or something, we're a helpful community.
-
armin
just ask if you're stuck, we're here to help.
-
ZedHedTed
wow thanks :D
-
armin
:)
-
armin
FreeBSD is *the* operating system if you're lazy, actually. :)
-
armin
Whatever you want to do, it's most often streamlined, simple, matter of editing 1 or 2 files, and restarting 1 or 2 services, and that's about it.
-
armin
The reduced complexity is, in my point of view, *the* selling point for FreeBSD compared to, meh I don't want to compared it to that, but here I am, Linux.
-
armin
The multiple layers you need to dig into, that amount, is just lower than on almost any other operating system.
-
armin
Especially for desktop usage, I think FreeBSD is very close to the best you can anyhow get currently, I see almost zero downsides anymore, stuff just works beautifully. All the stuff I complained about in the last 15 years is fixed.
-
armin
All the stuff.
-
armin
GhostBSD is perfect to get your hands wet, yes, but by all means, at least try to do exactly what GhostBSD does by yourself. It's super trivial and you will actually understand FreeBSD that way.
-
ZedHedTed
not to mention Linux is just a kernel w/ distributions slapping different OS components on top of it, whereas it looks like FreeBSD has the kernel and all other OS components in the same uhh, package, for lack of a better word
-
babz
well, that's just adding a layer of complexity ;)
-
armin
ZedHedTed: well if that's what you're after, OpenBSD might be worth a look *cough*
-
armin
ZedHedTed: but yeah, you get an operating system that was made for your kernel, it will run on that just fine. If you want something comparable in the Linux world, maybe Alpine is worth looking at, it's very close to the BSD experience. But still, the useability of FreeBSD remains un-matched I feel.
-
ZedHedTed
armin: i actually installed OpenBSD on a thinkpad E440 almost 3 years ago. it was surprisingly easy to install and configure. but it was so slow. too slow for me.
-
armin
ZedHedTed: I use it on an X230, it is not as fast as Linux, but I love the sanity, the structure, everything.
-
armin
ZedHedTed: it makes sense to me, that's all that matters.
-
ZedHedTed
armin: same. and their website has very detailed guides telling you exactly what to change in the conf files to get the most sensible X11 experience.
-
armin
ZedHedTed: I never needed that, everything just worked for me.
-
armin
ZedHedTed: OpenBSD is, yes, there, I said it, the other safe harbour.
-
armin
If you drug me with weird substances and put me in a room with a very old computer and a USB stick, yes, that's the thing I'll install.
-
armin
"xset r rate 210 35" <- this here I found to be perfect
-
armin
What's amazing me is HOW well the BSDs work on outdated hardware. It might be slow, yes, but it will still work absolutely.
-
armin
And I refuse to buy something better if what I get already is *THAT* good, yes. :D
-
armin
But yeah, especially with FreeBSD, there's really nothing missing anymore, even the 1337 nerd tiling wayland compositors just work...
-
armin
honestly whatever your weird desktop setup might look like, it will VERY likely JUST WORK on FreeBSD just today.
-
jb1277976
hmm so i'm at school right and i have 2 laptop with freebsd on them. i have wifi on both of them with diffrent ip address. sshd is running on both but i cant' connect to one. i can't even ping the other one. any ideas ?
-
armin
jb1277976: that might just be "wifi security" implemented by your school.
-
babz
ap isolation
-
jb1277976
aw
-
armin
jb1277976: there's usually a way to circumvent that, your wifi provider will probably know.
-
armin
jb1277976: It's really common, also at hacker congresses and whatnot.
-
armin
jb1277976: the default will be "no you're not allowed to do that, pal!" and if you want to override that you can usually speak to whoever runs that netWRK.
-
jb1277976
Cool got it. im basicaly trying to get sound on this chromebook. Comet Lake PCH-LP cAVS
termbin.com/wel8
-
jb1277976
anyone up. i found a bug on it. but nobody resopnded
-
jb1277976
snd_driver is loader and loader.conf looks good
-
armin
jb1277976: what does cat /dev/sndstat say?
-
jb1277976
-
VimDiesel
Title: No sound with sound card Intel Comet Lake PCH-LP cAVS | The FreeBSD Forums
-
jb1277976
everything there matches what i'm doing
-
armin
oh :)
-
jb1277976
-
VimDiesel
Title: 267817 – No sound with Intel Comet Lake PCH-LP cAVS sound card
-
benaldo
I've been enjoying my freebsd part-time desktop I put together. Nothing special though, just an old dell workstation past it's prime... But it zips!
-
gnuself
Anyone have some freebsd mastery books on hand? Trying to decide on buying either the storage essentials or advanced zfs book considering I already have Absolute Freebsd and the ZFS book. Looking to install freebsd on my laptop when I get another nvme available for testing. Not sure if I'll go UFS or ZFS, but I guess ZFS is probably recommended...
-
armin
gnuself: hmmmmmm, you *very* likely want ZFS on a laptop because the installer will offer you to encrypt the drive with GELI.
-
armin
gnuself: which is super super nice, straightforward like hell, will just work, everything.
-
armin
gnuself: you will ONLY get that option to encrypt the disk if you say ZFS, though.
-
unixman_home
gnuself, I use ZFS for joining multiple disks, UFS if only using one disk. My home FreeBSD desktop / file server has ZFS boot / root on a pair of drives with the file shares using ZFS on another pair of drives. Others will have other opinions. ;)
-
armin
unixman_home: :)
-
gnuself
armin: thanks. I've encrypted my drive before, but then I was unsure at a point...I've never tried restoring from a crashed drive. So when I thought about that, I was unsure if I wanted to add the complication of encryption on top again. Maybe I can look at a restore scenario somewhere
-
armin
gnuself: well it's abit like a backup, it's fine to make these, it's fine to be proud of making backups, too, but, uhm, did you ever try to restore one?
-
gnuself
unixman_home: I'm using what was setup in ubuntu's version of zfs for the laptop I'm using now... kind of annoying the way they did it with the snapshots though, because my bpool continues to hit the 20% threshhold they like
-
armin
well the thing that I learned about file systems is that you can not 100% rely on it even if you fully understand it.
-
gnuself
armin: yeah, that's usually the important bit. Haven't had a crash in a while, but not looking forward to it anyway. Need to get an external drive for some stuff or something
-
armin
humans will always over-estimate their intelligence, we're just very stupid being trying to use UNIX computers.
-
gnuself
armin: believe me, I understand when my professional work is on z/OS mainframe code
-
armin
gnuself: I love oldschool machines.
-
unixman_home
Agree with armin about backups. If you have not tested restoring from a backup, you don't really know you are "safe".
-
armin
unixman_home: it's super common, though, I've failed for that, too.
-
unixman_home
Same. Experience is a hard taskmaster. ;)
-
armin
:)
-
jb1277976
anyone here have a machine with no audio ? i'm trying to figure out what it would be like
-
babz
jb1277976: do you have the specs of you machine ? what's the audio controller ?
-
armin
I have acces to some VM but it shows "pcm0: <Generic (0x1af40032) (Analog)> (play/rec) default" in /dev/sndstat
-
jb1277976
babz: 'Comet Lake PCH-LP cAVS'
-
kevans
this hardware has no audio
-
kevans
Quoth the sndstat: "No devices installed.\nNo devices installed from userspace.\n"
-
jb1277976
pcm0: <Intel Kaby Lake (HDMI/DP 8ch)> (play) default
-
unixman_home
jb1277976, my home desktop / file server I mentioned above has audio capability, but it is not used. There is nothing attached to the audio out ports. Nice and quiet. :)
-
jb1277976
Nice
-
polyex
why does $SUDO_USER get set? $USER is always the original user seems redundant?
-
armin
bsd ~ sudo -s -E
-
armin
root@bsd ~ echo $SUDO_USER
-
armin
armin
-
armin
root@bsd ~ echo $USER
-
armin
root
-
armin
root@bsd ~
-
rwp
polyex has left already but among the useful feature of SUDO_USER is that one can use it when three people might use sudo for interactive root to personalize the interactive sessions. I do an if SUDO_USER is set and if the file exists then <<. "$HOME/.$SUDO_USER/.profile">> to source customized profiles so each of us can have personalizations.
-
voy4g3r2
hello - i currently have a cron job that is suppose to run at 2300 hours everyday and for the life of me, i do not understand why it is not. The sh script works in isolate (direct invocation) but when i add it to a user cron job entry.. it NEVER runs
-
voy4g3r2
* 23 * * * * sh /home/chrisdavidson/blinksystem/download_blink_videos.sh <--this is the entry that comes back after doing a crontab -l
-
davisr
voy4g3r2, your $PATH is probably not what you expect
-
davisr
voy4g3r2, pipe stderr to a file and see what it says
-
voy4g3r2
okay, i will give it a try and wait for tomorrow :)
-
voy4g3r2
and doing a simple echo $PATH demonstrates, that is probably the issue :)
-
satanist
voy4g3r2: also if you want it to run only once a day you need to specify the minute
-
voy4g3r2
so * 23 0 * * *
-
voy4g3r2
i think the parameter, if i am not mistaken, is the minutes?
-
voy4g3r2
good catch, thank you!
-
satanist
no 0 23 * * *
-
kevans
to be fair since it's failing anyways you could bump the time up to a closer time just to debug it, instead of 1-day debug cycles
-
voy4g3r2
kevans: true, i have other things working on and i just ran it manually.. so not many security videos to download anyway.. but definitely true
-
kevans
cron traditionally cuts out at least /usr/local/bin from PATH, so I'd also bet on that since it's different from your shell environment
-
babz
voy4g3r2: check you mails
-
meena
babz: never.
-
babz
what ?
-
meena
people who check their mails fall for phishing. I would never, ever check my mails.
-
rwp
On every new system where I am unfamiliar with the environment I always test cron's environment with "* * * * * root env | mailx -s cron.env me⊙ec" so that it will mail me the environment it is running under on the next minute. Then after getting it I delete that entry.
-
voy4g3r2
it also asssumes i have sendmail or ANY mail service operational... i have disabled all that :)
-
voy4g3r2
i do not even know if i have mailx installed..
-
kevans
lol
-
rwp
Well if you have no email then I guess one could "env > /tmp/cron-env.out" and then look there.
-
rwp
But no email? That's such a useful thing for notifications.
-
voy4g3r2
yes, it is great.. i have no clue things are broke.. if i don't know, i have less worries :)
-
kevans
for the longest time I was trying to find a mail(1) like interface for xmpp, but the only ones I found were woefully out of date or way too clumsy for cron use
-
rwp
Regardless you should check /var/log/messages and look for the cron entry. It may have an error indicated such as permissions on the file preventing cron from using it. That's another typical problem.
-
meena
voy4g3r2: good choice.
-
kevans
if I could find one for matrix, I'd totally take my notifications over matrix instead
-
voy4g3r2
rwp: agree, just being passive aggressive because things has annoyed me :)
-
meena
voy4g3r2: you can also tell cron to never email you with sysrc cron_flags="-s ''"
-
meena
-m, that is. not -s
-
voy4g3r2
good to know
-
voy4g3r2
thankfully these are just dev boxes
-
voy4g3r2
but point taken
-
rwp
I created a new /etc/cron.d/foo crontab entry just this last week and got caught myself with a permission problem. It was group writable and logged an error. But even though I know that rule I still got snagged by it.
-
meena
that still leaves periodic trying to email you, but that can also be helped by telling it to actually just FUCKING LOG INSTEAD OF MAIL.
-
voy4g3r2
yeah well.. i did put some logging in the python program but clearly, if it never runs, it will never tell me those errors
-
meena
-
VimDiesel
Title: disable sendmail on FreeBSD, completely. · GitHub
-
meena
ignore the bit about "# since sendmail_enable="NONE" is deprecated (since 2004, lol), this is how to disable all of Sendmail:" it's been undeprecated.
-
rwp
I am pretty sure that has as you say been undeprecated.
-
voy4g3r2
interesting.. wouldn't sendmail_enable="NO" be sufficient or the additional items more explicit than implicit?
-
meena
voy4g3r2: unfortunately, no. NONE it has to be.
-
» meena → bed
-
voy4g3r2
haha
-
voy4g3r2
i had it as NO not NONE
-
voy4g3r2
thanks meena , later
-
kevans
meena: hey wait
-
meena
kevans: okay, fine
-
rwp
-
VimDiesel
Title: ⚙ D36950 disable sendmail with variables specified in rc.sendmail(8)
-
kevans
phew, ok, you're back
-
kevans
later friend =D
-
meena
inertia is difficult
-
meena
kevans: I feed your baby to my hound.
-
kevans
woah now
-
rwp
The old commit from 2002 that started the deprecation was
cgit.freebsd.org/src/commit/?id=d87…e8e230495df3be59a8a5c173aafc83bc450 but then that never happened so it was undone by the other.
-
VimDiesel
Title: src - FreeBSD source tree
-
rwp
For all of the years between the bsdinstall program has been ignoring that and setting sendmail_enable="NONE" so lots of systems will be set that way.
-
meena
-
kevans
meena: I don't think my baaby's foot could fit in their mouth
-
rwp
Oh what a cutie!
-
meena
she got a haircut today