-
demido
ketas you can also spice up your user's lives by aliasing `help` to `rm -rf ~/*`
-
ketas
so evil
-
ketas
btw
-
ketas
man -P 'less -p "hostap"' ifconfig
-
ketas
is awesome
-
ketas
someone here once said what a good idea to direct people into specific line in manpage
-
ketas
maybe alias it to free-quota instead
-
ketas
works
-
ketas
what's unfunny is that i have read of people have suggested using disk wipe commands to unsuspecting users and watched them quietly running them, without any reasons whatsoever, besides perverse personal enjoyment
-
scoobybejesus
i'm trying to make sense of that man -P ... ifconfig command, and i can't guess what it'll do
-
ketas
it forces custom pager
-
ketas
and for that pager, it tells it to search and show pattern
-
ketas
first occurence
-
ketas
i don't think i've ever used it
-
ketas
just / is easier
-
BraveheartBSD
I have a FreeBSD 14.2 firewall/router set up and running, windows, linux and a couple of managed switches all get DNS and work correctly. 2 FreeBSD Desktops, however, fail to get DNS from the server, I can ping 8.8.8.8 from a client ok, pinging google.com returns 'name does not resolve'
-
zi
get dns....via dhcp?
-
BraveheartBSD
IPv4 only, no IPv6 on the internal network.
-
BraveheartBSD
DHCP fails, static ip address fails.
-
ketas
static ip fails?
-
ketas
how?
-
CorvetteZR1
can you check if local_unbound is running? /etc/rc.d/local_unbound status
-
ketas
what's route'
-
ketas
hmm
-
BraveheartBSD
Weird thing is, I get a DHCP ack from the client.
-
CorvetteZR1
if it's not, start it...if it's running, restart it
-
CorvetteZR1
cat /etc/resolv.conf
-
CorvetteZR1
did you set nameservers there? if not, and it's using nameserver 127.0.0.1, that means it's using local_unbound
-
zi
BraveheartBSD: so how are your windows/linux clients getting ips/dns?
-
BraveheartBSD
unbound was not running, der. Thank's guys, I'll look into it some more. Seems to be working now.
-
BraveheartBSD
zi, DHCP
-
zi
sounds like you've got it sorted
-
zi
you dont need unbound, just fyi
-
CorvetteZR1
ok, if it wasn't running, enable it in rc.conf so it starts on boot
-
zi
you'd just have to ensure dhclient is updating resolv.conf
-
CorvetteZR1
you don't need it, but it's default...so either change default not to use it, or just make sure it's running
-
CorvetteZR1
if it's a laptop, you might have issue with it not working if you change network or move from wifi to ethernet or something...in that case, just restart the service
-
CorvetteZR1
usually it's fine though
-
BraveheartBSD
Sorry, 4 y.o. running around.
-
mach7
Hi FreeBSD-IRC. thx for being here. Are FreeBSD-Gurus near Graz/Austria or the district of Deutschlandsberg here or in the german language area, I prefer to communicate in my native language, it is not an absolute must have? I want to come back to the favorite OS of my youth. I need a person to configure my personal OS (basic stuff at the beginning). I know what I want, and have no time for read 100s of man pages. thx
-
ek
mach7: I'm in no way Austrian and my Deutsche is limited, but I'm sure there's some here that can help you out. I can give it a shot, butI certainly wouldn't want to be in charge or yours system.
-
ek
Maybe just assist getting it set up?
-
demido
when's it looking like 15.0-release will be out?
-
souji
demido: Isn't it release in December... not sure if it changed with the new release schedule.
-
souji
*released
-
demido
ah ok good i was hoping this year
-
mach7
ek: this is not the goal. i set up a jail 20 years ago - i have no time to read the man pages again. i want something like a coach (DE: Nachhilfe-Lehrer) in the beginning and a consulter after i get in the freebsd-flow again. I build my systems myself, and i usually keep it that way. The most limited resource in my life is time.
-
mach7
one of the first tasks would be, to make an fvwm2rc file, in solaris style and a cheat sheet for things i want to built on top of that. Really, I was in no way a freeBSD guru, but UNIX-Junky.
-
mach7
goal: back to the roots ;)
-
demido
do we need to install wireguard-tools to run wireguard server on freebsd 14.2 or is it built in and can just be enabled?
-
nimaje
wireguard is peer to peer, there is no client or server software and you can configure wireguard directly with tools in the base system, you don't need to install wireguard-tools
-
demido
ok ty nimaje. so what's the point of wireguard-tools?
-
demido
description says "This supplies the main userspace tooling for using and configuring
-
demido
WireGuard tunnels, including the wg(8) and wg-quick(8) utilities." but i checked and 'wg' exists on the system already
-
ant-x
Hello, all. They say C is the portable assembler and that one can compile 30-year-old C programs on modern systems. Now I find that gets() is has been removed from the standard library on FreeBSD in favour of safe version, gets_s(). How then can I compile and develop pure C89 programs on FreeBSD?
-
CueXXIII
ant-x: replace gets by get_s in the code. otherwise, define your own gets() calling get_s with maximum size (pretty insecure, not for programs exposed to the internet)
-
ant-x
CueXXIII, Sure. But it means the sources cannot be compiled as-is, and must be tampered with.
-
CueXXIII
ant-x: yes. but you do want to clean up gets() usage, or it will never get fixed
-
ant-x
No, /I/ do not want to clean up gets() usage by such tyrannical methods. Let the teams and developers determine their own policies and practices.
-
CueXXIII
see, that's my point
-
CueXXIII
you could do #define gets(S) get_s((S), 2147483647) unless your string buffer is larger than 2G
-
ant-x
FreeBSD has Freedom in its name, but it limiting the freedom of its users and breaking the portability and backwards compatibility of C software.
-
ant-x
CueXXIII, thanks for the advice, I will come up with some non-intrusive workaround, hopefully.
-
Aedil
-
ant-x
Hmmmmm, shall I modify the OS-level header to provide gets() non-intrusively?
-
rtprio
ant-x: #DEFINE gets get_s
-
rtprio
and they don't say that
-
Aedil
I will try this SGI IRIX 5dwm revival when my FreeBSD VM has working X output again!
-
Aedil
MaXXdesktop 2.2.0 (release) now available!
-
Aedil
-
nimaje
ant-x: how about CFLAGS+=-D'gets(S) get_s((S), 2147483647)' ?
-
rtprio
or you could use a 30 year old compiler
-
CueXXIII
rtprio: wrong parameter count
-
ant-x
rtprio, yes, but no so easy, because they have different parameters.
-
ant-x
nimaje, indeed.
-
nimaje
but how does freebsd not providing support for a long obsolete standard, limit user freedom? freebsd doesn't prevent you from getting support for that standard for some other way (e.g. implementing it yourself, using someoneelses implementation of it, write a shim, …)
-
ant-x
The easy of compiling and running old C code, which would have been 100% backwards-compatible but for the removal of gets(). The compiler still suports C89, so I expect to be able to use the dangerous C89 fucntions, at least if I ask for them.
-
ant-x
gets() is available on most (if not all) Linuxes.
-
ant-x
Otherwise, you are right, nimaje.
-
nimaje
iirc c89 has some obsolete syntax elements that were removed in c99 and not sure when assuming that a undefined function returns int was removed
-
nimaje
ah, removal of implicit function declarations was in c99 too
-
sopparus
hi
-
sopparus
with recent samba 4.20 i get this on upload
dumpinen.com/Cy9SRrRyKTM
-
kevans
sopparus: you sohuld post a PR to bugzilla if you've not already
-
ghoti
I get a ton of spam that my own domain in the From address. I use spfmilter. If I change my SPF record from ~all to -all, is that enough? The only configuration I can see is the _flags variable in /etc/rc.conf.
-
ant-x
nimaje, re: thanks for the reminder. Indeed, I never relied on implicit declarations. They are evil.
-
mountainman1312
howdy all. How might I go about finding out why only 1 of 3 monitors shows up in arandr/xrandr? I've built everything from ports and am trying to do multi-monitor setup with EXWM. I had two plugged in and both showed good output, and then I plugged the third one in and now only one gets a signal. Any ideas?
-
ant-x
mountainman1312, no idea. But if you unplug your third monitor, are the other two revealed back?
-
mountainman1312
unfortunately no
-
ant-x
mountainman1312, the standard helping test would be to check whether this three-monitor setup works with another OS.
-
ant-x
Am I right that you have an empty xorg.conf, which is the default?
-
mountainman1312
I'm not even seeing an xorg.conf (would be in /usr/local/etc/ correct?)
-
ant-x
The locations are listed in the man-page: <
man.freebsd.org/cgi/man.cgi?query=x…+and+Ports&arch=default&format=html> but perhaps it is easier to: find -type f -name xorg\.conf
-
mountainman1312
Yeah, it doesn't exist
-
ant-x
That's OK (default).
-
ant-x
Did you restart the system after you had unplugged the third monitor?
-
ant-x
Can it be that your video card cannot support all the three simultanteosly with these resolutions?\
-
mountainman1312
Yes, I've tried several restarts. I restarted when it first stopped working, then again after I unplugged the 3rd monitor again.
-
mountainman1312
Could be the case, yeah. It's an older PC and it's using all the available outputs
-
mountainman1312
I'm pretty sure I've had 3 on this PC before, could be mistaken though
-
ant-x
mountainman1312, also: could be smaller resolutions.
-
mountainman1312
Just weird that they're not even showing up in arandr/xrandr...
-
ant-x
Does pciconf -lvhbce show any displays?
-
ant-x
Anybody in this channel running FreeBSD on a laptop?
-
tyler82_Desktop
yes
-
mountainman1312
ant-x: I'm not seeing any. Search for "HDMI" and "VGA" turned up nothing, and I read the whole list manually too
-
ant-x
monkeybusiness, search for `display' (without the quotes).
-
mountainman1312
ant-x: nah still nothing
-
tyler82_Desktop
if u create vm-switch public or any inerface after that u can not create bridge0 because that will be bridge0....However if u create bridge0 first then u can create vm-switch after that....And the trouble will arise...
-
ant-x
tyler82_Desktop, I have not been able to make the multimedia keys work (e.g. the volume controls). I only have managed to enable the brightness controls: <
wiki.freebsd.org/Laptops/HP_15-bw0xx#Brightness_action_keys>. What about you?
-
tyler82_Desktop
for me also do not work. however that is my smallest problem. :)
-
ant-x
mountainman1312, another try off the top of my head: what will hwprobe show: <
freebsdsoftware.org/sysutils/hw-probe.html> ?
-
ant-x
tyler82_Desktop, and what are some of your biggest ones?
-
tyler82_Desktop
Whonix networking in bhyve
-
ant-x
Sounds potentially complicated.
-
tyler82_Desktop
Not. if u understand how bridgeing works. But i am confused now. since vm-bhyve using switches which are "interfering" with ifconfig create interfaces natively.
-
mountainman1312
ant-x:
bsd-hardware.info/?probe=11fe9b837d is the output from that command
-
ant-x
mountainman1312, there is one display in your log of pciconf.
-
mountainman1312
Yeah I don't see any mention of the other two in any of the logs
-
ant-x
You could try booting from another OS's live CD, such as Debian Dog.
-
mountainman1312
I think I have a systemrescueCD around here somewhere
-
ant-x
mountainman1312, I suggested specifically Debian Dog because it seems very good at autodetecting and autoconfiguring hardware.
-
ContactLeft
quit
-
ant-x
Command unknown: once you are in, there is not way our.
-
mountainman1312
Restarting, will report back in a bit. Thanks for the help ant-x!
-
ant-x
mountainman1312, just random suggestions.
-
ant-x
I hate to admit that a good LLM will probably give you a better and faster consultation and help, than a specialised forum. LLMs disunite people.
-
mountainman1312
ant-x: okay I've done a bunch of messing around and it seems VGA might be the culprit. Only when the VGA monitor is plugged in do I have problems. So I guess I'll just stick with 2 monitors for now and order a graphics card with like 4 displayport slots. Thanks for the help!
-
ant-x
Thou art welcome, mountainman1312.
-
polarian
Is there any channel/discussion place for dotnet porting to freebsd?
-
polarian
I have to use dotnet for university and I would like to get in contact with the nice devs porting it to freebsd as I would love to use freebsd for it and contribute however I can
-
polarian
I see some docs on getting dotnet working but it seems it is a lot of manual compiling of dependencies (as Microsoft doesn't support freebsd officially)
-
dstolfa
polarian: there's a lang/dotnet which i have never tried. what happens when you just use that?
-
polarian
dstolfa: it works of course :P
-
polarian
but the issue is with nuget and dependencies
-
polarian
nuget goes to the nuget repo (run by microsoft) and freebsd is not a supported platform and therefore can't build any dotnet projects
-
dstolfa
ah, right.
-
polarian
the dotnet port has added freebsd as a supported platform, so basically you got to bootstrap your projects
-
polarian
me being new to dotnet, having some support on this would be appreciated, hence I was wondering if there was a channel or area those folks are discussing it
-
dstolfa
presumably if you want to use the official repo you should just use linuxulator, otherwise you'll have to deal with any dependency that isn't built exclusively for dotnet's VM yourself
-
dstolfa
short-term since you have university assignments and stuff, i'd recommend just spinning up a bhyve vm and playing with it once you get the time
-
polarian
I am happy to bootstrap and build the dependencies I need, its just I am not too sure how to configure nuget to use it
-
polarian
dstolfa: I have used C# on Arch Linux yearssss ago... I have no concerns about writing the code, only how to getting the build environment working on freebsd
-
polarian
if I can't then I was planning to virtualise arch linux
-
polarian
but I want to get it working on freebsd so I can contribute while doing this all, uni projects are boring it will spice it up a little
-
ghoti
I get a ton of spam that usees my own domain in the From address. I use sendmaiil and spfmilter. If I change my SPF record from ~all to -all, is that enough? The only configuration I can see is the _flags variable in /etc/rc.conf.
-
tyler82
possibly
-
nimaje
polarian: maybe look how the multimedia/jellyfin uses dotnet to build, that seems to be the only dotnet user in the ports tree
-
» ghoti waves at jpb
-
» jpb waves back
-
jpb
i'm checking over in freebsd-security first. i'll give them a few minutes.
-
jpb
ok, if you are also on freebsd-irc, this is the same question. apologies for the repost.
-
jpb
tldr; i want to create an ipfw table of addresses with connection limits for each record.
-
jpb
i've got a brain blockage. i've been working on this one ipfw issue for too long.
-
jpb
i created a table "ipfw table foo create type addr valtype limit"
-
jpb
i have added a record: "ipfw table foo add 192.168.1.10 23"
-
jpb
i want to use this table as follows: "ipfw add 1000 allow udp from 'table(foo)' to me limit src-addr tablearg"
-
jpb
the rule is accepted, but it does not allow any traffic to pass.
-
jpb
if i strip off the limit clause it works.
-
jpb
if i replace the rule with "ipfw add 1000 allow udp from 'table(foo)' to me limit src-addr 23" it works.
-
jpb
can anyone tell me why the "tablearg" keyword does not work here?
-
nimaje
yay, dafny now builds (after relaxing their dependency on the dotnet sdk a bit to 8.0.106 instead of .111, no idea why they declare .111 there, builds and runs fine with .106 as far as I can see)
-
thorongil
hi there. i've read the zfs and jail docs, and i'm still a bit fuzzy on one part: is it possible to mount the same data in both the host and the jail and have them both with read/write access? or is that a no-no?