-
v01d
hi everyone !
-
voidengineer
could someone help me understand why when I try to pkg install certain things it tries to uninstall all of my hyprland pkgs?
-
Macer
hm
-
Macer
now you have me curious if mine will pull the same thing
-
Macer
let's see :)
-
voidengineer
today I tried to install vlc and libreoffice and it tried this
-
Macer
pkg: sqlite error while executing grmbl in file update.c:154: NOT NULL constraint failed: packages.path
-
Macer
oh... well.. how about that
-
cyric
vlc and/or its dependencies conflicts with hyprland and/or its dependencies, should be "simple" as that
-
voidengineer
well last time i was able to resolve this by specifying those hyprland pkgs in pkg install ...
-
voidengineer
and it didn't try to remove them
-
AmyMalik
i've had chains of pkg uninstalls from installing e.g. php packages
-
voidengineer
maybe it's the hyprland-qutils
-
Macer
oh. i guess it's only quarterly
-
Macer
so changing to latest you don't see it
-
voidengineer
yeah i changed to the latest
-
Macer
there's a bit of irony to that :)
-
voidengineer
yeah i had issues yesterday with kitty
-
Macer
well.. i mean.. i'm just saying that the quartly repo is kind of designated as the stable repo.. but then again that applies more to packages than pkg itself
-
voidengineer
yeah i don't know what the qualifications are for "stable"
-
voidengineer
quarterly seems just arbitrary tbh
-
Macer
not really. it seems like a standard practice to have a 'tested and true' repo
-
ivy
quarterly is just a snapshot of latest at a particular time, then it only receives security fixes and notable bug fixes
-
voidengineer
that's what i mean. it doesn't imply stability by being a time cutoff
-
Macer
i guess that would depend on how quickly pkgs are pushed to latest
-
Macer
and bugs are found
-
ivy
no, it's more stable because it doesn't receive any major updates, so things are less likely to break than in latest
-
ivy
that doesn't necessarily mean nothing breaks though
-
voidengineer
it should be entirely possible to have a local AI box manage all these builds and testings and designate things stable based on outcomes of the patching and testing
-
voidengineer
as long as it's not gemini it should work i mean
-
voidengineer
lol
-
voidengineer
ok, i solved my pkg conflict the same way as before. i'm not sure why pkg thinks i don't want these pkgs.
-
voidengineer
i've been away from ricing computers for so long that i forgot how useful tmux is when you're doing this sort of stuff
-
wavefunction
I live in tmux these days. Saves me a lot of hassle bouncing between computers and shelling everywhere
-
voidengineer
works well when you have an old tiny screen thinkpad too
-
o0x1eef
pkg-lock(8) might help too: pkg lock is used to lock packages against reinstallation, modification or deletion.
-
voidengineer
oh ok, thank you
-
o0x1eef
I have used it in the past to prevent upgrades of weechat that I compiled from ports with custom options
-
voidengineer
i'm not sure if the trouble of learning hyprland is worth it
-
voidengineer
my memory just isn't what it used to be. I think i've googled how to open a terminal like 3 times now ffs
-
v01d
intalled qubes os yesterday on a lenova desktop box
-
voidengineer
i need to bring in all my old shell and vim config files. i still haven't gotten to that. i just reinstalled freebsd after having gone nearly a decade of not using it.
-
voidengineer
qubes is wonderful. i had that on an old ibm rack computer a long time ago.
-
v01d
its my first time
-
voidengineer
proxmox though...
-
voidengineer
if you have the cores and memory it just makes all kinds of sense
-
v01d
I have to go trought documentation which is very well made
-
v01d
anyway just sharing
-
voidengineer
that always helps
-
v01d
so i have freebsd on my laptop and qubes on my desktop to play with
-
kevans
ivy: posted a patch to 292232; I will test it ~tomorrow, probably, unless you have time before that
-
ivy
kevans: thanks, i'll see if i can test it later
-
kevans
*nod* sounds good
-
kevans
probably needs more to makek the failure mode better than 'nothing happens', but i'll take the 'make it functional for now'
-
ivy
as long as you can install the system and boot it that is enough for now :-) i'm still not sure if we want to add kernel= to loader.conf in bsdinstall
-
kevans
well, i don't know if i had commented anything contradictory on this, but in tonight's opinion we should if it's not 'kernel'
-
kevans
there are very good reasons to turn off kernels_autodetect, it'd be better for loader.conf to be at least somewhat functional without it
-
ivy
i don't think anyone was really opposed to it, it's just a bit of a departure from how we used to do things, but it's probably unavoidable especially if we want to start shipping multiple kernels on the media (debug/nodebug)
-
kevans
once upon a time i might've argued that it wasn't necessary because kernels_autodetect is supposed to do the right thing
-
Chip1972
trying to run linux-sublime-text, but getting error "Unable to load libcurl.so"
-
Chip1972
How to fix?
-
beastie
Chip1972: you need to instal that library (for linux, not for freebsd) in /compat/linux/lib (or similar directory)
-
ivy
kevans: tested the patch, all working
-
Chip1972
beastie: how to instal that library?
-
beastie
hmmm.... don't know.... i'm not expert on linux distribution that comes with freebsd.
-
ivy
a lot of common linux libraries are provided as ports, i don't know if curl is one of them
-
beastie
try to search a package named linux-curl or simiar.
-
ivy
if "linux-sublime-text" is a port, it should probably already depend on that though, so that would be a bug
-
beastie
there are two such packages: linux-c7-curl (centos) and linux-rl-curl (rocky linux)
-
beastie
ivy: you are right, but the package owner should make the package to request the dependency, that simply doesn't happen automatically.
-
beastie
Chip1972: for the next time, i've just done pkg search 'linux.*curl' and got both packages
-
Chip1972
I found, and they already installed
-
beastie
probably you need to do an ldconfig (the linux one) to rebuild the shared libraries database. Try to find if the library is actually in some place under /compat/linux
-
dgriffi
yay! pkg mess is fixed.
-
Chip1972
found libcurl.so.4
-
beastie
where was it found?
-
beastie
probably you need to run the linux ldconfig tool to add that directory in the scan. Probably it's not finding it because it doesn't find the library in the database.
-
Chip1972
found libcurl.so.4 in /lib and /lib64
-
beastie
IMHO linux and freebsd have different versions of ldconfig, to build the libraries database, as the freebsd requires the directories to search for libraries in the command line, while linux follows a different approach (there's a configuration file that states which directories to search) you should search for a ld.so.conf or ld-so.conf file in the linux
-
beastie
i don't actually know if that's included in the freebsd start-up (probably the package installs in /usr/local/etc/rc.d/something)
-
Chip1972
I just following the tutorial from freebsd site
-
beastie
my /compat/linux/etc/ld.so.conf just has an include of ld.so.conf.d/* but that directory is empty.
-
Chip1972
O will try run Alpine in chroot
-
beastie
Chip1972: I'm telling you this because linux is linux and this feature, despite being very similar, is not exactly equal. I started using freebsd some ten years ago, but I started using linux in 1994, so i know better how this happens on linux.
-
beastie
that will not help.
-
Chip1972
I dont know what is ldconfig
-
beastie
running chroot will not make ld-so.so (or whatever the name is) to find and load libcurl.so
-
beastie
ldconfig is the tool that builds the database of shared objects installed in the system to be able to find quickly a shared library.
-
beastie
but man ldconfig will explain that better than me.
-
beastie
the system libraries are not searched by a PATH like strategy, but are indexed (due to the number of installed libraries and the repetitive of the process) in a file that needs to be built at startup.
-
Chip1972
well... I works with electronics, studied physics, and now studing biochemistry...
-
Chip1972
computer is a tool who demands too much effort to do things properly
-
kerneldove_
since zfs arc will kinda expand to use whatever free mem there is, then shrink as other things actually need it, how do you guys find out the actual free mem of a system? free meaning that which can be freed up and made available to things that need it
-
kerneldove_
the mem line of top has a "inact" field, how would i get that from the command line?
-
Chip1972
beastie: how to run ldconfig on /compat/linux?
-
ivy
kerneldove_: vm.stats.vm.v_inactive_count, it's in units of pages so multiply by page size (4KB on most systems)
-
kerneldove_
is there a sysctl to get the page size so i can make it dynamic in my code?
-
kerneldove_
ah yea
-
kerneldove_
vm.stats.vm.v_page_size, nice!
-
kerneldove_
tyvm!
-
kerneldove_
ivy am i right in that inactive mem is basically free in that other things can use it without causing the system to crash or swap or other progs to terminate from OOM?
-
kerneldove_
ah yes that's right, confirmed by allan jude himself
unix.stackexchange.com/a/137254
-
dgriffi
Have any of you used OPNsense on 15?
-
kerneldove_
where does systat -ifstat get its "load average" figure from?
-
rwp
kerneldove_, sysctl vm.loadavg
-
kerneldove_
why is that displayed in the output for network stuff? (-ifstat) isn't vm for mem?
-
rwp
kerneldove_, The answer to that is in the man page for it. "The upper window depicts the current system load average. The information displayed in the lower window may vary, depending on user commands."
-
kerneldove_
ahh ty! so system load average refers to the vm load average. for some reason i always though system load referred to cpu usage but it's actually vm subsystem
-
kerneldove_
so it seems my server is fine until it hits about 29 load average, then it starts dropping network throughput pretty substantially
-
kerneldove_
is that normal?
-
ivy
load average is the number of processes currently running + the number of processes waiting to run
-
beastie
load average is a quasi moving window average (to 1m, 5m and 15m) of the number of processes in the R state (this is, ready to run) in the system.
-
beastie
what do you mean by 'vm' ???
-
kerneldove_
well if load avg isn't specific to vm, why is it under the vm mib in sysctl?
-
kerneldove_
vm means virtual memory no?
-
beastie
it's not system load, the system load depends on many factors, in this case is the number of total threads in state ready to get the cpu.... if you have three cores, and you get a load average of 7 you can infer that the number of threads ready to run per core is about two
-
beastie
vm meaning virtual memory means nothing to load average.
-
ivy
beastie: i think kerneldove_ is asking why the sysctl mib is vm.loadavg when it's not really clearly part of the VM subsystem
-
kerneldove_
yep
-
beastie
a process needs only one page of code segment, one of stack and one of data segment to be able to run in a virtual paged memory system.
-
rwp
It's probably just a historical artifact. It needed to go somewhere and really could go anywhere.
-
beastie
probably it's not part of the virtual memory space... not.
-
ivy
kerneldove_: fwiw, i think the answer is that vm is broadly "the part of the kernel that deals with processes", so a lot of stuff gets lumped there
-
kerneldove_
you talk in riddles beastie, it's really not useful fwiw
-
kerneldove_
huh weird, ty ivy and rwp
-
beastie
loadaverage is a term coined from the program uptime (which should neither do the load average calculation)
-
beastie
kerneldove_: I don't understand what you mean with riddles, let me translate to my language.
-
beastie
no, I try to be precise in my answers. I've mathematical background, sorry if it disturbs you.
-
beastie
i try to help, not to annoy.
-
kerneldove_
'lol'
-
kerneldove_
is 16G a good swap size for a server?
-
kerneldove_
i try to keep swap unused but i think it's good to have for safety?
-
rwp
kerneldove_, The amount of swap needed depends upon what you are doing. What's your server serving? Probably it does not need that much. But with disk sizes in the multiple terabytes using 15 gig of it for swap is not otherwise noticed so okay.
-
kerneldove_
tons of web serving basically
-
kerneldove_
ya like i said i try to balance workloads so swap is never even used
-
ivy
you need enough swap to store a kernel crash dump, which depends on how much memory your kernel typically uses, but a couple of GB is usually fine
-
rwp
For that then you probably don't /need/ 16GB but it won't hurt anything.
-
kerneldove_
128gb physical ram
-
rwp
Sounds good. Go with it. It's fine.
-
kerneldove_
why do i need to store a kernel crash dump?
-
rwp
If and only if you run into kernel crash problems then the kernel crash dump can be used to debug it. If you have never had a kernel crash and don't expect to in the future then this is just an unused but available feature.
-
kerneldove_
i notice default debian installs only have 1gb of swap and those are used as servers all the time
-
kerneldove_
and also debian is way more eager to swap than freebsd is
-
rwp
It is good to have at least a little swap. It allows the kernel to free up memory that is never going to be used again and use that memory for other things. Memory is valuable. But then you have 128G of it so...
-
SponiX
with Linux you can set "swapiness" and it makes it more or less prone to swap things
-
SponiX
Know I'm going to get judged for saying this. But, I do some swap on my systems to keep them running if they run out of regular ram instead of just crashing
-
SponiX
And both of my systems have 128G also
-
kerneldove_
how much swap you set?
-
rwp
Also don't confuse having swapped out some pages that are never used with swap thrashing due to not having enough memory to support the resident set size of a process. Two different cases.
-
SponiX
kerneldove_: I have 24GB of swap on this machine, and likely similar on the other -- It is literally what Alma Linux just did for me when I told it "automatic partitioning" lol
-
kerneldove_
wow
-
kerneldove_
how much of that do you see used at most?
-
SponiX
-
kerneldove_
what's your load avg?
-
SponiX
Depends if my FreeBSD vms are being used to build things :)
-
SponiX
I have most of my cores, and half of my ram dedicated to them
-
kerneldove_
nice
-
kerneldove_
bet you're glad you got 128gb before ram prices went up 5x lol
-
SponiX
I've ran without swap before too. But that was on my machine that had 256G in it :P
-
rwp
A friend posted this image recently and I think it is worthy to share. 128 cores all busy doing builds.
htop.dev/images/1
-
rwp
28.png
-
rwp
-
kerneldove_
ya i have some systems with no swap too
-
kerneldove_
wow
-
kerneldove_
90 load avg damn
-
SponiX
kerneldove_: What are your system specs, and what do you normally use it for?
-
kerneldove_
mostly ryzen 9 3900x 128gb ram 2tb nvme, servers
-
ivy
kerneldove_: the reason you want to store a kernel crash dump is because a kernel panic can be harder to debug if you don't have the dump
-
SponiX
what do you serve up with the "servers" ?
-
kerneldove_
web pages and stuff
-
kerneldove_
ivy ok ty
-
SponiX
What web server(s) do you use?
-
SponiX
I've fallen in love with the simplicity of Caddy
-
kerneldove_
ya i use caddy too
-
kerneldove_
used to use nginx
-
kerneldove_
i guess i'll use 16gb swap for the new server configs and just start scaling down workload if i detect 25% of it or more is used
-
SponiX
Yeah, I did nginx prior also. But with Caddy I do a couple static web pages, and a files listing to load my User Manuals -- and as a reverse proxy for Plex, Jellyfin, and a pastebin
-
kerneldove_
i liked how it auto set up lets encrypt, but i really hate caddy's logging config
-
SponiX
for what little I do, Caddy does it all easier than anything else
-
LapsangS
pkg repos were broken for several hours but is now working again
-
kerneldove_
bad
-
kerneldove_
i just set up a few new freebsd servers at a hosting company. i set them all up the same exact way with scripted bsdinstall. i can now ssh into the 3 servers from my freebsd computer, but when i try to ssh in from my debian computer i can only connect to 2 of the 3
-
kerneldove_
the 1 i can't connect to says connection refused. i tried disabling pf on the server but error was the same connection refused
-
kerneldove_
any clues?
-
kerneldove_
first time i've run into this kinda problem
-
kerneldove_
ok nvm heh
-
vkarlsen
Do tell, what caused that to happen?
-
BarnabasDK
kerneldove_: try to ssh to one of the servers that accepts and then jumphost to the one that refuses connection. /var/log/auth.log will probably give you an explanation
-
kerneldove_
i put the wrong fucking ip in /etc/hosts heh. somehow i put a 6 for a 9. some kinda vertical dyslexia?
-
zip
wait, I think we _can_ boot off a temporary root fs. Huh
-
zip
in other news despite labelling the pi as "stop playing with this" I have nevertheless loaded uboot.bin onto it using rpiboot, then ymodem'd loader.efi over the serial port and got _that_ running
-
zip
so now I have a raspberry pi booted that far without an SD card in it
-
zip
I think a bigger uboot build would allow me to yeet the efi loader over the USB connection at far greater speeds
-
hodapp
somehow I never learned of rpiboot so far...
-
zip
pretty neat, actually. It's quite handy for tinkering with bootup stuff without constantly pulling the SD card
-
zip
now the real question is how to get some kinda image into memory that u-boot can read, such that it can be tickled into booting freebsd entirely into an md
-
zip
that'd be pretty cool
-
hodapp
sometimes I forget you can do uboot on a Pi at all...
-
hodapp
of course uboot does 1,372 things I don't know about. I played around with it on a RISC-V board where you could build first-stage bootloader from uboot, and that was at the level even of things like DRAM training, which handed off to OpenSBI, which then handed off back to another uboot stage
-
skered
A freshly built go binary that's semi-min in design file(1) output is "for FreeBSD 12.3" is this FreeBSD's way of saying this should run on 12.3+?
-
skered
I see other that are 14.3 (the host) but are linked to a bit more (vs the above).
-
skered
Is that go that making it backwards compatible or is that a FreeBSD thing? Looking at all other bin/sbins it seems everything is for 14.3
-
vkarlsen
I looked at two go binaries here, and one says 12.3 while the other says 15.0
-
vkarlsen
The first one I built from ports, the other I built with poudriere
-
zi
if file(1) says 12.3, it should run on both; however, you may need the compat12x-xxx package
-
skered
I can say for mine it's not needed.
-
skered
Best I can tell the ELF header desctipion is populated with 123000?
-
skered
That at least answers why file says that
-
lockna
Hello! Has anyone managed to configure the aerc email client to be used in combination with protonmail? (Using hydroxide as protonmail replacement, since the official one isn't suppported on FreeBSD yet/hasn't a port yet)
-
o0x1eef
lockna I use it with thunderbird
-
o0x1eef
And hydroxide is probably better than the bloat that is the official client, anyway
-
spmzt
looks like certificate of events.eurobsdcon.org is expired.
-
wavefunction
Running the pkgbasify.lua script now <fingers-crossed>
-
wavefunction
aaand it worked.
-
lts
I hope you updated to 15.0 before running it
-
wavefunction
lts: Yep, running 15 for a while now
-
mzar
wavefunction: how long does it take ?
-
wavefunction
mzar: About 15 mins with all the installs,
-
wavefunction
Err, 10 mins *
-
mzar
thanks
-
wavefunction
I have a relatively nice fiber internet connection tho.
-
wavefunction
Downloaded something like ~313 packages
-
beastie
has anybody compiled ungoogled-chromium locally?
-
checkpoint
very nice little tutorial on how to create a minimal bootable FreeBSD:
youtube.com/watch?v=Uc8Z-XX1TS4
-
kerneldove_
can you increase the performance of a freebsd server much by customizing the kernel and compiling on the hardware it'll run on? or is it negligible?
-
rtprio
performance? not really. maybe free up a small amount of memory
-
rtprio
my custom kernel was i want to say half the size compared to the .. 28MB generic kernel
-
checkpoint
kerneldove_: you can increase performance significantly by adjusting some sysctl variables, I tink it's covered in Handbook Chapter 12:
freebsdhandbook.com/config
-
zip
ooooh, neat video! I had no idea it could get _that_ minimal
-
zip
having discovered today that we do have hte benefit of something like an init ramdisk I do want to give that a go at some point – perhaps building a system that's juuuuust enough for logging in and loading a decryption key for zfs or geli, perhaps