-
darwin
we have two Lenovo X1 Yoga ThinkPad 20s (FR,UB). The FR used to mount windows (hate it but need some software occasionally) in FreeBSD fine, but lately is having trouble loading fusefs... wondering if I need it in loader.conf or only rc.conf and which is the correct way? I read a post about it but seems they maybe got the instructions switched around?
-
darwin
works fine manually, just wondering how to automate (so it doesn't start asking for input and without network)
-
nimaje
if you can do stuff via rc.conf and loader.conf, then prefer rc.conf and only use loader.conf if you really need it to boot the machine
-
darwin
maybe names of some things to load have changed? If I've used *BSD since 1997 and on these laptops since maybe FreeBSD 11, and upgraded, how can I check everything in these two .confs is up-to-date or needs changing?
-
darwin
i read fuse was renamed to fusefs
-
V_PauAmma_V
On those occasions I needed fusefs, I loaded it from a shell as root, so rc.conf should be fine.
-
darwin
is it fuse_enable="YES" or fusefs_enable="YES" in rc.conf? Neither worked for me, though it works manually...
-
darwin
or maybe that's the format for loader.conf? I don't want it in there rather than rc.conf because this isn't essential and should boot even if fails
-
V_PauAmma_V
See "kld_list" in the rc.conf manual page.
-
_xor
Minor heads up, but the links that contain underscores on this (and I assume others?) page are broken...
-
_xor
-
VimDiesel
Title: mac(4)
-
darwin
okay, that worked, but what about checking the rest of my loader.conf & rc.conf for changed syntax?
-
V_PauAmma_V
*_enable goes in rc.conf for activating services started by rc(8). *_load="YES" goes in loader.conf to load modules vert early.
-
V_PauAmma_V
s/vert/very/
-
V_PauAmma_V
Changed syntax between...?
-
_xor
I have a script snippet that I saved which lists which ones belong where.
-
_xor
comm -23 <(sysctl -T -a -N | sort) <(sysctl -W -a -N | sort)
-
_xor
Oh wait, those are for tunables, not modules.
-
darwin
already stated--old versions--like fuse was renamed fusefs... I want to check every line to see what else might've changed
-
darwin
i think i have some mistakes in those
-
V_PauAmma_V
Ah, no idea then.
-
_xor
I don't know of any facility that will inspect loader.conf and dump that info. I learned the hard way that's one reason release notes should be read between updates. I just backed up my existing loader.conf + rc.conf, moved basically everything into rc.conf, and then rebooted to see what loaded and what didn't. Whatever didn't load, I checked the
-
_xor
man pages to make sure it's still called that and then moved it into loader.conf. Reboot, rinse, repeat.
-
darwin
alright
-
darwin
instead of altering /etc/profile is it best to add in /etc/profile.d stuff like aliases.sh, environment.sh, functions.sh ?
-
darwin
if you want them system-wide (like for personal desktop not server)?
-
rwp
darwin, It's strange to put personal configuration into /etc anywhere, that would go into $HOME. But it is typical for universities with campus workstations to put global configuration there.
-
darwin
i'm just a person, not at a university--I said personal desktop!
-
rwp
And it would be quite unusual to be storing personal settings in /etc. However if it is your machine then it is your machine and you can do anything you wish.
-
rwp
But you were asking an "is it best" question. I respond with a no, it is not best to put personal configuration in /etc. Best to keep that in $HOME.
-
parv
"Fun" would be when system-wide directories get new files to be in conflict with personal files
-
darwin
so what's the answer?
-
darwin
i was talking about /etc--which I already use for this--the whole time... thought that was clear. With UNIX/*BSD people are always assuming it's a server or public workstation but most people I know use it for their personal PC
-
rwp
I tried to say things very clearly. Sorry if I failed at that task. When you talk about /etc we are going to think it is about global configuration. Keep personal configuration in $HOME. But it is your machine and you are allowed to break the rules if you want. But then if you break it you are the one to debug it.
-
darwin
okay, what's /etc/profile.d for?
-
rwp
The /etc/profile.d/* is a place that global configuration files may be placed whole without needing to edit the /etc/profile file.
-
rwp
Installing a file and removing a file is easy to automate with a script. Editing a file is less easy and more troublesome.
-
rwp
I don't have any global configuration on my desktop and my /etc/profile.d directory is empty.
-
darwin
i don't think editing is hard; I've been doing that since 1993
-
rwp
Have you ever seen people write a script where they ,,sed -i '' s/abc/xyz/g somefile'' and then they realize they didn't want to replace all of abcdef but only abc and screw things up? It happens.
-
rwp
Sometimes people will install things like bash_completion globally in a /etc/profile.d/bash_completion file. That's not totally uncommon.
-
rwp
But generally if it is your personal configuration like an alias for some command, or setting email address, or setting less options, then those would go into $HOME in your .profile and/or .bashrc and/or your $ENV file, and/or your .cshrc, all depending upon your shell.
-
rwp
That's also a good thing because then it is easier to transfer yourself over to another system. Just copy $HOME over and then you are set and customized on the other system.
-
rwp
Editing files in $HOME is also something you can do as yourself and no need to su or sudo to root is needed.
-
darwin
i've edited /etc/profile since around 1997 or soon after and for my PC (no one else uses) am only asking if it's better to leave that unaltered from default and move my changes to /etc/profile.d or somewhere else global like if there's a /usr/local/etc
-
darwin
i keep files I copy to servers separately
-
darwin
because I don't use all the same aliases, environment, functions on those
-
kenrap
I've been adding my global env vars to /etc/login.conf as a shell agnostic approach but maybe I'm weird. Although that doesn't apply to aliases and other things.
-
voy4g3r2
anyone have experience with zfs-periodic? i installed the package pkg install zfs-periodic and when i try to find the location through which zfs-periodic or with find / -name "zfs-peri*" -type f it returns NO results
-
stl
voy4g3r2: pkg query '%Fp' zfs-periodic
-
voy4g3r2
uhh duh i was expectiung zfs-periodic and not zfs-snapshot
-
voy4g3r2
thank you stl
-
voy4g3r2
now we wait to see what snapshots it makes to then figure out how to use zfs-zend and zfs-recv to move off machine :)
-
Remilia
stl: `pkg info` has -l or --list-files btw
-
stl
Remilia: thanks. old habit
-
nimaje
well, the periodic part in the name is about the periodic system, as the message on install tells you too, that executable seems more like an implementation detail
-
voy4g3r2
it also explains why man zfs-periodic does not work but man zfs-snapshot does
-
voy4g3r2
nimaje: makes sense to me, just habit.. in my limited experience, doing pkg install <whatever package> usually results in a file in bin dirs fo <whatever package>
-
voy4g3r2
hrm.. can someone help me understand what a root zfs is? is that root in filesystem or root of the whole zpool? i ask as i am trying to snapshot storage, which has multiple datasets underneath it.. i take it best practice is to explicitly name EACH and EVER dataset under the "root" /storage such as /storage/music /storage/movies /storage/timemachine /storage/fda_aers
-
voy4g3r2
when i try to run zfs-snapshot, each hour it is NOT doing it and i think this is the reason but not sure what i am missing.. figured, as long as not mounted as / that is fine.. but clearly not
-
nimaje
does periodic run hourly, as the install message indicates? periodic is run via cron and then checks what it should run, if I understand the install message correct, hourly runs aren't in the default crontab
-
voy4g3r2
nimaje: yeah i have a cron job added, as per the instructions
-
voy4g3r2
for 2 past the hour
-
voy4g3r2
i see that the cronjobs are running but defaults to no output, that i can find
-
Remilia
voy4g3r2: snapshots are not recursive by default
-
Remilia
you *can* take recursive snapshots using the -r flag
-
Remilia
the script does not use -r
-
voy4g3r2
okay, may have to make this a little more robust as i do not even see an /etc/periodic/hourly folder
-
Remilia
so you need to explicitly list every dataset you want snapshots of
-
Remilia
voy4g3r2: ports install to /usr/local/etc
-
Remilia
are you sure you are looking in the right location?
-
voy4g3r2
well now i am, thank you
-
tmp_
The zfs-periodic hourlies call for adding to /etc/periodic.conf or one of the add-ons to that.
-
tmp_
If you change hourly_show_success to YES you'll get reports of success logged or emailed.
-
Remilia
(it force-replaces paths in the Makefile: post-patch: \ .for _file in ${PERIODIC_FILES} \ @${REINPLACE_CMD} -e "s|/etc/periodic/zfs-snapshot|${PREFIX}/bin/zfs-snapshot|" \ \ ${WRKSRC}/${_file} .endfor)
-
morena
I think I found gnome solution for servers, more heavy but still
-
Remilia
personally I think hourly emails are a bit much
-
voy4g3r2
yeah but it is a good idea for at least testing.. to make sure it is operational.. i will have to go logs and i do not have mail services setup on this beaste
-
morena
weechat-4.1.2 - Lightweight and user friendly ncurses based IRC client !LIGHTWEIGHT!
-
morena
"The process will require 117 MiB more space."
-
tmp_
They probably are! But if you're just checking for success a few times, it doesn't need to be permanent.
-
Remilia
morena: I tried weechat and went back to irssi ha ha
-
morena
Remilia ye I use it too, wanted just tried it again after years
-
morena
but that piece require to install ruby, perl , python, lua and probably every programming language it found on the internet
-
Remilia
(but I stopped using irssi years ago after setting up znc)
-
morena
excellent packaging ;/
-
Remilia
you could build your own without
-
morena
Remilia znc with?
-
Remilia
with something you would not use
-
morena
ye, not yet familiar much with it, as it tried to build all these dependencies anyway
-
Remilia
my desktop PC runs Windows because I have to do work
-
morena
oh that's sad story
-
morena
I should probably first install all tools needed for buiilding, then build it without these option
-
Remilia
also I do not have anything against Windows :D
-
morena
otherwise it will build all cmake and other tools
-
morena
nobody has ;/
-
Remilia
-
Remilia
aren't you happy JS and PHP are off
-
morena
ye, but even when unchecking it has many build dependencies, so it will start to building everything
-
Remilia
not a problem for me, cmake etc. are required by a ton of other stuff so my poudriere builds those
-
morena
I canceled it when it started to build cmake or similar packages
-
morena
I assume I can first regulary install it with pkg so it will not be builded?
-
morena
and then deleted?
-
Remilia
as long as the port does not require a newer version
-
morena
will try to install all 'requires' in desc
-
Remilia
morena: there is a better way
-
morena
bc. building whole day some nonsense to just build other thing ...
-
morena
ye?
-
Remilia
make build-depends-list
-
morena
it will show everything needed, so I can install it?
-
Remilia
yes
-
morena
very good dear Remilia
-
Remilia
everything needed for your current configuration
-
morena
to be honest I was still positively surprised about that building thing
-
Remilia
check ports(7) for more
-
morena
with that pop up dialog option
-
Remilia
you mean the config target?
-
morena
ye that make config
-
morena
so I did not need to play with makefile
-
morena
and do typos, mistakes and ques
-
Remilia
you are not expected to modify anything inside the ports tree
-
morena
good
-
morena
ye I am getting it
-
Remilia
unless you are updating/patching a port, but for that you really would prefer something like poudriere
-
Remilia
for convenience
-
Remilia
poudriere testport is super nice
-
morena
-still need some more time to get more familiar with freebsd tools and way
-
morena
I was using OpenBSD for like a decade but was never able to build anything it never works for me, here it was pretty easy to follow doc
-
morena
as often it's like just turn on/off some options
-
Remilia
doesn't openbsd also have ports
-
morena
ye
-
morena
but if I wanted to change something it was pain and never worked for me somehow
-
morena
always throwed errors and whatanot
-
morena
usually it started with some permission and so ;/
-
morena
so I ditched it very early
-
morena
that's why I was positively surprised how similar steps worked well here
-
morena
at first try
-
morena
and if I don't want to download and install half of the internet in freebsd, building will be necessary
-
morena
as everything install everything it can ;/
-
Remilia
dunno I have been using ports since probably 2000 or something
-
Remilia
never really had issues
-
Remilia
(on freebsd)
-
morena
even a bit of confused with , porstnap, git, poudiere
-
morena
one have no idea what is 'the way'
-
Remilia
<morena> as everything install everything it can ;/ <- the repositories use defaults that are suitable for most users
-
morena
117 MB terminal irc client is suitable for most users?
-
Remilia
I do not think 117 MB is weechat alone
-
morena
no it's not
-
morena
but all these languages and nonsense it install
-
Remilia
most users will have Python and Perl
-
Remilia
most GUI users will have Tcl and often Lua
-
morena
for reason, one may need some pointless script or so
-
morena
and weechat users also ruby ;/
-
Remilia
portsnap is used to update the ports tree via snapshot servers
-
Remilia
git is git
-
Remilia
poudriere is unrelated to these
-
Remilia
poudriere is a package build system that allows you to build your own repository for pkg
-
morena
now what I did that I locked builded/customized packag
-
morena
I assume it is the way if port is mixed with regular packages
-
morena
so it does not get overwritten
-
morena
with upgrade and different option
-
unixwitch
morena: portsnap is obsolete, so you can forget about that. (the recommended way to fetch ports is via git now.)
-
morena
ye, I hate git
-
morena
no idea why everyone encourage to use it
-
morena
but understand that on other hand
-
morena
ye, just read that it is obsolete, did not get it at first try
-
Remilia
also you know you can use portmaster?
-
morena
no
-
Remilia
it has flags like --packages-build
-
morena
that's also other tool?
-
morena
obsolete or not yet?
-
Remilia
'use packages for all build dependencies'
-
morena
oh
-
Remilia
I don't know?
-
morena
that sounds like solution for me
-
Remilia
-
VimDiesel
Title: FreshPorts -- ports-mgmt/portmaster: Manage your ports without external databases or languages
-
Remilia
Last Update: 2023-11-30 10:16:07
-
unixwitch
there's also synth, which is like poudriere but it can automatically use packages instead of building them where possible
-
unixwitch
unlike poudriere which wants to build everything itself
-
Remilia
unixwitch: you can tell poudriere to use packages for certain ports
-
unixwitch
synth is more designed for desktop users, poudriere is (at least originally) for running bulk builds and tests, although it works for desktop too
-
unixwitch
oh interesting
-
Remilia
but it will forgo that if there is a new version not in repositories
-
Remilia
so it is somewhat useless for llvm/gcc/etc.
-
morena
what I also found hard
-
morena
to get info about non installed package
-
morena
like no simple command for that?
-
unixwitch
Remilia: perhaps more useful for quarterly where those don't get updated often?
-
Remilia
what kind of 'info'
-
Remilia
you cannot really get information about a package outside its description without fetching the file
-
morena
at least description
-
Remilia
try `pkg search weechat`
-
morena
ye, but does not give info
-
morena
just short line
-
Remilia
weechat-4.1.2 Lightweight and user friendly ncurses based IRC client
-
Remilia
that's a description
-
Remilia
anything detailed requires the package file itself
-
morena
no
-
morena
oh okay
-
morena
I found some way to get something with weird pkg query and some shenaninagns
-
Remilia
if you want details just go to freshports
-
morena
but
-
morena
that website is unreadable
-
Remilia
sure
-
unixwitch
morena: pkg rquery '%e' weechat may be what you want?
-
morena
ye something like that
-
morena
can I get even more info?
-
morena
or that is max
-
unixwitch
like what specifically?
-
Remilia
morena: have you tried `pkg search -f weechat` btw
-
Remilia
like, it is straight in the man page for pkg-search
-
morena
Remilia I think yes, but the issue is, that for example I want to info about one package
-
Remilia
and?
-
morena
but that will shows info for many wich include search term inside
-
Remilia
use the full package name
-
morena
again in almost unreadable format
-
Remilia
I guess you should switch to Windows :\
-
morena
ye but it will shows like py-name whatever-name and similar
-
morena
11? ;/
-
morena
I used it for a month
-
unixwitch
are you using the right command? this seems readable to me:
bsd.to/pmBs - it's basically the same as tools on other operating systems like 'apt-cache search'
-
VimDiesel
Title: dpaste/pmBs (Plain Code)
-
morena
had in one computer, wanted to sell it, to kept win 11 there, then kept the machine, so used it for a month
-
morena
it was fun I wouls day
-
Remilia
unixwitch: I think they want pretty tables with mouse navigation
-
Remilia
and pictures
-
Remilia
terminal text is boring
-
morena
unixwitch yes, with 'unreadable' I mean, soem space, empty line or so that would make it easer to at least get the name of the package or so
-
morena
not just bunch of text
-
morena
Remilia no that I don't want, never wanted
-
morena
you window user! don't expect the rest of the world is also like you ;/
-
morena
terminal plain text is the best
-
Remilia
but I am perfectly fine with pkg output
-
meena
We got someone working on pkg integration into gui:
github.com/freebsd/pkg/pulls?q=author%3Aarrowd
-
VimDiesel
Title: Pull requests · freebsd/pkg · GitHub
-
Remilia
though I get the recent fixation on uhhh
-
Remilia
huge spacing between UI elements
-
morena
maye one issue is also, that if it shows more packages with all options, it will not even give a space between packages
-
morena
I mean empty line
-
Soni
hello
-
Soni
so how do you run ipv4-only apps on an ipv6-only kernel? CLAT in libc?
-
unixwitch
Soni: ipfw supports CLAT, but when i looked at it, it seems to require allocating a /96 to a client which is not how i normally expect clien CLAT to work, so i'm not entire sure what the right way to use it is
-
unixwitch
(ipfw is kernel, not libc)
-
Soni
unixwitch: wouldn't that require a dual-stack kernel?
-
Remilia
definitely
-
morena
oh ye, that is another issue
-
unixwitch
right, if you don't have 'options INET' you can never run IPv4 application
-
morena
ipv6
-
morena
ntpd and ping complains bc. of that
-
Remilia
what does 'ping complains because of ipv6' even mean
-
Remilia
ping is not ipv6-compatible
-
unixwitch
Soni: do you mean you want to remove IPv4 sockets API but still run applications that use IPv4 sockets? ... i don't think libc is right place to support that. you could perhaps write an LD_PRELOAD library to do it
-
morena
I think I fixed ping taht enabled ipv6, then put there option 'prefer ip4 or something like that
-
meena
Remilia: ping6 and ping have been merged into one binary
-
morena
if I disabled some ipv6 thing
-
morena
I think ping tried ipv6 anyway
-
Remilia
meena: oh
-
unixwitch
Remilia: ping does IPv6 now. traceroute still doesn't
-
morena
so failed all the time
-
Soni
unixwitch: where else would you implement it?
-
morena
to get hostname
-
unixwitch
Soni: me personally? nowhere, i'd just enable 'options INET' to get the existing IPv4 sockets API.
-
morena
ip from hostname, dns
-
Remilia
it should not try ipv6 if you did not enable ipv6
-
morena
ye, it should
-
morena
not only it try, it does only that
-
unixwitch
Soni: this seems like a very niche feature, so i don't think the increased size of libc from adding it it would be worth it. but i am not a freebsd developer, so my opinion doesn't really matter, i guess
-
Soni
unixwitch: well it's more that having the ipv4 stack is a potential vulnerability on ipv6-only networks
-
morena
no idea why, if there is ping6
-
morena
but okay that is fixed, now probably have some nonsense in ntpd which try ipv6 on a server
-
Remilia
morena: once again, nothing will try ipv6 resolution first if you do not enable IPv6 on your interfaces
-
unixwitch
morena: someone else had this problem earlier and it turned out to be caused by unusual ipv6-related settings in rc.conf - have you set anything like that? ip6addrctl_policy for example
-
morena
Remilia it does
-
morena
ping
-
morena
unixwitch ye some setting,w hen I disabled one ipv6 related option
-
morena
so not only I have to enable it, but then also add some option to sys I think
-
unixwitch
morena: i would suggest just removing that. if you don't have IPv6 (= no v6 addresses assigned to interfaces) everything will just use v4 by default, including ping
-
morena
ip6addrctl_enable="YES" when I disable, then ping does not work
-
morena
as it fail withi ipv6
-
morena
so when I enabled, I probably had to add also ip6addrctl_policy="ipv4_prefer"
-
Remilia
ip6addrctl_enable="YES" is the default
-
morena
that first option was enabled by default
-
morena
ye
-
morena
so I disabled it, then ping did not work
-
Remilia
ip6addrctl_policy defaults to AUTO which is ipv4_prefer if no v6 interfaces are configured
-
morena
or part of it, to get dns
-
unixwitch
i tested this last time it can up and could not reproduce it, removing routable IPv6 addresses made ping default to IPv4 and it worked fine. could you share the contents of your rc.conf and the output of 'ifconfig -a', as well as the ping command and the error output?
-
morena
unixwitch okay, so should I try again to ip6addrctl_enable="NO" if ping will work?
-
Remilia
you should remove that variable altogether
-
morena
okay
-
unixwitch
morena: remove that option entirely, and ip6addrctl_policy and any other ipv6-related options, then reboot and try again
-
morena
okay
-
morena
may I boot again ;/
-
Remilia
there should be no 'ifconfig_..._ipv6' or 'ifconfig...="inet6 ..."'
-
morena
yes, works now well
-
morena
no idea what I had before
-
morena
probably I just removed service or so and did not reboot or so
-
unixwitch
you're the second person to have this issue and although i think the correct fix is to not set these unnecessary options, i don't actually understand why it breaks things. i might have a poke at that
-
morena
but that ip6addrctl_enable= was enabled I think by default
-
morena
at least I saw it in bsdconfig I played it
-
morena
maybe I just hit that optoin by mistake
-
morena
ye, in bsdconfig it showing it's enabled
-
Remilia
as I said ip6addrctl_enable is enabled by default and policy is set to AUTO
-
Remilia
and it will use v4 only if you do not have ipv6 configured
-
morena
okay
-
unixwitch
oh is this an option in bsdinstall, that explains why people keep setting it.
-
morena
so it is not in rc.conf but it is enabled
-
Remilia
it is in /etc/defaults/rc.conf
-
Remilia
which you should not touch
-
Remilia
/etc/rc.conf overrides defaults
-
unixwitch
-
VimDiesel
Title: src - FreeBSD source tree
-
morena
Remilia thanks dear Remilia ;/
-
morena
that explain it
-
morena
but when disabled, then it can make trouble
-
morena
I assume
-
Remilia
instead of assuming you could take a look at /etc/rc.d/ip6addrctl
-
morena
true
-
morena
but luckily I don't need more to check files
-
morena
I will just come and ask Remilia
-
drobban
Dont remember who the kind soles from yesterday was. But big thanks for the crash course intro to building the kernel. Managed to add support for the serialport device now! So big thanks, this realy helped my OCD =D
-
unixwitch
is 'poudriere ports -u -Bwhatever' supports to work? it seems like it just silently does nothing, i wonder if -B is only for initial checkout
-
unixwitch
s/supports/supposed
-
meena
only initial checkout
-
» unixwitch switches to -m null, seems easier
-
CrtxReavr
Are Intel Atom processors x86-64?
-
unixwitch
CrtxReavr: usually but not always, i think. you can check on ark.intel.com if you know the model number
-
CrtxReavr
Looking at the C3758
-
debdrup
intel hasn't made what they call a Intel 64 processor since.. some time in the early 2010s
-
CrtxReavr
I'm not talking about IA64.
-
debdrup
neither am i
-
debdrup
Intel 64 is the brand name for x86_64
-
debdrup
which was originally called EMT64
-
CrtxReavr
In FreeBSD speak, I'm talking about amd64.
-
unixwitch
CrtxReavr:
ark.intel.com/content/www/us/en/ark…c3758-16m-cache-up-to-2-20-ghz.html says it does 64-bit. (there's another part with the same marketing name that also does 64-bit)
-
VimDiesel
Title: Intel Atom Processor C3758 16M Cache up to 2.20 GHz Product Specifications
-
debdrup
right, anything you're likely to be able to buy will be a 64bit x86 architecture and freebsd amd64 images will work
-
unixwitch
ah, the other part is C3758R
-
CrtxReavr
-
VimDiesel
Title: The Everything Fanless Home Server Firewall Router and NAS Appliance
-
debdrup
peripheral device support might be less stellar
-
unixwitch
at least if the NIC is supported it's probably not going to be a realtek :-)
-
debdrup
for example, what's the Ethernet PHY/MAC
-
debdrup
net/realtek-re-kmod supports everything shipped by Realtek, it's just a question of getting it installed
-
unixwitch
copper ports are Intel i225, SFPs are Intel X553, according to that article
-
debdrup
most people got scared off by the C2000-series developing a fault that caused the CPU to fuse itself
-
debdrup
it was pretty widespread (not sure it was every C2000 ever sold, but a _lot_ of them were faulty)
-
CrtxReavr
Well, I'm sure "Intel" and "Fanless" was a painful engineering challenge to overcome.
-
debdrup
-
CrtxReavr
"ALI Express" does not inpspire confidence.
-
unixwitch
there are reputable sellers on aliexpress, although no idea about that particular one
-
morena
router for the price of desktop ;/
-
CrtxReavr
I'd need something with at last one SPF+ port.
-
CrtxReavr
(To upgrade my Google Fiber to 2 Gbit.)
-
unixwitch
can you use your own SFP with Google Fibre? i wish we could do that, but none of the FTTP providers support that over here, you have to use the copper port on the ONT
-
CrtxReavr
unixwitch, not exactly. . .
-
CrtxReavr
The 1 Gbit service fully supports "BYOR," but the 2 Gbit requires you to use their router. . . *BUT*.
-
CrtxReavr
IT's jsut a custom SFP+, so people have had success pulling the Google SFP from the router, and plugging it into their card.
-
CrtxReavr
Some have even managed to get 2.5 Gbit peformance out of it.
-
CrtxReavr
There's also an ONT upgrade involved with the 2 Gbit, of course.
-
unixwitch
ah that sounds even worse than here, even if we have to use copper it's at least supported to use your own router
-
CrtxReavr
They're even supposed to be offering 20 Gbit here soon, though at $200/mo, I'll prolly not be jumping on that.
-
CrtxReavr
Plus, it's so very rare that my 1 Gbit pipe gets saturated. . . what am I going to saturate a 20 Gbit pipe with?
-
morena
you can offer connection to whole village ;/
-
CrtxReavr
Actually, I could talk to my adjacent neighbors about sharing the 20 Gbit, so long as I control the router and the public v4 IP.
-
unixwitch
20Gbpa and you only get one IP address? that seems stingy
-
CrtxReavr
It's a residential connection.
-
unixwitch
we have a /28 on our residential connection :-d
-
CrtxReavr
Hell, most ISPs are doing the cgNAT bullshit, where you don't even get a public v4 IP.
-
CrtxReavr
unixwitch, is that in the 100.64.0.0/10 range?
-
unixwitch
no, our ISP doesn't use CG-NAT at all
-
unixwitch
(they are more business-oriented, but our service is explicitly sold as 'home' package... it's not uncommon to be able to get at least a /29 from residential ISPs here)
-
CrtxReavr
All I've ever *NEEDED* at home, is one public v4 IP.
-
CrtxReavr
'Course. . . I love me some v6.
-
CrtxReavr
Despite Google's warts, Google Fiber really is a great ISP.
-
CrtxReavr
You get the bandwidth you're promised, it's crazy reliable, they don't block shit.
-
unixwitch
did i see they've stopped deploying it in new locations now? i wondered why that was
-
CrtxReavr
I could run SMTP on 25/tcp if I was inclined.
-
CrtxReavr
unixwitch, they paused new deployments a few years ago, but they've resumed.
-
Remilia
[15:56:46] <morena> router for the price of desktop ;/ <- yes that is pretty cheap for a router
-
CrtxReavr
They had a lessons to learn when they first got started.
-
CrtxReavr
Remilia, well, if it says "Cisco," "Juniper," Et al. on it, then yes, a router for the price of a desktop is quite cheap.
-
Remilia
<CrtxReavr> I could run SMTP on 25/tcp if I was inclined. <- and yet you would be unable to deliver mail to a whole lot of hosts, unless you use smart relay
-
CrtxReavr
Though. .. $400 for a home router is. . . pretty pricy, depending on your needs.
-
morena
oh cgnat nonsense, that's reason I can't host home, sad
-
morena
I had some mikrotik hap ac2, so at least was able to put openwrt there
-
Remilia
does Google Fiber let you set your own PTR / does it delegate v6 reverse?
-
CrtxReavr
Remilia, no but it does assign you a fairly static /56
-
Remilia
means you can only receive over SMTP
-
Remilia
not send
-
CrtxReavr
Remilia, depends, plus. . . I'm not looking to. . . I just know that I can open and receive connections on 25/tcp, which is bloody rare for a residential connection.
-
CrtxReavr
Remilia, though. . . I can (and have) run an HE tunnel on my GF connection, which gives me full DNS delegation.
-
CrtxReavr
The only issue I ever had with an HE tunnel is with Netflix.
-
CrtxReavr
They block HE v6 space, as they consider it a means to bypass country content restrictions.
-
Remilia
it does not really matter because 90% of the email traffic goes through v4
-
Remilia
and most SMTP servers will not receive from a host on an assumed-residential line without a PTR record
-
unixwitch
hmm, deskutils/xdg-desktop-portal seems to be broken, wonder if it's missing a dependency: meson.build:106:17: ERROR: Dependency "gdk-pixbuf-2.0" not found, tried pkgconfig
-
meena
-
VimDiesel
Title: Bug List
-
unixwitch
-
VimDiesel
Title: 276100 – deskutils/xdg-desktop-portal: add required gdkpixbuf2 to USE_GNOME
-
unixwitch
strangely, i'm sure i built this port last week without this patch... perhaps i changed the build options on something else that stopped it from being pulled in properly
-
unixwitch
it does seem to be needed though, /usr/local/libexec/xdg-desktop-portal-validate-icon links to it
-
weust
Anyone know how to set pourdriere to use an n amount of CPU cores? I can set the max amount of jobs, but for ports to use all available cores I want to limit it to n cores.
-
unixwitch
weust: i'm not sure there's a way to do that. you could use -J1 and set ALLOW_MAKE_JOBS=yes (so each package uses all available ports), then set MAKE_JOBS_NUMBER= in make.conf if needed, but some ports are still broken with ALLOW_MAKE_JOBS
-
nimaje
weust: did I understand you right you found some port that doesn't respect MAKE_JOBS_NUMBER and just starts more jobs instead? that sounds like a problem that should get reported
-
weust
unixwitch: Can try that. Thing is, I have set PARALLEL_JOBS=8 (8 core CPU with HT) and I don't mind when (for example) 1 job is running is can take 8 cores. I just want the other cores to be "free" so the system is still responsive
-
weust
nimaje: no, no. not that
-
unixwitch
weust: what you want is for poudriere to know that one porting is using 7 cores, so another should only use 1, or whatever, right?
-
unixwitch
s/one porting/one port
-
unixwitch
(this is the thing that i don't think is possible)
-
unixwitch
i use PARALLEL_JOBS=4 and MAKE_JOBS_NUMBER=4 which seems to be a reasonable compromise on an 8-core desktop, but it does mean the actual number of running processes varies a lot over the build
-
nimaje
but the default for poudriere is to build one port per core and limit that build to one job, so a build shouldn't take mor than one core (?)
-
weust
for example, I have ALLOW_MAKE_JOBS_PACKAGES=electron*. it will use all CPU cores it can that are free. So say it's the only job running, it will use 16 CPU cores.
-
unixwitch
yeah. i think it *should* be possible to have to do something like this by looking at ALLOW_MAKE_JOBS_PACKAGES, but currently i don't think it can do that
-
weust
So even when there are 8 parallel jobs, it still in that case still use 16 cores
-
weust
OK
-
nimaje
set MAKE_JOBS_NUMBER
-
unixwitch
nimaje: the problem is if you do a build with 1 core per package and you're building electron, or firefox, or something, your build ends up taking 10 hours for that one package while everything else finishes in 1 hour
-
weust
exactly
-
unixwitch
so the fix for that is to use ALLOW_MAKE_JOBS_PACKAGES, but poudriere will consider that one 'job' and run it alongisde the other 8 packages, which can result in a *lot* of running cc processes
-
nimaje
but the use case was limiting the jobs of some port in ALLOW_MAKE_JOBS_PACKAGES? MAKE_JOBS_NUMBER should do that
-
scoobybejesus
i'm trying to install immich in a jail. the logger is spitting escape and color codes into the log rending it very difficult to read. is there magically a way to tell the daemon to ignore them? i'm guessing no, but asking in case there's some magic i'm unaware of also, i will be afk so i will read any replies later. many thanks
-
unixwitch
the issue is limiting the concurrency across all running package builds, not inside a single build, which is what MAKE_JOBS_NUMBER does
-
weust
nimaje: no, I have limited the amount of parallel jobs already, to 8.
-
unixwitch
nimaje: for example, say you set ALLOW_MAKE_JOBS_PACKAGES="firefox thunderbird electron* llvm*", and you set MAKE_JOBS_NUMBER=4, then poudriere ends up building those 4 packages at the same time, you now have 4*4 = 16 jobs of concurrent when you only wanted 4-8
-
unixwitch
(assumimg PARALLEL_JOBS=4)
-
weust
yeah, basically I want an option to limit poudriere to use 8 cores. more as a global option.
-
weust
if that makes sense
-
unixwitch
so the fix i can see for that is, if it starts building firefox, it should know that build will use 4 cores, and not schedule any other jobs until it's finished... but i have no idea how hard that would be to implement
-
nimaje
ah, yeah, poudriere can't limit that, that's why I let it build two ports and have MAKE_JOBS_NUMBER=3 which leaves my desktop somewhat useable even if two heavy ports build in parallel
-
weust
Where is MAKE_JOBS_NUMBER= set? I don't see it in my pourdiere.conf. perhaps it's an older version?
-
nimaje
iirc in a -make.conf
-
weust
aah
-
unixwitch
yes, in poudriere's make conf, so /usr/local/etc/poudriere.d/make.conf usually
-
unixwitch
(i think there are per-jail make.confs as well, but that one applies to everything)
-
weust
I don't have a make.conf there, only the one for the jail. currently I only build for 14.0 anyway, so that's fine
-
unixwitch
you can put it in the jail-specific make.conf too
-
unixwitch
just doesn't work in /etc/make.conf (afair) because poudriere ignores that
-
weust
understandable
-
weust
I've set MAKE_JOBS_NUMBER=8 and will see what happens
-
weust
I had a jail running on this server, when I first build it, with a DNS server. I couldn't even query the DNS server when it was using 16 cores at 100% :-)
-
weust
hadn't seen Ctrl-T show TMPF, CPU% and MEM% now. cool
-
unixwitch
it grew those in one of the recently updates, it's quite handy
-
weust
indeed
-
weust
still used all 16 cores at 100% or close too it
-
unixwitch
it'll be using up to PARALLEL_JOBS * MAKE_NUMBERS_NUMBER jobs, so you probably want to reduce the former if you set the latter to 8
-
weust
ok
-
unixwitch
if you like living on the edge, you could try something like PARALLEL_JOBS=1; PREPARE_PARALLEL_JOBS=2; MAKE_JOBS_NUMBER=8; ALLOW_MAKE_JOBS=yes but this has never resulted in a functional build for me. i wonder if there's a way to disable make jobs for only some packages...
-
weust
just for my sanity, PARALLEL_JOBS= means JOB = CPU core? or CPU thread?
-
unixwitch
it's just the number of concurrent jails to run (so, roughly, number of processes), i don't know if it's better to consider number of cores or number of threads when setting it
-
weust
iirc, and this has been several years since I set it up, parallel_jobs is the amount of ports to build at the same time. because, again iirc, I had it set to 16 at first but then set it it 8.
-
weust
so yeah, amount of jails
-
unixwitch
right, that's what i intended to say :-)
-
weust
you mentioned jobs before which sounded like CPU core to me :=_)
-
weust
:-)
-
unixwitch
maybe i should go back to using ALLOW_MAKE_JOBS=yes and submit patches for the things that don't build
-
weust
Now it's only doing 1 port/job at a time
-
weust
and using only 1 core during build
-
unixwitch
if you used the settings i mentioned above ^ then yes, but it'll use make -j for all of them. it's probably slower for small ports due to the overhead of configure, etc
-
weust
but MAKE_JOBS_NUMBER= = make -j, right?
-
unixwitch
yes
-
weust
Then it's ignoring the jails make.conf option for it
-
unixwitch
but if the compiler processes are very fast (which is common for C code) it may not be able to spawn them fast enough to use 8 cores at once. it's more helpful with c++/rust
-
weust
aah ok
-
weust
so something like Electron or Firefox
-
unixwitch
yeah
-
weust
Then I will experiment with parallel_jobs=4 and make_jobs_number=4
-
weust
just to get a feel for it
-
weust
I have my poudriere bulk run once a week from midnight onwards, but if decide to move some jails to it from my other server it would be nice if those jails were actually still usable
-
weust
it just did ffmpeg, which is in allow_make_jobs_packages, and with the three other jobs running CPU core usage was alright
-
fikran
hi all! Anyone know if FreeBSD exports libfetch to MacOS or Linux?
-
tmp_
MacPorts has libfetch
-
fikran
hm..need to figure out how to install it :)
-
fikran
new'ish to mac
-
tmp_
Have you checked
macports.org ? Using `ports` on Mac is kind of like using `pkg`. Except different.
-
VimDiesel
Title: The MacPorts Project -- Home
-
tmp_
At least, once installed.
-
tmp_
(No built-in bootstrap.)
-
tmp_
Also, NetBSD packages includes libfetch and that installs on just about any OS.
-
tmp_
s/`ports`/`port`/
-
fikran
Got it installed!
-
fikran
Wondering how to proceed here...
-
fikran
`cc file.c -o file -lfetch` tells me `ld: library 'fetch' not found`
-
unixwitch
fikran: use '-L/opt/local/lib -lfetch', but you want to be using something like autoconf, cmake or meson to find dependencies like this automatically
-
fikran
thank you unixwitch !
-
unixwitch
first time booting Windows (client) in vm-bhyve, surprisingly hassle-free other than needing a VNC client
-
fikran
now all I need is a Makefile that will build a library...
-
CrtxReavr
unixwitch, /opt/local is an odd prefix.
-
CrtxReavr
Why not /usr/opt?
-
unixwitch
somewhat, yes, but it's where MacPorts installs by default for whatever reason
-
CrtxReavr
Strange.
-
unixwitch
/opt/macports would seem like a better choice, rather than /usr, although /opt is more of a System V thing and not often found on BSD...
-
CrtxReavr
/opt is normally for commercial stuff you're paying for, whereas /usr/opt is common for stuff built/maintained by hand.
-
CrtxReavr
I commonly maintain a /usr/opt/ prefix on workstations, or application servers.
-
CrtxReavr
Keep stuff separate from ports/packages that I've built by hand, or customized in any way.
-
unixwitch
well, freebsd and macos hier(7) don't mention either /opt or /usr/opt. solaris filesystem(7) says /opt is for 'unbundled application packages', which would seem to cover macports, but of course macos isn't solaris, so...
-
» meena never paid anything for /opt/csw
-
CrtxReavr
unixwitch, I don't think that would forbid you from using it.
-
mfisher
homebrew went heavy for /opt in response to macos increasing its data protection on /usr
-
» unixwitch wonders how to make remmina do rdp scaling properly under sway
-
experemental
HELP!!!
-
experemental
HELP ME!!11!!!
-
fikran
experemental: what's wrong?
-
thumbs
experemental: You would need to ask your actual question first.
-
experemental
THEYRS COMING!!!11
-
experemental
HELP!!!
-
fikran
I never found a Mac Makefile, not sure how to build a library on MacOS. Wrong channel, I guess
-
babz
drugs are bad, mkay?
-
experemental
LINUX 6.0 IS COMING!!!!!HELP!!!HELP E!!
-
babz
even debian is already on linux 6.1
-
tmp_
unixwitch: I suspect MacPorts picked up /opt from Solaris from the time MacOS 10.5 went for officially counting as Unix.
-
nmz
is there a way to disallow pkg from updating a port?
-
nmz
audacious-plugins: 4.3.1_1 -> 4.3.1_3
-
nmz
ports should be handled by ports and pkg by packages
-
nimaje
packages are just the result of building a port
-
nimaje
pkg lock I guess
-
nmz
thanks nimaje