vuinputd/docs/BUILD.md
2025-10-24 12:53:48 +00:00

1.2 KiB

📦 vinput Build & Install Guide

🔹 Prerequisites

  • Rust toolchain (recommended: install via rustup)
  • Linux with libfuse3-dev, libudev-dev and pkg-config installed (for cuse/udev access)

🔹 Build Everything (Workspace Build)

Clone the repo:

git clone https://github.com/joleuger/vuinputd.git
cd vuinputd

Build all crates (daemon, forwarder, announce, common):

apt-get install libfuse3-dev pkg-config fuse3 libudev-dev

cargo build --release

Binaries will be located under:

target/release/vuinputd (the daemon itself)
target/release/mouse-advanced (for testing, fakes a mouse device)
target/release/keyboard-advanced (for testing, fakes a keyboard device)

🔹 Install guide

As root on host:

cp target/release/vuinputd /usr/local/bin
cp vuinputd/udev/90-vuinputd-protect.rules /etc/udev/rules.d
cp vuinputd/udev/90-vuinputd-protect.rules /etc/udev/rules.d
cp vuinputd/udev/90-vuinputd.hwdb /etc/udev/rules.d/hwdb.d/
cp vuinputd/systemd/vuinputd.service /etc/systemd/system/
systemd-hwdb update
udevadm control --reload
systemctl daemon-reload
systemctl enable --now vuinputd