-
farhan
so, this machine is running in a VM on a computer sitting physically behind me.
-
farhan
and I use a container on that same server quite a bit -- so I know its fine.
-
farhan
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.
-
farhan
I believe vscode can do this. However, vscode does not allow remote ssh sessions onto a FreeBSD device (not sure why)
-
jmnbtslsQE
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
-
jmnbtslsQE
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
-
jmnbtslsQE
agree that sshfs definitely an easier option though if fuse is installed locally
-
farhan
is it durable?
-
jmnbtslsQE
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
-
jmnbtslsQE
if we're talking about an editor saving a file, should not matter i think
-
jmnbtslsQE
if you are just concerned with a working environmen, you could also write some scripts to create tmux sessions and panes
-
farhan
Got a working solution -- vim has an scp option.
-
topcat001
farhan: can you use sshfs?
-
farhan
Yes.
-
topcat001
sshfs -o reconnect server:/dir (with a key based auth)
-
farhan
Ohh, didn't realize -o was possible
-
topcat001
you might need to :r the file (reopen) after a reconnect, but it's quick
-
topcat001
you can save a session file on the local machine, which will reopen all remote files
-
GoSox
isn't there a way i can have visudo use nano instead of vi to edit the sudoers file?
-
tsoome
you can try setting EDITOR env variable.
-
GoSox
i would have to do that to root, but does root have a .profile ?
-
tsoome
another option is to check man visudo ;)
-
GoSox
ironically, google sent me to a post on an ubuntu forum with the easiest solution :P
-
tsoome
the curse of the modern world;)
-
GoSox
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
-
tsoome
best practice depends on context. in single server with single user, it really does not matter much.
-
GoSox
it will be a web and email server, and like i said i'm the only user that will ever log in
-
GoSox
ok ill just add my user account direct
-
tsoome
groups are used for management purposes -- it is easier to control and change group membership than check sudoers file content.
-
GoSox
gotcha
-
GoSox
alright
-
GoSox
so i've had this dicussion in here before
-
GoSox
but
-
GoSox
is there an easy way to 'sample' all of the different GUIs that are available without having to actually install each one?
-
tsoome
for desktop?
-
GoSox
yeah
-
tsoome
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:)
-
GoSox
i guess i was hoping someone had a website somewhere that sort of showcased all of the more popular options :)
-
GoSox
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
-
GoSox
i REALLY want a GUI based off of old BeOS but modernized
-
GoSox
lol in 2001, palm pilot bought beos inc, aaaaaand palm and be died shortly afterwards, so sad
-
GoSox
ooooh, hellosystem looks promising though
-
nwe
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..
-
ivy
nwe: probably in the handbook, but basically: cloned_interfaces="bridge0"; ifconfig_bridge0="inet 1.2.3.4/24 addm epair0a addm epair1a"
-
nwe
ivy: then I will look deeper in the handbook :)
-
ivy
if you can't find it in the VM section, try the jail section, the bridge config is basically the same
-
ivy
i know i've seen it in there somewhere recently
-
nwe
ivy: okey thanks for the help :)
-
ivy
nwe: actually there is an example in bridge(4), scroll down to EXAMPLES near the bottom
-
[tj]
cloned_interfaces is documented in rc.conf(5)
-
nwe
ivy: oh thanks :)
-
nwe
stupid question, how do I know which interfaces I can put as a list in cloned_interfaces ?
-
ivy
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
-
[tj]
ah yeah, I meant to add that as a follow up
-
[tj]
normally man pages will mention if an if is created with cloning which is a subtle hint
-
nwe
okey thanks for clarifying, I have run FreeBSD so much :)
-
nwe
havent run freebsd so much :)
-
ketas
s/nwe/new/
-
ketas
:p
-
[tj]
nwe: even after using FreeBSD on and off for 15 years I'm learning things all the time
-
[tj]
you can only know what you have had to learn
-
ketas
which one did you install
-
ketas
i installed 4.6
-
ketas
8.x was out 2010
-
[tj]
7-CURRENT on powerpc
-
ketas
the hell!!! :p
-
nwe
ketas: haha
-
mvanbaak
lol
-
mvanbaak
because he loves PAIN
-
nwe
what do you suggests running freebsd in jail or virtual machine? I will setup my zigbee2mqtt usb-adapter..
-
nwe
maybe it´s easier to run it on linux vm with usb-passthrough ?
-
ivy
there is no usb passthrough in bhyve, as a workaround you can pass through a dedicated PCIe USB card
-
nwe
dont have any PCIe-usb card
-
nwe
I only have the usb-ports on my motherboard.
-
nwe
hmm maybe I can use socat in someway? what do think about that?
-
nwe
usb-port -> TCP and in zigbee2mqtt use tcp:// ?
-
ketas
what's that device even?
-
nwe
SONOFF Zigbee 3.0 USB Dongle Plus V2
-
ketas
usb ip bridge did exist
-
ketas
even ports have at least one iirc
-
ketas
usbredir
-
ketas
-
ketas
i have no idea how it works tho
-
nwe
but first I must setup bhyve with vm guests :)
-
[tj]
nwe: you can pass 1 xhci controller from the host to the vm
-
[tj]
assuming you have more than 1
-
nwe
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
-
nwe
[tj]: oh so then the "whole" controller will be assigned to that vm-guest?
-
ketas
[tj]: you can do it eh?
-
ketas
i was wondering about that
-
nwe
my first things is to get any vm guest up and running ^^
-
nwe
another question can I add wlan0 to a bridge or is that a bad idea?
-
Gud
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
-
dch
ran into something weird yesterday, I don't understand
-
dch
some recent patches to libc make my mouse disappear
-
dch
reverting them & rebooting brings it back (good)
-
kevans
which patches?
-
dch
*not* reverting them, and recompiling `libudev-devd` the port, then rebooting also brings it back
-
dch
I thought libudev-devd is .so, why would a rebuild of the port fix this?
-
dch
kevans: not so important as I already emailed maintainer, but its the collate-related ones (fnmatch etc)
-
dch
I can fwd the thread if you want
-
dch
`ldd /usr/local/lib/libudev.so` shows it uses libc correctly
-
dch
Gud: this sounds sort of power mgmt related, assuming you have no sysctl or tunables related to that, maybe try this:"
-
dch
while plugged in, switch to console (ctrl-alt-F1) , then unplug, and hope to see something of note on the console
-
dch
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
-
kevans
dch: hmm, I wouldn't have expected that
-
kevans
unless it's a difference in autoconf on the new libc
-
dch
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
-
dch
if I revert to the version built from pkg.f.o its deadmauß, rebuild locally, its back
-
Gud
dch: good suggestions
-
Gud
There is some error message I've tried recording using a camera
-
Gud
but it's gone in a blink of an eye
-
dch
Gud: sadly not *great* suggestions :-( yeah a phone mp4 played back frame by frame might help
-
getz
shouldnt it turn up in /var/log somewhere?
-
Gud
dch: I'm going to try to record using a high frame rate
-
Gud
there is definately something fishy about the battery. It was replaced by the previous owner. But this problem is fairly new
-
polarian
ivy: you are ivy⊙fo? Congrats on the commit bit!
-
polarian
oh wait maybe its a different ivy
-
nwe
I have added this
pastebin.com/7J1DVdFJ to my vm.conf and reboot my machine, but when I running vm switch list none of public/internal is there..
-
nwe
found the probelm I needed to add vm.conf under right zpool/dataset :)
-
nwe
or maybe not :P
-
nwe
or is it maybe because I creating it via rc.conf ?
-
dch
nwe: which tool is this from?
-
dch
I'm guessing its a ports one
-
nwe
I got it to working because I have setup my bridge via rc.conf and vm create switch -t manual <name> bridgeX work :)
-
nwe
hmm is it vmrun.sh or bhyve I should use to create virtual-machines?
-
dstolfa
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
-
sbr
why would you use anything other than vm (vm-bhyve) in 2025 ;-)
-
dch
+10 for vm-bhyve its what the cool kids use
-
Yaazkal
vm-bhyve++
-
» jbo is not cool. I stopped using vm-bhyve :(
-
TommyC
I thought everyone was using libvirt now
-
dstolfa
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
-
nwe
can I specify multiple nics with vm create? for my vm-guest?
-
mzar
that's sad story jbo
-
nwe
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)
-
mzar
good luck with vm-bhyve nwe !
-
nwe
mzar: Were you sarcastic regadring vm-bhyve? :P
-
mzar
nope, I am using it since a while, also submitted small patch some time ago, it's decent tool
-
nwe
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) :(
-
rtprio
nwe: i usually just add them in the config,
-
rtprio
i don't think you can do it when you create it
-
nwe
ah okey :) wiill do that
-
MelMalik
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?
-
rtprio
if you don't automatically assign ipv6 addresses, yeah
-
CrtxReavr
I'm trying to determine the chipset of this guy and ultimately if FreeBSD supports it.
-
CrtxReavr
-
CrtxReavr
This one's easier to determine the chipset for, but it doesn't look good for FreeBSD:
tp-link.com/us/home-networking/usb-adapter/archer-tx20u-plus
-
martinrame
Hi, I'm struggling to connect to an nfs server installed on a WSL2 (Ubuntu on Windows), from FreeBSD.
-
CrtxReavr
What NFS version?
-
martinrame
If I run rpcinfo -p <IP> I get all the ports 111, 2049, etc open
-
martinrame
CrtxReavr: how can I check that?
-
CrtxReavr
Can you pastebin the full rpcinfo -p output?
-
martinrame
-
CrtxReavr
What does 'showmount -e <ip>' say?
-
martinrame
CrtxReavr: that's the issue, showmount hangs for a while and returns RPC: Port mapper failure, showmount: can't do exports rpc
-
martinrame
CrtxReavr: it looks like a firewall issue, but if that's the issue why rpcinfo returns the open ports?
-
CrtxReavr
Well. . . rpcinfo is only going to talk to rpcbind. . .
-
CrtxReavr
YOu need the full range of ports available to connect to the NFS services with.
-
martinrame
CrtxReavr: I also tested ports 111 and 2049 with telnet. Is there another needed port?
-
dch
2049 is nfsv4
-
CrtxReavr
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.
-
martinrame
CrtxReavr: let me see
-
CrtxReavr
Though. . . my NFSv4 experience is quite limited.
-
CrtxReavr
dch might be on to something.
-
martinrame
CrtxReavr: I don't really need NFSv4, I just need to transfer files via NFS.
-
CrtxReavr
Well, NFSv3 I'm a lot more versed in troubleshooting.
-
CrtxReavr
Though, you're probably still going to be down to dealing with a firewall issue.
-
» CrtxReavr has flashbacks to tryin to get NFS to work over firewalls administered by neophyte admins.
-
CrtxReavr
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.
-
mewt
cddj/24
-
» Yaazkal installing fresh server
-
nwe
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.
-
megaTherion
nwe: well Im running mosquitto, but didn't bother with any password files
-
nwe
megaTherion: are you running the service with default settings like use nobody etc?
-
ivy
i also run mosquitto but do not use password_file, sorry
-
megaTherion
nwe: ah no, but if you'd define a password file. I guess you don't necessarily want nobody but an own mosquitto user