-
parv
"pkg-autoremove" is not very helpful in my case for I need Python packages as dependencies for other Python packages (see PyPI) installed in virtual environment(s), along with other build time dependencies needed when I build some ports
-
parv
That does offer a list to non-auto remove a partial list
-
montjoie
hello where I can find pxeboot for freebsd ? I dont see it on mirrors
-
RhodiumToad
it's part of the standard install?
-
montjoie
this means I need to download an iso and it is inside ?
-
montjoie
right it is inside, thanks
-
montjoie
hello for booting via pxeboot, how to set console (I use qemu), does touching boot/loader.conf on the root-path is the right way ?
-
RhodiumToad
what do you want to set the console to?
-
montjoie
baud=115200 console=ttyS0
-
montjoie
I have set comconsole_speed="115200"
-
montjoie
and boot_serial="YES"
-
montjoie
I have logs on server that the NFS is mounted
-
RhodiumToad
console="comconsole"
-
montjoie
but the console only show last Starting the BTX loader
-
montjoie
with console="comconsole", no change
-
RhodiumToad
huh
-
RhodiumToad
let me check
-
RhodiumToad
what freebsd version?
-
montjoie
latest 13.2
-
RhodiumToad
jump_message: .asciz "Starting the BTX loader\r\n" <-- that's the last message you see?
-
montjoie
yes
-
RhodiumToad
hmm. looks like pxeboot can be compiled to always use a serial console
-
RhodiumToad
but that doesn't seem to be the default
-
RhodiumToad
if it's not managing to read loader.conf, then it wouldn't be able to switch to a serial console
-
montjoie
I see someone having the same problem, probably i need to enable NFS over UDP
-
montjoie
strange that the mount request is logged as succesfull
-
morsing
montjoie: Isn't mount always UDP? It's an RPC call.
-
RhodiumToad
yeah, mount is a completely separate option from actual file service, oddly
-
montjoie
I tried with another nfs host which has not UDP disabled, no change
-
montjoie
I removed the nographic from qemu, but no more success, the boot is stuck
-
RhodiumToad
other than compiling pxeboot with the serial console option, not sure what else to suggest
-
RhodiumToad
it's been a while since I tried pxe
-
montjoie
the problem is not serial anymore, since with normal video output the result is the same
-
RhodiumToad
ah
-
RhodiumToad
can you tcpdump the nfs traffic to see what's happening if anything?
-
montjoie
on qemu windows the last sentence is FreeBSD/x86 bootstrap laoder, Revision 1.1
-
montjoie
and the cursor is blinking
-
RhodiumToad
hm
-
RhodiumToad
so it got most of the way through loader's initial setup, but I think that's about where it would stop if file access is failing
-
montjoie
it seems the client try to access UDP port 0...
-
montjoie
according to tcpdump
-
montjoie
so something is wrong with nfs
-
montjoie
it try to open boot, but ask it on port 0, so this is the issue
-
montjoie
but why it uses port 0...
-
RhodiumToad
check whether it did a portmap call first
-
montjoie
I see a call to sunrpc before
-
RhodiumToad
that should have returned the port number to use
-
montjoie
wireshark help a bit more, the answer is PROGRAM_NOT_AVAILLABLE
-
RhodiumToad
does rpcinfo or equivalent on the nfs server show the nfs service as available?
-
montjoie
it seem that nfs over udp is not enabled, but the kernel is built with support for it
-
RhodiumToad
is the nfs server on freebsd or something else?
-
montjoie
nfs on linux
-
RhodiumToad
oh. I don't know about linux
-
RhodiumToad
on freebsd, -u and -t are separate flags to nfsd to control whether each protocol is enabled
-
phryk
if I don't set default versions of things like python in a make.conf – where does it come from? will one be defined at all?
-
RhodiumToad
default default versions are listed in Mk/bsd.default-versions.mk in the ports tree
-
meena
phryk: from the framework
-
meena
what RhodiumToad said
-
phryk
ah, neat. i assume those default defaults are what's used for the official pkg repo?
-
RhodiumToad
yes
-
montjoie
okay it works now
-
montjoie
so the problem was nfs-utils disabled udp by default since 2.1.1
-
montjoie
thanks for your help
-
RhodiumToad
yw
-
phryk
great. thanks for the info. i think i know how my next poudriere setup will look, then. :)
-
montjoie
so the UDP could be disabled both in kernel and userspace
-
meena
phryk: painful without ZFS :P
-
phryk
meena: hell no. the automatically generated zfs datasets are where 80+% of the stupid mount breakages happen.
-
phryk
always have to mount some of the jails, ports trees etc manually after boot because that shit's so broken.
-
meena
fun fact, I actually disabled zfs on poudriere, because I didn't know how the heck to backup that mess
-
phryk
yeah, no big surprise there.^^
-
phryk
with plain ufs it'll just be a poudriere dir. simple and easy to manage.
-
phryk
and if i want fancier stuff in there, i still have nullfs to mount around to my hearts content.
-
meena
I still had it on zfs in the end, because without seventeen layers of datasets it's just one zfs send
-
phryk
I'm too poor for backups. I have everything mirrored because i'm still paranoid about failures tho. that strategy worked fine for over a decade now.^^
-
phryk
and if i had extra disks/machines to store backups, it'd probably just be rsync in a cronjob. :P
-
meena
well, by Backup, i meant moving to a new server
-
meena
that hasn't happened, so my repo was decommissioned with the old server
-
meena
might be coming back soon
-
phryk
i'll be doing a new setup within the same machine. got myself 2new 4TB drives last month and am going to do a new setup for my homeserver on those manually so i can just reboot into it. will also give me some leeway if i forget stuff because the old system will still be around till i reformat the old 2TB drives. :)
-
phryk
for me, the fact that manually setting up a new system from a running one is so easy is one of the key strengths of freebsd. i don't even remember when i last used the actual installer… must've been around 5 years back when i got the current laptop.
-
RhodiumToad
I've used the installer a couple of times over the past few years - in VMs, to try and help out people with installer problems :-)
-
RhodiumToad
haven't used it for actual systems in a long time
-
phryk
The one thing I don't know by heart is the security settings the installer lets you enable. But I can look those up on my laptop^^
-
phryk
Which reminds me, I still need to read up on securelevels and see about secure uefi boot. Tho I think that would require a board that lets me write a pubkey to authenticate the boot partition or somesuch thing…
-
meena
phryk: i think ASLR defaults to ON now!
-
phryk
lol, wow. wasn't that a downstream contribution from hardenedbsd like… 8 years ago? :'D
-
phryk
also is "now" 13 or 14?
-
meena
no
-
meena
hardened BSD uses a different kind of ASLR, it's basically what lead to the split
-
phryk
mhh, i vaguely remember shawn talking about handing it in as contribution when hardenedbsd already was a thing. otoh that was a long time ago so my memory might just be plain wrong.^^
-
phryk
i thought of switching to hardenedbsd a couple times, but the bus factor seems a bit problematic.^^
-
debdrup
No, ASLR was developed independently.
-
debdrup
The one in FreeBSD, I mean.
-
phryk
debdrup: ye, but might be that shawn made a patch that was rejected or something.
-
debdrup
I don't think he did, no.
-
yuripv
meena: "split"?
-
phryk
debdrup: mhh, yeah, i at least can't find anything on bugs.freebsd.org
-
debdrup
As I remember it, HardenedBSD happened because Oliver and Shawn figured that notions of grsecurity (a company responsible for a custom Linux kernel build that cost money, and a set of free out-of-tree patches) were the only right ones, and decided to do a clean-room implementation.
-
debdrup
As you can imagine, other people had different ideas.
-
phryk
yeah, i don't think much would speak against these features as optional ones, tho. but for aslr specifically, i'm not sure the current kernel design would allow for that to be a module as it seems to be a quite low-level thing.
-
debdrup
It's also just not worth anything nowadays.
-
debdrup
Even when HardenedBSD implemented ASLR, it was trivial to defeat, and it's only gotten easier.
-
phryk
ah, okay. my knowledge of that low-level stuff is sadly very limited^^
-
debdrup
It dates back to 2001, for context.
-
phryk
not sure what difference that makes. i mean aes dates back further and is still considered secure.
-
debdrup
The point is that it was effective back then, and that like any other security feature, it isn't a panacea that works forever.
-
debdrup
scholar.google.com/scholar?cluster=9172709712739767577 and
scholar.google.com/scholar?cluster=15808895045898589987 are the first two bypasses (from 2014 and 2016, respectively), and by 2017 the AnC attack demonstrated that it could be done in JavaScript.
-
VimDiesel
Title: Google Scholar
-
debdrup
I'm pretty sure there were ASLR bypasses before then, but there's little acedemic mention of it, so it's much harder to find.
-
meena
yeah, the question is always: are security researchers going to find it, or somebody else?
-
debdrup
-
phryk
bookmarked. i'm slowly getting more into low-level stuff (have an ongoing project of doing libdrm stuff with D), but haven't done any security stuff that low yet. breaking ASLR might be a good first thing when I get time. :)
-
meena
and the answer is usually: if somebody else does, you won't know
-
debdrup
the slides from 2013 imply that it was possible to ROP or JIT past ASLR even before then, too
-
meena
I love how all these security people think of really cool stuff to secure things up and down the stack, and then developers of a language runtime go, we need to disable that for security reasons
-
phryk
uh wat? :D
-
meena
-
VimDiesel
Title: 16.11.1 cant build and execute on FreeBSD 13 · Issue #40467 · nodejs/node · GitHub
-
VimDiesel
-
meena
s/securit/performance/
-
meena
sorry
-
phryk
ouch.
-
debdrup
but meena, it has to go fast in order for javascript developers to be able to add more code
-
debdrup
we can't just have a few hundred megabytes of javascript, we need many hundred megabytes of javascript!
-
meena
do we have a wasm target for the kernel and base yet?
-
meena
imagine what we could achieve if you could require freebsd in your JavaScript? people could finally use shellscripts in their Browser!
-
nimaje
I think compiling shells to js or wasm is already possible and if not, python is and there is some shell (oil?) written in python
-
ixmpp
are there any javascript engines ported to wasm...
-
ixmpp
or browsers, even
-
ixmpp
imagine the fun
-
montjoie
hello how to update automaticly a password on freebsd ? (for doing it when installing)
-
montjoie
I want to avoid a sed in passwd file
-
V_PauAmma_V
I'd use "pw usermod" with "-h 0" in a suitable language: sh scripting, perl, python, or whatever.
-
V_PauAmma_V
For more, see pw(8).
-
montjoie
V_PauAmma_V: thanks
-
debdrup
meena: i think llvm ir lets you do javascript
-
meena
debdrup: finally a sensible machine to run freebsd on.
-
meena
a JavaScript virtual machine
-
meena
or abstract machine?
-
» debdrup hides
-
meena
whatever, it'll be good, i promise
-
debdrup
meena == scary
-
meena
and by good, i mean
-
» meena gestures vaguely at all of JavaScript
-
nimaje
but a python virtual machine would be much better, as python exposes much more of the internal interpreter state of the reference implementation
-
» meena chants Lu-a! Lu-a! Lu-a!
-
Plasmoduck
Hi, something is causing my system to freeze when running in X11. How can I detect/diagnose what is causing it?
-
Plasmoduck
It's that bad I usually have to just physically reset the laptop
-
Plasmoduck
it started happening a few months ago after updating some packages, so I have no idea which package/software is causing it
-
yuripv
can you still ssh into it?
-
Plasmoduck
I don't run sshd
-
Plasmoduck
Im on the laptop now
-
Plasmoduck
after sometime x crashes and it becomes responsive again
-
Demosthenex
anyone running nextcloud? does pkg handle updating it from version to version or is that still manual?
-
Plasmoduck
for example it just happened about 5 minutes ago was just sitting in x playing music and it became really slow and unresponsive and I tried to switch to a console tty, which eventually it did after a minute or 2, but then I tried to switch back to x and the session has crashed. I see the message "dwm: cannot open display". dwm is the window manager I use.
-
Plasmoduck
I've been struggling with this problem for about 2 months now and I'm *this* close to installing Alpine Linux.
-
gzar
if i want to encrypt a zfs dataset, do i need to create it encrypted or can i configure it post-creation?
-
Plasmoduck
which I think I will right now
-
yuripv
great, i would advise windows 11 though
-
gzar
i see quite a number of people displeased with the system
-
Demosthenex
i was going to ask if he had top open and how his memory was
-
gzar
is freebsd really that hard to use compared to linux? i dont have many problems with it, except my dumb gpu and drivers
-
rustyaxe
some people are dumb. it makes things much harder (:
-
meena
gzar: i find all software impossible to use. I get near a computer, and things start breaking
-
rustyaxe
See also EUSER (814): User error, replace user.
-
gzar
i dont think its fair to call people dumb like this. especially when its a program crashing when it shouldnt
-
gzar
i get frequent kernel panics due to the nvidia-340 driver on my system. nothing i can do about it. setteled for buying a less old gpu in the near future as i dont expect this bug to be fixed
-
Demosthenex
gzar: i moved to freebsd and it was no more difficult than swapping linux distros
-
Demosthenex
but i'm old school unix
-
Demosthenex
fact is, i think linux wants to be the next windoze.
-
Demosthenex
their desktop push is driving all decision making
-
Demosthenex
i want no part. i want a UNIX box.
-
Demosthenex
freebsd is a better choice for an X11 workstation
-
Demosthenex
and a server
-
gzar
i agree. I'm just saying
-
Demosthenex
hw support isn't as good as linux, but linux for two decades has had limited support. i'm used to that
-
Demosthenex
i'm just so grateful to have decent disk management, zfs, proper updates (bectl+zfs), and strong separation between os and user packages.
-
gzar
yeah same
-
gzar
the /usr/local separation is my favorite way of doing things
-
gzar
jails are also pretty cool
-
Demosthenex
i'm trying to get my new homeserver setup with proper jails
-
Demosthenex
bastille has been useful!
-
gzar
huh never heard of it, looks pretty cool
-
gzar
does anybody happen to know why my linux jails started segfaulting ? i used rsync -av to copy the jails from a different zfs dataset
-
Demosthenex
gzar: logs?
-
gzar
dont know, its just prings a segfault when trying to run some linux binary inside the jail, i restored to re-bootstraping it
-
Demosthenex
do other linux bins work?
-
Demosthenex
and you might check syslog anyway
-
gzar
some work some dont, seems like only really /bin/sh works
-
gzar
find and other utils segfault
-
gzar
bizzare, /var/log/messages shows no extra info either
-
gzar
when i chroot into it i get the same problem
-
Demosthenex
gzar: are you sure your linux compat is setup?
-
Demosthenex
and also in teh jails?
-
gzar
that is what i am figuring out now
-
gzar
some mount chaos going on, i'll have to remount stuff
-
gzar
i recently re-built my kernel with gcc, could it be related ?
-
rwp
gzar, The detail of whether it worked before your kernel rebuild and failed after, or if it worked before the rsync and failed after, is critically important.
-
rwp
It could be related to either. But that a new bootstrap of the system works implies to me that the rsync was not complete.
-
gzar
oh, no not even a new debootstrap works
-
rwp
Then that would imply to me that it is the kernel. Perhaps compiled without a required feature.
-
rwp
You could boot back to the previous kernel and see if it is working. That would test this theory.
-
gzar
i rebuilt my kernel yesterday and booted into it today, yesterday i tested the devuan jail and it worked... so i cant really give the distinction
-
gzar
oh, yeah good idea
-
gzar
the old kernel is usually renamed to kernel.old right?
-
rwp
Also if it were me I would run "ldd -d -r /usr/bin/programthatfails" and see if all of the shared libraries resolve through the loader.
-
rwp
Because if the shared libraries are messed up then that would also explain the problem.
-
rwp
If in the other case that you had two chroots and one worked and the other did not then it would be possible to diff all of the files down both trees and see what is different.
-
rwp
First look for files that are missing or added. Ignore the content differences on the first pass. If all of that made sense then could look a file content differences.
-
rwp
Also if you are using Root on ZFS then you will have Boot Environments active too. Boot Environments ROCK! Run "bectl list" (or beadm list) and see.
-
rwp
Can then easily boot into a previous boot environment and do an A-B test that way, or a system recovery.
-
rwp
-
VimDiesel
Title: BootEnvironments - FreeBSD Wiki
-
gzar
ldd also segfaults
-
gzar
almost everything segfaults in the linux jails
-
rwp
Oh!
-
rwp
I guess I feel a little silly suggesting that now. Since in hindsight that was an obvious situation. Silly me.
-
gzar
sh and its builtins work, some other programs work like cat. some programs manage to print a help message, but most programs just segfault
-
rwp
But if you try that on a working system you will see what I mean about it tracing through the shared libraries and reporting on them all being present or not.
-
gzar
not even bash works, just sh
-
rwp
This _feels_ to me like a missing kernel feature.
-
gzar
ah, none of the libraries were found
-
gzar
but thats me running it outside the chroot
-
gzar
chroot /compat/linux also segfaults
-
gzar
the f did i do
-
gzar
im rebooting into the old kernel and debug some more, thanks for the help
-
rwp
I admit that I subtly included -d -r in the ldd options because those are specific to the Linux version. If it was run in FreeBSD those options would barf. Indicating that it wasn't the linux version. (sly smile)
-
rwp
gotta run, bbiab
-
rwp
As I run let me direct you back to looking at the kernel, since I think the ldd shared library direction is a red herring and the problem is in the kernel feature set.
-
gzar
old kernel work
-
gzar
s
-
gzar
so it was the kernel
-
gzar
again...
-
gzar
maybe i should do a make world instead of just make kernel
-
gzar
seems like some kernel modules were not re-compiled
-
Demosthenex
gzar: nice find. that's the linux compat ;]
-
gzar
i thought make buildkernel automatically rebuilt all modules
-
gzar
is there a command i can make to force it
-
Demosthenex
kind of glad i've yet to find a reason to try and build kernel
-
gzar
i want a kernel built with gcc
-
gzar
not clang
-
ek
gzar: make buildkernel does rebuild everything using the default kernel config (GENERIC) or whatever kernel config you provide with $KERNCONF.
-
gzar
alright, in that case something doesnt go right when using gcc
-
meena
gzar: the tree should build with gcc.
-
gzar
it does build, but the linux compat layer wasnt working properly
-
gzar
well, it builds with the -Wno-error option
-
gzar
without it it detects uninitialized variables and aborts
-
gzar
alright, can confirm the problem persists when compiled with amd64-gcc
-
gzar
will have to try a make world with gcc later to see if it solves the problem but i dont want to leave my computer unoperational today so will do it some other time
-
tercaL
Does aesni_load=YES in loader.conf actually help improving KTLS, SSL performance of Nginx, under FreeBSD? (My CPU supports Aes-Ni)
-
RhodiumToad
aesni is part of the crypto(9) framework, and ktls uses that framework. So it should be used if the actual ssl cipher in use is AES. but that's theory, I've not personally tested it
-
debdrup
tercaL: it's specifically used for sendfile_SSL, which if memory serves is part of OpenSSL 3.x
-
tercaL
Hmm.. got it. Thank you both, great answers.
-
debdrup
See also, ktls(4)
-
debdrup
Depending on how you want to define it, it's technically not end-to-end encryption - because that can only happen if it's from application layer to application layer.
-
debdrup
It's as close as is practical, though.
-
polyex
seems like tracking latest pkgs isn't any less stable than quarterly because quarterly pkgs sometimes have problems too, and when latest pkgs have problems they get fixed faster. am i wrong?
-
sfox
Hello. The lp (lineprinter) command by default prints 80 columns on a sheet of legal paper.
-
sfox
I have some plaintext unix documents that are designed with an 80 column terminal in mind
-
sfox
however, I need to add § symbols, line number, period, and a space before each 80 column of text
-
sfox
I have already written a program to do this
-
sfox
the problem i'm having is the lineprinter lp command still only prints 80 culoumns
-
sfox
Is there any way to configure it to add just a few more columns to it's printing and possible control the left margin? preferably by decreasing the left margin by 7 or 8 characters
-
sfox
that would allow me to add the § subsection symbols for citation.
-
sfox
I thought UNIX was supposed to be good with plaintext
-
sfox
I am using a Hewlett Packard Deskjet 350 over the parallel port.
-
V_PauAmma_V
Use lpr instead? I think it has a width option.
-
sfox
whenever I try to use lpr it queues the job with no stdout but it doesn't actually print. upon looking further into the issue it's unable to connect to the locally running CUPS daemon.
-
sfox
I don't know why that is
-
V_PauAmma_V
Then I'm out of suggestions. I don't have a printer (or CUPS).
-
V_PauAmma_V
But maybe someone who does will see this and answer.
-
RhodiumToad
sfox: are you using CUPS?
-
RhodiumToad
(generally, if you have /usr/local/bin/{lp,lpr,lpq} then those are for CUPS, while /usr/bin/{lp,lpr,lpq} are for the BSD lpd
-
rwp
RhodiumToad, That's a good point. Because I am sad that installing any of a few dozen things wants to install cups. I would prefer they did not.
-
RhodiumToad
most apps that want to be able to print from within the app will use CUPS to do it, so they'll pull in at least cups-libs
-
rwp
I did a test "pkg remove cups" and there are 45 packages installed which declare they depend upon cups. Sigh.
-
RhodiumToad
anything with gtk2/gtk3 will want cups by default
-
rwp
Gratuitous comment on lp versus lpr from the scrollback: As I remember things, lpr has traditionally been the BSD print system and lp has traditionally been the System V print system.
-
RhodiumToad
correct, but there's a /usr/bin/lp provided as a frontend to /usr/bin/lpr
-
rwp
Right. Things today are that both systems provide compatibility with the other.