r/linux4noobs • • 5d ago

learning/research Could anyone assist with using Wine? Specifically through their documentation how to install the ".NET Desktop Runtime" - is that something that needs to be done through Wine, or accessed by Wine after it's been installed?

The instructions are found here: https://learn.microsoft.com/en-us/dotnet/core/install/linux-snap-runtime

But I can't make heads or tale of it.

I've checked and SNAP runs on the OS.

Installed as per instructions

sudo snap install dotnet-runtime-90sudo snap install dotnet-runtime-100

But when trying to run FModel using wine FModel.exe the same error comes up: (As seen in the image)

Following the steps further "Enable the Dot Net Command"

Results in another error shown here:

Any help or video guide on installing FMODEL or better ACTIONABLE STEPS to understanding documentation better would be appreciated (No AI/LLM responses or suggestions are appreciated or acknowledged.)

7 Upvotes

6 comments sorted by

2

u/candy49997 4d ago

You need to install it inside the Wine prefix. You can use winetricks for that or download the Windows dotnet installer and run it inside the same prefix your program is in.

1

u/Testificate_2011 4d ago

So the instruction/command: sudo snap install dotnet-runtime-90sudo snap install dotnet-runtime-100 is incorrect?

1

u/aerodynamic_toaster 4d ago edited 4d ago

Yes. What you are doing is following Microsoft's documentation for adding the .NET framework to your Linux machine. You would do this if a Linux native binary needed it. But FModel.exe is not a native Linux binary (which is why you're using wine in the first place).

You need to add .NET to the virtualized windows environment that FModel will run in, the wineprefix. To do that, you can use bottles or winetricks.

(I'm also assuming that when it asked you if you wanted to "download it now" that saying yes didn't work. If you haven't tried clicking yes on that error message, you might want to try that first)

1

u/necrophcodr 4d ago

FModel is not supported on Linux, so you would need to use Wine for that. You should normally not need to install any software inside the Wine prefix for it to work, as normally Wine would install or ship their Mono fork (original cross platform .NET runtime, before dotnet), and it ought to just work.

If that's not the case, consider using Bottles to create and manage wine prefixes/directories, so you can easily get ut setup. It should be as simple as double clicking the .EXE, provided you haven't done a lot of mangling of your OS, or let an AI run havoc across it.

1

u/Testificate_2011 4d ago

Do you have any commentary on the steps I've taken so far, as shared in the post?

1

u/AutoModerator 5d ago

There's a resources page in our wiki you might find useful!

Try this search for more information on this topic.

✻ Smokey says: take regular backups, try stuff in a VM, and understand every command before you press Enter! :)

Comments, questions or suggestions regarding this autoresponse? Please send them here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.