I prefer
if (NULL == (fptr = fopen(argv[1],"r+")))
or (more paranoid)
if ((FILE *)NULL == (fptr = fopen(argv[1],"r+")))
to fool-proofing for cases missingly deleted one "=" in "==".
With this style (told by my friend decades ago), when missingly...
I don't see it as that hopeless.
I see it as something you let loose on your existing code, which you already engineered to have no memory errors you are aware of. The LLM gives additional suggestions. Outside an occasional misleading comment...
Both questions have the same answer; doing it. Stop reading about it and actually install and use it. The only way to get experienced in something, is to, ehm, well, actually experience something. Run into problems, solve issues. You learn as you...
Bhyve does provide a VNC server but it is tied to their virtual GPU driver and scrapes the framebuffer from it. This is way more layers.
So, as long as you have CPU accel (and virtio network drivers), I believe tigervnc's Xvnc installed on the...
Yeah, checked from another host via VPN, and it works.
Just in case for googlers:
/etc/exports content on the FreeBSD host:
V4: /nas/nfs
/nas/nfs/backups -network 192.168.0.0/24 -maproot=root
/nas/nfs/backups -network 192.168.100.0/24...
Today I tried booting FreeBSD 15.0-release (FreeBSD-15.0-RELEASE-arm64-aarch64-memstick.img.xz). Much the same story as the last time, but now it at least detects the usb hub I have plugged in. Sadly, no enumeration of devices plugged into the...
A few remarks about what I think is important here.
Understand the difference between the core shell language and the commandline utilities used by the shell. Understand there is some overlap as some commands might have both built-in versions...
Generally I find a headless setup to work best for virtualization. Then if I want graphics:
If the UI I am using is decent, X11/ssh forward.
If the UI is bloated / crap, I use Xvnc (tigervnc).
If you want accelerated 3D / gpu passthrough then...
I had been thinking about installing Nextcloud for some time but after seeing this video I think I will give it a go.
I was encouraged by the fact that an installation script is provided to install all the necessary components.
That script is...
This is the first time I've heard of it.
Even older ZFS "sharenfs" can very well export NFSv4 shares as long as all the requirements are met ("V4:" line in /etc/exports, "nfsv4_server_enable" in /etc/rc.conf ).
Ah, thanks. I have 14.3.
Well, tried that too.
And it even works with such format, if I did it correctly (but can be mounted and data is accessible in the 192.168.0.0/24, although I haven't checked from other networks yet):
V4: /nas/nfs...
Bummer, this works on version 2.4.0. (>=15 branch)
2.2.7 seems have not got patched to include the semicolon. Which FreeBSD version is the system running?
You have to resort to /etc/exports to share on different networks.
I run into a lot of problems, and do learn things, but lots remain unsolved. But have to admit that if it wasn't for this community a lot more issues would remain/
Both questions have the same answer; doing it. Stop reading about it and actually install and use it. The only way to get experienced in something, is to, ehm, well, actually experience something. Run into problems, solve issues. You learn as you...
I've set V4 manually in the /etc/exports:
# cat /etc/exports
V4: /nas/nfs
But the question is how to configure the same dataset's exports for multiple networks.
Bacuse everything is great with the:
# zfs set sharenfs="-network 192.168.0.0/24...
In this regard, there is an issue opened on Dec 7 2025 at the projects Github repository, unfortunately unresolved by the developer, yet :
Change in pkg behavior breaks Synth's check for fetched prebuilt packages #250
Thanks, indeed missed it.
But for me, it adds it as a single line:
# zfs sharenfs="-network 192.168.0.0/24 -maproot=root;-network 192.168.100.0/24" nas/nfs/backups
# cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY ...
How are you starting the VM?
It's an option that's enabled when starting bhyve VNC backend.
wait Instruct bhyve to only boot upon the initiation of a VNC
connection, simplifying the installation of operating...
Both questions have the same answer; doing it. Stop reading about it and actually install and use it. The only way to get experienced in something, is to, ehm, well, actually experience something. Run into problems, solve issues. You learn as you...
How are you starting the VM?
It's an option that's enabled when starting bhyve VNC backend.
wait Instruct bhyve to only boot upon the initiation of a VNC
connection, simplifying the installation of operating...
You have to set a semicolon (;) between the different networks (this is not documented in the regular manuals, as far as I know, but it is the subject of review "Allow ZFS sharenfs to generate multiple export(5) lines", linked in my post # 9 in...
Hi.
I'm trying to set up an NFSv4 share, and everything works when setting a limit for only one network.
The /etc/exports:
V4: /nas/nfs
Then, adding with ZFS set:
# zfs set sharenfs="-network 192.168.0.0/24 -maproot=root" nas/nfs/backups...
I had the exact same situation as you when I switched from Windows to Linux distros. I had been doing some software development even on Windows, so I was using Git for Windows and thus got a clue about some very basic UNIX programs like cd, ls...
Too many different CLI learning documents. It's more of creating habits and become more productive than a mouse UI clicker. Script everythhing that you do repeatedly.
I personally would have become better faster if I was confronted earlier with...
Modern "safe coding" practices discourage this exact kind of construct, and prefer to break the open and pointer comparison into separate operations. Much more clear and less error prone.
Speaking of memory allocators, you might enjoy the HEXACON 2025 keynote presentation by Ivan Krstić of Apple. He describes the process of implementing the memory tagging architecture Apple calls Memory Integrity Enforcement which first shipped in...
let is contextual depending on the language. We have mentioned three languages, Rust, Scheme and BASIC and the keyword has three different meanings.
I'm also not a fan of type inference. I believe a programmer should know what types he's...
No, you don't need to reinit the provider.
Boot up a installer media, drop to "Live System", attach provider, mount file system, remove what you added in local.rc and /boot/loader.conf, configure the provider to boot from the root file system...
In Scheme it has a clear meaning. (let ((x 1) (y 2)) <expr>) == ((lambda (x y) <expr>) 1 2). That is, x & y are respectively bound to 1 & 2 during the evaluation of <expr> -- the same as if you defined an anonymous function with two args x & y...
Not likely. A film is too large to fit into a cache bucket for Squid, so it won't be stored. The cache is generally meant for things like images, a few megabytes at the most. Maybe you could tweak Squid to cache more, but you'll be shoehorning...
Just a quick question which someone may be able to enlighten me about...
If all this streaming passes through a common server which haswww/squid installed, will any of the streamed films be cached?
I have had the same problem recently, using FreeBSD 14.3 and the bce driver with multiple BCM5709 nics.
Everything has been fine for years, until about 2 months ago.
The problem only happens once in a while, not consistently, probably 1 on 5 reboots.
Actually, to save money, we lowered our speed. I don't remember what it was and I'm not even sure what it officially is now, but did a quick speed test and it was 554 Mbs download, much slower upload, but this is Spectrum in NYC. As I've often...
This tool is awesome: https://github.com/DavidS95/Smokeless_UMAF
I can boot to unlocked BIOS menus, and have an overclocking menu for XTU stuff. Adaptive (only affect Turbo clocks) offset voltage -100 on Core and Uncore in BIOS shows in Windows...
I'm just saying that FreeBSD providesa built in utility - fetch so you don't net to get wget or curl.
As for mfsbsd, it is built from FreeBSD source code. I only offerred some advice. You are perfectly free to reject it. Many people on this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.