nut icon indicating copy to clipboard operation
nut copied to clipboard

Is there a good guide for installing NUT on a Windows machine?

Open cableghost opened this issue 2 years ago • 7 comments

I receive the no driver error when attempting to install the latest install ver. I have found only 1 thread discussing it, but no resolution or guide. I attempted to follow the process of installing libusb via WinUSB, but don't understand it.

cableghost avatar Nov 25 '23 16:11 cableghost

Just to be clear: as the "latest ver" do you mean NUT v2.8.1 (from tarballs with binaries prepared by Appveyor CI), or a 2.6.5-based MSI from almost 10 years ago? There was a long hiatus and we're trying to revive the NUT for Windows effort as part of the core project, help is welcome (experiments, packaging, instructions as one big gray area) - see https://github.com/networkupstools/nut/wiki/NUT-for-Windows for more details.

jimklimov avatar Nov 25 '23 18:11 jimklimov

Thanks @jimklimov, I had not read this article. I was referring to the 2.6.5 ver... I could/can not locate the 2.81 build.

Alternative would be to follow a couple of the guides cited in that article; 1) is for making 2.6.5 work on my Win machine, the other was porting a Win ver.

Edit: I just stumbled across this: https://github.com/networkupstools/nut/releases

Edit 2: I read the 'INSTALL.nut.adoc' install instructions and completely confused. I'm not a programmer; in the lower 'build from packages' section, sounds like I still need to build a ver to install?

cableghost avatar Nov 26 '23 17:11 cableghost

A build of latest source should be appearing at https://ci.appveyor.com/project/nut-travis/nut/build/artifacts as noted on that Wiki page as an archive with built and installed binaries for Windows.

These can be unpacked and run just as well as on POSIX systems, but ways need to be found to auto-start things at boot and be allowed to drive a shutdown at power loss. I believe just nobody tried and wrote about the experience. Per codebase, there should be a wrapping program to start others (driver(s) and data server, and/or the monitoring/shutdown client) which can register itself as a service. There are at least third-party programs to set up low-level access to USB devices, if your UPS is connected as such - see #1690 discussion.

But there currently is no modern package for that platform, to make it work out of the box, so one may have to roll up sleeves sort of like a programmer or sysadmin to proceed with that right now :\

jimklimov avatar Nov 26 '23 23:11 jimklimov

According to some posted bugs, latest msi packages missed some files or something. I remember some workarounds were posted - check PRs and issues tagged by Windows label (maybe closed, but not sure). That means either workarounds can be used with the latest MSI, or earlier MSI builds can be tried if they did not bug the related recipe parts yet.

I used NUT upsmon client on Windows in early 2000's (ver 2.2.x I think) which just worked, similarly to Unix builds.

jimklimov avatar Nov 27 '23 00:11 jimklimov

Thank you @jimklimov

cableghost avatar Nov 27 '23 16:11 cableghost

@jimklimov @cableghost if interested in NUT Client im using https://github.com/nutdotnet/WinNUT-Client

masterwishx avatar Jun 19 '24 10:06 masterwishx

@jimklimov @cableghost if interested in NUT Client im using https://github.com/nutdotnet/WinNUT-Client

I think the issue for me is I'm trying to monitor a UPS that is connected to another Windows PC, on same local network.

cableghost avatar Jun 20 '24 18:06 cableghost