-
rwp
I have always "made do" with echo-prints but it is the lowest form of debugging. The lowest form that all of us have done repeatedly.
-
rwp
I keep thinking I should drag in the bash debugger and see if it would work with the newer /bin/sh now as I think sh now might have all of the features needed to support the debugger. And then could single step through sh scripts.
-
polyex
ok made some progress in trying to run a command as an rc.d daemonized script:
termbin.com/k1ob but it won't service logg stop
-
polyex
any help appreciated
-
V_PauAmma_V
polyex, why are you calling "logger" explicitely instead of using daemon(8) options to syslog output? That would let you get rid of the pipe, the wrapper script, and the need for bash, and may (by giving daemon a single process to run instead of 2 or 3) solve your stopping problem.
-
polyex
ah i'll try that V_PauAmma_V
-
polyex
ya there we go
-
polyex
seems to work
-
polyex
any way to trim empty lines from the output of: tcpdump -n -l -e -ttt -i pflog0? it's making my syslog parser choke
-
lw
ooh, someone updated multimedia/navidrome
-
polyex
what's that
-
lw
now i can move that off linux
-
lw
polyex: music streaming server (think on-premise spotify)
-
polyex
niiice
-
polyex
does syslogd strip off the hostname when it sends to @remote ?
-
polyex
i look at /var/log/messages and it'll have like "May 24 05:05:05 myjail polyex[12345]: logger msg..." but opentelemetry collector's syslog receiver reports getting "May 24 05:05:05 polyex[12345]: logger msg..." with the hostname missing. anyone know what's going on pls?
-
polyex
nvm just changed syslogd's output format to 5424
-
polarian
I think FreeBSD is misdetecting the battery a bit
-
polarian
I know battery charge is just an approximation
-
polarian
but its been at 2% for a good 15 mins
-
polarian
any ideas?
-
polarian
(bare in mind it went from 100% to 2% in 2 hours)
-
kwiat
I think it displays whatever is provided by BIOS
-
rwp
polarian, Are you using something like powerdxx to scale the cpu frequency? If not then I recommend it as it made a big difference for me. My Intel cpu needed powerdxx not powerd, my cpu was too new for powerd.
-
polarian
rwp: E6430 has 3rd gen intel
-
rwp
polarian, htop has gained the feature of being able to display the cpu frequency in real-time. It's under Setup, Display Options. For laptop use especially I would verify that the frequency is being scaled appropriately.
-
debdrup
for certain values of realtime, including not realtime
-
rwp
Well... FreeBSD is not a RealTime(TM) kernel. So, right, not hard-real-time like a hard real time kernel.
-
rwp
Not like the Apollo Guidance Computer landing the Lunar Module! :-)
-
debdrup
rwp: well, there's also the tiny issue that measuring even using pmc(3) can bump up the frequency
-
sfox
we hould all replaces our freebsd boxen with apollo guidance computers then
-
» V_PauAmma_V misread that as "GUI dance".
-
debdrup
no, freebsd isn't hard-realtime, but it's got dynamic tickless and has a time resolution down to nanoseconds
-
debdrup
i'm also not sure most people would want a hard-realtime general-purpose OS
-
debdrup
RTEMS does use a fair amount of FreeBSD code though, which I always found interesting
-
debdrup
Also, in finding the correct term above (ie, "dynamic tickless", which I was blanking on), I got periodically distracted by a reminder of this paper:
usenix.org/legacy/events/bsdcon03/t…ech/full_papers/baldwin/baldwin.pdf
-
polyex
when 'periodic daily' runs base makes a network connection to vuxml.freebsd.org, any way to disable that pls?
-
polyex
maybe something in pkg.conf
-
debdrup
It's probably /usr/local/etc/periodic/security/410.pkg-audit
-
polyex
hmm /etc/defaults/periodic.conf says 410 is status-mfi
-
polyex
13.3
-
debdrup
pkg(8) isn't part of the base system
-
polyex
debdrup so to disable that check i'd put like security_status_pkgaudit_enable="NO" in /etc/periodic.conf?
-
debdrup
You'd need a - between pkg and audit, but otherwise that sounds reasonable.
-
V_PauAmma_V
s/-/_/ (I think)
-
debdrup
I don't know why you would want that, though.
-
debdrup
V_PauAmma_V: the script is called pkg-audit, not pkg_audit
-
V_PauAmma_V
Can you have - in a shell variable name?
-
polyex
i don't have a fw rule allowing it out. only disabling it till i think that through
-
debdrup
Oh, hm. That's a good point.
-
debdrup
Yeah, it'll have to be an underscore as V_PauAmma_V points out.
-
debdrup
That's a good catch.
-
» V_PauAmma_V preens. :-)
-
polyex
debdrup i had to disable security_status_baseaudit_enable AND security_status_pkgaudit_enable to disable those network conns during periodic daily/monthly/weekly
-
debdrup
Still not clear on what you're trying to achieve.
-
polyex
the network connection to the vuxml.freebsd.org site
-
polyex
dunno yet if i wanna use pkg audit because it means i gotta allow a fw rule out
-
debdrup
why is allowing a connection out a problem?
-
debdrup
if you don't trust anything from freebsd.org, why are you using the OS?
-
polyex
an attacker could use the pass out rule to download hack tools no?
-
debdrup
if that's a serious threat modeling, you need an airgapped system.
-
polyex
so you're saying just allow any outgoing http connection? pretty loose no?
-
debdrup
who are you, RMS?
-
debdrup
if someone can initiate an outgoing connection, they either 1) have physical access which means they can have root access in very short order, or 2) if they can initiate an outgoing connection but don't have physical access, the attacker is already on your system