-
rwp
Does anyone know how to extract chip temperature from a 'SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon]'?
-
rwp
It uses the mps driver. But unfortunately "mpsutil show all" does not show any temperature.
-
rwp
Here is more detail on this device adaptor:
bsd.to/JuKy/raw
-
VimDiesel
Title: JuKy
-
rwp
That chip is known to run hot and I am changing the way I am cooling it. Hoping not to have it overheat.
-
rwp
It says "Temperature: Unknown/Unsupported" but apparently there are other utilities (that I don't know) which can report this.
-
dogcow
meena: you can also set a DNS over HTTPS resolver in firefox, then add exceptions to use the default system resolver. sometimes that helps.
-
mystic
hello what's best as performance using bhyve and openbsd vm ? or windows ?
-
mystic
currently I'm using vbox and openbsd vm, but it's very slow
-
nimaje
meena: but you only need their dns for stuff in the vpn, not exclusively their dns for everything (as would be the result of using resolveconf -x)
-
vortexx
mystic: openbsd vm is single core, thus slow. bhyve works much better.
-
mystic
vortexx: thanks so much, I'll try bhyve
-
nimaje
hm, seems like resolvconf doesn't handle foreward zones :( but I do like resolvconf abstracting away configuring whatever is used for dns on a machine, I don't really want to build something to configure my local-unbound and then have to rebuild it, if/when I change my dns resolver
-
RhodiumToad
forward zones for what?
-
RhodiumToad
it does support local-unbound
-
nimaje
configuring a foreward zone via resolvconf
-
nimaje
at least I haven't found a way to do it
-
RhodiumToad
afaik, that's supposed to work, using the `unbound` subscriber
-
nimaje
ok, so suppose I want to add a forward zone for $domain using the dns server $dns what would the resolvconf command for that be?
-
nimaje
ah, ok, I have to get resolvconf to add it to DOMAINS and not add it to NAMESERVERS, but the man page doesn't really help to figure out how to archive that if it is even possible
-
nimaje
ah, -p I ignored that one, because the interface doesn't really matter for some nameserver and it didn't explain what it means with an interface being private where the option is
-
nimaje
crest: I think commands spanning multiple ´PostUp´s aren't compatible with wg-quick, hm I will probably do printf … | resolvconf …
-
crest
nimaje: wg-quick evals a multiline string
-
xk2600
anyone familiar with the "read after free" issue with heimdal in November of last year?
-
xk2600
I'm about to upgrade a large farm and I'm wanting to make sure I have a good grasp/process worked through in my dev setup. I'm a little unclear on the current status and how the heimdal in base might affect heimdal in pkg.
-
meena
xk2600: they are independent
-
micdud
trying to find a freebsd alternative to linux version of (head -n -lines) which inverts the printing to all but the number of lines
-
CmdLnKid
"-lines" as in + or - ?
-
micdud
line with - prints all but lines without - prints the lines
-
CmdLnKid
head -n +[numeral] |combindined with maybe tail in the same scenario to achieve your result
-
micdud
cannot invert something that is not there though
-
CmdLnKid
hmmm
-
CmdLnKid
invoke a perl one liner ?
-
CmdLnKid
awk or otherwise
-
CmdLnKid
grep etc...
-
V_PauAmma_V
Like, print lines 3-5 of a 5-line file?
-
CmdLnKid
line number nl(1) grep -v invovation
-
Demosthenex
isn't head -n -X the same as tail -n X?
-
micdud
no it is not
-
CmdLnKid
++
-
CmdLnKid
got a pastebin with some scenario code we could go off of ?
-
CmdLnKid
expected outcome vs current outcome
-
CmdLnKid
output whatever
-
CmdLnKid
sometimes when i look at it i can write a whole script on one command line
-
CmdLnKid
<<< hence the nick
-
micdud
head -n 5 prints first 5 lines , i need to print all but the last 5 not matter how many lines there are
-
micdud
5 being an example
-
CmdLnKid
tail +5 ${file}
-
CmdLnKid
?
-
micdud
all but the last 5
-
micdud
try it
-
CmdLnKid
head and tail combinded when you understand the - + syntax can consolidate most everything
-
antranigv
-
VimDiesel
Title: FreeBSD Jail booting & running Devuan GNU+Linux with OpenRC | Freedom Be With All
-
CmdLnKid
hmmm
-
dkeav
nice
-
CmdLnKid
tail -n +5
-
CmdLnKid
everything else but the last 5 lines
-
micdud
for me it prints the last 5
-
micdud
piping to tail though
-
micdud
ot file
-
micdud
same deal with file
-
CmdLnKid
see what you mean here. something seems off. just realized i was macOS and mixing results with freebsd/13
-
CmdLnKid
assuming you are on /13 ?
-
micdud
yes
-
CmdLnKid
k
-
V_PauAmma_V
"tail -n 5" works for me on FreeBSD.
-
V_PauAmma_V
Wait, no. Misread.
-
nimaje
micdud: I think awk -v LINES=5 'BEGIN { i=0; } NR >= LINES { lines[i] } { lines[i]=$0; i+=1; if (i >= LINES) { i -=LINES } }' $file should do the trick
-
» CmdLnKid was stuck on tail and head to keep it on what he was looking for
-
CmdLnKid
awk works perfectly fine. grep -E probably could as well as perl
-
» CmdLnKid hands nimaje a razor to shave off that grey beard
-
nimaje
hey, it isn't grey and it stays
-
micdud
nimaje thanx , was hoping for a simple one , ( best i have so far is using tails inversion twice )
-
CmdLnKid
rofl
-
CmdLnKid
"just for nicks"
-
CmdLnKid
;)
-
CmdLnKid
-
CmdLnKid
wholy shit that turned out a long url
-
CmdLnKid
... anyway back on topic
-
CmdLnKid
micdud, in anyway is there some sort of sorting going in this ?
-
micdud
no , just trying to keep my scripts clean/simple
-
CmdLnKid
k. ive seen in the past sort/sort -n |tail and the likewise do some pretty cool shit
-
micdud
porting from linux to bsd / this is the last thing that bugs out (
github.com/dandudikof/zfs-auto-mod)
-
CmdLnKid
conversion to sh compatibility. POSIX 1003.2
-
CmdLnKid
fun shit
-
micdud
no
-
micdud
linux bash to freebsd bash
-
CmdLnKid
exactly
-
micdud
bash
-
CmdLnKid
if linux bash comformed to the standard "not trying to drive this off topic [bashism]" then writing POSIX 1003.2 you would not be having this problem right now
-
CmdLnKid
sorry have some real connection issues going on in CST
-
mikoto-chan
how do I run a script as a certain user?
-
mikoto-chan
-
VimDiesel
Title: Practical rc.d scripting in BSD | FreeBSD Documentation Portal
-
mikoto-chan
nothing to be found here
-
debdrup
mikoto-chan: that page mentions rc.conf(5) which lists all of the options available.
-
mikoto-chan
debdrup: thanks!
-
meena
spoiler, it's <name>_user=…
-
CmdLnKid
so does /etc/defaults/[,,,]*, crontab etc...
-
CmdLnKid
"SEE ALSO" in the man pages
-
» mikoto-chan reads manpages at a faster pace :)
-
CmdLnKid
ideas only spur information for creation so no holds barred.
-
PyR3X
previously I used .xinitrc to eval gnome-keyring-daemona and export SSH_AUTH_SOCK -- using Sway and Wayland (with Xwayland disabled) where do I actually export SSH_AUTH_SOCK? I can start sway w/ dbus-run-session and start gnome-keyring-daemon from .config/sway/config but I don't think I can export SSH_AUTH_SOCK from there ...
-
ted-ious
antranigv: Very nice!
-
beowuff
I was looking at spinning up a wireguard endpoint and was wondering what the state of wireguard is in 13.2? Is anyone using it?
-
meena
-
VimDiesel
Title: The missing WireGuard integration into rc.d for FreeBSD 13.2 — blog.rlwinm.de
-
nimaje
beowuff: the kernel module is in base, wg-quick is in ports and if you only want to use base stuff see that blog post, but I'm not sure if exchanging bash (wg-quick) with sh counts as progress
-
beowuff
Thank you, I'll take a look at the links.
-
meena
nimaje: yeah, it's still a sh…
-
nimaje
and you loose arrays with the bash->sh step, well, no idea how good bash handles arrays (does bash have other improvements to what posix specified as sh? they didn't improve quoting for some reason)
-
RhodiumToad
lack of arrays is sh's biggest weakness
-
RhodiumToad
the workarounds all suck
-
RhodiumToad
bash handles them well enough.
-
rwp
Hmm... I have never missed the arrays of bash and always use /bin/sh syntax. (shrug)
-
rwp
If I need complex datas structures then I switch from the shell to Perl, Python, Ruby, Lua, or other.
-
RhodiumToad
the only reason that rc.subr and rc.d/* don't explode and messily destroy the whole system is that their input and the filenames they handle are all reasonably safe
-
RhodiumToad
e.g. that paths like /etc or /bin don't contain whitespace
-
RhodiumToad
one of the workarounds is to use the positional parameters as a single array
-
RhodiumToad
an interesting shell challenge is this: ./reorder-o.sh somecommand args... -o outfile moreargs... which should execute somecommand args... moreargs... outfile
-
rwp
I have not looked at reorder-o.sh but... re-executing things is a good use for the positional parameters because "$@" exists.
-
RhodiumToad
right. but that only allows you to manipulate one array at a time.
-
rwp
Right. But if exec'ing then none of the others matter after the exec. :-)
-
rwp
Obviously the challenge is for something in base which then can't use anything outside of base. Consequentially it might force something that is simple in the shell to be written in C so as to compile into base okay without any other requirements.
-
rwp
I presume (perhaps incorrectly) that was probably a driving reason for bectl to be in base rather than beadmin in ports. Just for an example.
-
BillyJoeBob
Hello, all
-
BillyJoeBob
I asked earlier if anyone knew how to get X to lock using xscreensaver before going to sleep from a lid closure. I had to leave so I wasn't able to see any replies.
-
daemon
memory is saying 'xlockmore' but no reason why its a distant memory
-
jbo
hmm... I'm trying to modify the /boot/loader.conf of an installation stick I Just created by dd'ing the .img to a USB drive. When I try to mount the partition from the USB-stick it tells me "invalid fstype" what the heck?
-
_xor
If I need arrays in /bin/sh, I use double-quoted strings embedded with single-quoted strings where required. Yes, it feels hacky.
-
yuripv
how do you build a flavor (e.g. git-tiny) using ports?
-
_xor
category/port@flavor
-
yuripv
where does that apply? :)
-
_xor
Oh, sorry, I use poudriere by default which takes that format. For /usr/ports, I'm pretty sure it's just like any other macro: `make FLAVOR=myflavor"
-
BillyJoeBob
@daemon idk...I'm thinking it's something to do with dbus?? Unless xlockmore is the thing I need that talks with dbus?
-
daemon
you know the @ thing does not work on irc right :P
-
daemon
xlock and xlockmore used to integrate with xscreensaver to use pam to prompt for login on system resume
-
BillyJoeBob
yeah...it's been a while lol
-
BillyJoeBob
new habbits repladed the old ones
-
daemon
however ... I have not used freebsd in graphical mode in errr ... freebsd 5.x
-
daemon
a while
-
yuripv
_xor: right, thanks! i tried that but was confused by large number of dependencies needed (and didn't check package-name)
-
_xor
Don't get all high and mighty.
-
_xor
Heh
-
daemon
portmaster ftw >.>
-
BillyJoeBob
Hmm, I actually have a few desktops with FreeBSD...it's just the laptop I have minor issues with (that being the screen locking). Current "work around" is to just lock the screen then close the lid but it'd be nicer if it's automatic.
-
_xor
I just use pkgbase (ty meena).
-
daemon
BillyJoeBob, seems it suspends before the event triggers to announce to lock
-
BillyJoeBob
Otherwise, if I don't lock it first and after opening the lid again, it just presents me with an unlocked screen...
-
daemon
so what you want to do is get some notification of a suspend and tricker a lock-the-screen event
-
BillyJoeBob
daemon, exactly.
-
daemon
so on resume it shows it
-
_xor
I've been using FreeBSD as my desktop for the past year or so now. Its been working out pretty well. Like anything else it has some warts, but the trade-off was worth it.
-
daemon
I
-
jbo
yeah I switched to FreeBSD as my desktop about two years ago and I love it.
-
jbo
(had 10 years of FreeBSD server experience before that tho)
-
daemon
I wonder if there is a way to tail acpi events
-
_xor
daemon: I wasn't following. Are you trying to require a login upon resume in xorg?
-
daemon
so you could see the suspend event trigger
-
BillyJoeBob
daemon, I've tried a few things with acpi or devd...I can't remember but that didn't work as the user that ran the commands didn't run as me and with me running the x session, couldn't work.
-
yuripv
you don't need to, you have devd
-
yuripv
oh
-
daemon
_xor, not me, BillyJoeBob; on suspend his system suspends before telling his desktop it will require a login to well unlock
-
daemon
so it resumes to desktops
-
BillyJoeBob
daemon, I want x to still run but be need to enter my credentials on xscreensaver
-
_xor
Isn't there a config setting somewhere that tells it to require a password on resume? For some vague reason that's ringing a bell.
-
daemon
yeah that is where xlock(more) would normally fill in, but it seems on your system the suspend likely (s3) happens before it can even manage that
-
daemon
so on resume its 'straight back in'
-
_xor
BillyJoeBob: Are you using a login manager?
-
_xor
e.g. sddm, ly, greetd, etc.
-
BillyJoeBob
I'm using lightdm with xfce
-
daemon
excellent choice, that was my choice back in the day too :)
-
BillyJoeBob
I used to use slim but that seems to be abandoned and couldn't shutdown, logout, restart from xfce's power menu
-
daemon
would assume that was more hald policies than anything else but eh who knows
-
daemon
you tried just for the laughs trying a fatter DE like kde? just to see if it does support it
-
daemon
it would be interesting to see if its a software issue or a hardware one
-
» _xor is running hyprland (wayland) and currently using ly as his login manager, though was using sddm before (and would like to again)
-
BillyJoeBob
...I have not but I suppose I could try.
-
BillyJoeBob
I did like how greetd looks after searching that up.
-
daemon
worth it to see what you are facing, afterall if it does work on a larger DE then it is possible, if its not then you are into the trailing acpi thread
-
daemon
and writing your own script to trigger lock
-
_xor
I should try greetd, its been on my todo list. I'd like to be able to use DPMS from login screen so that the monitors blank and turn off after being idle for enough time.
-
BillyJoeBob
daemon, that would be annoying. It is a Lenovo T590 btw, forgot that.
-
daemon
ah we even have similiar systems, menovo carbon X (6th gen) here :P
-
daemon
lenovo*
-
BillyJoeBob
Did you need to make a devd file so you could adjust screen brightness?
-
BillyJoeBob
By using the keyboard function keys?
-
daemon
nope, but I do not run it in graphical mode (pure console mode)
-
BillyJoeBob
Ah.
-
daemon
I was just happy the wireless worked which is a miracle now days
-
BillyJoeBob
You could still adjust brightness though, I'm assuming.
-
daemon
yep
-
daemon
seems to be hardware bound against the fn keys rather than software controlled
-
BillyJoeBob
Yeah, I'm hoping wifi gets better. I hear there's a guy that's working on 802.11ax support.
-
BillyJoeBob
Yeah, I had to setup a devd file for mine to get my buttons to work.
-
daemon
there always is someone working on wireless and camera support, to be honest I always found it easier spending 30-40 bucks on an ethernet/wireless adapter bridge (usb powered) and just using that; they was common for connecting the old xboxes with no wireless to well wireless networks
-
daemon
handy for the hacker bag
-
BillyJoeBob
Yeah, now you can setup a linux vm to handle the wifi card for you and tunnel it over a virtual interface lol
-
BillyJoeBob
Sounds a bit...over the top.
-
daemon
to expensive resource wise and I bet the latency is shit -_-; not to mention I bet it suspends horrifically
-
BillyJoeBob
Yeah, haven't tried it but it's a thing, check out "pkg search wifi"
-
daemon
anyhow time to slough into bed :) have a nice one BillyJoeBob; also one thing to consider ... I just rent a dedicated freebsd server .. from that that I run linux vm's I then run whatever os works best on my equipment and tie it all together with a vpn; sometimes making it work is ... more than its worth and its easier to take the well the easier route ;)
-
BillyJoeBob
It's the wifibox packages
-
BillyJoeBob
Sounds complicated...I'll pass lol. Have a good one. It's only 6:20 here.
-
BillyJoeBob
pm