Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 57 lines (50 sloc) 1.36 KB
#!/usr/bin/env bash
set -e
# This script installs tidal.
# It will get all its dependencies and put
# files into ~/tidal and a start script on the
# Desktop.
# This script has been tested with Ubuntu 13.10
# and Debian.
# prepare system
mkdir -p ~/tidal
cd ~/tidal
sudo apt-get -y install build-essential libsndfile1-dev libsamplerate0-dev \
liblo-dev libjack-jackd2-dev qjackctl jackd git \
ghc zlib1g-dev cabal-install \
emacs24 haskell-mode libportmidi-dev
# install Dirt
if [ -d "Dirt" ]; then
cd Dirt
if [ ! -d ".git" ]; then
>&2 echo "no git repository for 'Dirt' ... don't know what to do"
exit 1
git pull
git clone --recursive
cd Dirt
make clean; make
# actually install tidal
cabal update
cabal install cabal
cabal install tidal
# configure Emacs
mkdir -p ~/tidal/emacs
rm -f ~/tidal/emacs/tidal.el
wget -O ~/tidal/emacs/tidal.el
touch ~/.emacs
if [ `grep "(add-to-list 'load-path \"~/tidal/emacs\")" ~/.emacs | wc -l` -ne 1 ]; then
echo "(add-to-list 'load-path \"~/tidal/emacs\")" >> ~/.emacs
if [ `grep "(require 'tidal)" ~/.emacs | wc -l` -ne 1 ]; then
echo "(require 'tidal)" >> ~/.emacs
sudo adduser $USER audio
# put starter on th desktop
cd ~/Desktop
rm -f start-tidal
chmod u+x start-tidal
You can’t perform that action at this time.