- Linux (Debian): See the releases area for a file named something like
gossip-VERSION-ARCH.deb
- Linux (AppImage): See the releases area for a file named something like
gossip-VERSION.AppImage
- Linux (Flatpak): See the releases area for a file named something like
gossip-VERSION.flatpak
- Microsoft Windows: See the releases area for a file named something like
gossip.VERSION.msi
- MacOS: See the releases area for a file named something like
gossip-VERSION-Darwin-arm64.dmg
orgossip-VERSION-Darwin-x86_64.dmg
- See README.macos.txt
With pacman
on Arch Linux: gossip
or gossip-git
or gossip-bin
on the AUR
With homebrew on MacOS or Linux: brew install gossip
from homebrew-core
, or for more options brew install nostorg/nostr/gossip
from homebrew-nostr
With scoop on Microsoft Windows: scoop install extras/gossip
from scoop extras bucket.
If when you pull gossip it doesn't pull cleanly, I may have done a rare force-push. Run these commands to reset your master branch:
git fetch
git reset --hard origin/master
If you don't already have rust installed, follow the guidance at rust-lang.org.
Most dependencies are probably already installed in your base operating system. Here are a few that sometimes aren't:
- build essentials like gcc and make (debian: "build-essential")
- cmake (debian: "cmake")
- pkg-config (debian: "pkg-config")
- openssl (debian: "libssl-dev") (this is only needed if not compiling with feature "rustls-tls")
- fontconfig (debian: "libfontconfig1-dev")
- ffmpeg support (debian: libavutil-dev libavformat-dev libavfilter-dev libavdevice-dev libxext-dev libclang-dev) (this is only needed if compiling with feature "video-ffmpeg")
a. Install rust with rust-up: https://rustup.rs/ b. Install homebrew if you don't have it yet https://brew.sh/ c. Install these dependencies:
brew install cmake sdl2 pkg-config ffmpeg
git clone https://github.com/mikedilger/gossip
cd gossip
cargo build --release
The output will be a binary executable in target/release/gossip
This binary should be portable to similar systems with similar hardware and operating system.
If you want a binary optimized for your exact processor with the newest CPU features enabled, and all gossip features enabled, do something more like this (for exact features to use, see the next section):
RUSTFLAGS="-C target-cpu=native --cfg tokio_unstable" cargo build --features=lang-cjk,video-ffmpeg --release
Everything gossip needs (fonts, icons) is baked into this executable. It doesn't need to find assets. So you can move the "gossip" binary and run it from anywhere.
To make the binary smaller,
strip gossip
The master
branch changes quickly. When you want to update, do it all again, something like this:
git pull
cargo build --release
strip ./target/release/gossip
./target/release/gossip
Gossip has three options for TLS support:
- Use rust-code and compiled in root certificates from webpki (feature 'rustls-tls')
- Use rust-code, but use your system's root certificates (feature 'rustls-tls-native', this is the default)
- Use your system's code and your system's root certificates (feature 'native-tls')
Rust's TLS code is thought to be more secure than your systems TLS code (e.g. OpenSSL). But it is very finnicky. In particular:
- It will not accept self-signed CA certificates. If you have these on your system, it won't run at all.
- Gossip will fail to negotiate SSL with servers that don't have any strong ciphersuites. This is a feature, but not one that everybody wants.
- Gossip may not compile on hardware that the
ring
crypto library does not yet support.
Gossip by default does not include the CJK font because it is larger than all other languages put together, and most gossip users don't recognize those characters. If you do recognize such characters, you can compile in that font with:
--features=lang-cjk
There are so many of these (172) that it becomes a real pain to add them all. But if you need one, please ask (open an issue) and I'll add it for you.
You will need to install sdl2 (follow the instructions in the readme) and ffmpeg on your system.
Compile with
--features=video-ffmpeg
Now that you have it installed, see Configuration