Skip to content

Instantly share code, notes, and snippets.

@dasginganinja
Last active November 14, 2023 15:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save dasginganinja/1e958f8db5606974b6b8f65562343770 to your computer and use it in GitHub Desktop.
Save dasginganinja/1e958f8db5606974b6b8f65562343770 to your computer and use it in GitHub Desktop.
Install Unison 2.51.2 on Debian / Ubuntu - Used in Vagrant Guest Machines for compatibility with OSX Unison version
#!/bin/bash
apt-get update
apt-get install libdpkg-perl -y -f --allow-downgrades
apt-get install ocaml ocaml-native-compilers camlp4-extra opam -y -f
mkdir -p /usr/src/unison/
cd /usr/src/unison/
wget https://github.com/bcpierce00/unison/archive/refs/tags/v2.51.2.tar.gz -O unison.tar.gz
tar xzvf unison.tar.gz --strip-components 1
make UISTYLE=text || true
chmod +x unison unison-*
rm /usr/bin/unison
rm /usr/bin/unison-*
ln -s $PWD/unison /usr/bin/
ln -s $PWD/unison-* /usr/bin/
echo "fs.inotify.max_user_watches=262144" > /etc/sysctl.d/90-unison-notify.conf
sysctl -p --system
@Wedmal
Copy link

Wedmal commented Nov 10, 2023

@dasginganinja
Copy link
Author

@Wedmal Thank you -- updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment