00:02:37 so, this machine is running in a VM on a computer sitting physically behind me. 00:03:01 and I use a container on that same server quite a bit -- so I know its fine. 00:03:33 Its just that, whenever I crash or reboot the device I have to re-ssh in, cd to the right directories, etc, etc. I would prefer having a working environment that would survive those crashes. 00:04:20 I believe vscode can do this. However, vscode does not allow remote ssh sessions onto a FreeBSD device (not sure why) 00:05:15 NFS4 maybe an option, if you want to take the time to set it up. the client should block reads/writes until it's able to reconnect to your restarted server 00:06:38 if the files are all on local filesystems that are mounted by the time nfsd starts, there shouldn't be any interruption beyond waiting for the reconnect, i think 00:16:44 agree that sshfs definitely an easier option though if fuse is installed locally 00:17:01 is it durable? 00:18:43 actually looking at it now, i'm not completely sure what happens to in-flight writes in a crash, there would probably be some loss, but if you are only writing occasionally and at known times, that seems acceptable 00:19:16 if we're talking about an editor saving a file, should not matter i think 00:22:28 if you are just concerned with a working environmen, you could also write some scripts to create tmux sessions and panes 01:14:32 Got a working solution -- vim has an scp option. 01:23:06 farhan: can you use sshfs? 01:27:42 Yes. 01:27:45 sshfs -o reconnect server:/dir (with a key based auth) 01:28:00 Ohh, didn't realize -o was possible 01:28:42 you might need to :r the file (reopen) after a reconnect, but it's quick 01:30:21 you can save a session file on the local machine, which will reopen all remote files 06:57:58 isn't there a way i can have visudo use nano instead of vi to edit the sudoers file? 06:58:42 you can try setting EDITOR env variable. 06:59:25 i would have to do that to root, but does root have a .profile ? 06:59:46 another option is to check man visudo ;) 07:04:02 ironically, google sent me to a post on an ubuntu forum with the easiest solution :P 07:04:45 the curse of the modern world;) 07:04:48 ok that leads me to my next question, is there a "best practice" way of setting up your primary user to have sudo access? Like i directly to the user, or to the users group, or some other way? This is on a server where i will be the only user 07:06:28 best practice depends on context. in single server with single user, it really does not matter much. 07:06:58 it will be a web and email server, and like i said i'm the only user that will ever log in 07:07:04 ok ill just add my user account direct 07:07:23 groups are used for management purposes -- it is easier to control and change group membership than check sudoers file content. 07:08:13 gotcha 07:12:00 alright 07:12:09 so i've had this dicussion in here before 07:12:10 but 07:12:34 is there an easy way to 'sample' all of the different GUIs that are available without having to actually install each one? 07:13:03 for desktop? 07:13:47 yeah 07:14:29 I guess, thats why google (or other search engines) are good for;) but desktop is a lot about personal preferences and taste, so there can not be easy way:) 07:14:57 i guess i was hoping someone had a website somewhere that sort of showcased all of the more popular options :) 07:15:40 i had installed one on my previous bsd test machine that seemed good enough to get the job done.... i have no idea what one it was though so i guess i'm starting over, which is fine, i wasn't glued to it or anything 07:15:56 i REALLY want a GUI based off of old BeOS but modernized 07:17:46 lol in 2001, palm pilot bought beos inc, aaaaaand palm and be died shortly afterwards, so sad 07:22:00 ooooh, hellosystem looks promising though 08:35:14 where can I found information howto create a bridge, I will use that birdge for all my virtual machines, and then one of the virtaul machine will acts as firewall/dhcpd, but I can only find information like run ifconfig XXXX not how the syntax should be in rc.conf etc.. 08:36:07 nwe: probably in the handbook, but basically: cloned_interfaces="bridge0"; ifconfig_bridge0="inet 1.2.3.4/24 addm epair0a addm epair1a" 08:39:37 ivy: then I will look deeper in the handbook :) 08:40:20 if you can't find it in the VM section, try the jail section, the bridge config is basically the same 08:40:27 i know i've seen it in there somewhere recently 08:42:35 ivy: okey thanks for the help :) 08:43:54 nwe: actually there is an example in bridge(4), scroll down to EXAMPLES near the bottom 08:47:25 <[tj]> cloned_interfaces is documented in rc.conf(5) 09:01:02 ivy: oh thanks :) 09:26:23 stupid question, how do I know which interfaces I can put as a list in cloned_interfaces ? 09:28:34 you can use any interface type that supports cloning, which should be listed in the interface's manual page; it will tell you use ifconfig create to create one. see wg(4) for example 09:28:50 <[tj]> ah yeah, I meant to add that as a follow up 09:29:05 <[tj]> normally man pages will mention if an if is created with cloning which is a subtle hint 09:38:26 okey thanks for clarifying, I have run FreeBSD so much :) 09:55:50 havent run freebsd so much :) 09:56:39 s/nwe/new/ 09:56:50 :p 09:57:33 <[tj]> nwe: even after using FreeBSD on and off for 15 years I'm learning things all the time 09:57:52 <[tj]> you can only know what you have had to learn 09:58:42 which one did you install 09:58:50 i installed 4.6 09:59:25 8.x was out 2010 10:01:48 <[tj]> 7-CURRENT on powerpc 10:04:08 the hell!!! :p 10:56:29 ketas: haha 11:16:19 lol 11:16:28 because he loves PAIN 11:43:20 what do you suggests running freebsd in jail or virtual machine? I will setup my zigbee2mqtt usb-adapter.. 11:44:47 maybe it´s easier to run it on linux vm with usb-passthrough ? 11:46:02 there is no usb passthrough in bhyve, as a workaround you can pass through a dedicated PCIe USB card 11:47:16 dont have any PCIe-usb card 11:50:12 I only have the usb-ports on my motherboard. 11:53:54 hmm maybe I can use socat in someway? what do think about that? 11:56:13 usb-port -> TCP and in zigbee2mqtt use tcp:// ? 11:59:26 what's that device even? 11:59:52 SONOFF Zigbee 3.0 USB Dongle Plus V2 11:59:52 usb ip bridge did exist 12:00:21 even ports have at least one iirc 12:02:40 usbredir 12:04:22 https://www.spice-space.org/usbredir.html 12:04:39 i have no idea how it works tho 12:04:59 but first I must setup bhyve with vm guests :) 12:05:21 <[tj]> nwe: you can pass 1 xhci controller from the host to the vm 12:05:26 <[tj]> assuming you have more than 1 12:11:05 at the moment I have create a bridge1 with addm vtnet0 so I have bridge up and running (withhout IP). and I will create a switch in bhyve and add bridge1 to that switch 12:11:31 [tj]: oh so then the "whole" controller will be assigned to that vm-guest? 12:12:47 [tj]: you can do it eh? 12:13:00 i was wondering about that 12:13:35 my first things is to get any vm guest up and running ^^ 12:20:39 another question can I add wlan0 to a bridge or is that a bad idea? 12:49:18 I have a weird issue i was hoping someone can help me with. FreeBSD turns off my laptop after 30 seconds after I unplug the power chord. Only happens when I have X running. The laptop has an Intel GPU. I've already tried changing to newer/older drivers, no lucj 13:02:55 ran into something weird yesterday, I don't understand 13:03:08 some recent patches to libc make my mouse disappear 13:03:18 reverting them & rebooting brings it back (good) 13:03:26 which patches? 13:03:50 *not* reverting them, and recompiling `libudev-devd` the port, then rebooting also brings it back 13:04:18 I thought libudev-devd is .so, why would a rebuild of the port fix this? 13:05:05 kevans: not so important as I already emailed maintainer, but its the collate-related ones (fnmatch etc) 13:05:58 I can fwd the thread if you want 13:06:31 `ldd /usr/local/lib/libudev.so` shows it uses libc correctly 13:07:38 Gud: this sounds sort of power mgmt related, assuming you have no sysctl or tunables related to that, maybe try this:" 13:08:25 while plugged in, switch to console (ctrl-alt-F1) , then unplug, and hope to see something of note on the console 13:09:14 you could probably also try fwding syslog over network, which would be more reliable, but you might miss the final useful log message that way 13:14:25 dch: hmm, I wouldn't have expected that 13:14:40 unless it's a difference in autoconf on the new libc 13:15:36 kevans: at first I thought I must have screwed something up, so I did a fresh beinstall.sh from sources into it, then rebuilt libudev-devd, and went fwd & back a few times, its definitely a thing 13:16:38 if I revert to the version built from pkg.f.o its deadmauß, rebuild locally, its back 13:26:04 dch: good suggestions 13:26:16 There is some error message I've tried recording using a camera 13:26:37 but it's gone in a blink of an eye 13:27:16 Gud: sadly not *great* suggestions :-( yeah a phone mp4 played back frame by frame might help 13:28:55 shouldnt it turn up in /var/log somewhere? 13:31:23 dch: I'm going to try to record using a high frame rate 13:31:44 there is definately something fishy about the battery. It was replaced by the previous owner. But this problem is fairly new 13:37:00 ivy: you are ivy⊙fo? Congrats on the commit bit! 13:37:25 oh wait maybe its a different ivy 13:37:36 I have added this https://pastebin.com/7J1DVdFJ to my vm.conf and reboot my machine, but when I running vm switch list none of public/internal is there.. 13:43:14 found the probelm I needed to add vm.conf under right zpool/dataset :) 13:46:53 or maybe not :P 13:55:08 or is it maybe because I creating it via rc.conf ? 14:01:06 nwe: which tool is this from? 14:01:39 I'm guessing its a ports one 14:50:42 I got it to working because I have setup my bridge via rc.conf and vm create switch -t manual bridgeX work :) 14:51:18 hmm is it vmrun.sh or bhyve I should use to create virtual-machines? 14:52:12 vmrun is fine for freebsd vms, but if you plan to manage multiple i'd suggest just using something like vm-bhyve or whatever the rage is these days 14:54:28 why would you use anything other than vm (vm-bhyve) in 2025 ;-) 15:20:38 +10 for vm-bhyve its what the cool kids use 15:31:21 vm-bhyve++ 15:37:46 * jbo is not cool. I stopped using vm-bhyve :( 15:38:25 I thought everyone was using libvirt now 15:48:17 TommyC: last time i tried it, it was still lacking a lot of features and was pretty wonky with bhyve, but that was a few years ago 16:38:02 can I specify multiple nics with vm create? for my vm-guest? 16:38:45 that's sad story jbo 16:40:01 first time I using bhyve and vm, I have create two bridge and added them manully to vm swtich, and will create my frist vm (will be firewall for my virtual/guests network) 16:41:20 good luck with vm-bhyve nwe ! 16:42:59 mzar: Were you sarcastic regadring vm-bhyve? :P 16:43:48 nope, I am using it since a while, also submitted small patch some time ago, it's decent tool 16:45:21 oki :) it´s much to learn :P after I have setup my first firewall in bhyve I will setup my zigbee2mqtt stuff :) migrating to freebsd from proxmox (but the problem is that I cant boot my old nuc because of disk crash) :( 16:49:30 nwe: i usually just add them in the config, 16:50:37 i don't think you can do it when you create it 16:51:15 ah okey :) wiill do that 16:58:07 if i want to have ipv6 in a vm-bhyve-managed guest, I assume I have to arrange that manually after the bridge interface is brought up? 17:00:05 if you don't automatically assign ipv6 addresses, yeah 17:51:49 I'm trying to determine the chipset of this guy and ultimately if FreeBSD supports it. 17:51:52 https://www.wavlink.com/en_us/product/WL-WN693A5.html 18:13:30 This one's easier to determine the chipset for, but it doesn't look good for FreeBSD: https://www.tp-link.com/us/home-networking/usb-adapter/archer-tx20u-plus/ 18:13:45 Hi, I'm struggling to connect to an nfs server installed on a WSL2 (Ubuntu on Windows), from FreeBSD. 18:14:09 What NFS version? 18:14:23 If I run rpcinfo -p I get all the ports 111, 2049, etc open 18:14:32 CrtxReavr: how can I check that? 18:14:55 Can you pastebin the full rpcinfo -p output? 18:16:00 CrtxReavr: https://pastebin.com/nGD6Mzpg 18:16:36 What does 'showmount -e ' say? 18:17:17 CrtxReavr: that's the issue, showmount hangs for a while and returns RPC: Port mapper failure, showmount: can't do exports rpc 18:19:17 CrtxReavr: it looks like a firewall issue, but if that's the issue why rpcinfo returns the open ports? 18:19:53 Well. . . rpcinfo is only going to talk to rpcbind. . . 18:20:24 YOu need the full range of ports available to connect to the NFS services with. 18:20:42 CrtxReavr: I also tested ports 111 and 2049 with telnet. Is there another needed port? 18:20:57 2049 is nfsv4 18:21:10 Look at the docs on that linux side for mountd and findout what the full port range it might use, then make sure those are open on the firewall. 18:22:08 CrtxReavr: let me see 18:22:38 Though. . . my NFSv4 experience is quite limited. 18:22:48 dch might be on to something. 18:27:44 CrtxReavr: I don't really need NFSv4, I just need to transfer files via NFS. 18:28:24 Well, NFSv3 I'm a lot more versed in troubleshooting. 18:28:49 Though, you're probably still going to be down to dealing with a firewall issue. 18:29:18 * CrtxReavr has flashbacks to tryin to get NFS to work over firewalls administered by neophyte admins. 18:30:45 I'm looking for recommendations on a USB-3 wifi adapter that only needs USB power, and has multiple, long antennas, plus supports an AP mode. . . oh, and that FreeBSD will support. 18:46:04 cddj/24 21:59:00 * Yaazkal installing fresh server 22:06:53 does someone here running mosquitto ? I trying to setup password_file (using default configuration from pkg) but it complain file not exists even if I have absolute path to the file. 22:27:54 nwe: well Im running mosquitto, but didn't bother with any password files 22:32:17 megaTherion: are you running the service with default settings like use nobody etc? 22:34:36 i also run mosquitto but do not use password_file, sorry 22:38:13 nwe: ah no, but if you'd define a password file. I guess you don't necessarily want nobody but an own mosquitto user