-
jbo
we have a new contender for easiest-to-test-ports: www/darkhttpd
-
jbo
dependencies: none <3
-
lw
jbo: well sure, if you want to play ports in easy mode
-
jbo
lw, let me have this one, okay? **schnipp**
-
jbo
at least I don't bitch around about being a maintainer :p
-
lw
jbo: fine, this is okay to commit
-
jbo
triggered >:D
-
warsoul
lw ircII is like irssi
-
warsoul
?
-
lw
not really, except in the sense they're both command-line irc clients
-
lw
although irssi was (i believe) intended to be a "better ircII", so i suppose they work sort of similarly
-
warsoul
they stop developin irssi
-
warsoul
?
-
lw
i don't think so? i don't follow irssi development at all thoug
-
lw
h
-
warsoul
ko
-
warsoul
ok
-
warsoul
and what about ircII
-
lw
i don't use original ircII either... last i looked their website was down though so development may have stopped there. ircII-EPIC is a separate fork
-
lw
what would you use to benchmark a CPU that runs on FreeBSD and macOS? something like prime95? doesn't need to be a super in-depth benchmark, just a basic number is okay
-
lw
math/primegen maybe
-
rtprio
openssl speed
-
lw
rtprio: not a bad idea but is there a way to force it not to use hardware crypto support?
-
rtprio
you can specify a provider?
-
rtprio
or engine
-
lw
ok, do you know what the engine for software crypto is called off hand?
-
rtprio
no, i've not used it
-
ShinyCyril
Could someone help me diagnose why my NFSv4 mount isn't working please? Server is FreeBSD 13, client is FreeBSD 14. I get "RPC: Authentication error; why = Client credential too weak" when not root, and " Operation not permitted" (client) / "mountd[1924]: mount request denied" (server)
-
ShinyCyril
I would like to be able to access this NFS share from two separate hosts, with different user IDs (but same username). I believe NFSv4 can help with this.
-
rtprio
what are your export lines
-
rtprio
and is there any more info from mound
-
rtprio
mountd*
-
lw
ShinyCyril: show /etc/exports on the server, /etc/fstab on the client, and /etc/rc.conf on both the server and the client
-
lw
but in reply to your second question - no, NFSv4 does not help with that, although you would think that it would
-
lw
it only does the username->uid mapping for writes, not reads, which means if the client uid doesn't match the server uid, you'll be able to create files, but when you try to read them, they'll have the wrong uid
-
lw
actually maybe i have that backwards, it's for reads, not writes... but in any case you still need the UIDs to match on both sides for things to work properly
-
lw
i *think* using Kerberos (sec=krb5) fixes this, but it's been a while since i tested that, i just use LDAP for passwd now to avoid the problem entirely
-
lw
i honestly wondering if that NFSv4 issue is a FreeBSD bug, because i'm sure i remember this working correctly on Solaris... but it's probably been 15 years since i tested that, so who knows
-
rtprio
i need to up my nfs game. still using nfsv3. kerberos might be nice?
-
lw
rtprio: i use Kerberos (with NFsv4) everywhere and love it
-
lw
using security/krb5 (MIT Kerberos) which can store the KDC data in OpenLDAP, so it's automatically replicated across all my LDAP servers
-
lw
if you're still using NFsv3, at least upgrade to NFsv4 for the protocol enhancements like not requiring portmapper or mountd
-
lw
makes firewalling much easier
-
ShinyCyril
sorry had to step away for sec. Export line is "V4: /nfs/media" (just trying to get _something_ working first). No fstab on the client, just trying to mount with "mount_nfs 192.168.1.2:/mnt/media ~/media"
-
ShinyCyril
Server rc.conf:
-
ShinyCyril
rpcbind_enable="YES"
-
ShinyCyril
nfs_server_enable="YES"
-
ShinyCyril
nfsv4_server_enable="YES"
-
ShinyCyril
mountd_enable="YES"
-
ShinyCyril
nfsuserd_enable="YES"
-
ShinyCyril
Client rc.conf:
-
ShinyCyril
nfs_client_enable="YES"
-
lw
ShinyCyril: the V4: line by itself does not export any filesystems, it just defines the V4 root
-
lw
you need something like
-
lw
V4: /data -sec=sys:krb5:krb5i:krb5p -network 2001:8b0:aab5::/48
-
lw
/data/www -sec=krb5:krb5i:krb5p -ro thyme.eden.le-fay.org
-
lw
/data/home -sec=krb5p -network 2001:8b0:aab5::/48
-
lw
then in case case you would mount server:/www or server:/home on the client
-
lw
s/in case case/in this case/
-
ShinyCyril
lw: good to know - thanks!
-
lw
(because the NFSv4 root here is '/data', the export of /data/www becomes /www from the client's point of view)
-
rtprio
lw: tbqh i'm aware of kerberos but don't quite understnd what it does in the nfs context.
-
lw
rtprio: 1) it uses the client user's Kerberos ticket to determine their identity, so the numeric uid's don't need to match, 2) it uses Kerberos encryption to encrypt and authehticate NFS traffic on the wire (you can also do this with IPSec or, in very recent systems, TLS)
-
rtprio
so a rando on my subnet will no longer able to mount my exports?
-
rtprio
that sounds like a good idea
-
lw
correct
-
ShinyCyril
I'm thinking NFS might not be the right approach here. I really just want to set up a simple fileshare between a couple of hosts on my home network. Having hard-coded credentials would be fine - can I accomplish this with NFS, or should I be looking at SMB?
-
lw
rtptio: if you export to a subnet with sec=krb5, anyone on the subnet can still mount, but they need a Kerberos ticket first
-
crest
but are you using nfs with just host credentials or with per user credentials?
-
lw
crest: if you're asking me, mostly per-user credentials, i have one or two mounts using host credentials
-
crest
remember that mounting the file system is done on behalf of the client not any use on the client
-
rtprio
ShinyCyril: can you not re-number one of the clients?
-
ShinyCyril
actually let me just check, I'm the only user on my MacBook, so I might be in luck. Depends how they start there id/gids
-
lw
ShinyCyril: i do not recommend SMB on FreeBSD, the in-kernel SMB client is ancient and useless (it only supports SMBv1) so you'd be relying on a FUSE client, if that even exists
-
rtprio
(that's what i would do in this case; and have done in the past)
-
lw
ShinyCyril: although if you're exporting from FreeBSD to macOS/Linux/Windows clients, SMB is probably fine
-
ShinyCyril
I could probably change my uid on macOS. Maybe better to change my uid on FreeBSD - less likely to cause unintended consequences :)
-
rtprio
same process on either; vipw and edit the group file; re-chown everything; reboot and log back in
-
ShinyCyril
got it
-
lw
macOS does not put normal users in /etc/master.passwd so vipw is not going to help there
-
lw
i recently changed my uid on macOS, which i did by adding a new admin user, logging in as that user, changing my other user's uid in the OpenDirectory admin tool, find | chown, then logging in as the original user again, and it seemed to work ok
-
rtprio
iirc there's user editor which had advanced mode and you could update the uid/gid
-
rtprio
lw: it used to
-
rtprio
i swear
-
lw
rtprio: i'm not a macOS expect so it's quite possible such tool exists and i just don't know about it
-
lw
you could probably do it with dscl?
-
lw
i guess that's the command-line version of the OpenDirectory admin too, but it's so horrible to use i'd just do it with the GUI
-
lw
s/too/tool
-
warsoul
lw im getting this error
-
warsoul
/usr/local/lib/hexchat/plugins/python.so: Undefined symbol "PyCapsule_Type"
-
warsoul
/usr/local/lib/hexchat/plugins/perl.so: Undefined symbol "PL_current_context"
-
lw
warsoul: sorry, i have never used hexchat and know nothing about it
-
warsoul
ok
-
warsoul
thanks mate
-
warsoul
lw how i can see if i have python installed in my system?
-
lw
pkg info|grep python
-
warsoul
lw thanks
-
jbo
lw
-
lw
jay bee oh
-
jbo
never mind - I just did it (wanted to ask, but then... you didn't respond)
-
jbo
here we go again
-
lw
what did you do
-
lw
what have you done, omg
-
jbo
you know _exactly_
-
lw
you've ruined everything
-
jbo
YOU did ruin everything
-
jbo
telling me how to use wine and all that...
-
jbo
real classic bitch move, lw. not proud my friend.
-
lw
oh you're playing factorio again
-
jbo
ssssshh
-
jbo
we call it "using wine"
-
jbo
running out of iron in a death world is no picnic
-
lw
rail world > death world
-
lw
i always play with enemies off, they're just boring by mid game
-
jbo
meh, railworld is just normal but more distance and no expansion
-
jbo
hence death world, my friend
-
jbo
real _men_ play deathworld ;)
-
jbo
he who should know
-
jbo
.__.
-
lw
jbo: fancy an easy ports commit?
-
lw
no testporting required!
-
rtprio
i've not tried deathworld
-
rtprio
ribbon world i got about half way through
-
lw
i'm playing with RSO at the moment which aiui, on the default setting, is somewhat like Railworld
-
crb
what is the T flag in a set of permissions? d-w-r-xr-T
-
lw
crb: lowercase 't' is usually a setuid directory, e.g. /tmp. i think uppercase T is used when the directory is setuid but some other permissions are missing
-
lw
d-w-r-xr-T is an extremely odd set of permissions, which would explain that
-
crb
its on /homes/crb/.cache/gnome-control-center which is an empty directory
-
lw
that sounds like a broken program
-
lw
ok, i tested it: uppercase T means the directory is setuid, but the other-x flag is missing
-
lw
... which makes no sense and is certainly the result of some program bug
-
crb
yep probably thank you!
-
jbo
lw what's up?
-
jbo
lw, ping
-
Thoth
Hi People
-
Thoth
I recently purchased an eight terabyte external USB drive. I was going to keep it as exFAT but decided to change it to UFS.
-
Thoth
This is the first external drive I have had that will be dedicated to a FreeBSD computer.
-
Thoth
Does this look right:
-
Thoth
sudo dd if=/dev/zero of=/dev/da0 count=1
-
Thoth
sudo gpart destroy -F /dev/da0
-
Thoth
sudo gpart create -s GPT /dev/da0
-
Thoth
sudo gpart add -t freebsd-ufs -l ISDi0A_8T -a 4k /dev/da0
-
Thoth
sudo newfs -L ISDi0A_8T /dev/da0
-
Thoth
(I figured six lines were OK to paste in channel )
-
cracauer
You want to run the newfs on the partition device, not the disk device.
-
Thoth
would that be: /dev/da0p1 or /dev/da0s1?
-
Thoth
da0p1 it looks like.
-
Thoth
cracauer: Thanks.
-
Thoth
Outside of FreeBSD installers, this is the first time I have formatted a disk as UFS using FreeBSD.
-
rwp
When I set -a alignment I normally align to 1M boundaries rather than 4k boundaries. Perhaps 1M alignment is more conservative than needed for a USB disk though.
-
rwp
If looking to see what slices/partitions were created by the gpart add action I would simply list the new device nodes created: ls /dev/da0*
-
rwp
Also I find using "geom -t" to produce a nice readable display of the logical structure of the disks, device nodes, and type.
-
Thoth
rwp: I'll make a note of both of those.
-
Thoth
I thought the -N flag would show me what would be created.
-
rwp
Another tidbit about the kernel is that it removes alternate paths to a device node that can no longer be used. Meaning that if a device has a partition path, a label path, a gpt/label path then all three paths are initially created. But as soon as one attaches to, say, a gpt/label then the other alternate paths are immediately removed, since they cannot be used at the same time as the others.
-
Thoth
rwp: What are some situations where it would be useful to see the geometry the way geom -t shows it?
-
rwp
That's helpful but often confusing behavior because one moment /dev/ada0p1 is there and the next moment it is not, removed because I mounted /dev/gpt/zfs1 and so the other paths were disabled.
-
Thoth
This removal process is just for that boot, right?
-
Thoth
I think I have experienced something like that before.
-
rwp
Everything resets upon the next boot. Also if the device is free'd up then the devices appear again too. But making a device free again can be tricky and often a reboot is the best way to test that all is going to work okay on the next reboot anyway.
-
rwp
So I like the tree structure that geom -t displays. And it shows the gpt/label that I have assigned. When possible I suggest using the gpt/label. Here on my larger disk arrays (6x disks) I set the serial number of the drives as the gpt/z0K1G42J7B type of gpt labels so that I can match failures to a particular drive.
-
rwp
The assignment of the /dev/da3p2 type of device names is not persistent as disks are moved around in a system. Meaning that later on if one has a disk problem with da3p2 it might be difficult to tell which drive that actually was before.
-
rwp
Sure if it is alive on the system then one can "smartctl -i /dev/da3" and query the drive for it's data. But if it is removed then you already have to know or it is too late to query it.
-
mvee
new freebsd user, not a lot of technical experience. I've successuflly installed windows10 in a vm-bhyve guest. I'm using TigerVNC viewer to connect. I'm trying to increase resolution to 1900x1200 with no luck. There are not any options to adjust in TigerVNC viewer and I've added graphics_res="1920x1200" to windows.conf. Any suggesitons on how to view the windows guest in something other than default 800x600?
-
jbo
mvee, if you already created the VM make sure that you actually edit the .conf file of the VM itself, not the windows.conf template
-
mvee
jbo: That worked! Thank you!
-
jbo
mvee, happy to help!
-
jbo
mvee, generally, I would also recommend you to use RDP. it works much, much better than VNC for most scenarios.
-
mvee
jbo: I've seen that mentioned a few times in the Forums during my troubleshooting today. Folks in there say the same as you
-
mvee
Once I'm comfortable with how to set up the guest vm's, I intend to branch out more
-
jbo
it has nothing to do with whether it's a VM or not
-
jbo
the same applies if you windows is located somewhere else on bare metal hardware.
-
mvee
Vm's would be the only use for now, I have one laptop
-
jbo
still irrelevant. it was a recommendation that applies outside of the context of VM or non-VM
-
mvee
Ok, maybe I don't understand what it is. Is it software for viewing remote content?
-
jbo
yes, similar to VNC
-
jbo
just a lot more capable if you actually have a desktop
-
mvee
I understand, what I was saying is, the only thing I would need to view at the moment are any vm's I create
-
mvee
I have one laptop no content anywhere else locally or remote
-
rtprio
mvee: the vnc in bhyve is more designed as a console and less as a means for commonly interacting with the vm
-
mvee
rtprio: using RDP improves the interaction with a bhyve vm?
-
rtprio
yes, it would. you could do vnc too, but i would run vnc on the host itself rather than via bhyve for performance reasons
-
mvee
ah, I see. makes sense.
-
mvee
jbo: wasn't trying to be difficult, but I think I understand what you were saying. I appreicate the help
-
jbo
all good
-
cracauer
Anybody knows sound and could help me get my laptop speakers working? Headphone out works. Dmesg and friends in here:
forums.freebsd.org/threads/my-turn-…adphone-out-does.92565/#post-645530
-
VimDiesel
Title: My turn for "speakers not working although headphone out does" | The FreeBSD Forums
-
jbo
lw, ping
-
jbo
cracauer, I saw that post of yours today and had to giggle.
-
jbo
cracauer, the laptop I'm using since 2020 also has no working speakers - I am still managing to just not have a look at it...
-
voy4g3r2
wasn't lw having some speaker / sound issues? but i think it was more complex than that.. as a DAC and external speakers were invovled.. not an internal one
-
voy4g3r2
i really wish i could just have neovim make all lines 80 and add a \ knowing spaces were there..
-
hackerman
I am making a new port and for some reason upon running make it tries to install all of the ports in the ports tree alphabetically
-
hackerman
I have no idea how my dependencies pull in a php81 php80 and such
-
hackerman
Here is the Makefile for my port:
termbin.com/vkto
-
hackerman
What happens upon launching make:
termbin.com/vkto
-
hackerman
Wrong link I meant
termbin.com/eo38
-
hackerman
so py39-cookiecutter pulls in py39-click which is what I think caused the issue
-
hackerman
should one classify that as a bug
-
tuaris
hmm, I must have imagined this, but I thought I read about a tool (not sysrc) in the base system that lets you edit /boot/loader.conf.
-
vkarlsen
You can do it with /bin/ed for that warm feeling of nostalgia
-
tuaris
hehe
-
tuaris
I think I have a script somewhere that uses ed
-
tmp_
I have vague memories of using /bin/ed. Obviously, I'm too sober to fully repress.
-
concussious
I like ed(1). It makes fee like a Fully Qualified Daemonological Nerd.