Download, compile and install Tp-Note:
Building on Linux
cargo install tpnote
sudo cp ~/.cargo/bin/tpnote /usr/local/bin
# Download icon
cd /usr/local/share/icons
sudo wget https://blog.getreu.net/projects/tp-note/assets/tpnote.svg
On Linux, Tp-Note displays errors and debug messages as notifications.
This requires a Linux/BSD based desktop environment that follows the XDG
specification, e.g. KDE, Gnome, XFCE, LXDC, Mate (and most
others).[^no-message-box]
[^no-message-box]: In case an XDG desktop environment is not available, you
can opt out notifications and message boxes by omitting the message-box
feature by adding
--no-default-features --features lang-detection,read-clipboard,renderer,viewer
to cargo install tpnote
.
Now, all error messages are dumped on the console from
where you started Tp-Note into stderr
.
Recommended Linux console and server version
The full-featured version of Tp-Note depends on GUI libraries like Xlib
which might not be available on a headless system. Either download the Musl
version x86_64-unknown-linux-musl/release/tpnote or compile Tp-Note
yourself without default features:
cargo install --no-default-features \
--features lang-detection,renderer tpnote
sudo cp ~/.cargo/bin/tpnote /usr/local/bin
If Tp-Note's binary size if of concern, omit the lang-detection
feature
in the cargo
invocation above. The lang-detection
feature causes 95%
of the final binary size because of its extensive language models.
Building on Windows and macOS
Build the full-featured version[^win] with:
cargo install tpnote
[^win]: When building for Windows or macOS, it does not make sense to exclude
the message-box
feature, because - under Windows and macOS - it does not
rely on the notification library. Instead, it uses direct OS-API calls for
popping up alert boxes. As these calls have no footprint in binary size or
speed, always keep the message-box
feature compiled in.