rkvm/README.md

52 lines
2.8 KiB
Markdown
Raw Normal View History

2020-10-29 22:19:44 +01:00
# rkvm
2023-04-18 22:03:20 +02:00
rkvm is a tool for sharing keyboard and mouse across multiple Linux machines.
2020-10-29 22:19:44 +01:00
It is based on a client/server architecture, where server is the machine controlling mouse and keyboard and relays events (mouse move, key presses, ...) to clients.
Switching between different clients is done by a configurable keyboard shortcut.
2023-04-19 22:10:41 +02:00
## Configuration
After installation, generate a certificate and private key using the `rkvm-certificate-gen` tool or provide your own certificate.
- For server, place both the certificate and private key in `/etc/rkvm/certificate.pem` and `/etc/rkvm/key.pem` respectively.
- For client, place the certificate to `/etc/rkvm/certificate.pem`
- Finally, **change the password** and optionally reconfigure the network listen address and key bindings for switching clients
Note that the paths aren't hardcoded and can be changed in the config in `/etc/rkvm/{server,client}.toml`.
2020-10-29 22:19:44 +01:00
## Features
2023-04-18 20:41:58 +02:00
- TLS encrypted by default, backed by [rustls](https://github.com/rustls/rustls)
2020-10-29 22:19:44 +01:00
- Display server agnostic
- Low overhead
2020-10-30 19:48:33 +01:00
## Requirements
2020-11-14 13:23:37 +01:00
- Rust 1.48 and higher
## Linux requirements
- The uinput Linux kernel module, enabled by default in most distros. You can confirm that it's enabled in your distro by checking that `/dev/uinput` exists.
2021-01-31 13:43:04 +01:00
- libevdev development files (`sudo apt install libevdev-dev` on Debian/Ubuntu)
2021-01-31 14:03:27 +01:00
- Clang/LLVM (`sudo apt install clang` on Debian/Ubuntu)
2020-10-30 19:48:33 +01:00
2020-10-29 22:19:44 +01:00
## Why rkvm and not Barrier/Synergy?
The author of this program had a lot of problems with said programs, namely his keyboard layout (Czech) not being supported properly, which stems from the fact that the programs send characters which it then attempts to translate back into keycodes. rkvm takes a different approach to solving this problem and doesn't assume anything about your keyboard layout -- it sends raw keycodes only.
Additionally, rkvm doesn't even know or care about X, Wayland or any display server that might be in use, because it uses the uinput API with libevdev to read and generate input events.
Regardless, if you want a working and stable solution for crossplatform keyboard and mouse sharing, you should probably use either of the above mentioned programs for the time being.
## Limitations
- Only keyboard and relative mouse events work (that is, can be forwarded to clients)
2020-11-04 22:04:21 +01:00
## Project structure
2023-04-18 20:41:58 +02:00
- `rkvm-server` - server application code
- `rkvm-client` - client application code
- `rkvm-input` - handles reading from and writing to input devices
- `rkvm-net` - network protocol encoding and decoding
- `rkvm-certificate-gen` - certificate generation tool
2020-11-09 19:26:54 +01:00
2020-11-04 22:04:21 +01:00
[Bincode](https://github.com/servo/bincode) is used for encoding of messages on the network and [Tokio](https://tokio.rs) as an asynchronous runtime.
## Contributions
All contributions, that includes both PRs and issues, are very welcome.
2020-10-29 22:19:44 +01:00
## License
[MIT](LICENSE)