-
CCFL_Man
saltd: Intel SSDSCKKR080H6XN
-
CCFL_Man
not freebsd related, but i had some sata hard drives in another system. i put them into this new system i built with a supermicro board, but it asks for a password for the hard drives I have connected to it and i did not ever set a password, or even knew it was possible
-
CCFL_Man
there is no option in the bios to set passwords or even clear them
-
CCFL_Man
so what is going on?
-
Plasmoduck
encrypted drives?
-
jakewilliami
How can I use ZFS headers in my C code? I have `#include <sys/vnode.h>` in a test C file, but when I compile it (`cc test.c`) I get a bunch of errors: `error: unknown type name 'uintptr_t’` etc. Is there something I need to include first so that I can include system files?
-
Plasmoduck
what command line saucery can I use to display all my cpu cores usage as a total combined percentage?
-
Plasmoduck
e.g 30%
-
Plasmoduck
insead of CPU 0: 19.5%, CPU 1: 26.8% etc...
-
Plasmoduck
top -P with some cut, sed, awk
-
Plasmoduck
I'm wanting to dislay it in a statusbar script like: Cpu: 32%
-
jkc
top -Pnd1 | grep '^CPU' | awk '{ sum += 100% - $11; n++ } END { if (n > 0) print sum / n; }'
-
jkc
That's a probably horrible quick and dirty.
-
Plasmoduck
jkc: thanks, are you sure it's fairly accurate?
-
jkc
I mean, average is sum over count, right?
-
Plasmoduck
the average of all 4 cores
-
jkc
I get what you're trying to do, yes. Your question of it being fairly accurate, I found amusing, as calculating the average is simple, mathematically.
-
Plasmoduck
ok thanks
-
Plasmoduck
top -Pnd1 | grep '^CPU' | awk '{ sum += 100% - $11; n++ } END { if (n > 0) print sum / n; }' | cut -d . -f 1 (This will make it display with no decimal places?)
-
Plasmoduck
I was currently using vmstat | awk 'NR==3 {print $(NF-2)}'
-
Plasmoduck
but I find it inaccurate
-
jkc
top -Pnd1 | grep '^CPU' | awk '{ sum += 100% - $11; n++ } END { if (n > 0) printf "%d%%", (sum / n); }'
-
jkc
I believe that that will truncate the decimal, though, instead of rounding.
-
Plasmoduck
ok
-
CCFL_Man
Plasmoduck: so the old 3ware raid controller they were connected to locked the drives
-
CCFL_Man
i don't have it anymore
-
Plasmoduck
jkc: how do I remove the % from displaying also?
-
rtprio
$ go build .
-
rtprio
go: parsing buildID from go tool compile -V=full: unexpected output:
-
rtprio
gah
-
CCFL_Man
so i may have to buy that samne controller and unlock it that way
-
CCFL_Man
if a different 9500 controller will let me unlock
-
jkc
Plasmoduck: "man awk"
-
CCFL_Man
what a load of jack
-
Plasmoduck
that's my last request
-
jkc
Plasmoduck: remove the "%%" from the printf string.
-
jkc
top -Pnd1 | grep '^CPU' | awk '{ sum += 100% - $11; n++ } END { if (n > 0) printf "%d", (sum / n); }'
-
Plasmoduck
awesome, thanks
-
Plasmoduck
how can I make my laptop run a command when the lid is closed and it hibernates?
-
Plasmoduck
in my sysctl.conf I have hw.acpi.lid_switch_state=S3
-
Plasmoduck
which works good, but I want to run a command 'slock' to lock my screen when lid is closed, so I have to type my password when I open screen again
-
Plasmoduck
I'm guessing devd
-
bluray
when i switch to virtual console the screen gets all messy, and it's not possible to go back to the graphical environment it only shows a messy screen
-
polyex
fav cli calc port?
-
yuripv
polyex: bc/dc are in base :)
-
polyex
bc!!
-
meena
service sshd enable/disable and enabled work, but are not documented
-
meena
-
VimDiesel
Title: 266494 – neither service(8) rc.subr(8) document enable/disable commands
-
yuripv
rc(8) does and it's linked from service(8)
-
meena
how did i miss it
-
meena
yuripv: rc(8) and rc.subr(8) are the same man page, so i missed it completely
-
yuripv
seem to be different pages here
-
Tikosh
i'm a novice BSD user and wish to check it out on my bare metal hardware. i'm a gentoo linux user
-
Tikosh
i wonder if I can get the 8852ae wifi driver to work on bsd
-
Tikosh
to work on FreeBSD
-
meena
"That's a Linux driver, you cannot install Linux drivers on FreeBSD." -
forums.freebsd.org/threads/how-can-…-a-realtek-driver-for-freebsd.64389 this position may have shifted in the past four years somewhat
-
VimDiesel
Title: How can I get a Realtek driver for FreeBSD? | The FreeBSD Forums
-
steew
Tikosh: Bjoern is working on it:
wiki.freebsd.org/WiFi/Rtw89
-
VimDiesel
Title: WiFi/Rtw89 - FreeBSD Wiki
-
steew
I think it would help him a lot if you got in touch in the freebsd wireless mailing list.
-
steew
He is (as of now) seeking testers
-
meena
steew: Tikosh is gone
-
meena
more people need to learn about IRC clients you can just leave running somewhere…
-
steew
Oh well...
-
meena
If you're running FreeBSD in a cloud environment (VM or hardware), I'd love to see pastes from your ifconfig -a and netstat -r --libxo=json — especially if they're unusual, or "messy"
-
okidoki
hello - does anyone know where i may find a plugin or conf for jailing prosody?
-
meena
okidoki: depends on your jail manager… some have pre-baked things
-
skeemer
hello all, is anybody here using pkgsrc in addition to freebsd ports tree?
-
Tikosh
Hello. I am a FreeBSD novice, and wonder how your guys day/night is?
-
la_mettrie
hi, the day is pretty fine
-
Tikosh
thats good, la_mettrie.
-
rtprio
skeemer: ports has everything i need.
-
meena
hrm, mount -t foo,bar,baz /dev/blah /mnt/blubb doesn't actually work. It only works when /dev/blah is of type foo lol
-
rtprio
why do you think it would work?
-
meena
rtprio: i dunno… why shouldn't i think it would work? it seemed in the realm of possibilities from the man page, and when trying it out, it worked… i didn't try counter cases
-
mason
meena: Do you know offhand how to blacklist a module (and you know which one!) from the loader prompt?
-
meena
mason: you wouldn't blacklist it there, you'd unload it, but then it'd be loaded again by… devd? no… i forget
-
mason
hrm
-
meena
so is kldunload available in loader prompt?
-
mason
it's not - there's an unload. I'm looking for a manual now.
-
mason
-
VimDiesel
Title: loader
-
mason
there *is* a module_blacklist I can set
-
mason
via show
-
meena
cool!
-
» meena → bed
-
mason
but yeah, I think devd is working against me when it starts
-
mason
g'night
-
yuripv
you could try setting devmatch_blocklist (if module_blacklist doesn't take care of that)
-
mason
yuripv: The trick is getting through the boot to do so.
-
yuripv
it's kenv variable as well as rc.conf one
-
mason
yuripv: oh, hrm, devmatch_blocklist is settable via loader as well? hm
-
yuripv
it should be if i'm reading man page correctly :) never tried it myself
-
mason
trying it
-
mason
hm, didn't seem to matter, but trying again without the .ko at the end
-
mason
It continues to hang so I don't think that's having any effect.
-
yuripv
mason: which release?
-
mason
yuripv: 13.1
-
mason
yuripv: There's a known issue with virtio_random.ko and I'm trying to boot without it hanging on a Vultr VM where I don't control a whole lot.
-
yuripv
ok, looks like reading kenv is only in -CURRENT, sorry
-
mason
ah, interesting though
-
yuripv
-
VimDiesel
Title: freebsd-src/devmatch at 0d0c1ffcf4fc6d382887e89c5d8b0b7a270d0689 · freebsd/freebsd-src · GitHub
-
mason
yuripv: You know, it occurs to me that maybe I could just install from a -current ISO.
-
yuripv
you could try setting device hints though? the "disabled" one
-
mason
Oh... Yeah, just seeing that in a follow-up bug:
bugs.freebsd.org/bugzilla/show_bug.cgi?id=265549
-
VimDiesel
Title: 265549 – Vultr Q35 hangs while booting during virtio-random initialization
-
mason
trying that now
-
mason
Yep, that works. I need to read this stuff more thoroughly.
-
yuripv
nice!
-
mason
yuripv: thank you (and thank you again, meena, when you're awake again to read this)