install.sh script automatically detects the system configuration and installs
nut_webgui. It also creates empty /etc/nut_webgui/config.toml file and
systemd nut_webgui.service if they're not already present on the system.
For x86_64, please note that install script does not check CPU flags to detect micro-architecture levels. See
Custom Targetsection if you want to take advantage of the modern features such as AVX512.
-
Download
curl -sfL https://github.com/SuperioOne/nut_webgui/releases/download/v0.10.0/install.sh -o install.sh
-
REVIEW
less ./install.sh
-
Run
sh ./install.sh
Or pipe the curl output directly into sh (* Insert Michael worried meme here *):
curl -sfL https://github.com/SuperioOne/nut_webgui/releases/download/v0.10.0/install.sh | sh -Use NUTWG_TARGET environment variable to specify the target if needed:
curl -sfL https://github.com/SuperioOne/nut_webgui/releases/download/v0.10.0/install.sh | NUTWG_TARGET="x86-64-v3-musl" sh -Available targets are:
- aarch64-gnu
- aarch64-musl
- armv6-musleabi
- armv7-musleabi
- riscv64gc-gnu
- x86-64-gnu
- x86-64-musl
- x86-64-v3-gnu
- x86-64-v3-musl
- x86-64-v4-gnu
- x86-64-v4-musl
Stop the service if systemd is enabled:
systemctl stop nut_webgui.service
systemctl disable nut_webgui.serviceSimply remove the executable and config files:
rm /usr/local/bin/nut_webgui
rm /etc/systemd/system/nut_webgui.service
rm -r /etc/nut_webguinut_webgui can be build and install directly from the source code.
This installation method does not create systemd service or empty config.toml file.
Prerequisites:
- cargo
- git
- make
- jq
- node
- npm or pnpm
- rust toolchain
Makefile has two different recipe for installation:
- System-wide installation (
/usr/local/bin):
git clone --depth=1 https://github.com/SuperioOne/nut_webgui.git
cd nut_webgui
make install- User only installation (
$HOME/.local/bin):
git clone --depth=1 https://github.com/SuperioOne/nut_webgui.git
cd nut_webgui
make install-localAlternatively, it can be installed via cargo ($HOME/.cargo/bin).
cargo install --git https://github.com/SuperioOne/nut_webgui.git
A PKGBUILD file is available on the
releases page. Similar to
install.sh, it creates systemd service and empty config file.
Package is currently not available on AUR.
curl -sfL https://github.com/SuperioOne/nut_webgui/releases/download/v0.10.0/PKGBUILD -o PKGBUILD
makepkg -inut_webgui is only a single executable and does not require any runtime
dependency*. You can simply download and extract the tar archive from the
releases page to anywhere
you want.
*The only exceptions are*-gnutargets, they link withglibc. This is only relevant if you use a distro with different libc implementation such as Alpine Linux.