-
polyex
any way to get 'top' info but just for 1 app?
-
polyex
like mem usage and all that
-
rtprio
h or ? - show this help text
-
rtprio
- filter on command name (+ selects all commands
-
rtprio
uh, '/'
-
polyex
what command is that for?
-
polyex
that's not in the top man page
-
polyex
rtprio?
-
rtprio
it's in the help of top
-
rtprio
when you press ? while it's running
-
rtprio
and it is in the man page (14):
-
rtprio
/ Display only processes that contain the specified string in their
-
rtprio
command name. If displaying arguments is enabled, the arguments
-
rtprio
are searched too. '+' shows all processes.
-
polyex
what?
-
polyex
ohhh
-
polyex
wow weird
-
polyex
why doesn't the man page say "filter" in it?
-
rtprio
is it not for you?
-
polyex
the / feature is really important
-
rtprio
or do you not know you need to escape it in less so you need /\/ in order to search for /
-
skyenosaur
is it a known issue that the FreeBSD-14.0-RELEASE-amd64-dvd1.iso kernel panics right out of the bootloader and if not, what is the correct place to file the bug report?
-
blastwave
my Lenovo laptop is running at 107C and FreeBSD 14.0 by default seems to want to destroy it. there has to be a way to control temperature on these things. is there no temperature sysctl setting ?
-
mason
skyenosaur: When booting it, or after installing?
-
mason
-
VimDiesel
Title: FreeBSD Bugzilla Main Page
-
mason
blastwave: Do you have powerd running?
-
Macer
upgrading to 14.0-RELEASE now for the nas
-
Macer
wonder if there is a way to get arc to prioritize based on pool
-
Macer
hm. lots of odd conflicts. like passwd.master?
-
Macer
14.0-RELEASE
-
Macer
feeling good about it heh
-
tercaL
is this: "pkg update && pkg upgrade" actually exactly same as; "pkg upgrade"? If I'm not wrong, I think "pkg upgrade" already does "pkg update"?
-
Macer
install: ///usr/src/contrib/llvm-project/libcxx/include/__string/extern_template_lists.h: Not a directory
-
Macer
tercaL: not really sure if straight upgrade actually updates the repo info
-
Macer
if it did that would be nice. i have muscle memory to do update then upgrade
-
Macer
wonder what's up with all those install messages for not a directory
-
phryk
i just finished upgrading my homeserver to 14.0, but now get "pam_start: System error" when trying to start grafana on a jail. i'm assuming this affects all services trying to switch users in jails – is this just a new jail setting i have to set or is this some other problem?
-
phryk
mhh, "no pam_opie.so found", lemme re-evaluate my thinjail setup, i guess. ^^
-
Macer
pkg update
-
Macer
ld-elf.so.1: Shared object "libssl.so.111" not found, required by "pkg"
-
Macer
wait. what?
-
yuripv
you always have pkg-static to fix this by force-upgrading pkg
-
yuripv
(14 switched to openssl3)
-
phryk
mhh, i'm finding pam_opie.so on some ancient backup, but not on any of my current systems…
-
yuripv
phryk: it was removed, check UPDATING
-
yuripv
(not sure if it's in release notes as well)
-
Macer
oh ok
-
Macer
yah i noticed that too when trying to ssh in
-
Macer
good thing i left ssh open heh.. not sure how that would affect actual login too
-
phryk
yuripv: which one, i.e. where do i find it?
-
yuripv
/usr/src/UPDATING
-
yuripv
20221002 entry
-
phryk
so, there's this massively important text nobody gets when they don't have the source component installed? that seems… ungood.^^
-
yuripv
it's in release notes actually, just checked :)
-
yuripv
see Userland Configuration Changes
-
Macer
i probably should have looked at those a bit harder heh
-
Macer
i mean i usually leave like 10 ssh sessions open just in case .. but yah that would have required some tomfoolery to get working had i completely logged out or reboot in that state
-
phryk
yuripv: thanks.
-
Macer
WARNING: FreeBSD 14.0-RELEASE is approaching its End-of-Life date.
-
Macer
but i just installed it! :)
-
phryk
mh, that mentions etcupdate – that tool was specific to building/updating the base system from source tho, right?
-
phryk
(i.e. i don't have to use etcupdate if i updated through freebsd-update)
-
phryk
okay, copied over the updated /etc/pam.d into all jails rw directories. grafana manages to start now. :)
-
phryk
and i got a lot of no data, but it seems like prometheus just threw away all its data for some reason…
-
Macer
ok. all done and all seems to be workign.
-
Macer
so i guess i can rest easy now. NAS has a long way to go for another major update now
-
phryk
ah yes, i now have all of 2 measurements, great success! \o/
-
yourfate
yay upgrade to 14.0 seems to have worked without a hiccup. nice! <3
-
dvl
I'm doing a "cat file1017.data | /usr/bin/gzip -d ..." and I want to skip the first three lines of that output. I'm trying to work through a head/tail combination, without knowing the actual number of lines in this 54GB file.
-
dvl
I think this does it: cat file1017.data | /usr/bin/gzip -d | tail -n +4
-
dvl
"Numbers having a leading plus (`+') sign are relative to the beginning of the input, for example, "-c +2" starts the display at the second byte of the input. "
-
jgh
awk 'NR > 3'
-
voy4g3r2
youtube.com/watch?v=thxnemnprPg <-- real good video on raspberry pi install on freebsd 14.0 and configuring
-
VimDiesel
Title: FreeBSD 14.0 aarch64 - Download, Install & Configure - YouTube
-
voy4g3r2
he makes real good videos
-
tk
If I want to add a new system user (for a service) is the recommendation that, despite it being a system user (not a non-system user) the UID and GID should be above 1000?
-
tk
because when installing software which adds users, the uid/gid appear to be pre-allocated
-
yuripv
tk: i think so, yes, to avoid collisions with uids in ports
-
yuripv
i.e. /usr/ports/UIDs
-
meena
dvl, jgh: between tail and awk, which one is better at being a pass through pipe for a 54 GB file?
-
dvl
jgh: Oh, I see your reply now.
-
otis
meena: write it in rust. i recently re-implemented an awk script in rust, the speedup is incredible.
-
dvl
-
VimDiesel
Title: Chapter 6. Special Considerations | FreeBSD Documentation Portal
-
dvl
"choose a unique UID from 50 to 999 and register it in ports/UIDs "
-
dvl
If you're doing your own private port, don't use that range
-
meena
otis: I'm curious now, how many lines of rust was it compared to awk? (and how many dependencies?)
-
jgh
meena: I could easily imagine tail being better optimised, but there's no theoretical reason awk could not be quick given enough developer love
-
otis
meena: many lines in rust, compared to awk, indeed. but worth the speed.
-
jgh
also, dvl, you had a pointless use of cat
-
dvl
jgh: It's a script written by people more used to Linux
-
jgh
it'd still be pointless anywhere
-
tk
dvl: not quite a private port, just that mosquitto runs as nobody by default and I didn't like that, but thank you for pointing me at the source, and thank you yuripv for the help too
-
dvl
jgh: I'm migrating a PostgreSQL Bacula database from Bacula 9.6.7 to Bacula 13.0.1
-
dvl
jgh: Your fix please? I'm already sending them patches. Might as well do one more.
-
dvl
tk: Oh, I have mosquitto running as mosquitto
-
jgh
"cat filename |" can be replaced by "< filename"
-
dvl
tk: OH, I see, I'm running it under supervisord I think.
-
dvl
jgh: Added to notes. thanks.
-
dvl
jgh: I've found the use of cat to be more prevalent amongst people who have drifted from Linux into BSD, rather than those who started in with BSD first.
-
dvl
The other thing, I'm sure the insert into the database doesn't start until the gzip is done, based on how long it takes to get to the error from the first few lines.
-
dvl
meena: I don't know. Easily tested I bet.
-
Demosthenex
dvl: i'm guilty of useless use of cat, but i have a programming background and the consistency of logic from left to right is more important to me than the cat process.
-
Demosthenex
a | b |c instead of b <a | c
-
dvl
Demosthenex: The left to right reason is a strong valid basis.
-
Demosthenex
what i'll eviscerate people for is curl | sh
-
jgh
if a is a file, "<a b | c >d"
-
jgh
is the same as "b <a | c >d"
-
Demosthenex
jgh: yes, but again, order of logic, command comes first
-
jgh
you're saying you want the first operator to be written before it's sourcefile? ok, "b <a | c >d" does that (not that I agree with your choice)
-
Demosthenex
its all just style ;]
-
jgh
indeed
-
Demosthenex
love me some shellcheck
-
Demosthenex
and i only write in posix sh, because i do linux, bsd, and aix.
-
dvl
meena: My suspicion is the gzip will overshadow any improvements between tail / awq
-
pstef
I wish zstd was as prevalent as gzip is
-
tmp_
Only writing posix sh is complicated where I usually work; they have Solaris....
-
thorre
Just to be super certain to do things in the right order when doing a binary upgrade from 13.2 to 14.
-
thorre
First do upgrade with freebsd-update utility.
-
thorre
Then when the machine is running 14-RELEASE
-
thorre
Copy the ZFS EFI file from /boot to the mounted UFI partition that is visible via efibootmanager -v
-
thorre
Thereafter upgrade ZFS
-
thorre
Is that the correct order?
-
thorre
tmp_: I remember solaris .... "ksh -o emacs"
-
tmp_
Out of all the systems I've worked with, Solaris has the only non-posix /bin/sh . So taking all those scripts with #!/bin/sh and generalizing them to run on Solaris eventually ended up with a standardized add-on right after that (localized by company, generally 80 to 100 lines). If running on a system with /usr/xpg4/bin/sh (Solaris), it'd exec the rest of the script with that (after making the environment posix friendly).
-
drobban
whut, are we on 14.0 now. hot damn... still on 13.2 :-E
-
dvl
Coming back to cat: I think spurious or superfluous might be better than useful.
-
skered
node18 broken for anyone else using latest?
-
skered
Ok.. nm. Looks like it's some multi repo issue with pkg not wanting to update node18.
-
hc
Huh ? WARNING: FreeBSD 14.0-RELEASE is approaching its End-of-Life date says freebsd-update
-
dvl
hc: known issue.
-
hc
kk
-
dvl
drobban: I'm still on 13.2 everywhere. No 14 yet. Other things to do first.
-
deepthaw
Quick question... Trying to setup Xen but it just reboots after trying to load the kernel. How can I browse my zfs filesystem when booted from USB? The USB installer loads the fs as readonly so I can't seem to mount anything to it.
-
deepthaw
what a day to finally learn zfs
-
mason
deepthaw: zpool import -R <mountpoint> <name> is a good start. You might need to then mount things, depending.
-
meena
deepthaw: which version of FreeBSD have you been trying? i know at least one developer actively working on Xen
-
meena
I would think that rebooting on boot is not great. do you get a glimpse of why?
-
deepthaw
So here's probably an easier question. How can I use the boot loader to skip loading the Xen kernel so I can view the logs?
-
deepthaw
finally figured it out and... xen didn't keep a crash log
-
babz
which versions ? (xen, freensd)
-
babz
uefi or legacy boot ?
-
deepthaw
legacy boot (I'm pretty sure.) latest freebsd (14-RELEASE) and Xen kernel 4.17.01
-
deepthaw
This PC keeps trying to boot to UEFI but I keep overriding it - can't figure out how to remove all the EFI stuff from the hard drive.
-
deepthaw
Maybe this ancient i5 doesn't support what it needs - but it'd be nice if it at least displayed an error stating that :(
-
deepthaw
ooh it's an i3. didn't remember that.
-
deepthaw
at least i'm learning a lot about the boot loader
-
monkeybusiness
..
-
meena
(I didn't realize Solaris sh isn't POSIX compliant)
-
tmp_
They've still got the old pre-posix /bin/sh.
-
rwp
The Solaris POSIX shell is located at /usr/xpg4/bin/sh and /bin/sh is the old Bourne shell (without functions IIRC).
-
daemon
the original non bourne again shell
-
tmp_
Their approach to posix support is interesting. Pre-posix in the usual /bin /usr/bin, and so on with an earlier version of posix in /usr/xpg4/bin and newer posix in /usr/xpg6/bin.
-
meena
so, like csh then?
-
meena
yeah, I had very esoteric paths when I was working on Solaris
-
tmp_
You select your level of posix by setting PATH. Basic posix: /usr/xpg4/bin:/usr/bin:/bin More posix: /usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:/bin
-
meena
i used lots of GNU
-
tmp_
And if you needed Solaris 1 compatibility: /usr/ucb. That was deprecated in 1994 and they stopped including it around 2014.
-
daemon
ucb? guessing at universal something
-
tmp_
To the anguished screams of devs who were still working on migrating away from Solaris 1.
-
tmp_
ucb: University of California, Berkeley. Solaris 1 was very BSD.
-
tmp_
Before the BSD/Unix split.
-
daemon
ah I see
-
babz
And posix says scrips should rely on the compatible shell being installed at /bin/sh
-
babz
*should NOT
-
tmp_
Thus checking for the presence of the posix shell at a different location.
-
joachin
hello there, I'm new on FreeBSD. I have a question, how do I know if I'm using Quarterly o Latest version? Also, I would like to have RR syste, do I need to install the -current version?
-
cybercrypto
joachin: do you mean rolling release by RR? There is no such concept in FreeBSD to my knowledge.
-
joachin
cybercrypto: yes, I do. Oh ok, I tought that the Latest version was a rolling release version and the Quarterly something more stable
-
cybercrypto
joachin: Please, read release engineering so you can get a better overview of how it works:
freebsd.org/releng
-
VimDiesel
Title: Release Engineering Information | The FreeBSD Project
-
joachin
doing so, thank you.
-
tmp_
Add-on packages (not part of the OS) default to quarterly when using the `pkg` program, with a configuration option to draw from the latest work. The OS itself uses versioned releases.
-
cybercrypto
joachin: current is purely for testing (not designed to be top noth features roling release). To me, RR is purely marketing selling point from some distributions to have a reason to exist. 8-)
-
tmp_
For ports and packages see chapter four in the FreeBSD handbook:
docs.freebsd.org/en/books/handbook/ports
-
VimDiesel
Title: Chapter 4. Installing Applications: Packages and Ports | FreeBSD Documentation Portal
-
joachin
Sure. Thank a lot for your help. I was checking the ports section.
-
tmp_
4.4.2 covers quarterly vs. latest.